Information processing apparatus and control method
By introducing continuous calligraphy determination, segmentation and rendering processing technology into the information processing device, the problem of difficulty in adjusting text details during handwriting input is solved, and beautiful Chinese characters can be displayed while maintaining the advantages of handwriting.
Patent Information
- Application Number
- CN202410297776.8
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Priority Date
- 2023-04-28
- Filing Date
- 2024-03-15
- Publication Date
- 2024-10-29
AI Technical Summary
It is difficult for existing information processing devices to display beautiful characters while maintaining the advantages of handwriting during handwriting input. Especially in complex Chinese characters, it is difficult to adjust details such as dots and hooks, and it is difficult to mix cursive and continuous calligraphy. The situation is difficult to render properly.
The continuous calligraphy determination unit, segmentation processing unit, classification processing unit and rendering processing unit are used to determine the continuity and pen pressure characteristics of handwritten strokes, segment and classify the strokes, adjust the shape and thickness of the strokes, and generate a standardized pen pressure curve, appropriately Adjust the display effect.
In the case of mixed continuous calligraphy, it is possible to maintain the advantages of handwriting while displaying beautiful text, reducing the problems of disappearing handwriting and loss of freedom, and improving the rendering details of Chinese characters.
Smart Images

Figure CN118860179A_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to an information processing device and a control method. Background Art
[0002] In recent years, devices capable of handwritten text input have become popular in information processing devices such as tablet terminals (see, for example, Patent Document 1). In such conventional information processing devices, there is a known technique for recognizing handwritten text input and converting it into a predetermined font.
[0003] Patent Document 1: Japanese Patent Application Publication No. 2021-43851
[0004] In the above-mentioned conventional information processing devices, beautiful text can be displayed by converting handwritten text into a prescribed font. However, in conventional information processing devices, since the text is replaced with a prescribed font, the user's handwriting disappears, and the freedom of handwriting such as the aspect ratio and size of the text brought by handwriting is lost, and the advantages of handwriting disappear. On the other hand, in conventional information processing devices, it is also possible to adjust the rendering thickness of the ink for the text drawn by the pen based on the pen pressure and display it. However, in such a case, on a tablet terminal whose surface is harder and more slippery than paper, it is very difficult to draw dots, hooks, and strokes that require fine adjustment of the ink thickness, which is often required in complex text such as Chinese characters.
[0005] In addition, in the conventional information processing apparatus, for example, it is difficult to appropriately cope with the case where a part of the text is mixed with continuous calligraphy such as cursive script or handwriting. That is, in the conventional information processing apparatus, it is difficult to display beautiful text while maintaining the advantages of handwriting when continuous calligraphy is mixed. Summary of the invention
[0006] The present invention is completed to solve the above-mentioned problems, and its purpose is to provide an information processing device and a control method that can display beautiful text, especially Chinese characters, while maintaining the advantages of handwriting even in the case of mixed continuous calligraphy during handwriting input.
[0007] In order to solve the above-mentioned problems, one embodiment of the present invention is an information processing device, comprising: a continuous calligraphy determination unit, which determines whether an input handwritten stroke is calligraphy with continuous strokes, i.e., continuous calligraphy; a segmentation processing unit, which segments the handwritten stroke at a corner portion to generate segmented partial strokes; a classification processing unit, which classifies the partial strokes segmented by the segmentation processing unit into any one of a plurality of text elements that are basic patterns of text constituting Chinese characters; and a rendering processing unit, which, when the continuous calligraphy determination unit determines that the handwritten stroke is not the above-mentioned continuous calligraphy, adjusts the shape of the partial stroke based on brush information and pen pressure characteristics corresponding to the above-mentioned text element classified by the classification processing unit, and displays the handwritten stroke with the adjusted shape on a display unit; and, when the continuous calligraphy determination unit determines that the handwritten stroke is the above-mentioned continuous calligraphy, adjusts the shape of the handwritten stroke based on the pen pressure when the handwritten stroke is input, and displays it on the display unit.
[0008] Furthermore, according to one aspect of the present invention, in the above-mentioned information processing device, the continuous calligraphy determination unit may determine that the handwritten stroke is the continuous calligraphy when the length of the handwritten stroke is equal to or longer than a threshold length.
[0009] Furthermore, according to one aspect of the present invention, in the above-mentioned information processing device, the continuous calligraphy determination unit may change the threshold length according to the thickness of a brush that draws the handwritten stroke and is selected.
[0010] In one aspect of the present invention, in the information processing device, the continuous calligraphy determination unit may determine the handwritten stroke as the continuous calligraphy when the number of the corner portions included in the handwritten stroke is equal to or greater than a threshold value.
[0011] In one aspect of the present invention, in the information processing device, the continuous calligraphy determination unit may determine the handwritten stroke as the continuous calligraphy when a total value of angle changes of lines drawn on the handwritten stroke is equal to or greater than a threshold angle.
[0012] Furthermore, according to one aspect of the present invention, in the above-mentioned information processing device, the continuous calligraphy determination unit may determine that the handwritten strokes are the continuous calligraphy when the handwritten strokes have self-intersections.
[0013] In addition, one method of the present invention may be that in the above-mentioned information processing device, when the above-mentioned continuous calligraphy judgment unit judges the above-mentioned handwritten strokes as the above-mentioned continuous calligraphy, the above-mentioned rendering processing unit adjusts the thickness in such a manner that the higher the above-mentioned pen pressure, the thicker the above-mentioned handwritten strokes, and the faster the above-mentioned handwritten strokes are drawn, the thinner the above-mentioned handwritten strokes are, and displays it on the above-mentioned display unit.
[0014] In one aspect of the present invention, in the information processing device, when the continuous calligraphy determination unit determines that the handwritten stroke is the continuous calligraphy, the rendering unit may adjust the maximum thickness of the handwritten stroke by standardizing the maximum thickness based on a standard pen pressure.
[0015] In addition, one embodiment of the present invention may also be provided in the above-mentioned information processing device, comprising: a brush information storage unit, which stores the above-mentioned text elements and the above-mentioned brush information including the size, aspect ratio, and angle of the brush used in correspondence; and a pen pressure characteristic storage unit, which stores the above-mentioned text elements and a pressure curve representing the relationship between the stroke position and the pen pressure in the text elements in correspondence, and the above-mentioned rendering processing unit obtains the above-mentioned brush information corresponding to the above-mentioned classified text elements from the above-mentioned brush information storage unit and obtains the above-mentioned pressure curve corresponding to the above-mentioned classified text elements from the above-mentioned pen pressure characteristic storage unit when the above-mentioned continuous calligraphy determination unit determines that the above-mentioned handwritten strokes are not the above-mentioned continuous calligraphy, and adjusts the shape of the above-mentioned partial strokes based on the acquired brush information and the acquired pressure curve.
[0016] In addition, one embodiment of the present invention may also be provided in the above-mentioned information processing device, comprising: the above-mentioned display unit; a touch sensor unit, detecting contact and contact position of an operating medium on a detection surface on a screen of the above-mentioned display unit; and an input processing unit, detecting input of the above-mentioned handwritten strokes based on the contact position of the above-mentioned operating medium detected by the above-mentioned touch sensor unit, the above-mentioned input processing unit detecting the input of the above-mentioned handwritten strokes, and displaying the moving trajectory of the contact position of the above-mentioned operating medium as the input above-mentioned handwritten strokes on the above-mentioned display unit, and the above-mentioned rendering processing unit replacing the above-mentioned input above-mentioned handwritten strokes, and displaying the above-mentioned handwritten strokes with adjusted shapes on the display unit.
[0017] In addition, one embodiment of the present invention is a control method, which is a control method for an information processing device, comprising: a step in which a continuous calligraphy determination unit determines whether an input handwritten stroke is calligraphy with continuous strokes, i.e., continuous calligraphy; a step in which a segmentation processing unit segments the handwritten stroke at a corner portion to generate segmented partial strokes; a step in which a classification processing unit classifies the partial strokes segmented by the segmentation processing unit as any one of a plurality of text elements that are basic patterns of text constituting Chinese characters; and a step in which a rendering processing unit, when the continuous calligraphy determination unit determines that the handwritten stroke is not the continuous calligraphy, adjusts the shape of the partial stroke based on brush information and pen pressure characteristics corresponding to the text element classified by the classification processing unit, and displays the handwritten stroke with the adjusted shape on a display unit; and when the continuous calligraphy determination unit determines that the handwritten stroke is the continuous calligraphy, adjusts the shape of the handwritten stroke based on the pen pressure when the handwritten stroke is input, and displays it on the display unit.
[0018] According to the above aspect of the present invention, during handwriting input, even when continuous calligraphy is mixed, it is possible to display beautiful characters (especially Chinese characters) while maintaining the advantages of handwriting. BRIEF DESCRIPTION OF THE DRAWINGS
[0019] Figure 1 This is an external view showing an example of a tablet terminal and an information processing system according to the present embodiment.
[0020] Figure 2 This is a diagram showing an example of the main hardware configuration of the tablet terminal and the information processing system according to the present embodiment.
[0021] Figure 3 This is a block diagram showing an example of the functional configuration of the tablet terminal and the information processing system according to the present embodiment.
[0022] Figure 4 It is a diagram showing a data example of the brush information storage unit in this embodiment.
[0023] Figure 5 This is a diagram showing an example of a text element in this embodiment.
[0024] Figure 6 It is a diagram showing a data example of the writing pressure characteristic storage unit in this embodiment.
[0025] Figure 7 It is a diagram for explaining the determination conditions of continuous calligraphy by the tablet terminal in the present embodiment.
[0026] Figure 8 This is a diagram showing an overview of a continuous calligraphy handwriting input process performed by a tablet terminal in the present embodiment.
[0027] Fig. 9 This is a diagram showing an overview of handwriting input processing using character elements by the tablet terminal in the present embodiment.
[0028] Fig.10 This is a diagram showing an example of correction processing and normalization processing of writing pressure in the tablet terminal in this embodiment.
[0029] Fig.11 This is a flowchart showing an example of handwriting input processing of the tablet terminal in this embodiment.
[0030] Fig.12 This is a diagram showing a display example of a handwriting input process of a character not including continuous calligraphy by a tablet terminal in the present embodiment.
[0031] Fig.13 This is a diagram showing a display example of a handwriting input process including characters in continuous calligraphy by a tablet terminal in the present embodiment.
[0032] Fig.14 This is a flowchart showing an example of a learning process of the tablet terminal in this embodiment.
[0033] Description of Reference Numerals
[0034] 1…tablet terminal, 10…control unit, 11…processor, 12…main memory, 13…flash memory, 20…touch screen, 21…display unit, 22…touch sensor unit, 23…peripheral device, 24…audio system, 25…microphone, 26…speaker, 27…baseband chip, 28…wireless unit, 29, 31…wireless communication unit, 30…pen, 32…sensor unit, 33…memory, 34…MCU, 40…storage unit, 41…brush information storage unit, 42…pen pressure characteristic storage unit, 43…CE classification information storage unit, 44…handwritten stroke storage unit, 45…partial stroke storage unit, 46…learning data storage unit, 100…information processing system, 101…input processing unit, 102…continuous calligraphy determination unit, 103…segmentation processing unit, 104…classification processing unit, 105…rendering processing unit, 106…display processing unit, 107…learning processing unit. DETAILED DESCRIPTION
[0035] Hereinafter, an information processing device and a control method according to an embodiment of the present invention will be described with reference to the drawings.
[0036] Figure 1 1 is an external view showing an example of the tablet terminal 1 and the information processing system 100 according to the present embodiment.
[0037] like Figure 1As shown, the information processing system 100 includes a tablet terminal 1 and a pen 30. In addition, in this embodiment, the tablet terminal 1 is described as an example of an information processing device.
[0038] The tablet terminal 1 has a touch screen 20 on one main surface of the housing CS1, and uses a pen 30 to execute applications such as notepad and drawing. The tablet terminal 1 can perform handwriting input using the pen 30. In addition, the pen 30 can be set to various types of brushes (pens) for handwriting input.
[0039] The touch screen 20 includes a display unit 21 and a touch sensor unit 22 . The display unit 21 displays various information on the display screen DF.
[0040] The touch sensor portion 22 is arranged to overlap with the display portion 21 , detects contact of the pen 30 with the display screen DF of the display portion 21 , and detects a contact position of the pen 30 .
[0041] Note that the touch screen 20 , the display unit 21 , and the touch sensor unit 22 will be described in detail later.
[0042] Next, refer to Figure 2 , the main hardware configuration of the tablet terminal 1 and the information processing system 100 is described.
[0043] Figure 2 This is a diagram showing an example of the main hardware configuration of the tablet terminal 1 and the information processing system 100 according to the present embodiment.
[0044] like Figure 2 As shown, the information processing system 100 includes a tablet terminal 1 and a pen 30. The tablet terminal 1 also includes a processor 11, a main memory 12, a flash memory 13, a touch screen 20, a peripheral device 23, an audio system 24, a microphone 25, a speaker 26, a baseband chip 27, a wireless unit 28, and a wireless communication unit 29.
[0045] The processor 11 is, for example, an application processor including a CPU (Central Processing Unit) and controls the entire tablet terminal 1 .
[0046] The main memory 12 is a writable memory used as a read area for the execution program of the processor 11 or as a work area for writing processing data of the execution program. The main memory 12 is composed of a plurality of DRAM (Dynamic Random Access Memory) chips, for example. The execution program includes an OS (Operating System), various device drivers for hardware operations of peripheral devices, various services / utilities, and application programs (application software).
[0047] The flash memory 13 is, for example, a flash EEPROM (Electrically Erasable Programmable Read Only Memory), and stores an OS, various drivers, various services / utilities, application programs (hereinafter, sometimes referred to as applications), and various data.
[0048] The display unit 21 is, for example, a liquid crystal display or an organic EL (Electro-Luminescence) display, and displays a display screen based on drawing data (display data) output from the processor 11. The display unit 21 can display, for example, a movement trajectory (drawing trajectory) of the pen 30.
[0049] The touch sensor unit 22 detects the position of the operation medium such as the pen 30 on the screen of the display unit 21 (on the display screen DF) and the contact of the pen 30 on the screen. The touch sensor unit 22 detects the contact position of the pen 30 on the screen of the display unit 21.
[0050] The peripheral device 23 is, for example, a WLAN (Wireless Local Area Network) module, a GPS (Global Positioning System) module, an acceleration sensor or other sensors.
[0051] The audio system 24 is, for example, an audio IC (Integrated Circuit), and performs input, recording, playback, and output of audio data. A microphone 25 and a speaker 26 are connected to the audio system 24, for example. The audio system 24 outputs the audio data collected by the microphone 25 to the processor 11 or the baseband chip 27. In addition, the audio system 24 converts the audio data obtained from the processor 11 or the baseband chip 27 into an audio signal, and outputs it to the speaker 26.
[0052] The microphone 25 collects sounds around the tablet terminal 1. The microphone 25 collects sounds such as the user's voice when performing speech synthesis with other terminals, for example.
[0053] The speaker 26 outputs various sounds to the outside of the tablet terminal 1. For example, when performing speech synthesis with another terminal, the speaker 26 outputs (plays) the sound received from the other terminal.
[0054] The baseband chip 27 is, for example, a dedicated IC for controlling wireless communications such as 4G (fourth generation mobile communication system) and 5G (fifth generation mobile communication system). The baseband chip 27 outputs, for example, voice data received using the wireless unit 28 to the speaker 26 via the audio system 24. In addition, the baseband chip 27 obtains, for example, voice data collected from the microphone 25 via the audio system 24, and outputs it through the mobile communication system using the wireless unit 28. In addition, the baseband chip 27 performs data communication with the processor 11 for input and output data of data communication of the mobile communication system.
[0055] The wireless unit 28 is a wireless communication device including an antenna for performing wireless communication in a mobile communication system.
[0056] The wireless communication unit 29 is, for example, a Bluetooth (registered trademark) module, and performs wireless communication with the pen 30. The wireless communication unit 29 receives, for example, sensor information (contact pressure, angle of the pen 30, etc.) detected by the pen 30 from the pen 30.
[0057] The pen 30 is a pen-shaped operating medium, such as a touch pen, a stylus pen, etc. The pen 30 can communicate with the tablet terminal 1 through wireless communication such as Bluetooth (registered trademark). The pen 30 includes a wireless communication unit 31, a sensor unit 32, a memory 33, and an MCU 34.
[0058] The wireless communication unit 31 performs wireless communication between the tablet terminal 1 and the pen 30 , for example, through a Bluetooth (registered trademark) module. The wireless communication unit 31 transmits sensor information detected by the sensor unit 32 to the tablet terminal 1 , for example.
[0059] The sensor unit 32 detects sensor information such as the contact pressure (pen pressure) of the pen 30 and the angle of the pen 30 .
[0060] The memory 33 is composed of, for example, a RAM, and stores a part of the control program of the pen 30 and processing data of the MCU 34. In addition, the memory 33 may include a flash memory, a ROM, and the like in addition to the RAM.
[0061] The MCU (Micro Controller Unit) 34 includes a CPU, a memory such as ROM or RAM, I / O related, etc., and comprehensively controls the pen 30. The MCU 34 controls data communication with the tablet terminal 1 via the wireless communication unit 31. For example, the MCU 34 transmits sensor information detected by the sensor unit 32 to the tablet terminal 1 via the wireless communication unit 31.
[0062] Next, refer to Figure 3 , the functional structure of the information processing system 100 of this embodiment is described.
[0063] Figure 3 This is a block diagram showing an example of the functional configuration of the tablet terminal 1 and the information processing system 100 according to the present embodiment.
[0064] like Figure 3 As shown, the information processing system 100 includes a tablet terminal 1 and a pen 30 . The tablet terminal 1 includes a control unit 10 , a touch screen 20 , and a storage unit 40 .
[0065] The touch screen 20 includes a display unit 21 and a touch sensor unit 22 .
[0066] The touch sensor unit 22 detects contact and contact position of the operating medium (pen 30) on the detection surface on the screen of the display unit 21. The touch sensor unit 22 detects, for example, the contact position of the pen 30 on the screen of the display unit 21 as pen input. The touch sensor unit 22 detects, for example, contact position information indicating two-dimensional coordinates on the display screen DF of the display unit 21 as the contact position of the pen 30. The touch sensor unit 22 outputs the contact position information to the control unit 10.
[0067] The storage unit 40 is, for example, a storage unit implemented by the main memory 12 or the flash memory 13, and includes a brush information storage unit 41, a pen pressure characteristic storage unit 42, a CE classification information storage unit 43, a handwritten stroke storage unit 44, a partial stroke storage unit 45, and a learning data storage unit 46.
[0068] The brush information storage unit 41 is a storage unit implemented by the main memory 12, for example, and stores brush information corresponding to character elements (CE: Character Element), which are basic components (basic patterns constituting characters of Chinese characters) obtained by dividing Chinese characters. Figure 4 , a data example of the brush information storage unit 41 is described.
[0069] Figure 4 2 is a diagram showing an example of data in the brush information storage unit 41 in this embodiment.
[0070] like Figure 4As shown, the brush information storage unit 41 stores by associating a CEID (character element ID), brush size, aspect ratio, standard brush angle, and standard stroke angle.
[0071] The CEID is character element identification information for identifying a character element. Additionally, the brush size indicates the size of the brush. Also, the aspect ratio is the aspect ratio of the brush, representing the ratio of horizontal:vertical. Further, the standard brush angle indicates the standard (reference) brush angle for the character element, and the standard stroke angle indicates the standard (reference) angle of the stroke of the character element.
[0072] For example, in Figure 4 the example shown, it is shown that for a character element with a CEID of "CE001", the brush size is "R1", the aspect ratio is "XX1:YY1". Additionally, the standard brush angle for this character element is shown as "α1", and the standard stroke angle is shown as "β1".
[0073] Here, with reference to Figure 5 , the character element will be described.
[0074] Figure 5 is a diagram showing an example of a character element in the present embodiment. In Figure 5 , the character elements of a character such as "Yong" which makes up a Chinese character are described.
[0075] As Figure 5 shown, a character such as "Yong" of a Chinese character is decomposed into character elements CE1 to CE8. The character elements CE1 to CE8 contain dots, hooked strokes, flicks, etc. The character elements CE1 to CE8 are respectively defined with corresponding brush information as shown in the above Figure 4 .
[0076] In the present embodiment, by defining a plurality of character elements including the above-mentioned character elements CE1 to CE8 determined according to various Chinese characters, and rendering (drawing) each defined character element, beautiful characters are realized in the handwritten input of Chinese characters.
[0077] In addition, "beautiful characters" here are, for example, characters that have been rendered to be similar to a favorite font.
[0078] Returning to Figure 3 's explanation, the pen pressure characteristic storage unit 42 is, for example, a storage unit implemented by the main memory 12, and stores a pressure curve (pen pressure characteristic) representing the relationship between the stroke position of a character element and the pen pressure. The pen pressure characteristic storage unit 42, for example, stores by associating the identification information of the character element with the pen pressure characteristic. Here, with reference to Figure 6 , a data example of the pen pressure characteristic storage unit 42 will be described.
[0079] Figure 6 2 is a diagram showing an example of data in the writing pressure characteristic storage unit 42 in this embodiment.
[0080] like Figure 6 As shown, the writing pressure characteristic storage unit 42 stores the CEID and the writing pressure characteristic in association with each other.
[0081] For example, in Figure 6 In the example shown, the pen pressure characteristic corresponding to CEID "CE001" is shown as a pressure curve such as waveform W1. In addition, the horizontal axis of the graph showing waveform W1 represents the stroke position, and the vertical axis represents the pen pressure (pressure). In the pressure curve, it is shown that the higher the pen pressure, the thicker the stroke line when rendered, and the lower the pen pressure, the thinner the stroke line when rendered.
[0082] In the pen pressure characteristics (waveform W1) corresponding to CEID "CE001", it is shown that the line of the stroke becomes thicker as the stroke position advances and then suddenly becomes thinner ( Figure 5 The text element CE1 shown).
[0083] In addition, for example, the pen pressure characteristic corresponding to CEID "CE002" is shown as a pressure curve such as waveform W2. In the pen pressure characteristic corresponding to CEID "CE002" (waveform W2), a text element ( Figure 5 The text element CE2 shown).
[0084] Return to Figure 3 The CE classification information storage unit 43 is, for example, a storage unit implemented by the main memory 12, and stores information for classifying character elements. The CE classification information storage unit 43 is, for example, a learned model generated by machine learning, and stores a classification model for classifying a partial stroke described later as any one of a plurality of character elements. The CE classification information storage unit 43 is an example of a model storage unit.
[0085] The handwritten stroke storage unit 44 is, for example, a storage unit implemented by the main memory 12, and stores handwritten stroke data detected by the touch sensor unit 22 using the pen 30. The handwritten stroke storage unit 44 stores, for example, a collection of detection points of the touch sensor unit 22 in a time series when handwriting input of Chinese characters is performed as handwritten strokes. In addition, the handwritten stroke storage unit 44 stores, for example, position information of the detection points in a time series in correspondence with the contact pressure (pen pressure).
[0086] The partial stroke storage unit 45 is a storage unit realized by, for example, the main memory 12, and stores data of partial strokes generated from handwritten strokes. Details of the partial strokes will be described later.
[0087] The learning data storage unit 46 is a storage unit realized by the main memory 12, for example, and stores learning data for generating the above-mentioned classification model. The learning data storage unit 46 stores learning data in which partial strokes of characters handwritten by a user for a pre-specified character are associated with character elements.
[0088] The control unit 10 is a functional unit realized by, for example, the processor 11 executing a program stored in the main memory 12 or the flash memory 13, and performs various processes based on an OS (for example, Android (registered trademark)). The control unit 10 includes an input processing unit 101, a continuous calligraphy determination unit 102, a segmentation processing unit 103, a classification processing unit 104, a rendering processing unit 105, a display processing unit 106, and a learning processing unit 107.
[0089] The input processing unit 101 is a functional unit realized by the processor 11 executing a program stored in the main memory 12 or the flash memory 13. The input processing unit 101 is, for example, a device driver that controls the input of the touch sensor unit 22, and detects the position and contact of the pen 30 on the screen of the display unit 21 (on the display screen DF) through the input of the touch sensor unit 22.
[0090] The input processing unit 101 may also acquire contact pressure (writing pressure) and angle information of the pen 30 from the pen 30. In the present embodiment, the input processing unit 101 detects time-series position information of detection points and corresponding contact pressure (writing pressure).
[0091] The input processing unit 101 detects the input of a handwritten stroke based on the contact position of the operating medium (e.g., the pen 30) detected by the touch sensor unit 22. That is, the input processing unit 101 associates the contact position information (position coordinates) of the pen 30 detected, that is, the position information of the detection point in time series with the contact pressure (pen pressure) as a handwritten stroke, and stores it in the handwritten stroke storage unit 44.
[0092] In addition, a handwritten stroke, or simply called a stroke, which represents the collection data of detection points of the trajectory of the pen tip from the contact (touch) of the pen 30 to the separation (lift) of the contact of the pen 30, may also include data for displaying the trajectory of the pen tip on the screen of the display unit 21 (on the display screen DF).
[0093] The input processing unit 101 detects the input of handwritten strokes and displays the movement trajectory of the contact position of the operation medium as the input handwritten strokes on the display unit 21. The input processing unit temporarily displays the input handwritten strokes on the display unit 21 via the display processing unit 106 described later.
[0094] The continuous calligraphy determination unit 102 is a functional unit realized by the processor 11 executing a program stored in the main memory 12 or the flash memory 13. The continuous calligraphy determination unit 102 determines whether the input handwritten stroke is calligraphy with continuous strokes, that is, continuous calligraphy.
[0095] Here, continuous calligraphy refers to calligraphy in which multiple text elements such as running script, cursive script, and handwriting are continuously drawn with one stroke. When the input handwritten strokes are continuous calligraphy, it is difficult to classify them as the above-mentioned text elements, so it is difficult to achieve beautiful text by rendering using text elements. Therefore, in this embodiment, in order to perform rendering processing on continuous calligraphy differently from text elements, the continuous calligraphy determination unit 102 determines whether the input handwritten strokes are continuous calligraphy.
[0096] The continuous calligraphy judging unit 102 Figure 7 The determination conditions (a) to (d) shown above determine whether the handwritten strokes are continuous calligraphy. The continuous calligraphy determination unit 102 determines whether the handwritten strokes stored in the handwritten stroke storage unit 44 by the input processing unit 101 are continuous calligraphy.
[0097] Figure 7 It is a diagram for explaining the determination conditions of continuous calligraphy by the tablet terminal 1 in the present embodiment.
[0098] like Figure 7 As shown, the continuous calligraphy determination unit 102 determines whether the handwritten strokes are continuous calligraphy according to the determination conditions (a) to (d).
[0099] (a) When the length of a handwritten stroke is greater than a threshold length, the continuous calligraphy determination unit 102 determines that the handwritten stroke is continuous calligraphy. Figure 7 When the length of the handwritten stroke CW1 is greater than the threshold length, it is determined to be continuous calligraphy. In addition, the threshold length is changed according to the thickness of the selected brush. For example, the thicker the brush, the longer the threshold length, and the thinner the brush, the shorter the threshold length.
[0100] (b) The continuous calligraphy judging unit 102 judges that the handwritten stroke is continuous calligraphy when the number of corners included in the handwritten stroke is greater than a threshold value. The continuous calligraphy judging unit 102 judges that the handwritten stroke is continuous calligraphy, for example. Figure 7 When the number of corner parts included in the handwritten stroke is equal to or larger than the threshold value, such as the handwritten stroke CW2 and the handwritten stroke CW3, it is determined to be continuous calligraphy.
[0101] (c) The continuous calligraphy judging unit 102 judges the handwritten stroke as continuous calligraphy when the total value of the angle variation of the drawing lines in the handwritten stroke is greater than the threshold angle. The continuous calligraphy judging unit 102 judges the handwritten stroke as continuous calligraphy, for example. Figure 7 When the total value of the angle change amount of the handwritten stroke is greater than or equal to the threshold angle, as in the case of the handwritten stroke CW4, the handwritten stroke is determined to be continuous calligraphy.
[0102] (d) When the handwritten strokes are self-intersecting, the continuous calligraphy judging unit 102 judges the handwritten strokes as continuous calligraphy. Figure 7 Like the handwritten stroke CW5, when the handwritten stroke has self-intersection, the handwritten stroke is determined to be continuous calligraphy.
[0103] In this way, the continuous calligraphy determination unit 102 determines that the handwritten strokes are continuous calligraphy when any one of the determination conditions (a) to (d) described above is satisfied.
[0104] For example, the continuous calligraphy judging unit 102 uses the above-mentioned judging conditions (a) to (d) to judge, for example, Figure 8 The handwritten strokes ST1 shown in step S11 are determined to be continuous calligraphy.
[0105] In addition, if Figure 8 As shown in FIG. 1 , if the handwritten strokes are continuous calligraphy, the tablet terminal 1 performs rendering processing on the handwritten strokes ST1 as continuous calligraphy as shown in step S12. The details of the rendering processing of the handwritten strokes as continuous calligraphy will be described later. In addition, if the handwritten strokes are not continuous calligraphy, the tablet terminal 1 performs the processing described later. Fig. 9 The process of step S21 is shown.
[0106] The segmentation processing unit 103 is a functional unit realized by the processor 11 executing a program stored in the main memory 12 or the flash memory 13. The segmentation processing unit 103 segments the handwritten strokes input by the user at the corners to generate segmented partial strokes. The segmentation processing unit 103 segments the handwritten strokes stored in the handwritten stroke storage unit 44 by the input processing unit 101 into partial strokes.
[0107] Specifically, if Fig. 9 As shown in step S21, the segmentation processing unit 103 segments the handwritten stroke ST2 having two corners at the corner portion to generate a partial stroke SS1, a partial stroke SS2, and a partial stroke SS3.
[0108] The segmentation processing unit 103 stores the segmented partial strokes in the partial stroke storage unit 45. In addition, the segmentation processing unit 103 may perform segmentation processing to segment the handwritten strokes into partial strokes when the continuous calligraphy determination unit 102 determines that the handwritten strokes are not continuous calligraphy.
[0109] The classification processing unit 104 classifies the partial strokes segmented by the segmentation processing unit 103 into character elements, for example, based on a classification model for classifying character elements based on partial strokes. Here, the classification model is a classification model generated by performing a learning process on learning data that establishes a correspondence between partial strokes of a character handwritten by a user for a pre-specified character and character elements.
[0110] The classification processing unit 104 classifies some strokes into character elements using the classification model stored in the CE classification information storage unit 43 .
[0111] Specifically, if Fig. 9 As shown in step S22, the classification processing unit 104 uses the classification model to, for example, classify the partial stroke SS1 as the character element CE2 and the partial stroke SS2 as the character element CE3. In addition, the classification processing unit 104 uses the classification model to, for example, classify the partial stroke SS3 as the character element CE4.
[0112] Furthermore, when the continuous calligraphy determination unit 102 determines that the handwritten strokes are not continuous calligraphy, the classification processing unit 104 may classify part of the strokes as character elements.
[0113] The rendering processing unit 105 is a functional unit realized by executing a program stored in the main memory 12 or the flash memory 13 by the processor 11. When the continuous calligraphy determination unit 102 determines that the handwritten stroke is continuous calligraphy, the rendering processing unit 105 adjusts the shape of the handwritten stroke based on the pen pressure when the handwritten stroke is input, and displays it on the display unit 21. The rendering processing unit 105 is, for example, Figure 8 The shape of the handwritten stroke is adjusted and displayed on the display unit 21, as in the stroke CST1 shown in step S12.
[0114] When the handwritten stroke is continuous calligraphy, the rendering processing unit 105 adjusts the shape of the handwritten stroke, for example, by using a brush that is most commonly used in Chinese characters. In addition, the rendering processing unit 105 also adjusts the thickness of the handwritten stroke based on the pen pressure and the moving speed of the pen 30, that is, the drawing speed. The rendering processing unit 105 uses the drawing speed to correct the pen pressure by the following formula (1).
[0115]
Number 1
[0116]
[0117] Here, a, b, c, d, and e are constants (parameters) used for correction. In addition, L is the drawing distance of the handwritten stroke, which is the stroke position starting from the starting point of the handwritten stroke. In addition, P(L) is the pen pressure at the stroke position L, which is the contact pressure of the pen 30 obtained from the pen 30. In addition, v(L) is the drawing speed at the stroke position L. In addition, Ptmp(L) is the corrected pen pressure at the stroke position L.
[0118] The rendering processing unit 105 uses equation (1) to correct the pen pressure when drawing the handwritten stroke, and Fig.10 As shown in waveform W3, the corrected pen pressure Ptmp (L) is generated.
[0119] Furthermore, as shown in the formula (1), the corrected writing pressure Ptmp(L) is corrected so that the higher the writing pressure, the higher the corrected writing pressure, and the faster the drawing speed, the lower the corrected writing pressure.
[0120] In addition, the rendering processing unit 105 further normalizes the corrected pen pressure Ptmp(L) using the following equation (2).
[0121]
Number 2
[0122]
[0123] Here, Pmin is the minimum value of the pen pressure Ptmp(L), and Pmax is the maximum value of the pen pressure Ptmp(L). In addition, Nmax is the maximum value of the pen pressure when a text element is used, for example, and is the maximum value of the standard pen pressure. The rendering processing unit 105 standardizes the corrected pen pressure Ptmp(L) by formula (2) so that the maximum value of the pen pressure is Nmax.
[0124] Fig.10 This is a diagram showing an example of the correction process and the normalization process of the writing pressure by the tablet terminal 1 in the present embodiment.
[0125] exist Fig.10 In the figure, waveform W3 shows the change (pressure curve) of the corrected pen pressure Ptmp(L) corrected by the above formula (1). In addition, waveform W4 shows the corrected pen pressure characteristics (pressure curve) after the corrected pen pressure Ptmp(L) is standardized by the above formula (2).
[0126] The rendering processing unit 105 generates the corrected pen pressure Ptmp(L) of the waveform W3 by the above-mentioned equation (1), and generates a normalized pressure curve as shown in the waveform W4 by the above-mentioned equation (2).
[0127] When the handwritten stroke is continuous calligraphy, the rendering processing unit 105 uses a standardized pressure curve to adjust the shape so that the higher the pen pressure of the standardized pressure curve, the thicker the handwritten stroke becomes, and the lower the pen pressure of the standardized pressure curve, the thinner the handwritten stroke becomes, and displays the handwritten stroke with the adjusted shape on the display unit 21.
[0128] That is, when the continuous calligraphy determination unit 102 determines that the handwritten stroke is continuous calligraphy, the rendering processing unit 105 uses the above-mentioned formula (1) to adjust the thickness of the handwritten stroke so that the higher the pen pressure, the thicker the stroke, and the faster the handwritten stroke is drawn, the thinner the stroke is, and displays it on the display unit 21. In addition, when the continuous calligraphy determination unit 102 determines that the handwritten stroke is continuous calligraphy, the rendering processing unit 105 uses the above-mentioned formula (2) to adjust the maximum thickness of the handwritten stroke by standardizing the standard thickness based on the standard pen pressure.
[0129] In addition, when the continuous calligraphy determination unit 102 determines that the handwritten strokes are not continuous calligraphy, the rendering processing unit 105 adjusts the shape of part of the strokes based on the brush information and pen pressure characteristics corresponding to the text elements classified by the classification processing unit 104, and displays the handwritten strokes with adjusted shapes on the display unit 21.
[0130] When the handwritten stroke is not continuous calligraphy, the rendering processing unit 105 obtains the brush information corresponding to the text element from the brush information storage unit 41, and obtains the pen pressure characteristic (pressure curve) corresponding to the text element from the pen pressure characteristic storage unit 42. The rendering processing unit 105 adjusts the shape of the partial stroke based on the brush information and the pen pressure characteristic (pressure curve) and renders it. The rendering processing unit 105 sets the brush size, aspect ratio, and brush angle according to the brush information, adjusts the thickness of the line according to the pen pressure characteristic (pressure curve), and displays the partial stroke on the display unit 21.
[0131] The rendering processing unit 105 reassembles the partial strokes in which the angle of the brush and the thickness of the line are adjusted, and generates an adjusted handwritten stroke.
[0132] Specifically, if Fig. 9 As shown in step S23, the rendering processing unit 105 adjusts the partial stroke SS1, the partial stroke SS2, and the partial stroke SS3, and recombines them to generate the rendered handwritten stroke CST2.
[0133] The rendering processing unit 105 replaces the input handwritten strokes and displays the handwritten strokes with adjusted shapes or the handwritten strokes based on the partial strokes with adjusted shapes as continuous calligraphy on the display unit 21 .
[0134] Furthermore, the rendering processing unit 105 causes the display unit 21 to display the adjusted handwritten strokes via the display processing unit 106 described later.
[0135] The display processing unit 106 is a functional unit realized by the processor 11 executing a program stored in the main memory 12 or the flash memory 13. The display processing unit 106 displays a movement trajectory of the pen 30 on the screen on the display unit 21 based on the contact position of the pen 30 detected by the touch sensor unit 22.
[0136] After temporarily displaying the input handwritten strokes on the display unit 21 , the display processing unit 106 replaces the input handwritten strokes and displays the handwritten strokes with adjusted shapes (handwritten strokes with adjusted shapes as continuous calligraphy or handwritten strokes based on partial strokes with adjusted shapes) on the display unit 21 .
[0137] The learning processing unit 107 is a functional unit realized by the processor 11 executing a program stored in the main memory 12 or the flash memory 13. The learning processing unit 107 performs a learning process on the learning data stored in the learning data storage unit 46 to generate a classification model.
[0138] Here, the learning data is data in which the strokes of a part of a character handwritten by the user for a pre-specified character are associated with character elements, and a plurality of characters including character elements are generated based on the handwritten strokes inputted multiple times. The learning processing unit 107 stores the generated classification model (learning result) in the CE classification information storage unit 43.
[0139] Next, the operation of the tablet terminal 1 according to the present embodiment will be described with reference to the drawings.
[0140] Figure 8 1 is a diagram showing an overview of a continuous calligraphy handwriting input process performed by the tablet terminal 1 in the present embodiment.
[0141] like Figure 8 As shown, the tablet terminal 1 first determines whether the input handwritten strokes are continuous calligraphy (step S11). The continuous calligraphy determination unit 102 of the tablet terminal 1 determines that the handwritten strokes are continuous calligraphy when any of the determination conditions (a) to (d) above are met.
[0142] When the continuous calligraphy determination unit 102 determines that the handwritten strokes are continuous calligraphy, the tablet terminal 1 uses the brush most commonly used in Chinese characters, adjusts the shape of the handwritten strokes as continuous calligraphy according to the pressure curve generated using the above (1) and equation (2), and displays it on the display unit 21 (step S12).
[0143] In addition, when the continuous calligraphy determination unit 102 determines that the handwritten strokes are not continuous calligraphy, the tablet terminal 1 enters the process of Fig. 9 Step S21 is shown.
[0144] Fig. 9 This is a diagram showing an overview of handwriting input processing using character elements by the tablet terminal 1 in the present embodiment.
[0145] like Fig. 9 As shown, when the continuous calligraphy determination unit 102 determines that the handwritten stroke is not continuous calligraphy, the tablet terminal 1 divides the handwritten stroke at the corner to generate partial strokes (step S21). The division processing unit 103 of the tablet terminal 1 divides the handwritten stroke to generate partial strokes.
[0146] Next, the tablet terminal 1 classifies the divided partial strokes into simple character elements using the classification model (step S22 ). The classification processing unit 104 of the tablet terminal 1 performs classification processing for classifying the partial strokes into character elements using the classification model stored in the CE classification information storage unit 43 .
[0147] When the tablet terminal 1 classifies some of the strokes as character elements, it adjusts the shape of the handwritten strokes based on the classified character elements and displays the result on the display unit 21 (step S23 ).
[0148] Next, refer to Fig.11 ,right Figure 8 as well as Fig. 9 The detailed process of the handwriting input process of the tablet terminal 1 shown will be described.
[0149] Fig.11 This is a flowchart showing an example of handwriting input processing by the tablet terminal 1 in the present embodiment.
[0150] like Fig.11 As shown, the tablet terminal 1 first determines whether a handwritten stroke is detected (step S101). The input processing unit 101 of the tablet terminal 1 determines whether a handwritten stroke is detected by the touch sensor unit 22. When the input processing unit 101 detects a handwritten stroke (step S101: Yes), the processing proceeds to step S102. In addition, when the input processing unit 101 does not detect a handwritten stroke (step S101: No), the processing returns to step S101.
[0151] In step S102, the input processing unit 101 temporarily displays the handwritten strokes on the display unit 21. The rendering used at this time is performed with a thickness corresponding to the previous pen pressure, or with the same thickness regardless of the pen pressure. That is, the input processing unit 101 displays the detected handwritten strokes on the display unit 21 via the display processing unit 106. In addition, the input processing unit 101 obtains the pen pressure corresponding to the detection point at each position from the pen 30, establishes a correspondence between the pen pressure and the handwritten stroke, and stores it in the handwritten stroke storage unit 44.
[0152] Next, the input processing unit 101 determines whether the pen 30 is separated from the screen of the display unit 21 (step S103). That is, the input processing unit 101 determines whether the input of the handwritten stroke written in one stroke is completed. When the pen 30 is separated from the screen of the display unit 21 (the input of the handwritten stroke is completed) (step S103: Yes), the input processing unit 101 advances the processing to step S104. On the other hand, when the pen 30 is not separated from the screen of the display unit 21 (the input of the handwritten stroke is not completed) (step S103: No), the input processing unit 101 returns the processing to step S102.
[0153] In step S104, the continuous calligraphy determination unit 102 of the tablet terminal 1 determines whether the length of the handwritten stroke is greater than a threshold length. Figure 7 If the length of the handwritten stroke is greater than the threshold length (step S104: Yes), the handwritten stroke is determined to be continuous calligraphy, and the process proceeds to step S112. If the length of the handwritten stroke is less than the threshold length (step S104: No), the continuous calligraphy determination unit 102 proceeds to step S105.
[0154] In step S105, the continuous calligraphy determination unit 102 determines whether the number of corners of the handwritten stroke is greater than a threshold value. Figure 7 When the number of corners of the handwritten stroke is greater than the threshold value (step S105: Yes), the handwritten stroke is determined to be continuous calligraphy, and the process proceeds to step S112. In addition, when the number of corners of the handwritten stroke is less than the threshold value (step S105: No), the continuous calligraphy determination unit 102 proceeds to step S106.
[0155] In step S106, the continuous calligraphy determination unit 102 determines whether the total value of the angle variation of the handwritten strokes is greater than a threshold angle. Figure 7When the total value of the angle variation of the handwritten strokes is greater than the threshold angle (step S106: Yes), the handwritten strokes are determined to be continuous calligraphy, and the process proceeds to step S112. When the total value of the angle variation of the handwritten strokes is less than the threshold angle (step S106: No), the continuous calligraphy determination unit 102 proceeds to step S107.
[0156] In step S107, the continuous calligraphy determination unit 102 determines whether the handwritten strokes are self-intersecting. Figure 7 If the handwritten strokes are self-intersecting (step S107: Yes), the handwritten strokes are determined to be continuous calligraphy and the process proceeds to step S112. If the handwritten strokes are not self-intersecting (step S107: No), the continuous calligraphy determination unit 102 proceeds to step S108.
[0157] In step S108, the segmentation processing unit 103 of the tablet terminal 1 segments the handwritten stroke at the corner portion to generate partial strokes. Fig. 9 As shown in step S21, the handwritten strokes are segmented to generate partial strokes. The segmentation processing unit 103 stores the generated partial strokes in the partial stroke storage unit 45.
[0158] Next, the classification processing unit 104 of the tablet terminal 1 classifies the partial strokes as character elements (step S109). The classification processing unit 104 uses the classification model stored in the CE classification information storage unit 43 to classify the partial strokes stored in the partial stroke storage unit 45 as character elements (see Fig. 9 In step S22) In addition, when the handwritten strokes do not have a transitional portion, the classification processing unit 104 classifies the handwritten strokes into character elements using the classification model.
[0159] Next, the classification processing unit 104 determines whether the certainty of the classification processing is greater than a threshold value (step S110). When the certainty of the classification processing is greater than the threshold value (step S110: Yes), the classification processing unit 104 proceeds to step S111. When the certainty of the classification processing is less than the threshold value (step S110: No), the classification processing unit 104 proceeds to step S112.
[0160] In step S111, the rendering processing unit 105 of the tablet terminal 1 adjusts the shape of a part of the stroke based on the brush information and the pen pressure characteristics (pressure curve) corresponding to the classified text element, and displays the handwritten stroke with the adjusted shape on the display unit 21. The rendering processing unit 105 displays the handwritten stroke with the adjusted shape on the display unit 21 via the display processing unit 106 (see Fig. 9 Step S23). For example, in the case of handwritten input of a character such as "autumn" in the image G1 shown in Fig.12 the rendering processing unit 105 displays the display as shown in the image G2 on the display unit 21.
[0161] After the processing of step S111, the rendering processing unit 105 returns the processing to step S101.
[0162] In addition, in step S112, the rendering processing unit 105 corrects the pen pressure of the handwritten stroke according to the drawing speed. The rendering processing unit 105 generates the corrected pen pressure Ptmp(L) through the above formula (1).
[0163] Next, the rendering processing unit 105 normalizes the corrected pen pressure (step S113). The rendering processing unit 105 normalizes the corrected pen pressure Ptmp(L) through the above formula (2) to generate the normalized corrected pen pressure Pnml(L).
[0164] Next, the rendering processing unit 105 uses the brush most frequently used in Chinese characters and the normalized pen pressure to adjust the shape of the handwritten stroke and display it on the display unit 21 (step S114). The rendering processing unit 105, for example, uses Fig.10 the normalized corrected pen pressure characteristic (pressure curve) of the waveform W4 to adjust the thickness of the handwritten stroke as continuous calligraphy or the partial stroke that cannot be classified as a character element, and causes the handwritten stroke with the adjusted shape to be displayed on the display unit 21 via the display processing unit 106. For example, in the case of handwritten input of continuous calligraphy of a cursive script of a character such as "autumn" in the image G3 shown in Fig.12 the rendering processing unit 105 displays the display as shown in the image G4 on the display unit 21.
[0165] After the processing of step S114, the rendering processing unit 105 returns the processing to step S101.
[0166] Next, with reference to Fig.14 the learning process of the tablet terminal 1 will be described.
[0167] Fig.14 is a flowchart showing an example of the learning process of the tablet terminal 1 in the present embodiment.
[0168] As Fig.14As shown, the learning processing unit 107 of the tablet terminal 1 obtains the handwritten strokes of specific characters of multiple users multiple times (step S201). The learning processing unit 107 obtains the handwritten strokes of specific characters of multiple users multiple times via the input processing unit 101. In addition, it is preferred that the specific characters are multiple characters that can learn multiple predetermined character elements.
[0169] Next, the learning processing unit 107 divides each handwritten stroke into partial strokes and labels the corresponding character elements as learning data (step S202 ). The learning processing unit 107 stores the learning data in which the labels of the partial strokes and the character elements are associated in the learning data storage unit 46 .
[0170] Next, the learning processing unit 107 also performs machine learning using the learning data to generate a classification model that classifies character elements based on partial strokes (step S203). The learning processing unit 107 performs machine learning processing using the learning data stored in the learning data storage unit 46 to generate a classification model as a learning result.
[0171] Next, the learning processing unit 107 stores the classification model as the learning result in the CE classification information storage unit 43 (step S204 ). After the process of step S204 , the learning processing unit 107 ends the learning process.
[0172] As described above, the tablet terminal 1 (information processing device) of the present embodiment includes a continuous calligraphy determination unit 102, a segmentation processing unit 103, a classification processing unit 104, and a rendering processing unit 105. The continuous calligraphy determination unit 102 determines whether the input handwritten stroke is calligraphy with continuous strokes, that is, continuous calligraphy. The segmentation processing unit 103 segments the handwritten stroke at the corner portion to generate the segmented partial strokes. The classification processing unit 104 classifies the partial strokes segmented by the segmentation processing unit 103 into any one of a plurality of text elements that are basic patterns of text constituting Chinese characters. When the continuous calligraphy determination unit 102 determines that the handwritten stroke is not continuous calligraphy, the rendering processing unit 105 adjusts the shape of the partial stroke based on the brush information and pen pressure characteristics corresponding to the text element classified by the classification processing unit 104, and displays the handwritten stroke with the adjusted shape on the display unit 21. When the continuous calligraphy determination unit 102 determines that the handwritten stroke is continuous calligraphy, the rendering processing unit 105 adjusts the shape of the handwritten stroke based on the pen pressure when the handwritten stroke is input, and displays it on the display unit 21 .
[0173] Therefore, the tablet terminal 1 of this embodiment classifies the partial strokes divided from the handwritten strokes into text elements, and adjusts the shape of each partial stroke based on the brush information and pen pressure characteristics corresponding to the text element. Therefore, in handwriting input, beautiful text (especially Chinese characters) can be displayed while maintaining the advantages of handwriting.
[0174] In addition, the tablet terminal 1 of this embodiment determines whether the handwritten stroke is continuous calligraphy. If the handwritten stroke is determined to be continuous calligraphy, the shape of the handwritten stroke is adjusted based on the pen pressure when the handwritten stroke is input, and displayed on the display unit 21, so that, for example, it can cope with the case of mixed continuous calligraphy. Therefore, the tablet terminal 1 of this embodiment can display beautiful text while maintaining the advantages of handwriting even in the case of mixed continuous calligraphy.
[0175] In addition, in the tablet terminal 1 of this embodiment, the shape of some strokes is adjusted corresponding to the text elements based on the handwritten strokes, so that beautiful text can be displayed while maintaining the size and position of the handwritten strokes. The tablet terminal 1 of this embodiment is different from the conventional technology that simply replaces the font with a predetermined font. The user's handwriting will not disappear, and the freedom of handwriting such as the aspect ratio and size of the text based on the freedom of handwriting will not be lost.
[0176] In addition, in the present embodiment, the continuous calligraphy determination unit 102 determines the handwritten stroke as continuous calligraphy when the length of the handwritten stroke is equal to or longer than a threshold length.
[0177] Thus, the tablet terminal 1 of the present embodiment can easily and appropriately determine whether a handwritten stroke is continuous calligraphy based on the length of the handwritten stroke.
[0178] In addition, in the present embodiment, the continuous calligraphy determination unit 102 changes the threshold length according to the thickness of the brush that draws the handwritten stroke and is selected.
[0179] Thus, the tablet terminal 1 of the present embodiment can easily and more appropriately determine whether a handwritten stroke is continuous calligraphy based on the length of the handwritten stroke.
[0180] In the present embodiment, the continuous calligraphy determination unit 102 determines that a handwritten stroke is continuous calligraphy when the number of corners included in the handwritten stroke is equal to or greater than a threshold value.
[0181] Thus, the tablet terminal 1 of the present embodiment can easily and appropriately determine whether a handwritten stroke is continuous calligraphy based on the number of corner parts of the handwritten stroke.
[0182] In the present embodiment, the continuous calligraphy determination unit 102 determines that a handwritten stroke is continuous calligraphy when the total value of the angle variation of the drawing lines in the handwritten stroke is equal to or greater than a threshold angle.
[0183] Thus, the tablet terminal 1 of the present embodiment can easily and appropriately determine whether a handwritten stroke is continuous calligraphy based on the total value of the angle change amount of the handwritten stroke.
[0184] In addition, in the present embodiment, the continuous calligraphy determination unit 102 determines that the handwritten strokes are continuous calligraphy when the handwritten strokes have self-intersections.
[0185] Thus, the tablet terminal 1 of the present embodiment can easily and appropriately determine whether a handwritten stroke is continuous calligraphy based on the self-intersection of the handwritten stroke.
[0186] In addition, in this embodiment, when the continuous calligraphy determination unit 102 determines that the handwritten strokes are continuous calligraphy, the rendering processing unit 105 adjusts the thickness of the handwritten strokes in such a manner that the higher the pen pressure, the thicker the strokes become, and the faster the handwritten strokes are drawn, the thinner the strokes become, and displays the result on the display unit 21.
[0187] As a result, the tablet terminal 1 of the present embodiment can display (draw) beautiful strokes while maintaining the advantages of handwriting, even for continuous calligraphy that cannot be classified as character elements.
[0188] In addition, in the present embodiment, when the continuous calligraphy determination unit 102 determines that the handwritten stroke is continuous calligraphy, the rendering processing unit 105 performs adjustment by normalizing the maximum thickness of the handwritten stroke based on the standard thickness of the standard pen pressure.
[0189] Thus, the tablet terminal 1 of this embodiment can suppress the continuous calligraphy from being drawn as an extremely thin line, and display it as the same thickness as the rendering part based on the text element without any sense of incongruity. For example, in the case where the part of the ink thickness is forcibly adjusted by recognizing the text element and the part of the thickness determined based on the pen pressure and the speed of the pen 30 are mixed, a large sense of incongruity is generated in the conventional technology. In contrast, in the tablet terminal 1 of this embodiment, the sense of incongruity in such a case can be reduced.
[0190] The tablet terminal 1 of this embodiment includes a brush information storage unit 41 for storing text elements and brush information including size, aspect ratio, and angle of a used brush in correspondence with each other, and a pen pressure characteristic storage unit 42 for storing text elements and pressure curves representing the relationship between stroke positions and pen pressures in the text elements in correspondence with each other. When the continuous calligraphy determination unit 102 determines that the handwritten strokes are not continuous calligraphy, the rendering processing unit 105 acquires the brush information corresponding to the classified text elements from the brush information storage unit 41, acquires the pressure curve corresponding to the classified text elements from the pen pressure characteristic storage unit 42, and adjusts the shape of a part of the strokes based on the acquired brush information and pressure curve.
[0191] Thus, the tablet terminal 1 of this embodiment can change the brush according to the text element based on the brush information corresponding to the text element, and appropriately adjust the shape of some strokes (for example, the shape of the corner, dot, hook, etc. at the beginning and end of writing). In addition, it can appropriately adjust the thickness of some strokes according to the stroke position based on the pressure curve corresponding to the text element (for example, the change of thickness in the middle of some strokes).
[0192] In addition, the tablet terminal 1 of the present embodiment includes a display unit 21, a touch sensor unit 22 that detects contact of an operating medium on a detection surface on the screen of the display unit 21 and a contact position, and an input processing unit 101 that detects input of a handwritten stroke based on the contact position of the operating medium detected by the touch sensor unit 22. The input processing unit 101 detects the input of the handwritten stroke and displays the movement trajectory of the contact position of the operating medium as the input handwritten stroke on the display unit 21. The rendering processing unit 105 replaces the input handwritten stroke and displays the handwritten stroke with an adjusted shape on the display unit 21.
[0193] Thus, the tablet terminal 1 of the present embodiment allows handwriting input while confirming the display by temporarily displaying the input handwriting strokes, thereby facilitating handwriting input, and can display beautiful characters by replacing the handwriting strokes with adjusted shapes.
[0194] In addition, in the present embodiment, the classification processing unit 104 classifies the partial strokes segmented by the segmentation processing unit 103 into character elements based on the classification model generated by performing learning processing on the learning data, which is a classification model that classifies character elements according to partial strokes. In addition, the learning data is data in which the partial strokes of the characters handwritten by the user for the pre-specified characters are associated with the character elements.
[0195] As a result, the tablet terminal 1 of the present embodiment can accurately classify some strokes into character elements using the classification model, and can display more beautiful characters using the accurately classified character elements.
[0196] In addition, the tablet terminal 1 of this embodiment includes a learning processing unit 107 and a CE classification information storage unit 43 (model storage unit). The learning processing unit 107 performs learning processing on the above-mentioned learning data to generate a classification model. The CE classification information storage unit 43 stores the classification model generated by the learning processing unit 107. The classification processing unit 104 classifies the partial strokes segmented by the segmentation processing unit 103 into character elements based on the classification model stored in the CE classification information storage unit 43.
[0197] As a result, the tablet terminal 1 of the present embodiment can classify some strokes as character elements with high accuracy using the classification model.
[0198] In addition, the control method of the present embodiment is a control method of the tablet terminal 1, which includes a continuous calligraphy determination step, a segmentation processing step, a classification processing step, and a rendering processing step. In the continuous calligraphy determination step, the continuous calligraphy determination unit 102 determines whether the input handwritten stroke is calligraphy with continuous strokes, that is, continuous calligraphy. In the segmentation processing step, the segmentation processing unit 103 segments the handwritten strokes at the corners to generate segmented partial strokes. In the classification processing step, the classification processing unit 104 classifies the partial strokes segmented by the segmentation processing unit 103 as any one of a plurality of text elements that are basic patterns of text constituting Chinese characters. In the rendering processing step, when the continuous calligraphy determination unit 102 determines that the handwritten strokes are not continuous calligraphy, the rendering processing unit 105 adjusts the shape of part of the strokes based on the brush information and pen pressure characteristics corresponding to the text elements classified by the classification processing unit 104, and displays the handwritten strokes with adjusted shapes on the display unit 21. When the continuous calligraphy determination unit 102 determines that the handwritten strokes are continuous calligraphy, the rendering processing unit 105 adjusts the shape of the handwritten strokes based on the pen pressure when the handwritten strokes are input, and displays them on the display unit 21.
[0199] Therefore, the control method of this embodiment has the same effect as the tablet terminal 1 described above, and can display beautiful characters (especially Chinese characters) while maintaining the advantages of handwriting even in the case of mixed continuous calligraphy.
[0200] In addition, the present invention is not limited to the above-mentioned embodiment, and can be modified within the scope not departing from the gist of the present invention.
[0201] For example, in the above-mentioned embodiment, the information processing device is described as an example of a tablet terminal 1, but the present invention is not limited thereto. The information processing device may be, for example, a smartphone, a notebook personal computer having a tablet mode, or the like.
[0202] In the above-mentioned embodiment, although Android (registered trademark) is used as an example of an OS to be used, the present invention is not limited to this and may be applied to other OS such as iOS (registered trademark).
[0203] In the above-described embodiment, the processing of the continuous calligraphy determination unit 102 , the segmentation processing unit 103 , the classification processing unit 104 , and the rendering processing unit 105 may be implemented by an application program or partially by a device driver or the like.
[0204] Furthermore, when the information processing device is a notebook personal computer, part of the processing of the continuous calligraphy determination unit 102 , the segmentation processing unit 103 , the classification processing unit 104 , and the rendering processing unit 105 may be performed by an embedded controller.
[0205] In addition, in the above-mentioned embodiment, an example in which the tablet terminal 1 includes the learning processing unit 107 is described, but the present invention is not limited thereto, and for example, the tablet terminal 1 may not include the learning processing unit 107. In this case, for example, an external device such as a server device that can be connected to the tablet terminal 1 may include the learning processing unit 107.
[0206] In addition, in the above-mentioned embodiment, an example is described in which the continuous calligraphy determination unit 102 determines continuous calligraphy by using all of the above-mentioned determination conditions (a) to (d). However, the present invention is not limited to this, and the form of continuous calligraphy may be determined by executing at least one of the determination conditions (a) to (d).
[0207] In addition, in the above-mentioned embodiment, an example is described in which the rendering processing unit 105 performs correction processing of the pen pressure characteristics based on formula (1) and standardization processing of the pen pressure characteristics based on formula (2), but it is not limited to this. It is also possible to perform only either the correction processing of the pen pressure characteristics or the standardization processing of the pen pressure characteristics.
[0208] In addition, each component of the tablet terminal 1 has a computer system inside. In addition, a program for realizing the functions of each component of the tablet terminal 1 is recorded on a computer-readable recording medium, and the processing in each component of the tablet terminal 1 is performed by causing the computer system to read the program recorded on the recording medium and execute it. Here, "causing the computer system to read the program recorded on the recording medium and execute it" includes installing the program on the computer system. The "computer system" mentioned here includes hardware such as OS and peripheral devices.
[0209] In addition, the "computer system" may also include a plurality of computer devices connected via a network including a communication line such as the Internet, WAN, LAN, or a dedicated line. In addition, the "computer-readable recording medium" refers to a removable medium such as a floppy disk, a magneto-optical disk, a ROM, a CD-ROM, or a storage device such as a hard disk built into the computer system. In this way, the recording medium storing the program may also be a non-temporary recording medium such as a CD-ROM.
[0210] In addition, the recording medium also includes an internal or external recording medium that can be accessed from a distribution server in order to distribute the program. In addition, the program can also be divided into multiple parts, and the components that are merged in the various components of the tablet terminal 1 after being downloaded at different time intervals, and the distribution servers that distribute the divided programs are different. And the "computer-readable recording medium" also includes a recording medium that keeps the program for a constant time, such as a server in the case of sending a program via a network, and a volatile memory (RAM) inside a computer system that becomes a client. In addition, the above program may also be a program for realizing a part of the above functions. And it may also be a program that can realize the above functions by combining with a program already recorded in a computer system, that is, a so-called differential file (differential program).
[0211] In addition, part or all of the above functions may be implemented as an integrated circuit such as LSI (Large Scale Integration). Each of the above functions may be independently implemented as a processor, or part or all of them may be integrated as a processor. In addition, the method of integrated circuitization is not limited to LSI and may also be implemented by a dedicated circuit or a general-purpose processor. In addition, when an integrated circuit technology that replaces LSI appears with the advancement of semiconductor technology, an integrated circuit based on the technology may also be used.
Claims
1. An information processing device, wherein: have: A continuous calligraphy judging unit, for judging whether the input handwritten strokes are calligraphy with continuous strokes, i.e., continuous calligraphy; A segmentation processing unit that segments the handwritten strokes at the corners to generate segmented partial strokes; a classification processing unit that classifies the partial strokes segmented by the segmentation processing unit into any one of a plurality of character elements that are basic patterns constituting Chinese characters; as well as The rendering processing unit adjusts the shape of the partial strokes based on the brush information and pen pressure characteristics corresponding to the text element classified by the classification processing unit when the continuous calligraphy determination unit determines that the handwritten strokes are not the continuous calligraphy, and displays the handwritten strokes with adjusted shapes on the display unit; and adjusts the shape of the handwritten strokes based on the pen pressure when the handwritten strokes are input and displays them on the display unit when the continuous calligraphy determination unit determines that the handwritten strokes are the continuous calligraphy.
2. The information processing device according to claim 1, wherein: The continuous calligraphy determination unit determines that the handwritten stroke is the continuous calligraphy when the length of the handwritten stroke is equal to or longer than a threshold length.
3. The information processing device according to claim 2, wherein: The continuous calligraphy determination unit changes the threshold length according to the thickness of a brush that draws the handwritten stroke and is selected.
4. The information processing device according to claim 1, wherein: The continuous calligraphy determination unit determines that the handwritten stroke is the continuous calligraphy when the number of the corner portions included in the handwritten stroke is equal to or greater than a threshold value.
5. The information processing device according to claim 1, wherein: The continuous calligraphy determination unit determines that the handwritten stroke is the continuous calligraphy when a total value of angle changes of the drawing lines on the handwritten stroke is equal to or greater than a threshold angle.
6. The information processing device according to claim 1, wherein: The continuous calligraphy determination unit determines that the handwritten strokes are the continuous calligraphy when the handwritten strokes are self-intersecting.
7. The information processing device according to any one of claims 1 to 6, wherein: When the continuous calligraphy determination unit determines that the handwritten stroke is the continuous calligraphy, the rendering processing unit adjusts the thickness of the handwritten stroke so that the higher the pen pressure, the thicker the handwritten stroke, and the faster the handwritten stroke is drawn, the thinner the handwritten stroke is, and displays the thickness on the display unit.
8. The information processing device according to claim 7, wherein: The rendering processing unit may adjust the handwritten stroke by normalizing the maximum thickness of the handwritten stroke according to a standard thickness based on a standard pen pressure when the continuous calligraphy determination unit determines that the handwritten stroke is the continuous calligraphy.
9. The information processing device according to claim 8, wherein: have: a brush information storage unit for storing the text elements in correspondence with the brush information including the size, aspect ratio, and angle of the brush used; and The pen pressure characteristic storage unit stores the above-mentioned character elements and the pressure curve representing the relationship between the stroke position and the pen pressure in the character elements in a corresponding manner. When the continuous calligraphy determination unit determines that the handwritten stroke is not the continuous calligraphy, the rendering processing unit obtains the brush information corresponding to the classified text element from the brush information storage unit, obtains the pressure curve corresponding to the classified text element from the pen pressure characteristic storage unit, and adjusts the shape of the partial stroke based on the obtained brush information and the pressure curve.
10. The information processing device according to claim 9, wherein: have: the above-mentioned display unit; A touch sensor unit for detecting contact and a contact position of an operating medium on a detection surface on the screen of the display unit; as well as The input processing unit detects the input of the handwritten stroke based on the contact position of the operation medium detected by the touch sensor unit, The input processing unit detects the input of the handwritten strokes, and displays the moving trajectory of the contact position of the operating medium as the input handwritten strokes on the display unit. The rendering processing unit replaces the input handwritten stroke and displays the handwritten stroke with an adjusted shape on a display unit.
11. A method for controlling an information processing device, wherein: Include: The continuous calligraphy judging unit judges whether the input handwritten strokes are calligraphy with continuous strokes, i.e., continuous calligraphy; The segmentation processing unit segments the handwritten strokes at the corners to generate segmented partial strokes; The classification processing unit classifies the partial strokes segmented by the segmentation processing unit into any one of a plurality of character elements that are basic patterns constituting a Chinese character; as well as, The rendering processing unit adjusts the shape of the partial strokes based on the brush information and pen pressure characteristics corresponding to the text element classified by the classification processing unit when the continuous calligraphy determination unit determines that the handwritten strokes are not the continuous calligraphy, and displays the handwritten strokes with adjusted shapes on the display unit; and the rendering processing unit adjusts the shape of the handwritten strokes based on the pen pressure when the handwritten strokes are input and displays them on the display unit when the continuous calligraphy determination unit determines that the handwritten strokes are the continuous calligraphy.
