WO2022127767A1 - Writing display processing method, and electronic device - Google Patents

Writing display processing method, and electronic device Download PDF

Info

Publication number
WO2022127767A1
WO2022127767A1 PCT/CN2021/137739 CN2021137739W WO2022127767A1 WO 2022127767 A1 WO2022127767 A1 WO 2022127767A1 CN 2021137739 W CN2021137739 W CN 2021137739W WO 2022127767 A1 WO2022127767 A1 WO 2022127767A1
Authority
WO
WIPO (PCT)
Prior art keywords
input
target
information
area
display
Prior art date
Application number
PCT/CN2021/137739
Other languages
French (fr)
Chinese (zh)
Inventor
叶金山
Original Assignee
维沃移动通信有限公司
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by 维沃移动通信有限公司 filed Critical 维沃移动通信有限公司
Publication of WO2022127767A1 publication Critical patent/WO2022127767A1/en

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/01Input arrangements or combined input and output arrangements for interaction between user and computer
    • G06F3/048Interaction techniques based on graphical user interfaces [GUI]
    • G06F3/0487Interaction techniques based on graphical user interfaces [GUI] using specific features provided by the input device, e.g. functions controlled by the rotation of a mouse with dual sensing arrangements, or of the nature of the input device, e.g. tap gestures based on pressure sensed by a digitiser
    • G06F3/0488Interaction techniques based on graphical user interfaces [GUI] using specific features provided by the input device, e.g. functions controlled by the rotation of a mouse with dual sensing arrangements, or of the nature of the input device, e.g. tap gestures based on pressure sensed by a digitiser using a touch-screen or digitiser, e.g. input of commands through traced gestures
    • G06F3/04883Interaction techniques based on graphical user interfaces [GUI] using specific features provided by the input device, e.g. functions controlled by the rotation of a mouse with dual sensing arrangements, or of the nature of the input device, e.g. tap gestures based on pressure sensed by a digitiser using a touch-screen or digitiser, e.g. input of commands through traced gestures for inputting data by handwriting, e.g. gesture or text
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/01Input arrangements or combined input and output arrangements for interaction between user and computer
    • G06F3/02Input arrangements using manually operated switches, e.g. using keyboards or dials
    • G06F3/023Arrangements for converting discrete items of information into a coded form, e.g. arrangements for interpreting keyboard generated codes as alphanumeric codes, operand codes or instruction codes
    • G06F3/0233Character input methods
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/01Input arrangements or combined input and output arrangements for interaction between user and computer
    • G06F3/048Interaction techniques based on graphical user interfaces [GUI]
    • G06F3/0487Interaction techniques based on graphical user interfaces [GUI] using specific features provided by the input device, e.g. functions controlled by the rotation of a mouse with dual sensing arrangements, or of the nature of the input device, e.g. tap gestures based on pressure sensed by a digitiser
    • G06F3/0488Interaction techniques based on graphical user interfaces [GUI] using specific features provided by the input device, e.g. functions controlled by the rotation of a mouse with dual sensing arrangements, or of the nature of the input device, e.g. tap gestures based on pressure sensed by a digitiser using a touch-screen or digitiser, e.g. input of commands through traced gestures
    • G06F3/04886Interaction techniques based on graphical user interfaces [GUI] using specific features provided by the input device, e.g. functions controlled by the rotation of a mouse with dual sensing arrangements, or of the nature of the input device, e.g. tap gestures based on pressure sensed by a digitiser using a touch-screen or digitiser, e.g. input of commands through traced gestures by partitioning the display area of the touch-screen or the surface of the digitising tablet into independently controllable areas, e.g. virtual keyboards or menus

Definitions

  • the present application belongs to the field of communication technologies, and in particular relates to a writing display processing method and an electronic device.
  • intelligent terminals As electronic devices such as mobile phones enter the intelligent era, due to the substantial improvement of processor performance and the larger screen size, intelligent terminals have gradually become an indispensable tool for users' daily work, study and entertainment. For example, users can easily write, draw and other creations on the screen.
  • the display screen of the electronic device can only display the writing content mechanically, which cannot meet the user's usage requirements.
  • the purpose of the embodiments of the present application is to provide a writing display processing method and an electronic device, which can solve the problem that the current writing display based on the electronic device cannot meet the needs of users.
  • an embodiment of the present application provides a writing display processing method, including:
  • the second area is an adjacent area of the first area
  • the pen shape is used to indicate the handwriting effect of the movement track of the first input.
  • a writing display processing device including:
  • a first receiving module configured to receive the first input of the user
  • a display module configured to display the movement track of the first input in the first area of the display screen in response to the first input, and display the target image associated with the first input pen type in the second area;
  • the second area is an adjacent area of the first area
  • the pen shape is used to indicate the handwriting effect of the movement track of the first input.
  • an embodiment of the present application further provides an electronic device, including a processor, a memory, and a program or instruction stored on the memory and executable on the processor, the program or instruction being The processor implements the steps of the method as described in the first aspect when executed.
  • an embodiment of the present application further provides a readable storage medium, where a program or an instruction is stored on the readable storage medium, and when the program or instruction is executed by a processor, the method according to the first aspect is implemented. step.
  • an embodiment of the present application provides a chip, the chip includes a processor and a communication interface, the communication interface is coupled to the processor, and the processor is configured to run a program or an instruction, and implement the first aspect the method described.
  • embodiments of the present application further provide a computer program product, the computer program product being stored in a non-volatile storage medium, and the computer program product being configured to be executed by at least one processor to implement the The steps of the method of one aspect.
  • an embodiment of the present application further provides a control device, where the control device is configured to execute the method according to the first aspect.
  • the movement trajectory of the first input can be displayed in the first area of the display screen, and the target associated with the first input pen type can be displayed in the adjacent second area Images, while realizing the display of writing content, increase the sense of reality of writing handwriting, and meet the real and on-the-spot requirements of users for writing on electronic devices.
  • FIG. 1 is a schematic flowchart of a writing display processing method according to an embodiment of the application.
  • Fig. 2 is one of the writing schematic diagrams based on electronic equipment
  • Fig. 3 is the second schematic diagram of writing based on electronic equipment
  • Fig. 4 is the third schematic diagram of writing based on electronic equipment
  • Fig. 5 is the fourth schematic diagram of writing based on electronic equipment
  • FIG. 6 is a structural diagram of a writing display processing device according to an embodiment of the present application.
  • FIG. 7 is a structural diagram of an electronic device according to an embodiment of the application.
  • FIG. 8 is a structural diagram of an electronic device according to another embodiment of the present application.
  • first, second and the like in the description and claims of the present application are used to distinguish similar objects, and are not used to describe a specific order or sequence. It is to be understood that the data so used are interchangeable under appropriate circumstances so that the embodiments of the present application can be practiced in sequences other than those illustrated or described herein, and distinguish between “first”, “second”, etc.
  • the objects are usually of one type, and the number of objects is not limited.
  • the first object may be one or more than one.
  • “and/or” in the description and claims indicates at least one of the connected objects, and the character “/" generally indicates that the associated objects are in an "or” relationship.
  • User equipment may refer to an access terminal, a subscriber unit, a subscriber station, a mobile station, a mobile station, a remote station, a remote terminal, a mobile device, User terminal, terminal, wireless communication device, user agent or user equipment.
  • the terminal may also be a cellular phone, a cordless phone, a Session Initiation Protocol (Session Initiation Protocol, SIP) phone, a Wireless Local Loop (Wireless Local Loop, WLL) station, a Personal Digital Assistant (Personal Digital Assistant, PDA), Communication-enabled handheld devices, computing devices or other processing devices connected to wireless modems, in-vehicle devices, wearable devices.
  • Session Initiation Protocol Session Initiation Protocol, SIP
  • WLL Wireless Local Loop
  • PDA Personal Digital Assistant
  • a writing display processing method includes:
  • Step 101 receiving a first input from a user.
  • the first input is the user's writing input on the electronic device.
  • the electronic device executes this step, receives the first input, and then executes the next step.
  • Step 102 in response to the first input, display the movement track of the first input in the first area of the display screen, and display the target image associated with the first input pen type in the second area;
  • the second area is an adjacent area of the first area
  • the pen shape is used to indicate the handwriting effect of the movement track of the first input.
  • the first area displays the movement trajectory of the first input, which is a display of the user's writing input;
  • the pen type of the first input can indicate the handwriting effect of the movement trajectory of the first input, and the pen type of the first input is displayed in the second area.
  • the associated target image is an image that has a realistic enhancement effect on the handwriting effect, for example, the image includes fine dust or pen dust.
  • the electronic device performs this step, and after receiving the user's first input in step 101, it can respond to the user's writing input, display the movement track of the first input in the first area of the display screen, display the user's writing content, and display the content written by the user. In an area adjacent to the first area, display of a target image associated with the first input pen type is added.
  • the writing display processing method of the embodiment of the present application can display the movement trajectory of the first input in the first area of the display screen for the first input of the user, and, in the adjacent second The target image associated with the first input pen type is displayed in the area, so as to realize the display of the writing content, and at the same time increase the sense of reality of the writing handwriting, so as to satisfy the user's real and on-the-spot requirements for writing on the electronic device.
  • the first input may be implemented as a sliding input on the display screen by the user using a writing tool (such as a stylus), or may be implemented as a sliding input by the user's finger on the display screen, or the like.
  • a writing tool such as a stylus
  • a plurality of pen types are preset, including but not limited to pencil, crayon, chalk, watercolor pen, and the like.
  • the images with the augmented reality effect of handwriting are also set in association, that is, the target images associated with different pen types are preset. Therefore, optionally, before step 101, it also includes:
  • a pen type corresponding to the first input is determined.
  • the second input is a pen type selection input.
  • a pen type selection item 202 is displayed. The user clicks the target pen type item (ie, the second input) through the stylus pen 1 to complete the pen type selection for writing.
  • Type is the pen type corresponding to the first input.
  • step 102 the movement track of the first input is displayed in the first area of the display screen, and the target image associated with the first input pen type is displayed in the second area, include:
  • the pen type corresponding to the first input determine the handwriting effect and target image associated with the pen type
  • the determined target image is displayed.
  • the handwriting effect and the target image associated with the pen type can be further determined, so that on the one hand, in the first area, the first area is displayed according to the determined handwriting effect.
  • the writing interface 301 will display the movement trajectory 302 of the first input and the corresponding target image 303, showing Not only the pencil color effect, but also simulates the fine shavings left after drawing on paper with a realistic pencil.
  • the selected target pen type item is chalk
  • a similar writing interface will display the movement trajectory of the first input and the corresponding target image, which not only displays the color effect of the chalk, but also simulates the actual chalk drawing on the hard board. Chalk dust left behind.
  • the displaying the target image associated with the first input pen type in the second area includes:
  • the content of the target image is adjusted.
  • the content of the target image is adjustable, and the content of the target image can be adjusted and displayed corresponding to the relevant information of the first input, so as to achieve better writing realism.
  • the adjustable content of the target image includes the color depth, size, quantity, etc. of the main body of the image (such as the above-mentioned fine pen scraps and chalk gray).
  • the related information of the first input may be touch pressure, touch area, track length, etc. of the first input. In this way, if the target pen type item selected by the user is a pencil, different writing strengths (ie, the touch pressure of the first input) will cause the fine shavings in the corresponding target image to appear differently, such as different numbers or different sizes of shavings, etc.
  • the color of the fine pen scraps in the corresponding target image will gradually become lighter and smaller.
  • the color depth of the pen shavings is the first color depth, and/or the size of the pen shavings is the first size; the length of the movement track is greater than the first threshold
  • the color depth of the pen shavings is the second color depth, and/or the size of the pen shavings is the second size.
  • the first color depth is greater than the second color depth, and the first size is greater than the second size.
  • step 102 it further includes:
  • the movement track and/or the target image of the first input displayed on the display screen is cleared.
  • the third input is a clear trigger input of the writing display, which can trigger the clearing of at least one of the movement track of the first input and the target image.
  • the electronic device receives the third input and, in response to the third input, clears the movement track and/or the target image of the first input displayed on the display screen.
  • clearing the movement track and/or the target image of the first input displayed on the display screen includes:
  • the movement track and/or the target image of the first input displayed on the display screen are cleared.
  • the third input target information is the input feature information, and only when the third input feature satisfies a corresponding preset condition can the clearing of the first input movement track and/or target image be triggered.
  • the third input in order to simulate the operation feeling of real paper or cardboard tilting, shaking and dumping pen scraps and powder, can be configured to shake the electronic device, tilt the electronic device, and blow at the position of the microphone of the electronic device. at least one of methods such as gas, tapping on the display screen a preset number of times, etc. By further judging the third input target information and the preset condition, misoperation can be avoided.
  • the target information is information detected by a target sensor, and the target information includes at least one of acceleration information, sound information, or pressing information.
  • the target sensor is a sensor installed on the electronic device, and the target information of the third input is detected by the target sensor, so as to perform a trigger judgment of clearing.
  • the corresponding preset condition is that the electronic device is in a target motion state.
  • the target sensor for detecting the acceleration information may be an acceleration sensor, specifically a gravitational acceleration sensor G-Sensor, a gyroscope, and the like.
  • the target sensor detects the acceleration information, it can further determine whether the electronic device is in the target motion state, so that in combination with the corresponding preset conditions, in the current electronic device
  • the movement trajectory and/or the target image of the first input displayed on the display screen are cleared to simulate the operation feeling of real paper or cardboard tilting, shaking and dumping pen shavings and powder.
  • the target motion state is preset
  • the input characteristics corresponding to the desired trigger clearing may include but are not limited to: shaking greater than a predetermined speed or a predetermined number of times within a preset time period; tilting from a first angle to a second angle, The difference between the first angle and the second angle is greater than a preset angle value or the like.
  • the user tilts the electronic device or shakes the electronic device to make the acceleration sensor detect the acceleration information, and the electronic device can clear the first input movement after judging from the acceleration information that the electronic device is in the target motion state Trajectory and/or target image.
  • the corresponding preset condition is that the sound frequency belongs to a preset frequency range.
  • the target sensor for detecting sound information may be a sound sensor on an electronic device, specifically a microphone.
  • the microphone detects the sound information, it can further determine whether the sound frequency belongs to the preset frequency range, so that in combination with the corresponding preset conditions, the current sound frequency belongs to the preset frequency range.
  • the frequency range clear the movement trajectory and/or target image of the first input displayed on the display screen, and simulate the operation feeling of using air blowing for pen scraps and powder on real paper or cardboard.
  • blowing air into the microphone enables the microphone to detect the low-frequency sound signal generated by the external airflow, and the electronic device determines that the sound frequency belongs to the preset frequency range (such as A Hz to B Hz) from the sound signal. After a frequency range, the movement track and/or target image of the first input can be cleared.
  • the preset frequency range such as A Hz to B Hz
  • the corresponding preset condition is that the number of pressings falls within the first value range, and/or the pressing force falls within the second value range.
  • the target sensor for detecting the pressing information may be a pressure sensor under the display screen of the electronic device.
  • the pressure sensor can further determine whether the number of pressings belongs to the first value range, and/or whether the pressing force belongs to the second value range, so as to combine Corresponding preset conditions, when the current number of pressings falls within the first value range and/or the pressing force falls within the second value range, clear the movement track and/or target image of the first input displayed on the display screen, simulating real paper Or the operation feeling of pen scraps and powder on the cardboard treated by tapping.
  • the pressure sensor under the screen can detect the pressing information.
  • the electronic device determines from the pressing information that the number of pressings and/or the pressing force meets the preset conditions, the first input can be cleared. Movement track and/or target image.
  • the user can first trigger the saving of the writing content, for example, click the completion item of the writing interface, and then perform the clearing operation of the target image, and finally get the remaining The movement trajectory of the first input.
  • the clearing the movement track and/or the target image of the first input displayed on the display screen includes:
  • a target mode is selected from a plurality of clearing modes
  • the movement track and/or the target image of the first input are cleared.
  • the clearing mode is a preset clearing effect, for example, fast clearing, gradual clearing, wherein the gradual clearing is further divided into gradually reducing the color of the handwriting in the moving track and/or the target image, or gradually reducing the moving track and/or the target Clear mode such as the number of screen subjects in the image.
  • the target mode applicable to the current scene can be determined. For example, by selecting a clearing mode based on the detected acceleration information, different clearing modes can be selected according to the magnitude of the acceleration. For example, the greater the acceleration, the more pen shavings and powder disappear, the faster.
  • the clearing mode is selected in combination with the detected pressing information, and different clearing modes can be selected according to the pressing force and/or the number of pressings.
  • the target sensor can also be other devices, such as an infrared sensor, which can be implemented through distance information and corresponding preset conditions set. an enumeration.
  • the movement trajectory of the first input can be displayed in the first area of the display screen, and the first input pen can be displayed in the adjacent second area.
  • Type-related target images while realizing the display of writing content, increase the sense of reality of writing handwriting, and meet the real and on-the-spot requirements of users for writing on electronic devices.
  • the execution body may be a writing display processing device, or a control module in the writing display processing device for executing the writing display processing method.
  • the writing and display processing device provided by the embodiment of the present application is described by taking the writing and display processing device executing the writing and displaying processing method as an example.
  • FIG. 6 is a block diagram of a writing display processing apparatus according to an embodiment of the present application.
  • the writing display processing device includes:
  • a first receiving module 610 configured to receive the first input of the user
  • a display module 620 configured to, in response to the first input, display the movement track of the first input in the first area of the display screen, and display the target image associated with the first input pen type in the second area;
  • the second area is an adjacent area of the first area
  • the pen shape is used to indicate the handwriting effect of the movement track of the first input.
  • the device can display the movement track of the first input in the first area of the display screen according to the first input of the user, and display the target image associated with the first input pen type in the adjacent second area, so as to realize the display of the writing content At the same time, it increases the sense of reality of writing handwriting, and meets the real and on-the-spot requirements of users for writing on electronic devices.
  • the first input may be implemented as a sliding input on the display screen by the user using a writing tool (such as a stylus), or may be implemented as a sliding input by the user's finger on the display screen.
  • a writing tool such as a stylus
  • a plurality of pen types are preset, including but not limited to pencil, crayon, chalk, watercolor pen, and the like.
  • an associated setting is also performed for the images with a reality enhancement effect for handwriting, that is, target images associated with different pen types are preset.
  • the device further includes:
  • a second receiving module configured to receive the second input of the user
  • a first determining module configured to determine a pen type corresponding to the first input in response to the second input
  • the display module includes:
  • a first display submodule configured to display the movement track of the first input in the first area according to the determined handwriting effect
  • the second display sub-module is configured to display the determined target image in the second area.
  • the handwriting effect and the target image associated with the pen type can be further determined, so that on the one hand, in the first area, the first area is displayed according to the determined handwriting effect.
  • the determined target image is displayed to enhance the realistic feeling of handwriting after writing by the pen type selected by the user.
  • the device further includes:
  • the third receiving module is used for receiving the third input of the user
  • a processing module configured to, in response to the third input, clear the movement track and/or the target image of the first input displayed on the display screen.
  • processing module is also used for:
  • the movement track and/or the target image of the first input displayed on the display screen are cleared.
  • the target information is information detected by a target sensor, and the target information includes at least one of acceleration information, sound information, or pressing information.
  • the corresponding preset condition is that the electronic device is in a target motion state.
  • the corresponding preset condition is that the sound frequency belongs to a preset frequency range.
  • the corresponding preset condition is that the number of pressing times falls within the first value range, and/or the pressing force falls within the second value range.
  • the processing module includes:
  • a first processing submodule for selecting a target mode from a plurality of clearing modes according to the target information
  • the second processing sub-module is configured to clear the movement track and/or the target image of the first input according to the target mode.
  • the second display submodule is also used for:
  • the content of the target image is adjusted.
  • the device is a device to which the above method is applied, and the implementation manner of the above method embodiment is applicable to the device and can achieve the same technical effect, which is not repeated here.
  • the writing and display processing device in the embodiments of the present application may be a device, or may be a component, an integrated circuit, or a chip in an electronic device.
  • the apparatus may be a mobile electronic device or a non-mobile electronic device.
  • the mobile electronic device may be a mobile phone, a tablet computer, a notebook computer, a palmtop computer, an in-vehicle electronic device, a wearable device, an ultra-mobile personal computer (UMPC), a netbook, or a personal digital assistant (personal digital assistant).
  • UMPC ultra-mobile personal computer
  • netbook or a personal digital assistant
  • non-mobile electronic devices can be servers, network attached storage (Network Attached Storage, NAS), personal computer (personal computer, PC), television (television, TV), teller machine or self-service machine, etc., this application Examples are not specifically limited.
  • Network Attached Storage NAS
  • personal computer personal computer, PC
  • television television
  • teller machine or self-service machine etc.
  • the writing display processing device in the embodiment of the present application may be a device having an operating system.
  • the operating system may be an Android (Android) operating system, an ios operating system, or other possible operating systems, which are not specifically limited in the embodiments of the present application.
  • the writing display processing apparatus provided in the embodiment of the present application can implement each process implemented in the method embodiments of FIG. 1 to FIG. 5 , and to avoid repetition, details are not repeated here.
  • an embodiment of the present application further provides an electronic device 700, including a processor 701, a memory 702, a program or instruction stored in the memory 702 and executable on the processor 701,
  • an electronic device 700 including a processor 701, a memory 702, a program or instruction stored in the memory 702 and executable on the processor 701,
  • the program or instruction is executed by the processor 701
  • each process of the above-mentioned embodiment of the writing and display processing method can be achieved, and the same technical effect can be achieved. To avoid repetition, details are not described here.
  • the electronic devices in the embodiments of the present application include the above-mentioned mobile electronic devices and non-mobile electronic devices.
  • FIG. 8 is a schematic diagram of a hardware structure of an electronic device implementing various embodiments of the present application.
  • the electronic device 800 includes but is not limited to: a radio frequency unit 801, a network module 802, an audio output unit 803, an input unit 804, a sensor 805, a display unit 806, a user input unit 807, an interface unit 808, a memory 808, and a processor 810, etc. part.
  • the electronic device 800 may also include a power supply (such as a battery) for supplying power to various components, and the power supply may be logically connected to the processor 810 through a power management system, so that the power management system can manage charging, discharging, and power management. consumption management and other functions.
  • a power supply such as a battery
  • the structure of the electronic device shown in FIG. 8 does not constitute a limitation on the electronic device.
  • the electronic device may include more or less components than the one shown, or combine some components, or arrange different components, which will not be repeated here. .
  • the input unit 804 is used for receiving the first input of the user
  • a display unit 806, configured to, in response to the first input, display the movement track of the first input in the first area of the display screen, and display the target image associated with the first input pen type in the second area;
  • the second area is an adjacent area of the first area
  • the pen shape is used to indicate the handwriting effect of the movement track of the first input.
  • the electronic device can display the movement trajectory of the first input in the first area of the display screen for the user's first input, and display the target image associated with the first input pen type in the adjacent second area, so as to achieve While displaying the writing content, it increases the sense of reality of the handwriting, and meets the user's real and on-the-spot requirements for writing on electronic devices.
  • the input unit 804 may include a graphics processor (Graphics Processing Unit, GPU) 8041 and a microphone 8042. Such as camera) to obtain still pictures or video image data for processing.
  • the display unit 806 may include a display panel 8061, which may be configured in the form of a liquid crystal display, an organic light emitting diode, or the like.
  • the user input unit 807 includes a touch panel 8071 and other input devices 8072 .
  • the touch panel 8071 is also called a touch screen.
  • the touch panel 8071 may include two parts, a touch detection device and a touch controller.
  • Other input devices 8072 may include, but are not limited to, physical keyboards, function keys (such as volume control keys, switch keys, etc.), trackballs, mice, and joysticks, which will not be repeated here.
  • Memory 808 may be used to store software programs as well as various data including, but not limited to, application programs and operating systems.
  • the processor 810 may integrate an application processor and a modem processor, wherein the application processor mainly handles the operating system, user interface, and application programs, and the like, and the modem processor mainly handles wireless communication. It can be understood that, the above-mentioned modulation and demodulation processor may not be integrated into the processor 810.
  • the embodiments of the present application further provide a readable storage medium, where a program or an instruction is stored on the readable storage medium.
  • a program or an instruction is stored on the readable storage medium.
  • the processor is the processor in the electronic device described in the foregoing embodiments.
  • the readable storage medium includes a computer-readable storage medium, such as a read-only memory (Read-Only Memory, ROM for short), a random access memory (Random Access Memory, RAM for short), a magnetic disk or an optical disk, and the like.
  • An embodiment of the present application further provides a chip, where the chip includes a processor and a communication interface, the communication interface is coupled to the processor, and the processor is used for running a program or an instruction to implement the above embodiment of the writing display processing method and can achieve the same technical effect, in order to avoid repetition, it will not be repeated here.
  • the chip mentioned in the embodiments of the present application may also be referred to as a system-on-chip, a system-on-chip, a system-on-a-chip, or a system-on-a-chip, or the like.
  • Embodiments of the present application further provide a computer program product, the computer program product being stored in a non-volatile storage medium, and the computer program product being configured to be executed by at least one processor to implement the method described above
  • the computer program product being stored in a non-volatile storage medium
  • the computer program product being configured to be executed by at least one processor to implement the method described above
  • Embodiments of the present application further provide a control apparatus, which is configured to execute each process of the method embodiments described above, and can achieve the same technical effect, which is not repeated here to avoid repetition.

Abstract

Disclosed are a writing display processing method, and an electronic device, which relate to the technical field of communications. The method comprises: receiving a first input of a user; and in response to the first input, displaying a movement trajectory of the first input in a first area of a display screen, and displaying, in a second area, a target image associated with a stroke type of the first input, wherein the second area is an adjacent area of the first area, and the stroke type is used for indicating a handwriting effect of the movement trajectory of the first input.

Description

一种书写显示处理方法和电子设备A writing display processing method and electronic device
相关申请的交叉引用CROSS-REFERENCE TO RELATED APPLICATIONS
本申请主张在2020年12月18日在中国提交的中国专利申请No.202011503175.6的优先权,其全部内容通过引用包含于此。This application claims priority to Chinese Patent Application No. 202011503175.6 filed in China on Dec. 18, 2020, the entire contents of which are incorporated herein by reference.
技术领域technical field
本申请属于通信技术领域,具体涉及一种书写显示处理方法和电子设备。The present application belongs to the field of communication technologies, and in particular relates to a writing display processing method and an electronic device.
背景技术Background technique
随着手机等电子设备进入智能时代,由于处理器性能的大幅提升,屏幕尺寸也越来越大,智能终端已经逐渐成为用户日常办公或学习、娱乐不可或缺的工具。例如,用户可以便捷在屏幕上进行写字、绘图等创作。As electronic devices such as mobile phones enter the intelligent era, due to the substantial improvement of processor performance and the larger screen size, intelligent terminals have gradually become an indispensable tool for users' daily work, study and entertainment. For example, users can easily write, draw and other creations on the screen.
然而,在实现本申请过程中,发明人发现现有技术中至少存在如下问题:However, in the process of realizing this application, the inventor found that there are at least the following problems in the prior art:
在通过电子设备进行书写时,电子设备的显示屏仅能够机械地显示书写内容,无法满足用户的使用需求。When writing through an electronic device, the display screen of the electronic device can only display the writing content mechanically, which cannot meet the user's usage requirements.
发明内容SUMMARY OF THE INVENTION
本申请实施例的目的是提供一种书写显示处理方法和电子设备,能够解决目前基于电子设备的书写显示无法满足用户需求的问题。The purpose of the embodiments of the present application is to provide a writing display processing method and an electronic device, which can solve the problem that the current writing display based on the electronic device cannot meet the needs of users.
为了解决上述技术问题,本申请是这样实现的:In order to solve the above technical problems, this application is implemented as follows:
第一方面,本申请的实施例提供了一种书写显示处理方法,包括:In a first aspect, an embodiment of the present application provides a writing display processing method, including:
接收用户的第一输入;receiving the first input from the user;
响应于所述第一输入,在显示屏的第一区域显示所述第一输入的移动轨迹,在第二区域显示与所述第一输入笔型关联的目标图像;In response to the first input, displaying the movement track of the first input in the first area of the display screen, and displaying the target image associated with the first input pen type in the second area;
其中,所述第二区域为所述第一区域的相邻区域;Wherein, the second area is an adjacent area of the first area;
所述笔型用于指示所述第一输入的移动轨迹的笔迹效果。The pen shape is used to indicate the handwriting effect of the movement track of the first input.
第二方面,本申请的实施例提供了一种书写显示处理装置,包括:In a second aspect, embodiments of the present application provide a writing display processing device, including:
第一接收模块,用于接收用户的第一输入;a first receiving module, configured to receive the first input of the user;
显示模块,用于响应于所述第一输入,在显示屏的第一区域显示所述第一输入的移动轨迹,在第二区域显示与所述第一输入笔型关联的目标图像;a display module, configured to display the movement track of the first input in the first area of the display screen in response to the first input, and display the target image associated with the first input pen type in the second area;
其中,所述第二区域为所述第一区域的相邻区域;Wherein, the second area is an adjacent area of the first area;
所述笔型用于指示所述第一输入的移动轨迹的笔迹效果。The pen shape is used to indicate the handwriting effect of the movement track of the first input.
第三方面,本申请实施例还提供了一种电子设备,包括处理器、存储器及存储在所述存储器上并可在所述处理器上运行的程序或指令,所述程序或指令被所述处理器执行时实现如第一方面所述的方法的步骤。In a third aspect, an embodiment of the present application further provides an electronic device, including a processor, a memory, and a program or instruction stored on the memory and executable on the processor, the program or instruction being The processor implements the steps of the method as described in the first aspect when executed.
第四方面,本申请实施例还提供了一种可读存储介质,所述可读存储介质上存储程序或指令,所述程序或指令被处理器执行时实现如第一方面所述的方法的步骤。In a fourth aspect, an embodiment of the present application further provides a readable storage medium, where a program or an instruction is stored on the readable storage medium, and when the program or instruction is executed by a processor, the method according to the first aspect is implemented. step.
第五方面,本申请实施例提供了一种芯片,所述芯片包括处理器和通信接口,所述通信接口和所述处理器耦合,所述处理器用于运行程序或指令,实现如第一方面所述的方法。In a fifth aspect, an embodiment of the present application provides a chip, the chip includes a processor and a communication interface, the communication interface is coupled to the processor, and the processor is configured to run a program or an instruction, and implement the first aspect the method described.
第六方面,本申请实施例还提供一种计算机程序产品,所述计算机程序产品被存储在非易失的存储介质中,所述计算机程序产品被配置成被至少一个处理器执行以实现如第一方面所述的方法的步骤。In a sixth aspect, embodiments of the present application further provide a computer program product, the computer program product being stored in a non-volatile storage medium, and the computer program product being configured to be executed by at least one processor to implement the The steps of the method of one aspect.
第七方面,本申请实施例还提供一种控制装置,所述控制装置被配置成用于执行如第一方面所述的方法。In a seventh aspect, an embodiment of the present application further provides a control device, where the control device is configured to execute the method according to the first aspect.
这样,本申请实施例中,能够针对用户的第一输入,在显示屏的第一区域显示第一输入的移动轨迹,以及,在相邻的第二区域显示与第一输入笔型关联的目标图像,实现书写内容展示的同时,增加书写笔迹的现实感,满足用户对电子设备书写的真实、临场要求。In this way, in the embodiment of the present application, for the user's first input, the movement trajectory of the first input can be displayed in the first area of the display screen, and the target associated with the first input pen type can be displayed in the adjacent second area Images, while realizing the display of writing content, increase the sense of reality of writing handwriting, and meet the real and on-the-spot requirements of users for writing on electronic devices.
附图说明Description of drawings
图1为本申请实施例的书写显示处理方法的流程示意图;1 is a schematic flowchart of a writing display processing method according to an embodiment of the application;
图2为基于电子设备的书写示意图之一;Fig. 2 is one of the writing schematic diagrams based on electronic equipment;
图3为基于电子设备的书写示意图之二;Fig. 3 is the second schematic diagram of writing based on electronic equipment;
图4为基于电子设备的书写示意图之三;Fig. 4 is the third schematic diagram of writing based on electronic equipment;
图5为基于电子设备的书写示意图之四;Fig. 5 is the fourth schematic diagram of writing based on electronic equipment;
图6为本申请实施例的书写显示处理装置的结构图;6 is a structural diagram of a writing display processing device according to an embodiment of the present application;
图7为本申请实施例的电子设备的结构图;7 is a structural diagram of an electronic device according to an embodiment of the application;
图8为本申请另一实施例的电子设备的结构图。FIG. 8 is a structural diagram of an electronic device according to another embodiment of the present application.
具体实施方式Detailed ways
下面将结合本申请实施例中的附图,对本申请实施例中的技术方案进行清楚、完整地描述,显然,所描述的实施例是本申请一部分实施例,而不是全部的实施例。基于本申请中的实施例,本领域普通技术人员在没有作出创造性劳动前提下所获得的所有其他实施例,都属于本申请保护的范围。The technical solutions in the embodiments of the present application will be clearly and completely described below with reference to the accompanying drawings in the embodiments of the present application. Obviously, the described embodiments are part of the embodiments of the present application, not all of the embodiments. Based on the embodiments in the present application, all other embodiments obtained by those of ordinary skill in the art without creative work fall within the protection scope of the present application.
本申请的说明书和权利要求书中的术语“第一”、“第二”等是用于区别类似的对象,而不用于描述特定的顺序或先后次序。应该理解这样使用的数据在适当情况下可以互换,以便本申请的实施例能够以除了在这里图示或描述的那些以外的顺序实施,且“第一”、“第二”等所区分的对象通常为一类,并不限定对象的个数,例如第一对象可以是一个,也可以是多个。此外,说明书以及权利要求中“和/或”表示所连接对象的至少其中之一,字符“/”,一般表示前后关联对象是一种“或”的关系。The terms "first", "second" and the like in the description and claims of the present application are used to distinguish similar objects, and are not used to describe a specific order or sequence. It is to be understood that the data so used are interchangeable under appropriate circumstances so that the embodiments of the present application can be practiced in sequences other than those illustrated or described herein, and distinguish between "first", "second", etc. The objects are usually of one type, and the number of objects is not limited. For example, the first object may be one or more than one. In addition, "and/or" in the description and claims indicates at least one of the connected objects, and the character "/" generally indicates that the associated objects are in an "or" relationship.
下面结合附图,通过具体的实施例及其应用场景对本申请实施例提供的一种书写显示处理方法进行详细地说明。The writing display processing method provided by the embodiments of the present application will be described in detail below through specific embodiments and application scenarios with reference to the accompanying drawings.
本申请实施例的方法应用于电子设备,如用户设备,用户设备(user equipment,UE)可以指接入终端、用户单元、用户站、移动站、移动台、远方站、远程终端、移动设备、用户终端、终端、无线通信设备、用户代理或用户装置。其中,终端还可以是蜂窝电话、无绳电话、会话启动协议(Session Initiation Protocol,SIP)电话、无线本地环路(Wireless Local Loop,WLL)站、个人数字助理(Personal Digital Assistant,PDA)、具有无线通信功能的手持设备、计算设备或连接到无线调制解调器的其它处理设备、车载设备、可穿戴 设备。The methods in the embodiments of the present application are applied to electronic equipment, such as user equipment. User equipment (UE) may refer to an access terminal, a subscriber unit, a subscriber station, a mobile station, a mobile station, a remote station, a remote terminal, a mobile device, User terminal, terminal, wireless communication device, user agent or user equipment. Wherein, the terminal may also be a cellular phone, a cordless phone, a Session Initiation Protocol (Session Initiation Protocol, SIP) phone, a Wireless Local Loop (Wireless Local Loop, WLL) station, a Personal Digital Assistant (Personal Digital Assistant, PDA), Communication-enabled handheld devices, computing devices or other processing devices connected to wireless modems, in-vehicle devices, wearable devices.
如图1所示,本申请实施例的一种书写显示处理方法,包括:As shown in FIG. 1 , a writing display processing method according to an embodiment of the present application includes:
步骤101,接收用户的第一输入。 Step 101, receiving a first input from a user.
这里,第一输入为用户在电子设备上的书写输入。电子设备执行本步骤,接收该第一输入,即可执行下一步骤。Here, the first input is the user's writing input on the electronic device. The electronic device executes this step, receives the first input, and then executes the next step.
步骤102,响应于所述第一输入,在显示屏的第一区域显示所述第一输入的移动轨迹,在第二区域显示与所述第一输入笔型关联的目标图像; Step 102, in response to the first input, display the movement track of the first input in the first area of the display screen, and display the target image associated with the first input pen type in the second area;
其中,所述第二区域为所述第一区域的相邻区域;Wherein, the second area is an adjacent area of the first area;
所述笔型用于指示所述第一输入的移动轨迹的笔迹效果。The pen shape is used to indicate the handwriting effect of the movement track of the first input.
这里,第一区域显示第一输入的移动轨迹,是对用户书写输入的显示;第一输入的笔型能够指示第一输入的移动轨迹的笔迹效果,在第二区域显示与第一输入笔型关联的目标图像,即是对笔迹效果具有现实增强效果的图像,例如图像包括细屑或笔灰等。Here, the first area displays the movement trajectory of the first input, which is a display of the user's writing input; the pen type of the first input can indicate the handwriting effect of the movement trajectory of the first input, and the pen type of the first input is displayed in the second area. The associated target image is an image that has a realistic enhancement effect on the handwriting effect, for example, the image includes fine dust or pen dust.
电子设备执行本步骤,在经步骤101接收到用户的第一输入后,能够响应于用户的书写输入,在显示屏的第一区域显示该第一输入的移动轨迹,展示用户书写内容,并在与该第一区域相邻区域中,添加与第一输入笔型关联的目标图像的显示。The electronic device performs this step, and after receiving the user's first input in step 101, it can respond to the user's writing input, display the movement track of the first input in the first area of the display screen, display the user's writing content, and display the content written by the user. In an area adjacent to the first area, display of a target image associated with the first input pen type is added.
如此,通过步骤101和步骤102,本申请实施例的书写显示处理方法,能够针对用户的第一输入,在显示屏的第一区域显示第一输入的移动轨迹,以及,在相邻的第二区域显示与第一输入笔型关联的目标图像,实现书写内容展示的同时,增加书写笔迹的现实感,满足用户对电子设备书写的真实、临场要求。In this way, through steps 101 and 102, the writing display processing method of the embodiment of the present application can display the movement trajectory of the first input in the first area of the display screen for the first input of the user, and, in the adjacent second The target image associated with the first input pen type is displayed in the area, so as to realize the display of the writing content, and at the same time increase the sense of reality of the writing handwriting, so as to satisfy the user's real and on-the-spot requirements for writing on the electronic device.
其中,第一输入可实现为用户使用书写工具(如手写笔)在显示屏上的滑动输入,也可实现为用户手指在显示屏上的滑动输入等。The first input may be implemented as a sliding input on the display screen by the user using a writing tool (such as a stylus), or may be implemented as a sliding input by the user's finger on the display screen, or the like.
在该实施例中,为满足用户对手写笔迹效果的不同需求,预先设置有多个笔型,包括但不限于铅笔、蜡笔、粉笔、水彩笔等。当然,对应于不同的笔型,对笔迹具有现实增强效果的图像也进行了关联设置,即预先设置了不 同笔型关联的目标图像。因此,可选地,步骤101之前,还包括:In this embodiment, in order to meet the different requirements of the user for the effect of handwriting, a plurality of pen types are preset, including but not limited to pencil, crayon, chalk, watercolor pen, and the like. Of course, corresponding to different pen types, the images with the augmented reality effect of handwriting are also set in association, that is, the target images associated with different pen types are preset. Therefore, optionally, before step 101, it also includes:
接收用户的第二输入;receiving a second input from the user;
响应于所述第二输入,确定所述第一输入对应的笔型。In response to the second input, a pen type corresponding to the first input is determined.
这里,第二输入为笔型选择输入。例如,在如图2所示的手写界面201中,显示有笔型选择项202,用户通过手写笔1点击目标笔型项(即第二输入),完成书写的笔型选择,所选的笔型即第一输入对应的笔型。Here, the second input is a pen type selection input. For example, in the handwriting interface 201 shown in FIG. 2, a pen type selection item 202 is displayed. The user clicks the target pen type item (ie, the second input) through the stylus pen 1 to complete the pen type selection for writing. Type is the pen type corresponding to the first input.
对应于由第二输入确定的笔型,步骤102中,在显示屏的第一区域显示所述第一输入的移动轨迹,在第二区域显示与所述第一输入笔型关联的目标图像,包括:Corresponding to the pen type determined by the second input, in step 102, the movement track of the first input is displayed in the first area of the display screen, and the target image associated with the first input pen type is displayed in the second area, include:
根据所述第一输入对应的笔型,确定与所述笔型关联的笔迹效果和目标图像;According to the pen type corresponding to the first input, determine the handwriting effect and target image associated with the pen type;
在所述第一区域内,按照确定的笔迹效果显示所述第一输入的移动轨迹;In the first area, display the movement track of the first input according to the determined handwriting effect;
在所述第二区域内,显示确定的目标图像。In the second area, the determined target image is displayed.
如此,在经第二输入确定第一输入对应的笔型后,就能够进一步确定与笔型关联的笔迹效果和目标图像,从而一方面,在第一区域内,按照确定的笔迹效果显示该第一输入的移动轨迹,以展示用户所选笔型的笔迹效果;另一方面,在第二区域内,显示确定的目标图像,加强用户所选笔型书写后笔迹的现实感。In this way, after the pen type corresponding to the first input is determined through the second input, the handwriting effect and the target image associated with the pen type can be further determined, so that on the one hand, in the first area, the first area is displayed according to the determined handwriting effect. An input movement trajectory to show the handwriting effect of the pen type selected by the user; on the other hand, in the second area, a determined target image is displayed to enhance the realistic feeling of the handwriting after the pen type selected by the user.
例如,若所选目标笔型项为铅笔,如图3所示,对应于用户通过手写笔1的第一输入,书写界面301将显示第一输入的移动轨迹302以及对应的目标图像303,展示的不仅是铅笔色彩效果,而且还会模拟产生出现实铅笔在纸张上绘图后留下的细笔屑。当然,若所选目标笔型项为粉笔,类似的书写界面显示第一输入的移动轨迹以及对应的目标图像,展示的不仅是粉笔色彩效果,而且还会模拟显示出现实粉笔在硬板上绘图后留下的粉笔灰。For example, if the selected target pen type item is a pencil, as shown in FIG. 3, corresponding to the first input by the user through the stylus 1, the writing interface 301 will display the movement trajectory 302 of the first input and the corresponding target image 303, showing Not only the pencil color effect, but also simulates the fine shavings left after drawing on paper with a realistic pencil. Of course, if the selected target pen type item is chalk, a similar writing interface will display the movement trajectory of the first input and the corresponding target image, which not only displays the color effect of the chalk, but also simulates the actual chalk drawing on the hard board. Chalk dust left behind.
可选地,该实施例中,所述在第二区域显示与所述第一输入笔型关联的目标图像,包括:Optionally, in this embodiment, the displaying the target image associated with the first input pen type in the second area includes:
根据所述第一输入的相关信息,调整所述目标图像的内容。According to the relevant information of the first input, the content of the target image is adjusted.
这里,目标图像的内容是可调的,能够对应于该第一输入的相关信息,调整该目标图像的内容进行显示,从而实现更佳地书写真实感。其中,目标图像的可调内容包含画面主体(如上述的细笔屑、粉笔灰)的颜色深浅、大小、数量等。第一输入的相关信息可以是该第一输入的触控压力、触控面积、轨迹长度等。如此,若用户所选目标笔型项为铅笔时,不同的书写力度(即第一输入的触控压力)会使得对应的目标图像中细笔屑呈现不同,如数量不同或者笔屑大小不同等,另外,随着移动轨迹长度的不断增加,对应目标图像中细笔屑颜色会逐渐变浅、变小等。例如,当显示笔屑后,移动轨迹长度小于或等于第一阈值时,笔屑的颜色深度为第一颜色深度,和/或,笔屑的大小为第一尺寸;移动轨迹长度大于第一阈值小于或等于第二阈值时,笔屑的颜色深度为第二颜色深度,和/或,笔屑的大小为第二尺寸。其中,第一颜色深度大于第二颜色深度,第一尺寸大于第二尺寸。Here, the content of the target image is adjustable, and the content of the target image can be adjusted and displayed corresponding to the relevant information of the first input, so as to achieve better writing realism. Wherein, the adjustable content of the target image includes the color depth, size, quantity, etc. of the main body of the image (such as the above-mentioned fine pen scraps and chalk gray). The related information of the first input may be touch pressure, touch area, track length, etc. of the first input. In this way, if the target pen type item selected by the user is a pencil, different writing strengths (ie, the touch pressure of the first input) will cause the fine shavings in the corresponding target image to appear differently, such as different numbers or different sizes of shavings, etc. , In addition, with the continuous increase of the moving track length, the color of the fine pen scraps in the corresponding target image will gradually become lighter and smaller. For example, when the pen shavings are displayed and the length of the movement track is less than or equal to the first threshold, the color depth of the pen shavings is the first color depth, and/or the size of the pen shavings is the first size; the length of the movement track is greater than the first threshold When less than or equal to the second threshold, the color depth of the pen shavings is the second color depth, and/or the size of the pen shavings is the second size. Wherein, the first color depth is greater than the second color depth, and the first size is greater than the second size.
一般而言,在完成书写后,书写过程所产生的粉末或细屑已无需保留,当然,书写的内容也可能因出现错误或不满意等需要清除。所以,该实施例中,可选地,步骤102之后,还包括:Generally speaking, after the writing is completed, the powder or fines generated during the writing process do not need to be retained. Of course, the written content may also need to be removed due to errors or dissatisfaction. Therefore, in this embodiment, optionally, after step 102, it further includes:
接收用户的第三输入;receive a third input from the user;
响应于所述第三输入,清除所述显示屏上显示的所述第一输入的移动轨迹和/或目标图像。In response to the third input, the movement track and/or the target image of the first input displayed on the display screen is cleared.
这里,第三输入为书写显示的清除触发输入,可触发对第一输入的移动轨迹和目标图像中至少一项的清除。电子设备接收到该第三输入,则响应于该第三输入,对显示屏上显示的第一输入的移动轨迹和/或目标图像进行清除。Here, the third input is a clear trigger input of the writing display, which can trigger the clearing of at least one of the movement track of the first input and the target image. The electronic device receives the third input and, in response to the third input, clears the movement track and/or the target image of the first input displayed on the display screen.
可选地,该实施例中,所述响应于所述第三输入,清除所述显示屏上显示的所述第一输入的移动轨迹和/或目标图像,包括:Optionally, in this embodiment, in response to the third input, clearing the movement track and/or the target image of the first input displayed on the display screen includes:
在所述第三输入的目标信息满足对应的预设条件的情况下,清除所述显示屏上显示的所述第一输入的移动轨迹和/或目标图像。In the case that the target information of the third input satisfies the corresponding preset condition, the movement track and/or the target image of the first input displayed on the display screen are cleared.
这里,第三输入的目标信息即输入的特征信息,当第三输入的特征满足对应的预设条件,才能够触发对第一输入的移动轨迹和/或目标图像的清除。Here, the third input target information is the input feature information, and only when the third input feature satisfies a corresponding preset condition can the clearing of the first input movement track and/or target image be triggered.
该实施例中,为模拟真实纸张或纸板倾斜、甩动倾倒掉笔屑、粉末的操作感,可以配置第三输入的实现为对电子设备的摇晃、倾斜电子设备、在电子设备麦克风位置的吹气、在显示屏上的敲击预设次数等方式的至少一项。而通过进一步对第三输入的目标信息与预设条件的判断,能够避免误操作。In this embodiment, in order to simulate the operation feeling of real paper or cardboard tilting, shaking and dumping pen scraps and powder, the third input can be configured to shake the electronic device, tilt the electronic device, and blow at the position of the microphone of the electronic device. at least one of methods such as gas, tapping on the display screen a preset number of times, etc. By further judging the third input target information and the preset condition, misoperation can be avoided.
可选地,所述目标信息为通过目标传感器检测的信息,且所述目标信息包括加速度信息、声音信息或者按压信息中的至少一者。Optionally, the target information is information detected by a target sensor, and the target information includes at least one of acceleration information, sound information, or pressing information.
其中,目标传感器是电子设备上已安装的传感器,通过该目标传感器检测第三输入的目标信息,从而进行清除的触发判断。Wherein, the target sensor is a sensor installed on the electronic device, and the target information of the third input is detected by the target sensor, so as to perform a trigger judgment of clearing.
如此,一方面,可选地,该实施例中,在所述目标信息为加速度信息时,对应的预设条件为所述电子设备处于目标运动状态。In this way, on the one hand, optionally, in this embodiment, when the target information is acceleration information, the corresponding preset condition is that the electronic device is in a target motion state.
这里,检测加速度信息的目标传感器可以是加速度传感器,具体为重力加速度传感器G-Sensor、陀螺仪等。这样,对于如对电子设备的摇晃、倾斜电子设备等的第三输入,目标传感器检测到加速度信息后,能够进一步判断电子设备是否处于目标运动状态,从而结合对应的预设条件,在当前电子设备处于目标运动状态的情况下,清除显示屏上显示的第一输入的移动轨迹和/或目标图像,来模拟真实纸张或纸板倾斜、甩动倾倒掉笔屑、粉末的操作感。Here, the target sensor for detecting the acceleration information may be an acceleration sensor, specifically a gravitational acceleration sensor G-Sensor, a gyroscope, and the like. In this way, for the third input such as shaking the electronic device, tilting the electronic device, etc., after the target sensor detects the acceleration information, it can further determine whether the electronic device is in the target motion state, so that in combination with the corresponding preset conditions, in the current electronic device In the case of the target motion state, the movement trajectory and/or the target image of the first input displayed on the display screen are cleared to simulate the operation feeling of real paper or cardboard tilting, shaking and dumping pen shavings and powder.
其中,目标运动状态是预先设置的,对应于期望的触发清除的输入特征可包括但不限于:在预设时长内大于预定速度或预定次数的摇晃;由第一角度到第二角度的倾斜,该第一角度和第二角度的差值大于预设角度值等。Wherein, the target motion state is preset, and the input characteristics corresponding to the desired trigger clearing may include but are not limited to: shaking greater than a predetermined speed or a predetermined number of times within a preset time period; tilting from a first angle to a second angle, The difference between the first angle and the second angle is greater than a preset angle value or the like.
在用户书写完成后,用户通过倾斜电子设备或者甩动电子设备,使加速度传感器检测到加速度信息,而电子设备在由该加速度信息判断出电子设备处于目标运动状态后,可清除第一输入的移动轨迹和/或目标图像。After the user finishes writing, the user tilts the electronic device or shakes the electronic device to make the acceleration sensor detect the acceleration information, and the electronic device can clear the first input movement after judging from the acceleration information that the electronic device is in the target motion state Trajectory and/or target image.
第二方面,可选地,该实施例中,在所述目标信息为声音信息时,对应的预设条件为声音频率属于预设频率范围。In the second aspect, optionally, in this embodiment, when the target information is sound information, the corresponding preset condition is that the sound frequency belongs to a preset frequency range.
这里,检测声音信息的目标传感器可以是电子设备上的声音传感器,具体为麦克风。这样,对于如在电子设备麦克风位置吹气的第三输入,麦克风检测到声音信息后,能够进一步判断声音频率是否属于预设频率范围,从而 结合对应的预设条件,在当前声音频率属于预设频率范围的情况下,清除显示屏上显示的第一输入的移动轨迹和/或目标图像,模拟真实纸张或纸板上笔屑、粉末采用吹气处理的操作感。Here, the target sensor for detecting sound information may be a sound sensor on an electronic device, specifically a microphone. In this way, for the third input such as blowing at the position of the microphone of the electronic device, after the microphone detects the sound information, it can further determine whether the sound frequency belongs to the preset frequency range, so that in combination with the corresponding preset conditions, the current sound frequency belongs to the preset frequency range. In the case of the frequency range, clear the movement trajectory and/or target image of the first input displayed on the display screen, and simulate the operation feeling of using air blowing for pen scraps and powder on real paper or cardboard.
在用户书写完成后,通过对着麦克风吹气,使麦克风能够检测外部气流产生的低频声音信号,电子设备在由该声音信号判断出声音频率属于预设频率范围(如A Hz~B Hz)这一频率范围后,可清除第一输入的移动轨迹和/或目标图像。After the user finishes writing, blowing air into the microphone enables the microphone to detect the low-frequency sound signal generated by the external airflow, and the electronic device determines that the sound frequency belongs to the preset frequency range (such as A Hz to B Hz) from the sound signal. After a frequency range, the movement track and/or target image of the first input can be cleared.
第三方面,可选地,该实施例中,在所述目标信息为按压信息时,对应的预设条件为按压次数属于第一值范围,和/或,按压力度属于第二值范围。In the third aspect, optionally, in this embodiment, when the target information is pressing information, the corresponding preset condition is that the number of pressings falls within the first value range, and/or the pressing force falls within the second value range.
这里,检测按压信息的目标传感器可以是电子设备显示屏下的压力传感器。这样,对于如在显示屏上敲击的第三输入,压力传感器检测到按压信息后,能够进一步判断按压次数是否属于第一值范围,和/或,按压力度是否属于第二值范围,从而结合对应的预设条件,在当前按压次数属于第一值范围和/或按压力度属于第二值范围的情况下,清除显示屏上显示的第一输入的移动轨迹和/或目标图像,模拟真实纸张或纸板上笔屑、粉末采用敲击处理的操作感。Here, the target sensor for detecting the pressing information may be a pressure sensor under the display screen of the electronic device. In this way, for the third input such as tapping on the display screen, after detecting the pressing information, the pressure sensor can further determine whether the number of pressings belongs to the first value range, and/or whether the pressing force belongs to the second value range, so as to combine Corresponding preset conditions, when the current number of pressings falls within the first value range and/or the pressing force falls within the second value range, clear the movement track and/or target image of the first input displayed on the display screen, simulating real paper Or the operation feeling of pen scraps and powder on the cardboard treated by tapping.
在用户书写完成后,通过敲击显示屏,使屏下压力传感器能够检测按压信息,电子设备在由该按压信息判断出按压次数和/或按压力度满足预设条件时,可清除第一输入的移动轨迹和/或目标图像。After the user finishes writing, by tapping the display screen, the pressure sensor under the screen can detect the pressing information. When the electronic device determines from the pressing information that the number of pressings and/or the pressing force meets the preset conditions, the first input can be cleared. Movement track and/or target image.
其中,为避免清除目标图像时,对书写内容的误操作,用户书写完成后,可先触发书写内容的保存,如点击书写界面的完成项,再进行目标图像的清除操作,最终得到仅余的第一输入的移动轨迹。Among them, in order to avoid the wrong operation of the writing content when clearing the target image, after the user finishes writing, the user can first trigger the saving of the writing content, for example, click the completion item of the writing interface, and then perform the clearing operation of the target image, and finally get the remaining The movement trajectory of the first input.
此外,可选地,所述清除所述显示屏上显示的所述第一输入的移动轨迹和/或目标图像,包括:In addition, optionally, the clearing the movement track and/or the target image of the first input displayed on the display screen includes:
根据所述目标信息,在多个清除模式中选取目标模式;According to the target information, a target mode is selected from a plurality of clearing modes;
根据所述目标模式,清除所述第一输入的移动轨迹和/或目标图像。According to the target mode, the movement track and/or the target image of the first input are cleared.
这里,清除模式是预先设置的清除效果,例如,快速清除、逐步清除, 其中,逐步清除还分为逐渐降低移动轨迹和/或目标图像中笔迹的颜色,或者,逐渐减少移动轨迹和/或目标图像中画面主体的数量等清除模式。Here, the clearing mode is a preset clearing effect, for example, fast clearing, gradual clearing, wherein the gradual clearing is further divided into gradually reducing the color of the handwriting in the moving track and/or the target image, or gradually reducing the moving track and/or the target Clear mode such as the number of screen subjects in the image.
而结合目标信息,可确定适用当前场景的目标模式。例如,结合检测的加速度信息选取清除模式,能够根据加速度大小,选取不同的清除模式,如加速度越大,笔屑、粉末消失得越多越快。结合检测的按压信息选取清除模式,能够根据按压力度和/或按压次数,选取清除不同的清除模式,如按压次数越多,笔屑、粉末消失得越多越快。结合检测的声音信息,则能够选取按照预设方向移动清除的清除模式,如图4和图5所示,书写界面401中,目标图像402的位置如箭头所示,向麦克风2所在位置的另一侧移动。In combination with the target information, the target mode applicable to the current scene can be determined. For example, by selecting a clearing mode based on the detected acceleration information, different clearing modes can be selected according to the magnitude of the acceleration. For example, the greater the acceleration, the more pen shavings and powder disappear, the faster. The clearing mode is selected in combination with the detected pressing information, and different clearing modes can be selected according to the pressing force and/or the number of pressings. Combined with the detected sound information, it is possible to select a clearing mode that moves and clears according to a preset direction. As shown in FIG. 4 and FIG. 5 , in the writing interface 401, the position of the target image 402 is shown as an arrow, and the position of the target image 402 is shown as an arrow, and is moved to another direction where the microphone 2 is located. Move to one side.
当然,上述方式仅是实现的部分示例,基于第三输入的不同实现,目标传感器还可以是其它器件,如红外线传感器,通过距离信息,及设置的对应预设条件来实现,在此不再一一列举。Of course, the above methods are only some examples of implementation. Based on different implementations of the third input, the target sensor can also be other devices, such as an infrared sensor, which can be implemented through distance information and corresponding preset conditions set. an enumeration.
综上所述,本申请实施例的方法,能够针对用户的第一输入,在显示屏的第一区域显示第一输入的移动轨迹,以及,在相邻的第二区域显示与第一输入笔型关联的目标图像,实现书写内容展示的同时,增加书写笔迹的现实感,满足用户对电子设备书写的真实、临场要求。To sum up, according to the method of the embodiment of the present application, for the first input of the user, the movement trajectory of the first input can be displayed in the first area of the display screen, and the first input pen can be displayed in the adjacent second area. Type-related target images, while realizing the display of writing content, increase the sense of reality of writing handwriting, and meet the real and on-the-spot requirements of users for writing on electronic devices.
需要说明的是,本申请实施例提供的书写显示处理方法,执行主体可以为书写显示处理装置,或者该书写显示处理装置中的用于执行书写显示处理方法的控制模块。本申请实施例中以书写显示处理装置执行书写显示处理方法为例,说明本申请实施例提供的书写显示处理装置。It should be noted that, in the writing display processing method provided by the embodiments of the present application, the execution body may be a writing display processing device, or a control module in the writing display processing device for executing the writing display processing method. In the embodiment of the present application, the writing and display processing device provided by the embodiment of the present application is described by taking the writing and display processing device executing the writing and displaying processing method as an example.
图6是本申请一个实施例的书写显示处理装置的框图。该书写显示处理装置包括:FIG. 6 is a block diagram of a writing display processing apparatus according to an embodiment of the present application. The writing display processing device includes:
第一接收模块610,用于接收用户的第一输入;a first receiving module 610, configured to receive the first input of the user;
显示模块620,用于响应于所述第一输入,在显示屏的第一区域显示所述第一输入的移动轨迹,在第二区域显示与所述第一输入笔型关联的目标图像;a display module 620, configured to, in response to the first input, display the movement track of the first input in the first area of the display screen, and display the target image associated with the first input pen type in the second area;
其中,所述第二区域为所述第一区域的相邻区域;Wherein, the second area is an adjacent area of the first area;
所述笔型用于指示所述第一输入的移动轨迹的笔迹效果。The pen shape is used to indicate the handwriting effect of the movement track of the first input.
该装置能够针对用户的第一输入,在显示屏的第一区域显示第一输入的移动轨迹,以及,在相邻的第二区域显示与第一输入笔型关联的目标图像,实现书写内容展示的同时,增加书写笔迹的现实感,满足用户对电子设备书写的真实、临场要求。The device can display the movement track of the first input in the first area of the display screen according to the first input of the user, and display the target image associated with the first input pen type in the adjacent second area, so as to realize the display of the writing content At the same time, it increases the sense of reality of writing handwriting, and meets the real and on-the-spot requirements of users for writing on electronic devices.
其中,第一输入可实现为用户使用书写工具(如手写笔)在显示屏上的滑动输入,也可实现为用户手指在显示屏上的滑动输入。The first input may be implemented as a sliding input on the display screen by the user using a writing tool (such as a stylus), or may be implemented as a sliding input by the user's finger on the display screen.
在该实施例中,为满足用户对手写笔迹效果的不同需求,预先设置有多个笔型,包括但不限于铅笔、蜡笔、粉笔、水彩笔等。当然,对应于不同的笔型,对笔迹具有现实增强效果的图像也进行了关联设置,即预先设置了不同笔型关联的目标图像。In this embodiment, in order to meet the different requirements of the user for the effect of handwriting, a plurality of pen types are preset, including but not limited to pencil, crayon, chalk, watercolor pen, and the like. Of course, corresponding to different pen types, an associated setting is also performed for the images with a reality enhancement effect for handwriting, that is, target images associated with different pen types are preset.
可选地,所述装置还包括:Optionally, the device further includes:
第二接收模块,用于接收用户的第二输入;a second receiving module, configured to receive the second input of the user;
第一确定模块,用于响应于所述第二输入,确定所述第一输入对应的笔型;a first determining module, configured to determine a pen type corresponding to the first input in response to the second input;
所述显示模块包括:The display module includes:
确定子模块,用于根据所述第一输入对应的笔型,确定与所述笔型关联的笔迹效果和目标图像;A determination submodule for determining the handwriting effect and target image associated with the pen type according to the pen type corresponding to the first input;
第一显示子模块,用于在所述第一区域内,按照确定的笔迹效果显示所述第一输入的移动轨迹;a first display submodule, configured to display the movement track of the first input in the first area according to the determined handwriting effect;
第二显示子模块,用于在所述第二区域内,显示确定的目标图像。The second display sub-module is configured to display the determined target image in the second area.
如此,在经第二输入确定第一输入对应的笔型后,就能够进一步确定与笔型关联的笔迹效果和目标图像,从而一方面,在第一区域内,按照确定的笔迹效果显示该第一输入的移动轨迹,展示用户所选笔型的笔迹效果;另一方面,在第二区域内,显示确定的目标图像,加强用户所选笔型书写后笔迹的现实感。In this way, after the pen type corresponding to the first input is determined through the second input, the handwriting effect and the target image associated with the pen type can be further determined, so that on the one hand, in the first area, the first area is displayed according to the determined handwriting effect. On the other hand, in the second area, the determined target image is displayed to enhance the realistic feeling of handwriting after writing by the pen type selected by the user.
可选地,所述装置还包括:Optionally, the device further includes:
第三接收模块,用于接收用户的第三输入;The third receiving module is used for receiving the third input of the user;
处理模块,用于响应于所述第三输入,清除所述显示屏上显示的所述第一输入的移动轨迹和/或目标图像。A processing module, configured to, in response to the third input, clear the movement track and/or the target image of the first input displayed on the display screen.
可选地,所述处理模块还用于:Optionally, the processing module is also used for:
在所述第三输入的目标信息满足对应的预设条件的情况下,清除所述显示屏上显示的所述第一输入的移动轨迹和/或目标图像。In the case that the target information of the third input satisfies the corresponding preset condition, the movement track and/or the target image of the first input displayed on the display screen are cleared.
可选地,所述目标信息为通过目标传感器检测的信息,且所述目标信息包括加速度信息、声音信息或者按压信息中的至少一者。Optionally, the target information is information detected by a target sensor, and the target information includes at least one of acceleration information, sound information, or pressing information.
可选地,在所述目标信息为加速度信息时,对应的预设条件为所述电子设备处于目标运动状态。Optionally, when the target information is acceleration information, the corresponding preset condition is that the electronic device is in a target motion state.
可选地,在所述目标信息为声音信息时,对应的预设条件为声音频率属于预设频率范围。Optionally, when the target information is sound information, the corresponding preset condition is that the sound frequency belongs to a preset frequency range.
可选地,在所述目标信息为按压信息时,对应的预设条件为按压次数属于第一值范围,和/或,按压力度属于第二值范围。Optionally, when the target information is pressing information, the corresponding preset condition is that the number of pressing times falls within the first value range, and/or the pressing force falls within the second value range.
可选地,所述处理模块包括:Optionally, the processing module includes:
第一处理子模块,用于根据所述目标信息,在多个清除模式中选取目标模式;a first processing submodule, for selecting a target mode from a plurality of clearing modes according to the target information;
第二处理子模块,用于根据所述目标模式,清除所述第一输入的移动轨迹和/或目标图像。The second processing sub-module is configured to clear the movement track and/or the target image of the first input according to the target mode.
可选地,所述第二显示子模块还用于:Optionally, the second display submodule is also used for:
根据所述第一输入的相关信息,调整所述目标图像的内容。According to the relevant information of the first input, the content of the target image is adjusted.
需要说明的是,该装置是应用了上述方法的装置,上述方法实施例的实现方式适用于该装置也能达到相同的技术效果,在此不再赘述。It should be noted that the device is a device to which the above method is applied, and the implementation manner of the above method embodiment is applicable to the device and can achieve the same technical effect, which is not repeated here.
本申请实施例中的书写显示处理装置可以是装置,也可以是电子设备中的部件、集成电路、或芯片。该装置可以是移动电子设备,也可以为非移动电子设备。示例性的,移动电子设备可以为手机、平板电脑、笔记本电脑、掌上电脑、车载电子设备、可穿戴设备、超级移动个人计算机(ultra-mobile  personal computer,UMPC)、上网本或者个人数字助理(personal digital assistant,PDA)等,非移动电子设备可以为服务器、网络附属存储器(Network Attached Storage,NAS)、个人计算机(personal computer,PC)、电视机(television,TV)、柜员机或者自助机等,本申请实施例不作具体限定。The writing and display processing device in the embodiments of the present application may be a device, or may be a component, an integrated circuit, or a chip in an electronic device. The apparatus may be a mobile electronic device or a non-mobile electronic device. Exemplarily, the mobile electronic device may be a mobile phone, a tablet computer, a notebook computer, a palmtop computer, an in-vehicle electronic device, a wearable device, an ultra-mobile personal computer (UMPC), a netbook, or a personal digital assistant (personal digital assistant). assistant, PDA), etc., non-mobile electronic devices can be servers, network attached storage (Network Attached Storage, NAS), personal computer (personal computer, PC), television (television, TV), teller machine or self-service machine, etc., this application Examples are not specifically limited.
本申请实施例中的书写显示处理装置可以为具有操作系统的装置。该操作系统可以为安卓(Android)操作系统,可以为ios操作系统,还可以为其他可能的操作系统,本申请实施例不作具体限定。The writing display processing device in the embodiment of the present application may be a device having an operating system. The operating system may be an Android (Android) operating system, an ios operating system, or other possible operating systems, which are not specifically limited in the embodiments of the present application.
本申请实施例提供的书写显示处理装置能够实现图1至图5的方法实施例中实现的各个过程,为避免重复,这里不再赘述。The writing display processing apparatus provided in the embodiment of the present application can implement each process implemented in the method embodiments of FIG. 1 to FIG. 5 , and to avoid repetition, details are not repeated here.
可选的,如图7所示,本申请实施例还提供一种电子设备700,包括处理器701,存储器702,存储在存储器702上并可在所述处理器701上运行的程序或指令,该程序或指令被处理器701执行时实现上述书写显示处理方法实施例的各个过程,且能达到相同的技术效果,为避免重复,这里不再赘述。Optionally, as shown in FIG. 7 , an embodiment of the present application further provides an electronic device 700, including a processor 701, a memory 702, a program or instruction stored in the memory 702 and executable on the processor 701, When the program or instruction is executed by the processor 701, each process of the above-mentioned embodiment of the writing and display processing method can be achieved, and the same technical effect can be achieved. To avoid repetition, details are not described here.
需要注意的是,本申请实施例中的电子设备包括上述所述的移动电子设备和非移动电子设备。It should be noted that the electronic devices in the embodiments of the present application include the above-mentioned mobile electronic devices and non-mobile electronic devices.
图8为实现本申请各个实施例的一种电子设备的硬件结构示意图。FIG. 8 is a schematic diagram of a hardware structure of an electronic device implementing various embodiments of the present application.
该电子设备800包括但不限于:射频单元801、网络模块802、音频输出单元803、输入单元804、传感器805、显示单元806、用户输入单元807、接口单元808、存储器808、以及处理器810等部件。The electronic device 800 includes but is not limited to: a radio frequency unit 801, a network module 802, an audio output unit 803, an input unit 804, a sensor 805, a display unit 806, a user input unit 807, an interface unit 808, a memory 808, and a processor 810, etc. part.
本领域技术人员可以理解,电子设备800还可以包括给各个部件供电的电源(比如电池),电源可以通过电源管理系统与处理器810逻辑相连,从而通过电源管理系统实现管理充电、放电、以及功耗管理等功能。图8中示出的电子设备结构并不构成对电子设备的限定,电子设备可以包括比图示更多或更少的部件,或者组合某些部件,或者不同的部件布置,在此不再赘述。Those skilled in the art can understand that the electronic device 800 may also include a power supply (such as a battery) for supplying power to various components, and the power supply may be logically connected to the processor 810 through a power management system, so that the power management system can manage charging, discharging, and power management. consumption management and other functions. The structure of the electronic device shown in FIG. 8 does not constitute a limitation on the electronic device. The electronic device may include more or less components than the one shown, or combine some components, or arrange different components, which will not be repeated here. .
其中,输入单元804,用于接收用户的第一输入;Wherein, the input unit 804 is used for receiving the first input of the user;
显示单元806,用于响应于所述第一输入,在显示屏的第一区域显示所述第一输入的移动轨迹,在第二区域显示与所述第一输入笔型关联的目标图 像;a display unit 806, configured to, in response to the first input, display the movement track of the first input in the first area of the display screen, and display the target image associated with the first input pen type in the second area;
其中,所述第二区域为所述第一区域的相邻区域;Wherein, the second area is an adjacent area of the first area;
所述笔型用于指示所述第一输入的移动轨迹的笔迹效果。The pen shape is used to indicate the handwriting effect of the movement track of the first input.
可见,该电子设备能够针对用户的第一输入,在显示屏的第一区域显示第一输入的移动轨迹,以及,在相邻的第二区域显示与第一输入笔型关联的目标图像,实现书写内容展示的同时,增加书写笔迹的现实感,满足用户对电子设备书写的真实、临场要求。It can be seen that the electronic device can display the movement trajectory of the first input in the first area of the display screen for the user's first input, and display the target image associated with the first input pen type in the adjacent second area, so as to achieve While displaying the writing content, it increases the sense of reality of the handwriting, and meets the user's real and on-the-spot requirements for writing on electronic devices.
应理解的是,本申请实施例中,输入单元804可以包括图形处理器(Graphics Processing Unit,GPU)8041和麦克风8042,图形处理器8041对在视频捕获模式或图像捕获模式中由图像捕获装置(如摄像头)获得的静态图片或视频的图像数据进行处理。显示单元806可包括显示面板8061,可以采用液晶显示器、有机发光二极管等形式来配置显示面板8061。用户输入单元807包括触控面板8071以及其他输入设备8072。触控面板8071,也称为触摸屏。触控面板8071可包括触摸检测装置和触摸控制器两个部分。其他输入设备8072可以包括但不限于物理键盘、功能键(比如音量控制按键、开关按键等)、轨迹球、鼠标、操作杆,在此不再赘述。存储器808可用于存储软件程序以及各种数据,包括但不限于应用程序和操作系统。处理器810可集成应用处理器和调制解调处理器,其中,应用处理器主要处理操作系统、用户界面和应用程序等,调制解调处理器主要处理无线通信。可以理解的是,上述调制解调处理器也可以不集成到处理器810中。It should be understood that, in this embodiment of the present application, the input unit 804 may include a graphics processor (Graphics Processing Unit, GPU) 8041 and a microphone 8042. Such as camera) to obtain still pictures or video image data for processing. The display unit 806 may include a display panel 8061, which may be configured in the form of a liquid crystal display, an organic light emitting diode, or the like. The user input unit 807 includes a touch panel 8071 and other input devices 8072 . The touch panel 8071 is also called a touch screen. The touch panel 8071 may include two parts, a touch detection device and a touch controller. Other input devices 8072 may include, but are not limited to, physical keyboards, function keys (such as volume control keys, switch keys, etc.), trackballs, mice, and joysticks, which will not be repeated here. Memory 808 may be used to store software programs as well as various data including, but not limited to, application programs and operating systems. The processor 810 may integrate an application processor and a modem processor, wherein the application processor mainly handles the operating system, user interface, and application programs, and the like, and the modem processor mainly handles wireless communication. It can be understood that, the above-mentioned modulation and demodulation processor may not be integrated into the processor 810.
本申请实施例还提供一种可读存储介质,所述可读存储介质上存储程序或指令,该程序或指令被处理器执行时实现上述书写显示处理方法实施例的各个过程,且能达到相同的技术效果,为避免重复,这里不再赘述。The embodiments of the present application further provide a readable storage medium, where a program or an instruction is stored on the readable storage medium. When the program or instruction is executed by a processor, each process of the above-mentioned embodiment of the writing and display processing method can be achieved, and the same can be achieved. In order to avoid repetition, the technical effect will not be repeated here.
其中,所述处理器为上述实施例中所述的电子设备中的处理器。所述可读存储介质,包括计算机可读存储介质,如只读存储器(Read-Only Memory,简称ROM)、随机存取存储器(Random Access Memory,简称RAM)、磁碟或者光盘等。Wherein, the processor is the processor in the electronic device described in the foregoing embodiments. The readable storage medium includes a computer-readable storage medium, such as a read-only memory (Read-Only Memory, ROM for short), a random access memory (Random Access Memory, RAM for short), a magnetic disk or an optical disk, and the like.
本申请实施例另提供了一种芯片,所述芯片包括处理器和通信接口,所述通信接口和所述处理器耦合,所述处理器用于运行程序或指令,实现上述书写显示处理方法实施例的各个过程,且能达到相同的技术效果,为避免重复,这里不再赘述。An embodiment of the present application further provides a chip, where the chip includes a processor and a communication interface, the communication interface is coupled to the processor, and the processor is used for running a program or an instruction to implement the above embodiment of the writing display processing method and can achieve the same technical effect, in order to avoid repetition, it will not be repeated here.
应理解,本申请实施例提到的芯片还可以称为系统级芯片、系统芯片、芯片系统或片上系统芯片等。It should be understood that the chip mentioned in the embodiments of the present application may also be referred to as a system-on-chip, a system-on-chip, a system-on-a-chip, or a system-on-a-chip, or the like.
本申请实施例还提供一种计算机程序产品,所述计算机程序产品被存储在非易失的存储介质中,所述计算机程序产品被配置成被至少一个处理器执行以实现上文所述的方法的实施例的各个过程,且能达到相同的技术效果,为避免重复,这里不再赘述。Embodiments of the present application further provide a computer program product, the computer program product being stored in a non-volatile storage medium, and the computer program product being configured to be executed by at least one processor to implement the method described above Each process of the embodiment of the present invention can achieve the same technical effect, and to avoid repetition, it will not be repeated here.
本申请实施例还提供一种控制装置,所述控制装置被配置成用于执行上文所述的方法实施例的各个过程,且能达到相同的技术效果,为避免重复,这里不再赘述。Embodiments of the present application further provide a control apparatus, which is configured to execute each process of the method embodiments described above, and can achieve the same technical effect, which is not repeated here to avoid repetition.
需要说明的是,在本文中,术语“包括”、“包含”或者其任何其他变体意在涵盖非排他性的包含,从而使得包括一系列要素的过程、方法、物品或者装置不仅包括那些要素,而且还包括没有明确列出的其他要素,或者是还包括为这种过程、方法、物品或者装置所固有的要素。在没有更多限制的情况下,由语句“包括一个……”限定的要素,并不排除在包括该要素的过程、方法、物品或者装置中还存在另外的相同要素。此外,需要指出的是,本申请实施方式中的方法和装置的范围不限按示出或讨论的顺序来执行功能,还可包括根据所涉及的功能按基本同时的方式或按相反的顺序来执行功能,例如,可以按不同于所描述的次序来执行所描述的方法,并且还可以添加、省去、或组合各种步骤。另外,参照某些示例所描述的特征可在其他示例中被组合。It should be noted that, herein, the terms "comprising", "comprising" or any other variation thereof are intended to encompass non-exclusive inclusion, such that a process, method, article or device comprising a series of elements includes not only those elements, It also includes other elements not expressly listed or inherent to such a process, method, article or apparatus. Without further limitation, an element qualified by the phrase "comprising a..." does not preclude the presence of additional identical elements in a process, method, article or apparatus that includes the element. Furthermore, it should be noted that the scope of the methods and apparatus in the embodiments of the present application is not limited to performing the functions in the order shown or discussed, but may also include performing the functions in a substantially simultaneous manner or in the reverse order depending on the functions involved. To perform functions, for example, the described methods may be performed in an order different from that described, and various steps may also be added, omitted, or combined. Additionally, features described with reference to some examples may be combined in other examples.
通过以上的实施方式的描述,本领域的技术人员可以清楚地了解到上述实施例方法可借助软件加必需的通用硬件平台的方式来实现,当然也可以通过硬件,但很多情况下前者是更佳的实施方式。基于这样的理解,本申请的 技术方案本质上或者说对现有技术做出贡献的部分可以以软件产品的形式体现出来,该计算机软件产品存储在一个存储介质(如ROM/RAM、磁碟、光盘)中,包括若干指令用以使得一台终端(可以是手机,计算机,服务器,空调器,或者网络设备等)执行本申请各个实施例所述的方法。From the description of the above embodiments, those skilled in the art can clearly understand that the methods of the above embodiments can be implemented by means of software plus a necessary general hardware platform, and of course hardware can also be used, but in many cases the former is better implementation. Based on this understanding, the technical solution of the present application can be embodied in the form of a software product in essence or in a part that contributes to the prior art, and the computer software product is stored in a storage medium (such as ROM/RAM, magnetic disk, CD-ROM), including several instructions to make a terminal (which may be a mobile phone, a computer, a server, an air conditioner, or a network device, etc.) execute the methods described in the various embodiments of this application.
上面结合附图对本申请的实施例进行了描述,但是本申请并不局限于上述的具体实施方式,上述的具体实施方式仅仅是示意性的,而不是限制性的,本领域的普通技术人员在本申请的启示下,在不脱离本申请宗旨和权利要求所保护的范围情况下,还可做出很多形式,均属于本申请的保护之内。The embodiments of the present application have been described above in conjunction with the accompanying drawings, but the present application is not limited to the above-mentioned specific embodiments, which are merely illustrative rather than restrictive. Under the inspiration of this application, without departing from the scope of protection of the purpose of this application and the claims, many forms can be made, which all fall within the protection of this application.

Claims (24)

  1. 一种书写显示处理方法,包括:A writing display processing method, comprising:
    接收用户的第一输入;receiving the first input from the user;
    响应于所述第一输入,在显示屏的第一区域显示所述第一输入的移动轨迹,在第二区域显示与所述第一输入笔型关联的目标图像;In response to the first input, displaying the movement track of the first input in the first area of the display screen, and displaying the target image associated with the first input pen type in the second area;
    其中,所述第二区域为所述第一区域的相邻区域;Wherein, the second area is an adjacent area of the first area;
    所述笔型用于指示所述第一输入的移动轨迹的笔迹效果。The pen shape is used to indicate the handwriting effect of the movement track of the first input.
  2. 根据权利要求1所述的方法,其中,所述接收用户的第一输入之前,还包括:The method according to claim 1, wherein before the receiving the first input from the user, further comprising:
    接收用户的第二输入;receiving a second input from the user;
    响应于所述第二输入,确定所述第一输入对应的笔型;In response to the second input, determining a pen type corresponding to the first input;
    所述在显示屏的第一区域显示所述第一输入的移动轨迹,在第二区域显示与所述第一输入笔型关联的目标图像,包括:The display of the movement track of the first input in the first area of the display screen, and the display of the target image associated with the first input pen type in the second area, includes:
    根据所述第一输入对应的笔型,确定与所述笔型关联的笔迹效果和目标图像;According to the pen type corresponding to the first input, determine the handwriting effect and target image associated with the pen type;
    在所述第一区域内,按照确定的笔迹效果显示所述第一输入的移动轨迹;In the first area, display the movement track of the first input according to the determined handwriting effect;
    在所述第二区域内,显示确定的目标图像。In the second area, the determined target image is displayed.
  3. 根据权利要求2所述的方法,其中,所述在第二区域显示与所述第一输入笔型关联的目标图像,包括:The method according to claim 2, wherein the displaying the target image associated with the first input pen type in the second area comprises:
    根据所述第一输入的相关信息,调整所述目标图像的内容。According to the relevant information of the first input, the content of the target image is adjusted.
  4. 根据权利要求1所述的方法,其中,所述响应于所述第一输入,在显示屏的第一区域显示所述第一输入的移动轨迹,在第二区域显示与所述第一输入笔型关联的目标图像之后,还包括:The method according to claim 1, wherein, in response to the first input, a moving track of the first input is displayed in a first area of the display screen, and a movement track of the first input is displayed in a second area with the first input pen After the target image associated with the type, it also includes:
    接收用户的第三输入;receive a third input from the user;
    响应于所述第三输入,清除所述显示屏上显示的所述第一输入的移动轨迹和/或目标图像。In response to the third input, the movement track and/or the target image of the first input displayed on the display screen is cleared.
  5. 根据权利要求4所述的方法,其中,所述响应于所述第三输入,清除所述显示屏上显示的所述第一输入的移动轨迹和/或目标图像,包括:The method according to claim 4, wherein, in response to the third input, clearing the movement track and/or the target image of the first input displayed on the display screen comprises:
    在所述第三输入的目标信息满足对应的预设条件的情况下,清除所述显示屏上显示的所述第一输入的移动轨迹和/或目标图像。In the case that the target information of the third input satisfies the corresponding preset condition, the movement track and/or the target image of the first input displayed on the display screen are cleared.
  6. 根据权利要求5所述的方法,其中,所述目标信息为通过目标传感器检测的信息,且所述目标信息包括加速度信息、声音信息或者按压信息中的至少一者。The method of claim 5, wherein the target information is information detected by a target sensor, and the target information includes at least one of acceleration information, sound information, or pressing information.
  7. 根据权利要求6所述的方法,其中,在所述目标信息为加速度信息时,对应的预设条件为电子设备处于目标运动状态。The method according to claim 6, wherein, when the target information is acceleration information, the corresponding preset condition is that the electronic device is in a target motion state.
  8. 根据权利要求6所述的方法,其中,在所述目标信息为声音信息时,对应的预设条件为声音频率属于预设频率范围。The method according to claim 6, wherein, when the target information is sound information, the corresponding preset condition is that the sound frequency belongs to a preset frequency range.
  9. 根据权利要求6所述的方法,其中,在所述目标信息为按压信息时,对应的预设条件为按压次数属于第一值范围,和/或,按压力度属于第二值范围。The method according to claim 6, wherein, when the target information is pressing information, the corresponding preset condition is that the number of pressings belongs to a first value range, and/or that the pressing force belongs to a second value range.
  10. 根据权利要求5所述的方法,其中,所述清除所述显示屏上显示的所述第一输入的移动轨迹和/或目标图像,包括:The method according to claim 5, wherein the clearing the movement track and/or the target image of the first input displayed on the display screen comprises:
    根据所述目标信息,在多个清除模式中选取目标模式;According to the target information, a target mode is selected from a plurality of clearing modes;
    根据所述目标模式,清除所述第一输入的移动轨迹和/或目标图像。According to the target mode, the movement track and/or the target image of the first input are cleared.
  11. 一种书写显示处理装置,包括:A writing display processing device, comprising:
    第一接收模块,用于接收用户的第一输入;a first receiving module, configured to receive the first input of the user;
    显示模块,用于响应于所述第一输入,在显示屏的第一区域显示所述第一输入的移动轨迹,在第二区域显示与所述第一输入笔型关联的目标图像;a display module, configured to display the movement track of the first input in the first area of the display screen in response to the first input, and display the target image associated with the first input pen type in the second area;
    其中,所述第二区域为所述第一区域的相邻区域;Wherein, the second area is an adjacent area of the first area;
    所述笔型用于指示所述第一输入的移动轨迹的笔迹效果。The pen shape is used to indicate the handwriting effect of the movement track of the first input.
  12. 根据权利要求11所述的装置,其中,还包括:The apparatus of claim 11, further comprising:
    第二接收模块,用于接收用户的第二输入;a second receiving module, configured to receive the second input of the user;
    第一确定模块,用于响应于所述第二输入,确定所述第一输入对应的笔型;a first determining module, configured to determine a pen type corresponding to the first input in response to the second input;
    所述显示模块包括:The display module includes:
    确定子模块,用于根据所述第一输入对应的笔型,确定与所述笔型关联的笔迹效果和目标图像;A determination submodule for determining the handwriting effect and target image associated with the pen type according to the pen type corresponding to the first input;
    第一显示子模块,用于在所述第一区域内,按照确定的笔迹效果显示所述第一输入的移动轨迹;a first display submodule, configured to display the movement track of the first input in the first area according to the determined handwriting effect;
    第二显示子模块,用于在所述第二区域内,显示确定的目标图像。The second display sub-module is configured to display the determined target image in the second area.
  13. 根据权利要求12所述的装置,其中,所述第二显示子模块还用于:The device according to claim 12, wherein the second display sub-module is further used for:
    根据所述第一输入的相关信息,调整所述目标图像的内容。According to the relevant information of the first input, the content of the target image is adjusted.
  14. 根据权利要求11所述的装置,其中,还包括:The apparatus of claim 11, further comprising:
    第三接收模块,用于接收用户的第三输入;The third receiving module is used for receiving the third input of the user;
    处理模块,用于响应于所述第三输入,清除所述显示屏上显示的所述第一输入的移动轨迹和/或目标图像。A processing module, configured to, in response to the third input, clear the movement track and/or the target image of the first input displayed on the display screen.
  15. 根据权利要求14所述的装置,其中,所述处理模块还用于:The apparatus of claim 14, wherein the processing module is further configured to:
    在所述第三输入的目标信息满足对应的预设条件的情况下,清除所述显示屏上显示的所述第一输入的移动轨迹和/或目标图像。In the case that the target information of the third input satisfies the corresponding preset condition, the movement track and/or the target image of the first input displayed on the display screen are cleared.
  16. 根据权利要求15所述的装置,其中,所述目标信息为通过目标传感器检测的信息,且所述目标信息包括加速度信息、声音信息或者按压信息中的至少一者。The device of claim 15, wherein the target information is information detected by a target sensor, and the target information includes at least one of acceleration information, sound information, or pressing information.
  17. 根据权利要求16所述的装置,其中,在所述目标信息为加速度信息时,对应的预设条件为电子设备处于目标运动状态。The apparatus according to claim 16, wherein when the target information is acceleration information, the corresponding preset condition is that the electronic device is in a target motion state.
  18. 根据权利要求16所述的装置,其中,在所述目标信息为声音信息时,对应的预设条件为声音频率属于预设频率范围。The device according to claim 16, wherein when the target information is sound information, the corresponding preset condition is that the sound frequency belongs to a preset frequency range.
  19. 根据权利要求16所述的装置,其中,在所述目标信息为按压信息时,对应的预设条件为按压次数属于第一值范围,和/或,按压力度属于第二值范围。The device according to claim 16, wherein when the target information is pressing information, the corresponding preset condition is that the number of pressings belongs to a first value range, and/or that the pressing force belongs to a second value range.
  20. 根据权利要求15所述的装置,其中,所述处理模块包括:The apparatus of claim 15, wherein the processing module comprises:
    第一处理子模块,用于根据所述目标信息,在多个清除模式中选取目标模式;a first processing submodule, for selecting a target mode from a plurality of clearing modes according to the target information;
    第二处理子模块,用于根据所述目标模式,清除所述第一输入的移动轨迹和/或目标图像。The second processing sub-module is configured to clear the movement track and/or the target image of the first input according to the target mode.
  21. 一种电子设备,包括处理器、存储器及存储在所述存储器上并可在所述处理器上运行的程序或指令,其中,所述程序或指令被所述处理器执行 时实现如权利要求1至10中任一项所述的书写显示处理方法的步骤。An electronic device, comprising a processor, a memory, and a program or instruction stored on the memory and executable on the processor, wherein the program or instruction is executed by the processor to implement the method as claimed in claim 1 Steps of the writing display processing method described in any one of to 10.
  22. 一种可读存储介质,所述可读存储介质上存储程序或指令,其中,所述程序或指令被处理器执行时实现如权利要求1至10中任一项所述的书写显示处理方法的步骤。A readable storage medium on which a program or an instruction is stored, wherein, when the program or instruction is executed by a processor, the writing and display processing method according to any one of claims 1 to 10 is implemented. step.
  23. 一种芯片,包括处理器和通信接口,其中,所述通信接口和所述处理器耦合,所述处理器用于运行程序或指令,实现如权利要求1至10中任一项所述的书写显示处理方法的步骤。A chip, comprising a processor and a communication interface, wherein the communication interface is coupled with the processor, and the processor is used for running a program or an instruction to implement the writing display according to any one of claims 1 to 10 The steps of the processing method.
  24. 一种计算机程序产品,其中,所述计算机程序产品被存储在非易失的存储介质中,所述计算机程序产品被至少一个处理器执行以实现如权利要求1至10中任一项所述的书写显示处理方法的步骤。A computer program product, wherein the computer program product is stored in a non-volatile storage medium, the computer program product being executed by at least one processor to implement the method as claimed in any one of claims 1 to 10 Writing steps showing how to do it.
PCT/CN2021/137739 2020-12-18 2021-12-14 Writing display processing method, and electronic device WO2022127767A1 (en)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN202011503175.6 2020-12-18
CN202011503175.6A CN112596660B (en) 2020-12-18 2020-12-18 Writing display processing method and electronic equipment

Publications (1)

Publication Number Publication Date
WO2022127767A1 true WO2022127767A1 (en) 2022-06-23

Family

ID=75199216

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2021/137739 WO2022127767A1 (en) 2020-12-18 2021-12-14 Writing display processing method, and electronic device

Country Status (2)

Country Link
CN (1) CN112596660B (en)
WO (1) WO2022127767A1 (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN115167736A (en) * 2022-07-07 2022-10-11 深圳乐播科技有限公司 Image-text position adjusting method, device and storage medium

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112596660B (en) * 2020-12-18 2023-09-12 维沃移动通信有限公司 Writing display processing method and electronic equipment

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2008084136A (en) * 2006-09-28 2008-04-10 Kyocera Corp Portable electronic equipment
CN102135890A (en) * 2011-04-02 2011-07-27 天脉聚源(北京)传媒科技有限公司 Method and system for realizing cover layer painting brush
US20160154997A1 (en) * 2014-11-28 2016-06-02 Samsung Electronics Co., Ltd. Handwriting input apparatus and control method thereof
CN108027670A (en) * 2015-09-25 2018-05-11 Lg电子株式会社 Mobile terminal and its control method
CN112596660A (en) * 2020-12-18 2021-04-02 维沃移动通信有限公司 Writing display processing method and electronic equipment

Family Cites Families (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103136769B (en) * 2011-12-02 2016-02-03 北京三星通信技术研究有限公司 The method and apparatus that user writing style font generates
CN102929541A (en) * 2012-10-16 2013-02-13 北京千橡网景科技发展有限公司 Touch-screen-based handwriting processing method and device
CN103853440A (en) * 2012-11-30 2014-06-11 北京三星通信技术研究有限公司 Mobile terminal and method for implementing shortcut operation on same
CN104345948B (en) * 2013-07-31 2017-08-25 北京壹人壹本信息科技有限公司 A kind of implementation method of original handwriting, realize device and electronic equipment
JP6889686B2 (en) * 2014-12-15 2021-06-18 シャープ株式会社 Information processing equipment, information processing system, information processing program and information processing method
KR102329761B1 (en) * 2017-05-26 2021-11-22 삼성전자주식회사 Electronic device for selecting external device and controlling the same and operating method thereof
CN109947334B (en) * 2017-12-21 2022-04-05 珠海金山办公软件有限公司 Ink mark canceling method and device and electronic equipment
CN108874275B (en) * 2018-06-15 2020-12-22 广州视源电子科技股份有限公司 Handwriting erasing method, handwriting erasing device, terminal and computer-readable storage medium
CN110807823B (en) * 2019-11-13 2021-08-06 四川大学 Image simulation generation method for dot matrix character printing effect

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2008084136A (en) * 2006-09-28 2008-04-10 Kyocera Corp Portable electronic equipment
CN102135890A (en) * 2011-04-02 2011-07-27 天脉聚源(北京)传媒科技有限公司 Method and system for realizing cover layer painting brush
US20160154997A1 (en) * 2014-11-28 2016-06-02 Samsung Electronics Co., Ltd. Handwriting input apparatus and control method thereof
CN108027670A (en) * 2015-09-25 2018-05-11 Lg电子株式会社 Mobile terminal and its control method
CN112596660A (en) * 2020-12-18 2021-04-02 维沃移动通信有限公司 Writing display processing method and electronic equipment

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
ANONYMOUS: "How to Add a Highlighter Effect with Meitu Xiuxiu", 22 April 2018 (2018-04-22), pages 1 - 3, XP055943695, Retrieved from the Internet <URL:https://jingyan.baidu.com/article/92255446726cce851648f4c2.html> *

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN115167736A (en) * 2022-07-07 2022-10-11 深圳乐播科技有限公司 Image-text position adjusting method, device and storage medium
CN115167736B (en) * 2022-07-07 2024-04-12 深圳乐播科技有限公司 Image-text position adjustment method, image-text position adjustment equipment and storage medium

Also Published As

Publication number Publication date
CN112596660A (en) 2021-04-02
CN112596660B (en) 2023-09-12

Similar Documents

Publication Publication Date Title
US10996842B2 (en) Computing device and browser for same
WO2022127767A1 (en) Writing display processing method, and electronic device
TWI506504B (en) Operating touch screen interfaces
US9323351B2 (en) Information processing apparatus, information processing method and program
CN108469898B (en) Image processing method and flexible screen terminal
CN103984493B (en) Control method by sliding and terminal
US10372320B2 (en) Device and method for operating on touch screen, and storage medium
CN110069178B (en) Interface control method and terminal equipment
CN109558061B (en) Operation control method and terminal
JP2010176332A (en) Information processing apparatus, information processing method, and program
CN108920069B (en) Touch operation method and device, mobile terminal and storage medium
WO2015058530A1 (en) Method,apparatus and electronic device formoving target element
WO2022007934A1 (en) Application icon control method and apparatus, and electronic device
WO2021068885A1 (en) Control method and electronic device
WO2020155980A1 (en) Control method and terminal device
JP2010539568A (en) System and method for manipulating digital images on a computer display
WO2021057301A1 (en) File control method and electronic device
CN108228034A (en) Control method, mobile terminal and the computer readable storage medium of mobile terminal
WO2022253041A1 (en) Image display method and electronic device
CN108153475B (en) Object position switching method and mobile terminal
CN108491152B (en) Touch screen terminal control method, terminal and medium based on virtual cursor
CN113703631A (en) Writing control method and device, electronic equipment and storage medium
US20230087022A1 (en) Text language type switching method and apparatus, device, and storage medium
WO2022218352A1 (en) Method and apparatus for touch operation
CN108471549B (en) Remote control method and terminal

Legal Events

Date Code Title Description
121 Ep: the epo has been informed by wipo that ep was designated in this application

Ref document number: 21905696

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE

122 Ep: pct application non-entry in european phase

Ref document number: 21905696

Country of ref document: EP

Kind code of ref document: A1