Electronic device for displaying handwritten input and operation method thereof
The electronic device's processor and memory system effectively address the challenge of editing and displaying handwriting inputs by adjusting slope and spacing, resulting in improved usability and aesthetics on portable devices.
Patent Information
- Application Number
- PCT/KR2024/003481
- Authority / Receiving Office
- WO · WO
- Patent Type
- Applications
- Current Assignee / Owner
- Priority Date
- 2023-04-11
- Filing Date
- 2024-03-20
- Publication Date
- 2024-09-26
AI Technical Summary
Current electronic devices lack efficient methods for accurately displaying and editing handwriting inputs, particularly in terms of slope adjustment and spacing, which affects the usability and aesthetics of handwritten content on portable devices.
An electronic device with a processor and memory that displays handwriting inputs as dots, identifies inflection points, checks slope values, and adjusts the abscissa values of these points based on representative slope values and target slope values to change the slope of the handwriting input, allowing for improved editing and display of handwritten content.
This solution enables precise adjustment and enhancement of handwriting inputs, improving their appearance and usability on portable devices by allowing for coherent and beautiful tilting of handwriting, as well as adjusting spacing and width, thereby enhancing user interaction.
Smart Images

Figure KR2024003481_26092024_PF_FP
Abstract
Description
Electronic device for displaying handwriting input and method of operation thereof
[0001] One embodiment of the present invention relates to an electronic device for displaying handwriting input and a method of operating the same.
[0002] Recently, the use of portable electronic devices such as smartphones, tablet PCs, or wearable devices has increased, and users can use various functions by using various input means, such as fingers as well as input tools such as stylus pens.
[0003] Stylus pen input allows for more precise touch input than finger-based touch input, making it more useful for applications like note-taking or sketching. Furthermore, handwriting-based content creation offers greater freedom, allows for more intuitive and faster input, and, thanks to improvements in handwritten character recognition technology, its usability is also significantly increasing.
[0004] According to an embodiment, an electronic device may include a display, at least one processor, and a memory storing instructions. According to an embodiment, the instructions, when executed by the at least one processor, may be configured to cause the electronic device to display, through the display, a handwriting input including a plurality of points by a user input. According to an embodiment, the instructions, when executed by the at least one processor, may be configured to cause the electronic device to identify a plurality of first inflection points and a plurality of second inflection points among the plurality of points based on a vertical coordinate value of each of the plurality of points. According to an embodiment, the instructions, when executed by the at least one processor, may be configured to cause the electronic device to identify slope values of a plurality of lines connected to each of the plurality of second inflection points, each of which is adjacent to each of the plurality of first inflection points. In one embodiment, the instructions, when executed by the at least one processor, may be configured to cause the electronic device to determine a representative slope value of each of the plurality of sections for the handwriting input based on the slope values. In one embodiment, the instructions, when executed by the at least one processor, may be configured to cause the electronic device to determine first slope values of the plurality of points based on the representative slope value of each of the plurality of sections. In one embodiment, the instructions, when executed by the at least one processor, may be configured to cause the electronic device to change the slope of the handwriting input by adjusting a horizontal coordinate value of each of the plurality of points based on the first slope values and a target slope value.
[0005] According to an embodiment, a method of operating an electronic device may include an operation of displaying a handwriting input including a plurality of points by a user input through a display included in the electronic device. According to an embodiment, a method of operating an electronic device may include an operation of identifying a plurality of first inflection points and a plurality of second inflection points among the plurality of points based on vertical coordinate values of each of the plurality of points. According to an embodiment, a method of operating an electronic device may include an operation of identifying slope values of a plurality of lines connected to each of the plurality of second inflection points that are adjacent to each of the plurality of first inflection points. According to an embodiment, a method of operating an electronic device may include an operation of identifying a representative slope value of each of a plurality of sections for the handwriting input based on the slope values. According to an embodiment, a method of operating an electronic device may include an operation of determining first slope values of the plurality of points based on the representative slope value of each of the plurality of sections. A method of operating an electronic device according to one embodiment may include an operation of changing a slope of the handwriting input by adjusting a horizontal coordinate value of each of the plurality of points based on the first slope values and a target slope value.
[0006] In one embodiment, a computer-readable non-transitory recording medium may store instructions that may perform the following actions: displaying a handwriting input including a plurality of points by a user input through a display included in an electronic device; identifying a plurality of first inflection points and a plurality of second inflection points among the plurality of points based on vertical coordinate values of each of the plurality of points; identifying slope values of a plurality of lines connected to each of the plurality of second inflection points adjacent to each of the plurality of first inflection points; identifying a representative slope value of each of a plurality of sections for the handwriting input based on the slope values; determining first slope values of the plurality of points based on the representative slope values of each of the plurality of sections; and adjusting a horizontal coordinate value of each of the plurality of points based on the first slope values and a target slope value to change the slope of the handwriting input.
[0007] FIG. 1 is a block diagram of an electronic device within a network environment according to various embodiments.
[0008] FIG. 2 is a schematic block diagram of an electronic device according to one embodiment.
[0009] FIG. 3 is a flowchart illustrating a method for an electronic device to change the inclination of a handwriting input, according to one embodiment.
[0010] FIG. 4 is a flowchart illustrating a method for an electronic device to determine a representative slope of each of a plurality of sections for a handwriting input, according to one embodiment.
[0011] FIGS. 5A, 5B, 5C, 5D, 5E, and 5F are drawings illustrating a method for an electronic device to change the inclination of a handwriting input according to one embodiment.
[0012] FIG. 6 is a flowchart illustrating a method for an electronic device to adjust the positions of a plurality of points included in a handwriting input, according to one embodiment.
[0013] FIGS. 7A, 7B, 7C, and 7D are drawings illustrating a method for an electronic device to adjust the positions of a plurality of points included in a handwriting input, according to one embodiment.
[0014] FIGS. 8A, 8B, and 8C are drawings illustrating a method for an electronic device to adjust the positions of each of a plurality of points included in a handwriting input, according to one embodiment.
[0015] FIG. 9 is a flowchart illustrating a method for an electronic device to adjust the spacing or width of a handwriting input according to one embodiment.
[0016] FIG. 10A is a diagram illustrating a method for an electronic device according to one embodiment to adjust the spacing of letters or words included in handwriting input.
[0017] FIG. 10b is a diagram illustrating a method for an electronic device according to one embodiment to adjust the width of a handwriting input.
[0018] FIGS. 11A, 11B, 11C, 11D, and 11E are drawings illustrating a method for an electronic device to change the inclination of handwriting input through a menu displayed on a display, according to one embodiment.
[0019] FIGS. 12A, 12B, 12C, and 12D are drawings illustrating a method for an electronic device to change the spacing of letters or words included in handwriting input through a menu displayed on a display, according to one embodiment.
[0020] FIG. 1 is a block diagram of an electronic device (101) within a network environment (100) according to various embodiments. Referring to FIG. 1, in the network environment (100), the electronic device (101) may communicate with the electronic device (102) via a first network (198) (e.g., a short-range wireless communication network), or may communicate with at least one of the electronic device (104) or the server (108) via a second network (199) (e.g., a long-range wireless communication network). In one embodiment, the electronic device (101) may communicate with the electronic device (104) via the server (108). According to one embodiment, the electronic device (101) may include a processor (120), a memory (130), an input module (150), an audio output module (155), a display module (160), an audio module (170), a sensor module (176), an interface (177), a connection terminal (178), a haptic module (179), a camera module (180), a power management module (188), a battery (189), a communication module (190), a subscriber identification module (196), or an antenna module (197). In some embodiments, the electronic device (101) may omit at least one of these components (e.g., the connection terminal (178)), or may have one or more other components added. In some embodiments, some of these components (e.g., the sensor module (176), the camera module (180), or the antenna module (197)) may be integrated into one component (e.g., the display module (160)).
[0021] The processor (120) may, for example, execute software (e.g., a program (140)) to control at least one other component (e.g., a hardware or software component) of the electronic device (101) connected to the processor (120) and perform various data processing or operations. According to one embodiment, as at least a part of the data processing or operations, the processor (120) may store commands or data received from other components (e.g., a sensor module (176) or a communication module (190)) in a volatile memory (132), process the commands or data stored in the volatile memory (132), and store result data in a non-volatile memory (134). According to one embodiment, the processor (120) may include a main processor (121) (e.g., a central processing unit or an application processor) or an auxiliary processor (123) (e.g., a graphics processing unit, a neural processing unit (NPU), an image signal processor, a sensor hub processor, or a communication processor) that can operate independently or together with the main processor (121). For example, when the electronic device (101) includes the main processor (121) and the auxiliary processor (123), the auxiliary processor (123) may be configured to use less power than the main processor (121) or to be specialized for a given function. The auxiliary processor (123) may be implemented separately from the main processor (121) or as a part thereof.
[0022] The auxiliary processor (123) may control at least a portion of functions or states associated with at least one component (e.g., a display module (160), a sensor module (176), or a communication module (190)) of the electronic device (101), for example, on behalf of the main processor (121) while the main processor (121) is in an inactive (e.g., sleep) state, or together with the main processor (121) while the main processor (121) is in an active (e.g., application execution) state. In one embodiment, the auxiliary processor (123) (e.g., an image signal processor or a communication processor) may be implemented as a part of another functionally related component (e.g., a camera module (180) or a communication module (190)). In one embodiment, the auxiliary processor (123) (e.g., a neural network processing unit) may include a hardware structure specialized for processing artificial intelligence models. The artificial intelligence models may be generated through machine learning. This learning can be performed, for example, on the electronic device (101) itself where the artificial intelligence model is executed, or can be performed through a separate server (e.g., server (108)). The learning algorithm can include, for example, supervised learning, unsupervised learning, semi-supervised learning, or reinforcement learning, but is not limited to the examples described above. The artificial intelligence model can include multiple artificial neural network layers.The artificial neural network may be one of a deep neural network (DNN), a convolutional neural network (CNN), a recurrent neural network (RNN), a restricted Boltzmann machine (RBM), a deep belief network (DBN), a bidirectional recurrent deep neural network (BRDNN), a deep Q-network, or a combination of two or more of the above, but is not limited to the examples described above. In addition to, or alternatively to, a hardware structure, an artificial intelligence model may include a software structure.
[0023] The memory (130) can store various data used by at least one component (e.g., processor (120) or sensor module (176)) of the electronic device (101). The data can include, for example, software (e.g., program (140)) and input data or output data for commands related thereto. The memory (130) can include volatile memory (132) or non-volatile memory (134).
[0024] The program (140) may be stored as software in the memory (130) and may include, for example, an operating system (142), middleware (144), or an application (146).
[0025] The input module (150) can receive commands or data to be used in a component of the electronic device (101) (e.g., a processor (120)) from an external source (e.g., a user) of the electronic device (101). The input module (150) can include, for example, a microphone, a mouse, a keyboard, a key (e.g., a button), or a digital pen (e.g., a stylus pen).
[0026] The audio output module (155) can output audio signals to the outside of the electronic device (101). The audio output module (155) can include, for example, a speaker or a receiver. The speaker can be used for general purposes, such as multimedia playback or recording playback. The receiver can be used to receive incoming calls. In one embodiment, the receiver can be implemented separately from the speaker or as part of the speaker.
[0027] The display module (160) can visually provide information to an external party (e.g., a user) of the electronic device (101). The display module (160) may include, for example, a display, a holographic device, or a projector and a control circuit for controlling the device. According to one embodiment, the display module (160) may include a touch sensor configured to detect a touch, or a pressure sensor configured to measure the intensity of a force generated by the touch.
[0028] The audio module (170) can convert sound into an electrical signal, or vice versa, convert an electrical signal into sound. According to one embodiment, the audio module (170) can acquire sound through the input module (150), output sound through the sound output module (155), or an external electronic device (e.g., electronic device (102)) (e.g., speaker or headphone) directly or wirelessly connected to the electronic device (101).
[0029] The sensor module (176) can detect the operating status (e.g., power or temperature) of the electronic device (101) or the external environmental status (e.g., user status) and generate an electrical signal or data value corresponding to the detected status. According to one embodiment, the sensor module (176) can include, for example, a gesture sensor, a gyro sensor, a barometric pressure sensor, a magnetic sensor, an acceleration sensor, a grip sensor, a proximity sensor, a color sensor, an IR (infrared) sensor, a biometric sensor, a temperature sensor, a humidity sensor, or an illuminance sensor.
[0030] The interface (177) may support one or more designated protocols that may be used to directly or wirelessly connect the electronic device (101) with an external electronic device (e.g., the electronic device (102)). In one embodiment, the interface (177) may include, for example, a high definition multimedia interface (HDMI), a universal serial bus (USB) interface, an SD card interface, or an audio interface.
[0031] The connection terminal (178) may include a connector through which the electronic device (101) may be physically connected to an external electronic device (e.g., electronic device (102)). According to one embodiment, the connection terminal (178) may include, for example, an HDMI connector, a USB connector, an SD card connector, or an audio connector (e.g., a headphone connector).
[0032] The haptic module (179) can convert electrical signals into mechanical stimuli (e.g., vibration or movement) or electrical stimuli that a user can perceive through tactile or kinesthetic sensations. According to one embodiment, the haptic module (179) can include, for example, a motor, a piezoelectric element, or an electrical stimulation device.
[0033] The camera module (180) can capture still images and videos. According to one embodiment, the camera module (180) may include one or more lenses, image sensors, image signal processors, or flashes.
[0034] The power management module (188) can manage power supplied to the electronic device (101). According to one embodiment, the power management module (188) can be implemented as, for example, at least a part of a power management integrated circuit (PMIC).
[0035] A battery (189) may power at least one component of the electronic device (101). In one embodiment, the battery (189) may include, for example, a non-rechargeable primary battery, a rechargeable secondary battery, or a fuel cell.
[0036] The communication module (190) may support the establishment of a direct (e.g., wired) communication channel or a wireless communication channel between the electronic device (101) and an external electronic device (e.g., electronic device (102), electronic device (104), or server (108)), and the performance of communication through the established communication channel. The communication module (190) may operate independently from the processor (120) (e.g., application processor) and may include one or more communication processors that support direct (e.g., wired) communication or wireless communication. According to one embodiment, the communication module (190) may include a wireless communication module (192) (e.g., a cellular communication module, a short-range wireless communication module, or a global navigation satellite system (GNSS) communication module) or a wired communication module (194) (e.g., a local area network (LAN) communication module, or a power line communication module). Among these communication modules, the corresponding communication module can communicate with an external electronic device (104) via a first network (198) (e.g., a short-range communication network such as Bluetooth, wireless fidelity (WiFi) direct, or infrared data association (IrDA)) or a second network (199) (e.g., a long-range communication network such as a legacy cellular network, a 5G network, a next-generation communication network, the Internet, or a computer network (e.g., a LAN or WAN)). These various types of communication modules can be integrated into a single component (e.g., a single chip) or implemented as multiple separate components (e.g., multiple chips). The wireless communication module (192) can verify or authenticate the electronic device (101) within a communication network such as the first network (198) or the second network (199) by using subscriber information (e.g., an international mobile subscriber identity (IMSI)) stored in the subscriber identification module (196).
[0037] The wireless communication module (192) can support 5G networks and next-generation communication technologies following the 4G network, such as NR access technology (new radio access technology). The NR access technology can support high-speed transmission of high-capacity data (eMBB (enhanced mobile broadband)), minimization of terminal power and connection of multiple terminals (mMTC (massive machine type communications)), or high reliability and low latency (URLLC (ultra-reliable and low-latency communications)). The wireless communication module (192) can support, for example, a high-frequency band (e.g., mmWave band) to achieve a high data transmission rate. The wireless communication module (192) can support various technologies for securing performance in a high-frequency band, such as beamforming, massive multiple-input and multiple-output (MIMO), full dimensional MIMO (FD-MIMO), array antenna, analog beam-forming, or large scale antenna. The wireless communication module (192) can support various requirements specified in the electronic device (101), an external electronic device (e.g., the electronic device (104)), or a network system (e.g., the second network (199)). According to one embodiment, the wireless communication module (192) can support a peak data rate (e.g., 20 Gbps or more) for eMBB realization, a loss coverage (e.g., 164 dB or less) for mMTC realization, or a U-plane latency (e.g., 0.5 ms or less for downlink (DL) and uplink (UL), or 1 ms or less for round trip) for URLLC realization.
[0038] The antenna module (197) can transmit or receive signals or power to or from an external device (e.g., an external electronic device). In one embodiment, the antenna module (197) may include an antenna including a radiator formed of a conductor or a conductive pattern formed on a substrate (e.g., a PCB). In one embodiment, the antenna module (197) may include a plurality of antennas (e.g., an array antenna). In this case, at least one antenna suitable for a communication method used in a communication network, such as the first network (198) or the second network (199), may be selected from the plurality of antennas, for example, by the communication module (190). A signal or power may be transmitted or received between the communication module (190) and an external electronic device via the at least one selected antenna. In some embodiments, in addition to the radiator, another component (e.g., a radio frequency integrated circuit (RFIC)) may be additionally formed as a part of the antenna module (197).
[0039] According to various embodiments, the antenna module (197) may form a mmWave antenna module. In one embodiment, the mmWave antenna module may include a printed circuit board, an RFIC disposed on or adjacent a first side (e.g., a bottom side) of the printed circuit board and capable of supporting a designated high-frequency band (e.g., a mmWave band), and a plurality of antennas (e.g., an array antenna) disposed on or adjacent a second side (e.g., a top side or a side side) of the printed circuit board and capable of transmitting or receiving signals in the designated high-frequency band.
[0040] At least some of the above components can be interconnected and exchange signals (e.g., commands or data) with each other via a communication method between peripheral devices (e.g., a bus, GPIO (general purpose input and output), SPI (serial peripheral interface), or MIPI (mobile industry processor interface)).
[0041] According to one embodiment, commands or data may be transmitted or received between the electronic device (101) and an external electronic device (104) via a server (108) connected to a second network (199). Each of the external electronic devices (102 or 104) may be the same or a different type of device as the electronic device (101). According to one embodiment, all or part of the operations executed in the electronic device (101) may be executed in one or more of the external electronic devices (102, 104, or 108). For example, when the electronic device (101) is to perform a certain function or service automatically or in response to a request from a user or another device, the electronic device (101) may, instead of or in addition to executing the function or service itself, request one or more external electronic devices to perform the function or at least a part of the service. One or more external electronic devices that receive the request may execute at least a portion of the requested function or service, or an additional function or service related to the request, and transmit the result of the execution to the electronic device (101). The electronic device (101) may process the result as is or additionally and provide it as at least a portion of a response to the request. For this purpose, cloud computing, distributed computing, mobile edge computing (MEC), or client-server computing technology may be used, for example. The electronic device (101) may provide an ultra-low latency service by using distributed computing or mobile edge computing, for example. In another embodiment, the external electronic device (104) may include an Internet of Things (IoT) device. The server (108) may be an intelligent server utilizing machine learning and / or a neural network. According to one embodiment, the external electronic device (104) or the server (108) may be included in the second network (199).The electronic device (101) can be applied to intelligent services (e.g., smart home, smart city, smart car, or healthcare) based on 5G communication technology and IoT-related technology.
[0042] FIG. 2 is a schematic block diagram of an electronic device according to one embodiment.
[0043] Referring to FIG. 2, according to one embodiment, the electronic device (201) may include a processor (220), a memory (230), and a display (260). For example, the electronic device (201) may be implemented in the same or similar manner as the electronic device (101) of FIG. 1.
[0044] According to one embodiment, the processor (220) may control the overall operation of the electronic device (201). For example, the processor (220) may be implemented identically or similarly to the processor (120) of FIG. 1.
[0045] According to one embodiment, the processor (220) may verify a user input through the display (260) and display a handwriting input (or a handwriting image) corresponding to the verified user input. For example, the user input may be an input (e.g., handwriting input) through the user's finger or a stylus pen. For example, the display (260) may be implemented in the same or similar manner as the display module (160) of FIG. 1. For example, the display (260) may be implemented as a touchscreen.
[0046] According to one embodiment, the processor (220) may display, through the display (260), a handwriting input including a plurality of points by a user input. For example, each of the plurality of points may mean a point constituting the handwriting input. For example, each of the plurality of points may have a coordinate value set by the processor (220). For example, the coordinate value may include a horizontal coordinate value (e.g., an x-axis value) and a vertical coordinate value (e.g., a y-axis value) based on a coordinate system (e.g., an orthogonal coordinate system) set by the processor (220).
[0047] According to one embodiment, the processor (220) may identify a plurality of first inflection points and a plurality of second inflection points among the plurality of points based on the vertical coordinate values of each of the plurality of points. For example, the plurality of first inflection points (e.g., maximum points) may be points having a vertical coordinate value greater than that of adjacent points on both sides among the plurality of points included in the handwriting input. The plurality of second inflection points (e.g., minimum points) may be points having a vertical coordinate value less than that of adjacent points on both sides among the plurality of points included in the handwriting input.
[0048] According to one embodiment, the processor (220) may identify a plurality of lines, each of which is connected to a plurality of second inflection points adjacent to each other, of a plurality of first inflection points. The processor (220) may identify slope values of the plurality of lines. For example, the slope value may refer to a value indicating the degree of inclination relative to a virtual horizontal line.
[0049] According to one embodiment, the processor (220) may divide the handwriting input into a plurality of segments based on the length of the handwriting input or the number of points included in the handwriting input. For example, the plurality of segments may be segments that divide the length of the handwriting input into a specific number of equal segments. Alternatively, the plurality of segments may be segments that divide the points included in the handwriting input into a specific number of equal segments.
[0050] According to one embodiment, the processor (220) can identify a representative slope value of each of a plurality of sections for handwriting input based on the slope values.
[0051] According to one embodiment, the processor (220) may determine first slope values of a plurality of points (or all points) included in the handwriting input based on the representative slope value of each of the plurality of sections. For example, the first slope values may be determined based on the representative slope value.
[0052] According to one embodiment, the processor (220) may determine a target tilt value or a target tilt value indicating how much to tilt the handwriting input. For example, the target tilt value may be automatically determined by the processor (220) or determined by the user.
[0053] According to one embodiment, the processor (220) may change the inclination of the handwriting input by adjusting the horizontal coordinate value of each of the plurality of points based on the first inclination values and the target inclination value.
[0054] According to one embodiment, the memory (230) may store information about handwriting input (e.g., information for adjusting the size or changing the inclination of the handwriting input). For example, the memory (230) may be implemented in a manner identical to or similar to the memory (130) of FIG. 1.
[0055] At least some of the operations of the electronic device (201) described below may be performed or controlled by the processor (220). However, for convenience of explanation, it will be described that the electronic device (201) performs the corresponding operations.
[0056] FIG. 3 is a flowchart illustrating a method for an electronic device to change the inclination of a handwriting input, according to one embodiment.
[0057] Referring to FIG. 3, according to one embodiment, in operation 301, an electronic device (e.g., electronic device (201) of FIG. 2) may display, through a display (e.g., display (260) of FIG. 2), a handwriting input including a plurality of dots by a user input.
[0058] According to one embodiment, in operation 303, the electronic device (201) can identify a plurality of first inflection points and a plurality of second inflection points among the plurality of points based on the vertical coordinate values of each of the plurality of points.
[0059] According to one embodiment, in operation 305, the electronic device (201) can check slope values of a plurality of lines connected to a plurality of second inflection points, each of which is adjacent to a plurality of first inflection points.
[0060] According to one embodiment, in operation 307, the electronic device (201) may determine a representative slope value of each of a plurality of sections for a handwriting input based on the slope values of a plurality of lines. Meanwhile, a method for determining a representative slope value of each of a plurality of sections for a handwriting input will be described in detail in FIG. 4, which will be described later.
[0061] According to one embodiment, in operation 309, the electronic device (201) may determine first slope values of a plurality of points based on representative slope values of each of the plurality of sections.
[0062] According to one embodiment, in operation 311, the electronic device (201) can change the inclination of the handwriting input by adjusting the horizontal coordinate value of each of the plurality of points based on the first inclination values and the target inclination value.
[0063] Through the above-described method, the electronic device (201) can change the inclination of the handwriting input while maintaining overall consistency. This allows the electronic device (201) to display the handwriting input beautifully. Furthermore, the user can easily and conveniently edit the handwriting input through the electronic device (201).
[0064] FIG. 4 is a flowchart illustrating a method for an electronic device to determine a representative slope of each of a plurality of sections for a handwriting input, according to one embodiment.
[0065] Referring to FIG. 4, according to one embodiment, in operation 401, an electronic device (e.g., electronic device (201) of FIG. 2) can check slope values of a plurality of lines connected to a plurality of second inflection points, each of which is adjacent to a plurality of first inflection points.
[0066] According to one embodiment, in operation 403, the electronic device (201) may identify a second slope value that satisfies a specified range among the slope values of a plurality of lines. For example, the specified range may represent a certain angular range for selecting lines (or lines close to vertical) having a valid direction or angle among the slope values. For example, the specified range may be automatically determined by a processor (e.g., the processor (220) of FIG. 2) or may be determined by a user. For example, the specified range may mean an angular range that adds or subtracts a specified angle (e.g., 45 degrees) from 90 degrees (or 180 degrees) with respect to the horizontal line.
[0067] According to one embodiment, in operation 405, the electronic device (201) may determine a representative slope value for each of the plurality of sections based on the second slope values. For example, the electronic device (201) may determine an average value of slope values included in each of the plurality of sections among the second slope values as the representative slope value of the corresponding section. For example, slope values that do not satisfy a specified range among the slope values of the plurality of lines may not be used to determine the representative slope value.
[0068] FIGS. 5A through 5F are drawings illustrating a method for an electronic device to determine a slope of a handwriting input according to one embodiment.
[0069] Referring to FIG. 5A, according to one embodiment, an electronic device (e.g., electronic device (201) of FIG. 2) may acquire and display, through a display (e.g., display (260) of FIG. 2), a handwriting input (510) including a plurality of dots by user input (e.g., input via a stylus pen or a user's finger).
[0070] Meanwhile, the form or shape of the handwriting input illustrated in FIG. 5a is merely exemplary, and the technical idea of the present invention may not be limited thereto.
[0071] Referring to FIG. 5B, according to one embodiment, the electronic device (201) may determine coordinate values of a plurality of points included in a handwriting input (510). For example, the electronic device (201) may set a coordinate system (515) (e.g., an orthogonal coordinate system) for determining the coordinate values of the plurality of points. In addition, the electronic device (201) may designate the location of the origin (e.g., point (0,0)) of the coordinate system (515).
[0072] According to one embodiment, the electronic device (201) may identify a plurality of first inflection points (520) and a plurality of second inflection points (530) among the plurality of points based on the vertical coordinate value (e.g., y-coordinate value) of each of the plurality of points. For example, the plurality of first inflection points (520) may be points having a vertical coordinate value greater than that of adjacent points on both sides among the plurality of points included in the handwriting input. The plurality of second inflection points (530) may be points having a vertical coordinate value less than that of adjacent points on both sides among the plurality of points included in the handwriting input. Meanwhile, the start point and the end point of the handwriting input may be a first inflection point if the vertical coordinate value of the corresponding point is greater than that of the adjacent point, and may be a second inflection point if the vertical coordinate value of the corresponding point is less than that of the adjacent point.
[0073] Meanwhile, the type of coordinate system and / or the location of the coordinate system (e.g., the origin location) illustrated in FIG. 5b are merely exemplary, and the technical concept of the present invention may not be limited thereto. Furthermore, the number and sizes of multiple points included in the handwriting input are merely exemplary, and the technical concept of the present invention may not be limited thereto.
[0074] Referring to FIG. 5C, according to one embodiment, the electronic device (201) can check the slope values of a plurality of lines (e.g., 541, 542, 546, 547) connected to each of the plurality of second inflection points adjacent to each other, each of the plurality of first inflection points. For example, the slope value of the first line (541) may be 80 degrees, and the slope value of the second line (542) may be 95 degrees.
[0075] Referring to FIG. 5D, according to one embodiment, the electronic device (201) can check slope values that satisfy a specified range (550) (e.g., 90-45 degrees to 90+45 degrees and 180-45 degrees to 180+45 degrees) among slope values of a plurality of lines (e.g., 541, 542, 546, 547). For example, the first line (541) and the second line (542) may satisfy the specified range (550), and the third line (546) and the fourth line (547) may not satisfy the specified range (550). The electronic device (201) can check or determine the representative slope value of each of the plurality of sections for handwriting input, excluding the third line (546) and the fourth line (547) among the slope values of the plurality of lines (e.g., 541, 542, 546, 547).
[0076] Referring to FIG. 5E, according to an embodiment, the electronic device (201) may determine a plurality of sections for a handwriting input. In addition, the electronic device (201) may determine a representative slope value for each of the plurality of sections (551, 552, 553). For example, the first representative slope value (561) of the first section (551) may be 88 degrees, the second representative slope value (562) of the second section (552) may be 80 degrees, and the third representative slope value (563) of the third section (553) may be 85 degrees. For example, the representative slope value may be an average value of the slope values of lines included in each of the plurality of sections (551, 552, 553). For example, the electronic device (201) may not consider slope values that do not satisfy a specified range when calculating the average value as described in FIG. 5d.
[0077] Referring to FIG. 5F, according to one embodiment, the electronic device (201) may determine first slope values of all of a plurality of points included in the handwriting input based on the representative slope values of each of the plurality of sections. For example, the slope values of the points included in the first section (551) may be determined based on the representative slope values (561, 562) of the first section (551) and the second section (552). The slope values of the points included in the second section (552) may be determined based on the representative slope values (561, 562, 563) of the first section (551), the second section (552), and the third section (553). In addition, the slope values of points included in the third section (553) can be determined based on the representative slope values (562, 563) of the second section (552) and the third section (553). For example, the electronic device (201) can determine the slope value of the midpoint located in the middle of the first section (551) as the first representative slope value (561). The electronic device (201) can determine the slope values of points located to the left of the midpoint of the first section (551) to be equal to the first representative slope value (e.g., 88 degrees). The electronic device (201) can determine the slope values of points located to the right of the midpoint of the first section (551) and to the left of the midpoint of the second section (552) to be less than the first representative slope value (e.g., 88 degrees) and greater than the second representative slope value (e.g., 80 degrees). For example, the electronic device (201) may determine the slope values of the points so that the slope values of the points gradually decrease from the first representative slope value to the second representative slope value based on the horizontal coordinate values of the points. Similarly, the electronic device (201) may determine the slope values of the points located to the right of the midpoint of the second section (552) and to the left of the midpoint of the third section (553) to be greater than the second representative slope value (e.g., 80 degrees) and less than the third representative slope value (e.g., 85 degrees).For example, the electronic device (201) may determine the slope values of the points so that the slope values of the points gradually increase from the second representative slope value to the third representative slope value based on the horizontal coordinate values of the points. The electronic device (201) may determine the slope values of the points located to the right of the midpoint of the third section (553) to be the same as the third representative slope value (e.g., 85 degrees). According to the above-described method, the electronic device (201) may interpolate or determine the slope values of the points included in the first section (551), the second section (552), and the third section (553).
[0078] FIG. 6 is a flowchart illustrating a method for an electronic device to adjust the positions of a plurality of points included in a handwriting input, according to one embodiment.
[0079] Referring to FIG. 6, according to one embodiment, in operation 601, an electronic device (e.g., electronic device 201 of FIG. 2) may determine a target tilt value. For example, the target tilt value may represent an angle (or target angle) for adjusting the overall tilt of the handwriting input. For example, the target tilt value may be determined based on the shape of the handwriting input analyzed by a processor (e.g., processor 220 of FIG. 2). Alternatively, the target tilt value may be determined by a user as an arbitrary angle.
[0080] According to one embodiment, the electronic device (201) may determine the average value of the first slope values for the plurality of lines as the target slope value. For example, the electronic device (201) may determine the target slope value using mathematical expression 2. For example, ST may represent the target slope value, L may represent the number of the plurality of lines, and SL(i) may represent the slope value of each of the plurality of lines.
[0081]
[0082] According to another embodiment, the electronic device (201) may determine the average value of the representative slope values of the plurality of sections as the target slope value. For example, the electronic device (201) may determine the target slope value using mathematical expression 2. For example, ST may denote the target slope value, R may denote the number of the plurality of sections, and SR(i) may denote the representative slope value of each of the plurality of sections.
[0083]
[0084] According to one embodiment, in operation 603, the electronic device (201) may check the vertical coordinate values of midpoints (e.g., the center point of the line) included in a plurality of lines, each of which is connected to a plurality of second inflection points adjacent to each other, of the plurality of first inflection points. The electronic device (201) may determine a reference horizontal line of the handwriting input based on the vertical coordinate values of the midpoints of the plurality of lines. For example, the reference horizontal line may be determined based on an average value of the vertical coordinate values of the midpoints of the plurality of lines.
[0085] According to an embodiment, in operation 605, the electronic device (201) may change the inclination of the handwriting input by adjusting the position of each of the plurality of points based on a reference horizontal line. For example, the electronic device (201) may determine a first point of each of the plurality of points based on a first inclination value of each of the plurality of points included in the handwriting input and the reference horizontal line. For example, the first point may refer to a point where a straight line having the first inclination for each of the plurality of points coincides with the reference horizontal line. The electronic device (201) may determine a second point having vertical coordinate values identical to the vertical coordinate values of each of the plurality of existing points based on the first point and the target inclination value. For example, the second point may refer to a point having vertical coordinate values identical to the vertical coordinate values of each of the plurality of existing points on a straight line having the target inclination value with respect to the first point. For example, the second point may have a different horizontal coordinate value compared to the plurality of existing points. For example, the electronic device (201) can change the horizontal coordinate value of each of the plurality of points to the horizontal coordinate value indicated by the second point. Alternatively, the electronic device (201) can change each of the plurality of points to the second point.
[0086] Through the above-described method, the electronic device (201) can change the inclination of the handwriting input by changing or adjusting the horizontal coordinate values of a plurality of points included in the handwriting input. Through this, the electronic device (201) can incline the handwriting input in an overall, integrated and beautiful manner.
[0087] FIGS. 7A through 7D are drawings illustrating a method for an electronic device to adjust the positions of a plurality of points included in a handwriting input, according to one embodiment.
[0088] Referring to FIG. 7A, according to one embodiment, an electronic device (e.g., electronic device (201) of FIG. 2) may determine a target tilt value as an arbitrary value (e.g., 45 degrees). For example, the target tilt value may be determined by a processor (e.g., processor (220) of FIG. 2) or may be determined by a user.
[0089] Referring to FIG. 7B, according to one embodiment, the electronic device (201) may identify a plurality of lines, each of which is connected to a plurality of second inflection points adjacent to each other, and may identify vertical coordinate values of midpoints of the plurality of lines. The electronic device (201) may determine a reference horizontal line (720) of the handwriting input based on the vertical coordinate values of the midpoints of the plurality of lines. For example, the reference horizontal line may be determined based on an average value of the vertical coordinate values of the midpoints of the plurality of lines. The reference horizontal line may also be set in various other ways.
[0090] Referring to FIGS. 7C and 7D , according to one embodiment, the electronic device (201) may change the inclination of a handwriting input by adjusting the positions of each of a plurality of points based on a reference horizontal line (720). FIG. 7D may illustrate a method of adjusting the positions of points included in a portion (730) of the handwriting input (e.g., 510 of FIG. 5A ) illustrated in FIG. 7C based on a reference horizontal line (720).
[0091] Referring to FIG. 7D, according to one embodiment, when the target tilt value (e.g., 45 degrees) is less than the average value (e.g., 84 degrees) of the first tilt values, the electronic device (201) may increase the horizontal coordinate values of points (731, 736) included in the portion (730) that are located above the reference horizontal line (720), and may decrease the horizontal coordinate values of points (736) that are located below the reference horizontal line (720) among the points (731, 736). For example, the electronic device (201) can change the inclination of the handwriting input (or a portion of the handwriting input (730)) by moving the points (731, 736) included in the portion (730) that are located above the reference horizontal line (720) to the right and by moving the points (736) included in the portion (730) that are located below the reference horizontal line (720) to the left.
[0092] According to another embodiment, when the target slope value is greater than the average value of the first slope values, the electronic device (201) may decrease the horizontal coordinate values of points (731, 736) included in the portion (730) that are located above the reference horizontal line (720), and increase the horizontal coordinate values of points (736) included in the portion (730) that are located below the reference horizontal line (720). For example, the electronic device (201) can change the inclination of the handwriting input (or a portion of the handwriting input (730)) by moving the points (731, 736) included in the portion (730) that are located above the reference horizontal line (720) to the left, and by moving the points (736) included in the portion (730) that are located below the reference horizontal line (720) to the right.
[0093] FIGS. 8A through 8C are drawings illustrating a method for an electronic device to adjust the positions of each of a plurality of points included in a handwriting input, according to one embodiment.
[0094] Referring to FIG. 8A, according to one embodiment, the electronic device (201) can identify the position (or coordinates) (e.g., p(xp, y)) of a specific point (p) among a plurality of points included in a handwriting input.
[0095] According to one embodiment, the electronic device (201) may determine a first point (o) of the specific point (p) based on a first slope value (e.g., θ) of the specific point (p) and a reference horizontal line (720). For example, the first point (o) may mean a point where a straight line having the first slope value of the specific point (p) contacts the reference horizontal line (720). The electronic device (201) may determine the location (or coordinates) (e.g., o(xo, yb)) of the first point.
[0096] Referring to FIG. 8B, according to an embodiment, the electronic device (201) may determine a second point (q) having the same vertical coordinate value as the vertical coordinate value (y) of a specific point (p) based on the first point (o) and the target inclination value (θt). For example, the second point (q) may mean a point having the same vertical coordinate value as the vertical coordinate value (y) of the specific point (p) on a straight line having the target inclination value (θt) with respect to the first point (p). The electronic device (201) may determine the position (or coordinates) (e.g., q(xq, y)) of the second point (q).
[0097] Referring to FIG. 8c, according to one embodiment, the electronic device (201) can change a specific point (p) to a second point (q). For example, the electronic device (201) can adjust the horizontal coordinate value of the specific point (p) to the horizontal coordinate value of the second point (q).
[0098] According to the above-described method, the electronic device (201) can adjust or change the horizontal coordinate values for all of the multiple points included in the handwriting input. Through this, the electronic device (201) can uniformly change the inclination of the handwriting input.
[0099] FIG. 9 is a flowchart illustrating a method for an electronic device to adjust the spacing or width of a handwriting input according to one embodiment.
[0100] Referring to FIG. 9, according to one embodiment, an electronic device (e.g., electronic device (201) of FIG. 2) may adjust the spacing or width of a handwriting input. For example, the electronic device (201) may adjust the spacing or width of a handwriting input automatically or based on a user's input.
[0101] According to one embodiment, in operation 901, the electronic device (201) can identify letters or words from handwriting input. For example, the electronic device (201) can identify letters (e.g., alphabets, Hangul) or words (e.g., English words, Korean words) from handwriting input using a character recognition function.
[0102] According to one embodiment, in operation 903, the electronic device (201) may determine whether a segmented area of a letter or word can be confirmed or identified in the handwriting input. For example, the electronic device (201) may determine whether an area that can be divided into letters or words in the handwriting input is confirmed or identified.
[0103] According to one embodiment, the electronic device (201) can recognize handwriting input (e.g., strokes) through a handwriting character recognizer (or handwriting character recognition module) and identify segmented areas of handwriting strokes corresponding to letters or words. For example, the handwriting character recognizer can be implemented in software. The handwriting character recognizer can be stored in the electronic device (201).
[0104] According to one embodiment, if it is determined that a segmented area of a letter or word can be confirmed in the handwriting input (example of operation 903), the electronic device (201) may adjust the spacing between letters or words based on the height of the letters or words. For example, the electronic device (201) may check the height of the letter or word before adjusting the spacing between letters or words. For example, the electronic device (201) may adjust the spacing between letters or words using mathematical expression 3. For example, G may be an adjusted spacing, h may be a height of a letter or word, and r1 may denote a reference spacing ratio. Depending on the implementation, the reference spacing ratio applied to each letter and word may be applied differently. The reference spacing ratio may be automatically set by a processor (e.g., processor 220 of FIG. 2) or set by a user. For example, the reference spacing ratio may be determined to an appropriate value based on the characteristics of a language (e.g., English, Korean).
[0105]
[0106] For example, the electronic device (201) can adjust the spacing between letters or words to 24 (=30*0.8) when the height of the confirmed (or calculated) word or letter is 30 and the standard spacing ratio is 0.8 (80%).
[0107] According to one embodiment, the electronic device (201) may adjust the spacing between letters or words in various ways other than the above. For example, the electronic device (201) may check the average value of the spacing (width) between letters or words and adjust the spacing between all letters or words equally based on the average value of the spacing (width) between the checked letters or words. For example, if the handwriting input includes four words and the spacing between the words is 20, 30, and 40, the electronic device (201) may adjust the spacing between all words equally to 30, which is the average value of the spacing between existing words. Alternatively, the electronic device (201) may adjust the spacing between all letters or words equally to a specific width specified by the user. For example, if the spacing specified by the user is 25, the electronic device (201) may adjust the spacing between all letters or words included in the handwriting input equally to 25.
[0108] According to one embodiment, if it is determined that a segmented area of a letter or word cannot be identified in the handwriting input (NO in operation 903), in operation 907, the electronic device (201) may adjust the width of the handwriting input. For example, the electronic device (201) may adjust the width of the handwriting input using mathematical expression 4. For example, WN may be the width of the adjusted handwriting input, WO may be the width of the existing handwriting input, and r2 may denote a reference width ratio. The reference width ratio may be automatically set by a processor (e.g., processor (220) of FIG. 2) or set by a user. For example, the reference width ratio may be determined to an appropriate value based on the characteristics of a language (e.g., English, Korean). For example, if the reference width ratio is 1, the width may not be changed.
[0109]
[0110] In another embodiment, even if it is determined that a segmented area of a letter or word can be identified in the handwriting input, the electronic device (201) may adjust the width of the handwriting input. For example, the electronic device (201) may adjust the width of the handwriting input based on a user input for adjusting the width of the handwriting input.
[0111] According to the above-described method, the electronic device (201) can adjust or edit the spacing between letters or words included in the handwriting input. In addition, the electronic device (201) can adjust or edit the width of the handwriting input.
[0112] FIG. 10A is a diagram illustrating a method for an electronic device according to one embodiment to adjust the spacing of letters or words included in handwriting input.
[0113] Referring to (a) of FIG. 10A, according to an embodiment, an electronic device (e.g., the electronic device (201) of FIG. 2) can identify segmented areas (1015) between words included in a handwriting input (1010). The electronic device (201) can identify a height (h) of the handwriting input (1010). Based on the height (h) of the handwriting input (1010), the electronic device (201) can adjust (e.g., increase or decrease) a space (1017) between words at a certain ratio. The electronic device (201) can display a handwriting input (1019) in which the space (1017) between words is adjusted.
[0114] Referring to (b) of FIG. 10A, according to an embodiment, an electronic device (e.g., the electronic device (201) of FIG. 2) can check segmented areas (1025) between letters included in a handwriting input (1020). The electronic device (201) can check the height (h) of the handwriting input (1020). Based on the height (h) of the handwriting input (1020), the electronic device (201) can adjust (e.g., increase or decrease) the spacing (1027) between letters at a certain ratio. The electronic device (201) can display a handwriting input (1029) in which the spacing (1027) between letters is adjusted.
[0115] FIG. 10b is a diagram illustrating a method for an electronic device according to one embodiment to adjust the width of a handwriting input.
[0116] Referring to FIG. 10B, according to one embodiment, an electronic device (e.g., electronic device (201) of FIG. 2) may adjust (e.g., increase or decrease) the width of a handwriting input (1030). For example, the electronic device (201) may adjust the width of the handwriting input (1030) according to a certain ratio. The electronic device (201) may display the handwriting input (1040) with the adjusted width.
[0117] Meanwhile, in FIGS. 10A and 10B , only an example in which the electronic device (201) increases the spacing between letters or words included in the handwriting input and the width of the handwriting input is illustrated, but this is merely for convenience of explanation, and the technical idea of the present invention may not be limited thereto. For example, the electronic device (201) may also decrease the spacing between letters or words included in the handwriting input and the width of the handwriting input.
[0118] FIGS. 11A to 11E are drawings illustrating a method for an electronic device to change the inclination of handwriting input through a menu displayed on a display, according to one embodiment.
[0119] Referring to FIG. 11A, according to one embodiment, an electronic device (1101) (e.g., the electronic device (201) of FIG. 2) may display a handwriting input through a display (e.g., the display of FIG. 2). For example, the electronic device (1101) may execute an application, such as a note, memo, or diary, in which handwriting is written, and display a handwriting input previously written in the application. Alternatively, the electronic device (1101) may execute an application, such as a note, memo, or diary, and then display a handwriting input corresponding to a user input.
[0120] According to one embodiment, the electronic device (1101) may select a first handwriting input (1110) from among all handwriting inputs based on a user input (e.g., tap, drag, double-tap, long-press input). At this time, the selected first handwriting input (1110) may be displayed to be distinct from unselected handwriting inputs. When the first handwriting input (1110) is selected, the electronic device (1101) may display a menu (1120) for editing the first handwriting input (1110). Alternatively, even when the first handwriting input (1110) is not selected, the electronic device (1101) may display a menu (1120) for editing when an application related to handwriting input (e.g., an application such as a note, memo, or diary) is executed. For example, the menu (1120) for editing may include at least one object for performing at least one of the following functions: tilting handwriting input, adjusting spacing of handwriting input, enlarging width, aligning lines, or adjusting vertical spacing. For example, the menu (1120) for editing may be implemented in the form of a toolbar.
[0121] Referring to FIGS. 11B and 11C, according to one embodiment, the electronic device (1101) can manually adjust the inclination of the first handwriting input (1110) according to a user's input when a manual tilt control object is selected through a menu (1120) for editing.
[0122] Referring to FIG. 11B, according to one embodiment, the electronic device (1101) may adjust the inclination of the first handwriting input (1110) based on an input for the first handwriting input (1110) (e.g., a tap or drag input using a stylus pen or a user's finger). For example, when an input (1125) for the first handwriting input (1110) (e.g., a tap or drag input using a stylus pen or a user's finger) is confirmed, the electronic device (1101) may display the first handwriting input (1115) with the adjusted inclination. For example, the direction or angle of the inclination may be determined based on the direction or length of the input for the first handwriting input (1110).
[0123] Referring to FIG. 11C, according to one embodiment, the electronic device (1101) may adjust the inclination of the first handwriting input (1110) based on an input to the control menu (1130) (e.g., a tap or drag input using a stylus pen or a user's finger). For example, the electronic device (1101) may adjust the inclination of the first handwriting input (1110) based on an input to the slide bar (1135) included in the control menu (1130). For example, when an input to the control menu (1130) (e.g., a tap or drag input using a stylus pen or a user's finger) is confirmed, the electronic device (1101) may display the first handwriting input (1115) with the adjusted inclination. For example, the direction or angle of the inclination may be determined based on the direction or length of the input to the slide bar (1135).
[0124] Referring to FIG. 11D , according to an embodiment, the electronic device (1101) may execute an automatic tilt control function when an automatic tilt control object (1155) is selected through a menu (1120) for editing. The electronic device (1101) may adjust the tilt of the first handwriting input (1110) based on an input (e.g., a tap or touch using a stylus pen or a user's finger) to the automatic tilt control object (1155). For example, the direction or angle of the tilt may be automatically determined by a processor of the electronic device (1101) (e.g., the processor (220) of FIG. 2 ). For example, when an input (e.g., a tap or touch using a stylus pen or a user's finger) to the automatic tilt control object (1155) is confirmed, the electronic device (1101) may display the first handwriting input (1115) with the adjusted tilt.
[0125] Referring to FIG. 11E, according to an embodiment, the electronic device (1101) may display a menu (1170) for selecting a tilt manual control function or a tilt automatic control function based on an input (e.g., a long press input) to a tilt control object (1160). For example, the menu (1170) may include a tilt manual control object (1171) and a tilt automatic control object (1172). The electronic device (1101) may perform a function corresponding to an object selected by the user among the tilt manual control object (1171) and the tilt automatic control object (1172). At this time, the electronic device (1101) may display the object selected by the user in the menu (1120) for editing.
[0126] FIGS. 12A to 12D are drawings illustrating a method for an electronic device to change the spacing of letters or words included in handwriting input through a menu displayed on a display, according to one embodiment.
[0127] Referring to FIGS. 12A to 12D, according to one embodiment, an electronic device (1201) (e.g., electronic device (201) of FIG. 2) may display handwriting input through a display (e.g., the display of FIG. 2).
[0128] According to one embodiment, the electronic device (1201) may select a first handwritten input (1210) from among all handwritten inputs based on a user input (e.g., tap, drag, double-tap, long-press input). At this time, the selected first handwritten input (1210) may be displayed to be distinct from unselected handwritten inputs. When the first handwritten input (1210) is selected, the electronic device (1201) may display a menu (1220) for editing the first handwritten input (1110). Alternatively, even when the first handwritten input (1210) is not selected, the electronic device (1201) may display a menu (1220) for editing when an application related to handwritten input (e.g., an application such as a note, memo, or diary) is executed. For example, the menu (1220) for editing may be implemented in the same or similar manner as the menu (1120) for editing described in FIG. 11.
[0129] Referring to FIGS. 12A and 12B, according to one embodiment, the electronic device (1201) can manually adjust the inclination of the first handwriting input (1210) according to the user's input when a manual control object (word or letter) is selected through a menu (1220) for editing.
[0130] Referring to FIG. 12A, according to an embodiment, the electronic device (1201) may adjust the letter spacing (or word spacing) or width of the first handwriting input (1210) based on an input for the first handwriting input (1210) (e.g., a tap or drag input using a stylus pen or a user's finger). If a segmented area of the first handwriting input (1210) is identified, the electronic device (1201) may adjust the letter spacing (or word spacing). Alternatively, if a segmented area of the first handwriting input (1210) is not identified, the electronic device (1201) may adjust the width of the first handwriting input (1210). For example, if an input for the first handwriting input (1210) (e.g., a tap or drag input using a stylus pen or a user's finger) is identified, the electronic device (1201) may display the first handwriting input (1225) with the adjusted letter spacing or width. For example, the length of the adjusted interval or width may be determined based on the direction or length of the input for the first handwriting input (1110).
[0131] Referring to FIG. 12B, according to one embodiment, the electronic device (1101) may adjust the letter spacing or width of the first handwriting input (1210) based on an input to the control menu (1230) (e.g., a tap or drag input using a stylus pen or a user's finger). For example, the electronic device (1101) may adjust the letter spacing or width of the first handwriting input (1210) based on an input to the slide bar (1235) included in the control menu (1230). For example, when an input to the control menu (1230) (e.g., a tap or drag input using a stylus pen or a user's finger) is confirmed, the electronic device (201) may display the first handwriting input (1225) with the adjusted letter spacing or width. For example, the length of the adjusted spacing or width may be determined based on the direction or length of the input to the slide bar (1235).
[0132] Referring to FIG. 12C, according to an embodiment, the electronic device (1201) may execute an automatic spacing control function when an automatic spacing control object is selected through a menu (1220) for editing. The electronic device (1201) may adjust the letter spacing or width of the first handwriting input (1210) based on an input (e.g., a tap or touch by a stylus pen or a user's finger) to the automatic spacing control object. For example, the adjusted spacing or width may be automatically determined by a processor of the electronic device (1101) (e.g., the processor (220) of FIG. 2). For example, when an input (e.g., a tap or touch by a stylus pen or a user's finger) to the automatic spacing control object is confirmed, the electronic device (1201) may display the first handwriting input (1225) with the adjusted spacing or width.
[0133] Referring to FIG. 12D, according to an embodiment, the electronic device (1201) may display a menu (1270) for selecting a plurality of spacing control functions based on an input (e.g., a long press input) to a spacing control object (1260). For example, the menu (1270) may include a letter spacing manual control object (1271), a word spacing manual control object (1272), a letter spacing automatic control object (1273), and a word spacing automatic control object (1274). The electronic device (1201) may perform a function corresponding to an object selected by the user among the plurality of spacing control functions. In this case, the electronic device (1201) may display the object selected by the user in the menu (1220) for editing.
[0134] An electronic device (201) according to an embodiment may include a display (260), at least one processor (220), and a memory (230) that stores instructions. The instructions according to an embodiment may be configured such that, when executed by the at least one processor, the electronic device displays a handwriting input including a plurality of points by a user input through the display. The instructions according to an embodiment may be configured such that, when executed by the at least one processor, the electronic device identifies a plurality of first inflection points and a plurality of second inflection points among the plurality of points based on a vertical coordinate value of each of the plurality of points. The instructions according to an embodiment may be configured such that, when executed by the at least one processor, the electronic device identifies slope values of a plurality of lines connected to each of the plurality of second inflection points, each of which is adjacent to each other, of the plurality of first inflection points. In one embodiment, the instructions, when executed by the at least one processor, may be configured to cause the electronic device to determine a representative slope value of each of the plurality of sections for the handwriting input based on the slope values. In one embodiment, the instructions, when executed by the at least one processor, may be configured to cause the electronic device to determine first slope values of the plurality of points based on the representative slope value of each of the plurality of sections. In one embodiment, the instructions, when executed by the at least one processor, may be configured to cause the electronic device to change the slope of the handwriting input by adjusting a horizontal coordinate value of each of the plurality of points based on the first slope values and a target slope value.
[0135] In one embodiment, the instructions, when executed by the at least one processor, may be configured to cause the electronic device to identify second slope values that satisfy a specified range among the slope values of the plurality of lines. In one embodiment, the instructions, when executed by the at least one processor, may be configured to cause the electronic device to determine the representative slope value for each of the plurality of sections based on the second slope values.
[0136] The instructions according to one embodiment, when executed by the at least one processor, may be configured to cause the electronic device to determine an average value of the first slope values as the target slope value.
[0137] The instructions according to one embodiment, when executed by the at least one processor, may be configured to cause the electronic device to determine an average value of representative slope values of the plurality of sections as the target slope value.
[0138] The instructions according to one embodiment, when executed by the at least one processor, may be configured to cause the electronic device to determine a reference horizontal line of the handwriting input based on an average value of vertical coordinate values of midpoints included in the plurality of lines.
[0139] The instructions according to one embodiment may be configured such that, when executed by the at least one processor, the electronic device increases horizontal coordinate values of points located above the reference horizontal line among the plurality of points and decreases horizontal coordinate values of points located below the reference horizontal line among the plurality of points when the target slope value is less than an average value of representative slope values of the plurality of sections.
[0140] The instructions according to one embodiment may be configured such that, when executed by the at least one processor, the electronic device decreases horizontal coordinate values of points located above the reference horizontal line among the plurality of points and increases horizontal coordinate values of points located below the reference horizontal line among the plurality of points when the target slope value is greater than an average value of representative slope values of the plurality of sections.
[0141] The instructions according to one embodiment may be configured such that, when executed by the at least one processor, the electronic device increases horizontal coordinate values of points located above the reference horizontal line among the plurality of points and decreases horizontal coordinate values of points located below the reference horizontal line among the plurality of points when the target slope value is less than an average value of the first slope values.
[0142] The instructions according to one embodiment may be configured such that, when executed by the at least one processor, the electronic device decreases horizontal coordinate values of points located above the reference horizontal line among the plurality of points and increases horizontal coordinate values of points located below the reference horizontal line among the plurality of points when the target slope value is greater than an average value of the first slope values.
[0143] In one embodiment, the instructions, when executed by the at least one processor, may be configured to cause the electronic device to determine a first point of each of the plurality of points based on a first slope value of each of the plurality of points and the reference horizontal line. In one embodiment, the instructions, when executed by the at least one processor, may be configured to cause the electronic device to determine a second point for each of the plurality of points having vertical coordinate values equal to vertical coordinate values of each of the plurality of points based on the first point and the target slope value. In one embodiment, the instructions, when executed by the at least one processor, may be configured to cause the electronic device to change each of the plurality of points to the second point.
[0144] According to one embodiment, the instructions, when executed by the at least one processor, may be configured to cause the electronic device to identify letters or words included in the handwriting input. According to one embodiment, the instructions, when executed by the at least one processor, may be configured to cause the electronic device to adjust the spacing between letters or words based on the height of the letters or words.
[0145] According to one embodiment, the plurality of first inflection points may be points having a vertical coordinate value greater than that of adjacent points on both sides among the plurality of points included in the handwriting input. According to one embodiment, the plurality of second inflection points may be points having a vertical coordinate value less than that of adjacent points on both sides among the plurality of points included in the handwriting input.
[0146] According to one embodiment, the instructions, when executed by the at least one processor, may be configured to cause the electronic device to display a menu for changing the inclination of the handwriting input. According to one embodiment, the instructions, when executed by the at least one processor, may be configured to cause the electronic device to change the inclination of the handwriting input based on an input to the menu.
[0147] The instructions according to one embodiment, when executed by the at least one processor, may be configured to cause the electronic device to change the inclination of the handwriting input based on a drag input for the handwriting input.
[0148] According to an embodiment, a method of operating an electronic device (201) may include an operation of displaying a handwriting input including a plurality of points by a user input through a display (260) included in the electronic device. According to an embodiment, a method of operating an electronic device may include an operation of identifying a plurality of first inflection points and a plurality of second inflection points among the plurality of points based on vertical coordinate values of each of the plurality of points. According to an embodiment, a method of operating an electronic device may include an operation of identifying slope values of a plurality of lines connected to each of the plurality of second inflection points that are adjacent to each of the plurality of first inflection points. According to an embodiment, a method of operating an electronic device may include an operation of identifying a representative slope value of each of a plurality of sections for the handwriting input based on the slope values. According to an embodiment, a method of operating an electronic device may include an operation of determining first slope values of the plurality of points based on the representative slope value of each of the plurality of sections. A method of operating an electronic device according to one embodiment may include an operation of changing a slope of the handwriting input by adjusting a horizontal coordinate value of each of the plurality of points based on the first slope values and a target slope value.
[0149] According to one embodiment, the operation of checking the representative slope value of each of the plurality of sections may include an operation of checking second slope values that satisfy a specified range among the slope values of the plurality of lines. According to one embodiment, the operation of checking the representative slope value of each of the plurality of sections may include an operation of determining the representative slope value for each of the plurality of sections based on the second slope values.
[0150] The operating method of an electronic device according to one embodiment may further include an operation of determining an average value of the first slope values or an average value of representative slope values of the plurality of sections as the target slope value.
[0151] According to one embodiment, the operation of adjusting the horizontal coordinate value of each of the plurality of points may include an operation of determining a reference horizontal line of the handwriting input based on an average value of vertical coordinate values of midpoints included in the plurality of lines. According to one embodiment, the operation of adjusting the horizontal coordinate value of each of the plurality of points may include an operation of determining a first point of each of the plurality of points based on a first slope value of each of the plurality of points and the reference horizontal line. According to one embodiment, the operation of adjusting the horizontal coordinate value of each of the plurality of points may include an operation of determining a second point for each of the plurality of points having the same vertical coordinate values as the vertical coordinate value of each of the plurality of points based on the first point and the target slope value. According to one embodiment, the operation of adjusting the horizontal coordinate value of each of the plurality of points may include an operation of changing each of the plurality of points to the second point.
[0152] According to one embodiment, the plurality of first inflection points may be points having a vertical coordinate value greater than that of adjacent points on both sides among the plurality of points included in the handwriting input. According to one embodiment, the plurality of second inflection points may be points having a vertical coordinate value less than that of adjacent points on both sides among the plurality of points included in the handwriting input.
[0153] In one embodiment, a computer-readable non-transitory recording medium (130, 230) may store instructions that may perform the following operations: displaying a handwriting input including a plurality of points by a user input through a display (260) included in an electronic device (201); identifying a plurality of first inflection points and a plurality of second inflection points among the plurality of points based on vertical coordinate values of each of the plurality of points; identifying slope values of a plurality of lines connected to each of the plurality of second inflection points adjacent to each of the plurality of first inflection points; identifying a representative slope value of each of a plurality of sections of the handwriting input based on the slope values; determining first slope values of the plurality of points based on the representative slope values of each of the plurality of sections; and adjusting a horizontal coordinate value of each of the plurality of points based on the first slope values and a target slope value to change the slope of the handwriting input.
[0154] Electronic devices according to the various embodiments disclosed in this document may take various forms. Electronic devices may include, for example, portable communication devices (e.g., smartphones), computer devices, portable multimedia devices, portable medical devices, cameras, wearable devices, or home appliances. Electronic devices according to the embodiments of this document are not limited to the aforementioned devices.
[0155] The various embodiments of this document and the terminology used therein are not intended to limit the technical features described in this document to specific embodiments, but should be understood to include various modifications, equivalents, or substitutes of the embodiments. In connection with the description of the drawings, similar reference numerals may be used for similar or related components. The singular form of a noun corresponding to an item may include one or more of the items, unless the context clearly indicates otherwise. In this document, each of the phrases "A or B", "at least one of A and B", "at least one of A or B", "A, B, or C", "at least one of A, B, and C", and "at least one of A, B, or C" can include any one of the items listed together in the corresponding phrase among those phrases, or all possible combinations thereof. Terms such as "first," "second," or "first" or "second" may be used merely to distinguish one component from another, and do not limit the components in any other respect (e.g., importance or order). When a component (e.g., a first component) is referred to as "coupled" or "connected" to another (e.g., a second component), with or without the terms "functionally" or "communicatively," it means that the component can be connected to the other component directly (e.g., wired), wirelessly, or through a third component.
[0156] The term "module" used in various embodiments of this document may include a unit implemented in hardware, software, or firmware, and may be used interchangeably with terms such as logic, logic block, component, or circuit. A module may be an integral component, or a minimum unit or part of such a component that performs one or more functions. For example, according to one embodiment, a module may be implemented in the form of an application-specific integrated circuit (ASIC).
[0157] Various embodiments of the present document may be implemented as software (e.g., a program (140)) including one or more instructions stored in a storage medium (e.g., an internal memory (136) or an external memory (138)) readable by a machine (e.g., an electronic device (101)). For example, a processor (e.g., a processor (120)) of the machine (e.g., an electronic device (101)) may call at least one instruction among the one or more instructions stored from the storage medium and execute it. This enables the machine to operate to perform at least one function according to the at least one called instruction. The one or more instructions may include code generated by a compiler or code executable by an interpreter. The machine-readable storage medium may be provided in the form of a non-transitory storage medium. Here, 'non-transitory' simply means that the storage medium is a tangible device and does not contain signals (e.g., electromagnetic waves), and the term does not distinguish between cases where data is stored semi-permanently or temporarily on the storage medium.
[0158] According to one embodiment, the method according to various embodiments disclosed in this document may be provided as included in a computer program product. The computer program product may be traded as a product between a seller and a buyer. The computer program product may be distributed in the form of a machine-readable storage medium (e.g., compact disc read-only memory (CD-ROM)), or may be distributed online (e.g., downloaded or uploaded) through an application store (e.g., Play Store™) or directly between two user devices (e.g., smart phones). In the case of online distribution, at least a portion of the computer program product may be temporarily stored or temporarily generated in a machine-readable storage medium, such as the memory of a manufacturer's server, an application store's server, or an intermediary server.
[0159] According to various embodiments, each component (e.g., a module or a program) of the above-described components may include one or more entities, and some of the entities may be separated and placed in other components. According to various embodiments, one or more components or operations of the aforementioned components may be omitted, or one or more other components or operations may be added. Alternatively or additionally, a plurality of components (e.g., a module or a program) may be integrated into a single component. In such a case, the integrated component may perform one or more functions of each of the plurality of components identically or similarly to those performed by the corresponding component among the plurality of components prior to the integration. According to various embodiments, the operations performed by a module, program, or other component may be executed sequentially, in parallel, iteratively, or heuristically, or one or more of the operations may be executed in a different order, omitted, or one or more other operations may be added.
Claims
1. In an electronic device (201), display (260); at least one processor (220); and A memory (230) for storing instructions, wherein the instructions, when executed by the at least one processor, cause the electronic device to: Through the above display, a handwriting input including multiple points by user input is displayed, Based on the vertical coordinate values of each of the plurality of points, a plurality of first inflection points and a plurality of second inflection points are identified among the plurality of points, Check the slope values of the plurality of lines connected to each of the plurality of second inflection points adjacent to each other, each of the plurality of first inflection points, Based on the above slope values, the representative slope value of each of the multiple sections for the handwriting input is checked, Based on the representative slope values of each of the above plurality of sections, the first slope values of the above plurality of points are determined, An electronic device configured to change the inclination of the handwriting input by adjusting the horizontal coordinate value of each of the plurality of points based on the first inclination values and the target inclination value.
2. In the first paragraph, the instructions, when executed by the at least one processor, cause the electronic device to: Check the second slope values that satisfy the specified range among the slope values of the above multiple lines, An electronic device configured to determine the representative slope value for each of the plurality of sections based on the second slope values.
3. In any one of paragraphs 1 to 2, the instructions, when executed by the at least one processor, cause the electronic device to: An electronic device set to determine an average value of the first slope values as the target slope value.
4. In any one of paragraphs 1 to 3, the instructions, when executed by the at least one processor, cause the electronic device to: An electronic device set to determine an average value of representative slope values of the above plurality of sections as the target slope value.
5. In any one of paragraphs 1 to 4, the instructions, when executed by the at least one processor, cause the electronic device to: An electronic device set to determine a reference horizontal line of the handwriting input based on an average value of vertical coordinate values of the midpoints included in the plurality of lines.
6. In any one of paragraphs 1 to 5, the instructions, when executed by the at least one processor, cause the electronic device to: An electronic device configured to increase horizontal coordinate values of points located above the reference horizontal line among the plurality of points, and to decrease horizontal coordinate values of points located below the reference horizontal line among the plurality of points, when the target slope value is less than an average value of representative slope values of the plurality of sections.
7. In any one of paragraphs 1 to 6, the instructions, when executed by the at least one processor, cause the electronic device to: An electronic device configured to decrease horizontal coordinate values of points located above the reference horizontal line among the plurality of points, and increase horizontal coordinate values of points located below the reference horizontal line among the plurality of points, when the target slope value is greater than the average value of representative slope values of the plurality of sections.
8. In any one of paragraphs 1 to 7, the instructions, when executed by the at least one processor, cause the electronic device to: An electronic device configured to increase horizontal coordinate values of points located above the reference horizontal line among the plurality of points, and to decrease horizontal coordinate values of points located below the reference horizontal line among the plurality of points, when the target slope value is less than an average value of the first slope values.
9. In any one of paragraphs 1 to 8, the instructions, when executed by the at least one processor, cause the electronic device to: An electronic device configured to decrease horizontal coordinate values of points located above the reference horizontal line among the plurality of points, and increase horizontal coordinate values of points located below the reference horizontal line among the plurality of points, when the target slope value is greater than the average value of the first slope values.
10. In any one of claims 1 to 9, the instructions, when executed by the at least one processor, cause the electronic device to: Based on the first slope value of each of the plurality of points and the reference horizontal line, the first point of each of the plurality of points is determined, Based on the first point and the target slope value, a second point is determined for each of the plurality of points having vertical coordinate values identical to the vertical coordinate values of each of the plurality of points, An electronic device set to change each of the above plurality of points into the second point.
11. In any one of paragraphs 1 to 10, the instructions, when executed by the at least one processor, cause the electronic device to: Check the letters or words included in the above handwriting input, An electronic device configured to adjust the spacing between said letters or words based on the height of said letters or words.
12. In any one of paragraphs 1 to 11, The above plurality of first inflection points are points whose vertical coordinate values are greater than those of the points adjacent to each other on both sides among the plurality of points included in the handwriting input. An electronic device in which the plurality of second inflection points are points smaller than the vertical coordinate values of points adjacent to each other on both sides among the plurality of points included in the handwriting input.
13. In any one of paragraphs 1 to 12, the instructions, when executed by the at least one processor, cause the electronic device to: Display a menu for changing the inclination of the above handwriting input, An electronic device configured to change the inclination of said handwriting input based on an input to said menu.
14. In any one of paragraphs 1 to 13, the instructions, when executed by the at least one processor, cause the electronic device to: An electronic device configured to change the inclination of said handwriting input based on a drag input for said handwriting input.
15. In the operating method of an electronic device (201), An operation of displaying a handwriting input including a plurality of dots by user input through a display (260) included in the electronic device; An operation of identifying a plurality of first inflection points and a plurality of second inflection points among the plurality of points based on the vertical coordinate values of each of the plurality of points; An operation of checking slope values of a plurality of lines connected to each of the plurality of second inflection points adjacent to each other, each of the plurality of first inflection points; An operation of checking a representative slope value of each of a plurality of sections for the handwriting input based on the above slope values; An operation of determining first slope values of the plurality of points based on the representative slope values of each of the plurality of sections; and An operating method of an electronic device, comprising an operation of changing a slope of the handwriting input by adjusting a horizontal coordinate value of each of the plurality of points based on the first slope values and the target slope value.
Citation Information
Patent Citations
Method and device for normalizing hand-written character, and recording medium recorded with program therefor
JP2000003407A
Method and apparatus for correcting pretreated online handwritten data
KR1020160010998A
Neural network using hybrid synapses
KR1020220021098A
Connector
KR1020220024331A
Apparatus and method for dynamically selecting beamforming codebook and hierarchically generating beamforming codebooks
KR102739993B1
