CN116382558A - Writing effect determining method and device, electronic pen, computer equipment and medium - Google Patents

Writing effect determining method and device, electronic pen, computer equipment and medium Download PDF

Info

Publication number
CN116382558A
CN116382558A CN202310669075.8A CN202310669075A CN116382558A CN 116382558 A CN116382558 A CN 116382558A CN 202310669075 A CN202310669075 A CN 202310669075A CN 116382558 A CN116382558 A CN 116382558A
Authority
CN
China
Prior art keywords
writing
candidate
options
option
event
Prior art date
Legal status (The legal status 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 status listed.)
Pending
Application number
CN202310669075.8A
Other languages
Chinese (zh)
Inventor
苗梦瑜
卢成天
庄初伟
刘洋
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Shenzhen Xinwei Intelligent Co ltd
Original Assignee
Shenzhen Xinwei Intelligent Co ltd
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 Shenzhen Xinwei Intelligent Co ltd filed Critical Shenzhen Xinwei Intelligent Co ltd
Priority to CN202310669075.8A priority Critical patent/CN116382558A/en
Publication of CN116382558A publication Critical patent/CN116382558A/en
Pending legal-status Critical Current

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/048Interaction techniques based on graphical user interfaces [GUI]
    • G06F3/0481Interaction techniques based on graphical user interfaces [GUI] based on specific properties of the displayed interaction object or a metaphor-based environment, e.g. interaction with desktop elements like windows or icons, or assisted by a cursor's changing behaviour or appearance
    • G06F3/0482Interaction with lists of selectable items, e.g. menus
    • 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/0484Interaction techniques based on graphical user interfaces [GUI] for the control of specific functions or operations, e.g. selecting or manipulating an object, an image or a displayed text element, setting a parameter value or selecting a range
    • G06F3/04845Interaction techniques based on graphical user interfaces [GUI] for the control of specific functions or operations, e.g. selecting or manipulating an object, an image or a displayed text element, setting a parameter value or selecting a range for image manipulation, e.g. dragging, rotation, expansion or change of colour
    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02DCLIMATE CHANGE MITIGATION TECHNOLOGIES IN INFORMATION AND COMMUNICATION TECHNOLOGIES [ICT], I.E. INFORMATION AND COMMUNICATION TECHNOLOGIES AIMING AT THE REDUCTION OF THEIR OWN ENERGY USE
    • Y02D10/00Energy efficient computing, e.g. low power processors, power management or thermal management

Landscapes

  • Engineering & Computer Science (AREA)
  • General Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Human Computer Interaction (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • User Interface Of Digital Computer (AREA)

Abstract

The embodiment of the disclosure provides a writing effect determining method and device, an electronic pen, computer equipment and a medium, and belongs to the technical field of display and touch control. Comprising the following steps: displaying candidate writing options; receiving a first click operation of an object on a writing option display area; determining a selected writing option in response to the first click operation; and sending the selected writing options to a second device, so that when the first device writes the second device, the second device displays writing content based on the writing effect corresponding to the selected writing options. The embodiment can improve the realization of quick determination of the writing effect, and is beneficial to improving the writing efficiency.

Description

Writing effect determining method and device, electronic pen, computer equipment and medium
Technical Field
The application relates to the technical field of display and touch control, in particular to a writing effect determining method and device, an electronic pen, computer equipment and a medium.
Background
Currently, the stylus pen is required to switch writing effects by clicking the relevant buttons at the corner positions of the tablet with the stylus pen and then selecting the corresponding functions in the pop-up secondary menu. This operation takes at least 2 seconds, and in some situations where it is necessary to quickly switch writing effects (e.g., taking notes), it can be very inefficient and cumbersome for the writer.
Disclosure of Invention
The main purpose of the disclosed embodiments is to provide a writing effect determining method and device, an electronic pen, a computer device and a storage medium, which can realize quick determination of writing effect and help to improve writing efficiency.
To achieve the above object, a first aspect of an embodiment of the present disclosure proposes a writing effect determining method, including:
displaying candidate writing options;
receiving a first click operation of an object on a writing option display area;
determining a selected writing option in response to the first click operation;
and sending the selected writing options to a second device, so that when the first device writes the second device, the second device displays writing content based on the writing effect corresponding to the selected writing options.
Optionally, the displaying the candidate writing option includes:
receiving a writing event starting request sent by second equipment;
determining a target writing event from the writing event starting request;
and displaying candidate writing options based on the target writing event.
Optionally, the candidate writing options are a plurality of candidate writing options, and the displaying the candidate writing options includes:
Acquiring priorities corresponding to candidate writing options;
placing a plurality of candidate writing options on a candidate display list according to the order of the priorities from high to low;
and displaying a plurality of candidate writing options according to the sequence in the candidate display list.
Optionally, the acquiring the priority of the candidate writing option includes:
acquiring clicking times corresponding to the candidate writing options;
acquiring the use duration corresponding to the candidate writing option;
and determining the priority of the candidate writing options according to the clicking times and the using time.
Optionally, the target writing event is a plurality of target writing events, and the sending the selected writing option to the second device includes:
detecting a time difference from a time point of last transmission of the selected writing option to a current time;
and if the time difference is greater than the time threshold, transmitting a plurality of selected writing options corresponding to the plurality of target writing events to the second device.
To achieve the above object, a second aspect of the embodiments of the present disclosure proposes a writing effect determining apparatus, the apparatus including:
the display module is used for displaying candidate writing options;
the touch module is used for receiving a first clicking operation of the object on the writing option display area;
A control module for determining a selected writing option in response to the first click operation;
and the communication module is used for sending the selected writing options to the second equipment, so that when the first equipment writes the second equipment, the second equipment displays writing contents based on the writing effect corresponding to the selected writing options.
To achieve the above object, a third aspect of the embodiments of the present disclosure proposes an electronic pen including:
the display module is used for displaying candidate writing options;
the touch module is used for receiving a first clicking operation of the object on the writing option display area;
a control module for determining a selected writing option in response to the first click operation;
a communication module for transmitting the selected writing option to a second device;
and the writing module is used for writing the second equipment so that the second equipment displays writing content based on the writing effect corresponding to the selected writing option.
Optionally, the electronic pen further comprises:
the control module is further configured to obtain status information of the first device, where the status information includes any one of the following: the state of charge, the state of charge and the remaining use time of the device;
The display module is further configured to display the status information, where the status information display area is not overlapped with the writing option display area.
To achieve the above object, a fourth aspect of the embodiments of the present disclosure proposes a computer device comprising a memory, a processor, a program stored on the memory and executable on the processor, and a data bus for enabling a connection communication between the processor and the memory, the program, when executed by the processor, implementing the method of the first aspect.
To achieve the above object, a fifth aspect of the embodiments of the present disclosure proposes a storage medium, which is a computer-readable storage medium, for computer-readable storage, the storage medium storing one or more programs executable by one or more processors to implement the method of the first aspect.
The writing effect determining method, the writing effect determining device, the computer equipment and the storage medium are used for displaying candidate writing options through the first equipment, rapidly determining the selected writing options by means of selecting the candidate writing options by the object, and sending the selected writing options to the second equipment. Meanwhile, the second device switches to the writing effect corresponding to the selected writing option based on the received selected writing option, so that the quick switching of the writing effect is realized.
Drawings
FIG. 1 is an architectural diagram of a system to which a writing effect determination method according to an embodiment of the present disclosure is applied;
2A-2C are schematic diagrams of a writing effect determining method applied in a writing effect switching scenario according to an embodiment of the present disclosure;
FIG. 3 is a flow chart of a writing effect determination method according to an embodiment of the present disclosure;
FIG. 4 is a first flowchart of step 310 in FIG. 3;
FIG. 5 is a second flowchart of step 310 in FIG. 3;
FIG. 6 is a flow chart of step 510 in FIG. 5;
FIG. 7 is a flow chart of step 340 in FIG. 3;
FIG. 8 is a block diagram showing a construction of a writing effect determining apparatus according to an embodiment of the present disclosure;
FIG. 9 is a block diagram of a module configuration of an electronic pen provided by an embodiment of the present disclosure;
fig. 10 is a schematic diagram of a hardware structure of a computer device according to an embodiment of the disclosure.
Detailed Description
In order to make the objects, technical solutions and advantages of the present application more apparent, the present application will be further described in detail with reference to the accompanying drawings and examples. It should be understood that the specific embodiments described herein are for purposes of illustration only and are not intended to limit the present application.
It should be noted that although functional block division is performed in a device diagram and a logic sequence is shown in a flowchart, in some cases, the steps shown or described may be performed in a different order than the block division in the device, or in the flowchart. The terms first, second and the like in the description and in the claims and in the above-described figures, are used for distinguishing between similar elements and not necessarily for describing a particular sequential or chronological order.
Unless defined otherwise, all technical and scientific terms used herein have the same meaning as commonly understood by one of ordinary skill in the art to which this application belongs. The terminology used herein is for the purpose of describing the embodiments of the present disclosure only and is not intended to be limiting of the present application.
First, several nouns referred to in this application are parsed:
artificial intelligence (Artificial Intelligence, AI): is a new technical science for researching and developing theories, methods, technologies and application systems for simulating, extending and expanding the intelligence of people; artificial intelligence is a branch of computer science that attempts to understand the nature of intelligence and to produce a new intelligent machine that can react in a manner similar to human intelligence, research in this field including robotics, language recognition, image recognition, natural language processing, and expert systems. Artificial intelligence can simulate the information process of consciousness and thinking of people. Artificial intelligence is also a theory, method, technique, and application system that utilizes a digital computer or digital computer-controlled machine to simulate, extend, and expand human intelligence, sense the environment, acquire knowledge, and use knowledge to obtain optimal results.
A first device: refers to a terminal capable of performing an input operation to the second device, such as a stylus (or referred to as an electronic pen), a mouse, a keyboard, and the like. The handwriting pen comprises an electromagnetic pen or a capacitive pen, wherein the capacitive pen comprises an active capacitive pen and a passive capacitive pen.
A second device: refers to a terminal, such as a tablet, a terminal with a written page, etc., that is capable of receiving and displaying the written content of the first device.
The writing effect is as follows: refers to the display of the written content on the second device. Writing effects include, for example, brush color, brush thickness, brush type, handwriting length, and the like.
Currently, the stylus pen is required to switch writing effects by clicking the relevant buttons at the corner positions of the tablet with the stylus pen and then selecting the corresponding functions in the pop-up secondary menu. This operation takes at least 2 seconds, and in some situations where it is necessary to quickly switch writing effects (e.g., taking notes), it can be very inefficient and cumbersome for the writer.
Based on this, there is a need for a method that can flexibly determine the writing effect, and can meet the requirement of rapidly switching the writing effect.
System architecture description of the application of embodiments of the present disclosureScene description
Fig. 1 is a system architecture diagram to which a writing effect determination method according to an embodiment of the present disclosure is applied. It includes a first device 140, a second device 150, the internet 130, a gateway 120, a server 110, and the like.
The first device 140 is, for example, an electronic pen as described above. The first device 140 may communicate with the internet 130 in a wired or wireless manner, exchanging data.
The second device 150 is, for example, a tablet as described above. The second device 150 may communicate with the internet 130 in a wired or wireless manner, exchanging data.
Server 110 refers to a computer system that is capable of providing certain services to first device 140, second device 150. The server 110 is more demanding in terms of stability, security, performance, etc. than the normal first device 140, second device 150. The server 110 may be one high-performance computer in a network platform, a cluster of multiple high-performance computers, a portion of one high-performance computer (e.g., a virtual machine), a combination of portions of multiple high-performance computers (e.g., virtual machines), etc.
Gateway 120 is also known as an intersubnetwork connector, protocol converter. The gateway implements network interconnection on the transport layer, and is a computer system or device that acts as a translation. The gateway is a translator between two systems using different communication protocols, data formats or languages, and even architectures that are quite different. At the same time, gateway 120 may also provide filtering and security functions. The messages sent by the first device 140 and the second device 150 to the server 110 are to be sent to the corresponding server 110 through the gateway 120. Messages sent by the server 110 to the first device 140, the second device 150 are also sent to the respective first device 140, the second device 150 through the gateway 120.
The embodiment of the disclosure can be applied to various scenes, such as writing effect switching scenes shown in fig. 2A-2C.
The writing effect switching scene refers to a scene in which the first device performs writing option determination so that the second device performs switching of writing effects based on the received selected writing option.
As shown in fig. 2A, the first device 140 is an electronic pen having a display screen at an end remote from its nib. Three event start buttons, namely a brush type event start button, a brush color event start button and a brush thickness event start button, are displayed on a display screen of the electronic pen. When the object wants to initiate a brush type event, a brush type event initiation button on the display interface of the electronic pen is clicked to select to initiate the brush type event. Note that fig. 2A shows that the candidate writing options are displayed only based on clicking of the event start button, but may also be that the candidate writing options are directly displayed on the display screen of the electronic pen after the electronic pen is turned on. The triggering condition for specifically displaying the candidate writing options can be set according to actual requirements, and is not limited to a mode of clicking an event starting button.
As shown in fig. 2B, after the object clicks on the brush type event, candidate writing options corresponding to the brush type event are displayed on the display interface of the electronic pen, which are "writing brush", "pen", "mark pen", and "pencil" options, respectively. When the object wants to send a pencil to the second device, the "pencil" option on the display interface of the electronic pen is clicked to select to send a "pencil".
As shown in fig. 2C, after the object clicks on the pencil option, the display interface of the electronic pen displays a prompt pop-up window, where the window content includes "send" pencil to the second device, please wait for a moment "to remind the object of the progress of sending.
As further shown in fig. 2C, the second device 150 is a tablet. The display screen of the tablet displays a text editing interface on which the object is written on the tablet using an electronic pen. The writing content displayed on the text editing interface is "I are taking notes", and the writing content is displayed by the writing effect of taking the stroke type as a pencil.
Continuing with FIG. 2C, the object may click on a hidden menu of the file editing interface, with options of "pencil type", "copy", and "refresh" on the menu. In this way, the type of brush that the object may query for written content is a pencil.
Through the interaction process of fig. 2A-2C, the first device 140 may quickly determine the writing option based on the clicking operation of the object, and then send the writing option to the second device 150, so that the second device 150 may quickly implement switching of the writing effect based on the writing option. Note that the second device 150 may also switch the writing effect based on the writing option transmitted from the server 110.
General description of embodiments of the disclosure
According to one embodiment of the present disclosure, a writing effect determining method is provided.
The writing effect determining method may be performed by the first device 140 shown in fig. 1 or may be performed by the server 110 shown in fig. 1.
As shown in fig. 3, the writing effect determination according to one embodiment of the present disclosure includes:
step 310, displaying candidate writing options;
step 320, receiving a first clicking operation of the object on the writing option display area;
step 330, determining a selected writing option in response to the first clicking operation;
step 340, the selected writing option is sent to the second device, so that when the first device writes to the second device, the second device displays the writing content based on the writing effect corresponding to the selected writing option.
Steps 310-340 are described in detail below using the execution body as the first device.
At step 310, candidate writing options are displayed. The candidate writing options refer to writing effect parameters corresponding to the target writing event. For example, the target writing event is a brush type event, then candidate writing options include brush, pen, mark pen, and pencil options. For another example, the target writing event is a brush color event, then the candidate writing options include red, yellow, black, and white. As shown in fig. 2B, the first device displays four options of writing brush, pen, mark pen, and pencil on the display interface, so that the object clicks.
In addition to displaying candidate writing options corresponding to a single target writing event as described above, in another embodiment, candidate writing options corresponding to different target writing events may be displayed in combination. In this embodiment, a combination primarily includes the options of brush type, brush width, brush color, and the like. For example, an object favors pen writing with a width of 0.1mm and a color of deep blue, and pens, deep blue, and 0.1mm can be taken as one candidate writing option and displayed on the display screen. For another example, an object favors pen writing with a width of 0.3mm and a color of black, and pens, black, and 0.3mm may be considered as one candidate writing option and displayed on the display screen.
If the candidate writing option is a brush color, then step 310 displays the brush color so that the object clicks to select the writing color. For example, 1, the object sets a common color on the second device; 2. displaying a color disc on a display screen of the electronic pen; 3. the color taking module is added on the electronic pen to select the color in reality.
In some embodiments, the setting of the display period of the candidate writing option includes the following:
(1) Immediately after the initiation of the target writing event is detected, candidate writing options are acquired and then displayed.
(2) And displaying candidate writing options after detecting the start of the target writing event and when the display period is past according to the display period preset by the first device.
An advantage of the above-described embodiments is that candidate writing options may be displayed in time for quick clicking by an object after the target event is initiated.
At step 320, a first click operation of the writing option display area by the object is received. The writing option display area refers to a display area contained by the candidate writing options on the display screen, and the writing option display area is used for the object to click. Note that the object may click on the writing option display area using the mouse, so that the first device receives the first click operation. However, when the first device is an electronic pen, there is often no external mouse. In this case, the object may click on the writing option display area based on the touch module of the first device, so that the first device can also receive the first click operation.
In step 330, the first device determines, in response to the first click operation, a selected writing option corresponding to the first click operation. As shown in fig. 2B, when the object clicks on the "pencil" option, the selected writing option is "pencil".
In step 340, the first device sends the selected writing option to the second device, such that when the first device writes to the second device, the second device displays the writing content based on the writing effect corresponding to the selected writing option.
In some embodiments, the setting of the transmission period of the selected writing option includes the following:
(1) Upon determining the selected writing option, the selected writing option is sent to the second device.
(2) And transmitting the selected writing option to the second device after determining the selected writing option and when the transmission period is past according to a transmission period preset by the first device.
In another embodiment, during writing of the first device to the second device, the first device displays information such as a length of handwriting during writing. The handwriting length may be that the second device may calculate the track length during writing, and then the second device may transmit the track length data to the first device via various communication protocols.
Through the steps 310-340, the embodiment of the disclosure displays the candidate writing options through the first device, and rapidly determines the selected writing options by means of selecting the candidate writing options by the object and sends the selected writing options to the second device, so that the efficiency of determining the writing options is improved. Meanwhile, the second device switches to the writing characteristic information corresponding to the selected writing option based on the received selected writing option, so that a quick switching writing effect is realized. In addition, through one-time communication interaction between the first equipment and the second equipment, the second equipment can realize the switching writing effect, so that the interaction quantity between the first equipment and the second equipment is reduced, and the network overhead is also reduced.
The foregoing is a general description of steps 310-340, and a detailed description will be provided below with respect to specific implementations of steps 310 and 340.
Referring to fig. 4, in one embodiment, step 310 includes:
step 410, receiving a writing event starting request sent by the second device;
step 420, determining a target writing event from the writing event starting request;
step 430, displaying candidate writing options based on the target writing event.
Steps 410-430 are described in detail below.
In step 410, the writing event initiation request refers to a request generated by the second device for initiating a writing effect determination service. After receiving the writing event initiation request, the first device performs a writing effect determination service based on the request. The write event initiation request contains a source address, a destination address, and a write event. The source address refers to the address of the sender, e.g. the identity of the second device. The destination address refers to the address of the recipient, e.g. the identity of the first device. The writing event is similar to the brush type event, the brush color event, the brush thickness event described above, and is used to trigger the display of candidate writing options.
At step 420, a write event is extracted from the write event initiation request as a target write event. For example, the writing event starting request contains a painting type event, and the painting type event is taken as a target writing event.
At step 430, different target writing events will correspond to different candidate writing options, and correspondingly, the displayed candidate writing options will also be different.
In one embodiment, the candidate writing options are obtained by, but not limited to, the following ways:
after the target event is determined, searching an event and option comparison table according to the target writing event so as to obtain candidate writing options.
An example of a target writing event versus options table is as follows:
Figure SMS_1
TABLE 1
As shown in table 1, candidate writing options corresponding to a brush type event in the target writing event include a writing brush, a pen, a mark pen, and a pencil. Candidate writing options for a brush color event in the target event include red, yellow, black, and white. Candidate writing options corresponding to the brush thickness event in the target event include 6, 8, 10, and 12. By looking up table 1 above, candidate writing options for the target writing event can be obtained and then displayed.
The advantage of this embodiment is that the first device will only display the candidate writing options upon request from the second device, saving processing resources consumed for displaying the candidate writing options for a long time from power on.
The foregoing is a general description of steps 410-430, and a detailed description will be provided below with respect to a specific implementation of step 420.
In one embodiment, step 420 includes:
displaying a writing event starting request;
receiving a second click operation of the object on the writing event starting request display area;
in response to the second click operation, a target writing event is determined from the writing event initiation request.
In this embodiment, after receiving the writing event initiation request, the writing event initiation request is displayed so as to inquire about the consent of the subject. The writing event start request display area refers to a display area included in the display screen of the writing event start request, and the writing event start request display area is used for the object to click. If a second click operation is received, the description object agrees to perform a writing effect determination service based on a writing event initiation request of the second device. Then correspondingly, in response to the second click operation, a target writing event is determined from the writing event initiation request.
The embodiment has the advantages that the interaction between the object and the first equipment and the interaction between the object and the second equipment are fully reflected by utilizing the display writing event to start the request and the second clicking operation, the processing flexibility is improved, and the personalized requirements of users are met.
Referring to FIG. 5, in one embodiment, the candidate writing options are a plurality of candidate writing options, step 310 includes:
step 510, obtaining the priority corresponding to the candidate writing option;
step 520, placing a plurality of candidate writing options on a candidate display list according to the order of priority from high to low;
step 530, displaying a plurality of candidate writing options according to the sequence in the candidate display list.
Steps 510-530 are described in detail below.
In step 510, the acquisition of the priority includes, but is not limited to, the following:
and determining the priority by adopting a mode of looking up a comparison table of options and priorities. The option and priority lookup table lists the correspondence between candidate written options and priorities, as follows is an example of an option and priority lookup table:
Figure SMS_2
TABLE 2
As shown in Table 2, for the target writing event to be a brush type event, candidate writing options include writing brush, pen, pencil, and Mark pen. Based on different priorities of the painting brush types, the priority of the writing brush is 10, the priority of the pen is 9, the priority of the pencil is 8 and the priority of the mark pen is 7. By looking up table 2 above, the priority of the candidate writing option can be obtained.
In addition to the look-up table described above, the priority may be determined by a priority label from which the candidate writing option has.
At step 520, a plurality of candidate writing options are placed on the candidate display list in a priority order from high to low. The candidate display list refers to a container for storing candidate writing options based on the level of priority. In one example, the candidate display list is { writing brush, pen, pencil, mark pen }, with a priority of 10, a priority of 9 for the pen, a priority of 8 for the pencil, and a priority of 7 for the mark pen. In another example, the candidate display list is { red, black, yellow, white }, with a priority of 10 for red, 9 for black, 8 for yellow, and 7 for white.
At step 530, a plurality of candidate writing options are displayed in order in the candidate display list. For example, if the candidate display list is { writing brush, pen, pencil, mark pen }, writing brush, pen, pencil, mark pen are sequentially displayed in the display area. Note that due to the limitation of the display area, the candidate writing options in the candidate display list may not all be displayed. For example, if the display screen only displays three candidate writing options at a time, then the writing brush, pen, and pencil will be displayed on the display area, and the Mark pen will not be displayed. Similarly, if the candidate display list is { red, black, yellow, white }, red, black, and yellow will be displayed on the display area, but not white.
The embodiment has the advantage that the degree of priority of different candidate writing options is met according to the priority, and the display flexibility is improved.
The foregoing is a general description of steps 510-530, and a detailed description of the specific implementation of step 510 is provided below.
In one embodiment, referring to fig. 6, step 510 includes:
step 610, obtaining the clicking times corresponding to the candidate writing options;
step 620, obtaining a use duration corresponding to the candidate writing option;
step 630, determining the priority of the candidate writing options according to the clicking times and the using time.
Steps 610-630 are described in detail below.
In step 610, the number of clicks refers to the number of first clicking operations corresponding to the candidate writing option, and represents the number of clicks performed by the object on the candidate writing option. The number of clicks may be obtained from a work log. It is also possible to set a counter that records the number of clicks of the candidate writing option and then obtain the number of clicks from the technician.
In step 620, the usage duration refers to the accumulated duration of the writing effect corresponding to the candidate writing option used by the second device after the candidate writing option is sent to the second device. The length of use may be obtained from a work log of the second device. It is also possible to provide a time accumulator that records the duration of use of the candidate writing option and then obtains the duration of use from the time accumulator.
In step 630, the priority of the candidate writing option is determined based on the number of clicks and the length of time of use.
The embodiment has the advantages that the preferential display requirements of different candidate writing options are met according to the clicking times and the using time, and the display flexibility is improved.
The foregoing is a general description of steps 610-630. A detailed description of step 630 is provided below.
In step 630, it includes:
determining a first score of the candidate writing option according to the clicking times;
determining a second score of the candidate writing option according to the using time length;
determining a total score for the candidate writing option based on the first score and the second score;
a priority is determined based on the total score of the candidate writing options.
The advantage of the embodiment using the first score and the second score for determining the priority is that: by effectively evaluating the priority of the priority writing selection, the higher priority candidate writing selection priority is set higher so as to preferentially display the candidate writing option, and the flexibility of displaying the candidate writing option can be improved.
Referring to fig. 7, in one embodiment, the target writing event is a plurality of target writing events, step 340 includes:
step 710, detecting a time difference from a time point of last transmission of the selected writing option to a current time;
Step 720, if the time difference is greater than the time threshold, transmitting a plurality of selected writing options corresponding to the plurality of target writing events to the second device.
In one example, the writing event initiation request contains two target writing events, including, for example, a brush type event and a brush color event. The selected writing option corresponding to the brush type event is "pencil" and the selected writing option corresponding to the brush color event is "red". The first device sends "pencil" and "red" to the second device together with the second device switching the type of brush and the color of the brush at the same time.
The embodiment has the advantages that a plurality of selected writing options corresponding to different target events can be sent in batches, the selected writing options of different writing events do not need to be sent frequently, the sending efficiency is improved, and the network overhead is saved.
Referring to fig. 8, an embodiment of the present disclosure further provides a writing effect determining apparatus, which may implement the writing effect determining method, and fig. 8 is a block diagram of a module structure of the writing effect determining apparatus provided by the embodiment of the present disclosure, where the apparatus includes: a display module 810, a touch module 820, a control module 830, and a communication module 840. Wherein the display module 810 is configured to display candidate writing options; a touch module 820 for receiving a first click operation of the writing option display area by the object; a control module 830 for determining a selected writing option in response to a first click operation; the communication module 840 is configured to send the selected writing option to the second device, so that when the first device writes to the second device, the second device displays the writing content based on the writing effect corresponding to the selected writing option.
It should be further noted that, the specific implementation manner of the writing effect determining apparatus is substantially the same as the specific embodiment of the writing effect determining method described above, and will not be described herein.
Referring to fig. 9, the embodiment of the present disclosure further provides an electronic pen, which may implement the above writing effect determining method, and fig. 9 is a block diagram of a module structure of the electronic pen provided in the embodiment of the present disclosure, where the electronic pen includes:
a display module 810 for displaying candidate writing options;
a touch module 820 for receiving a first click operation of the writing option display area by the object;
a control module 830 for determining a selected writing option in response to the first click operation;
a communication module 840 for transmitting the selected writing option to the second device;
and a writing module 910, configured to write to the second device, so that the second device displays the writing content based on the writing effect corresponding to the selected writing option.
According to the electronic pen, the touch screen (the touch module 820 and the display module 810) is additionally arranged on the pen body of the electronic pen, so that the function of quickly adjusting the writing effect is realized. The object can preset the most commonly used parameters into the electronic pen for calling at any time. The process can complete the quick switching of the writing effect only by about half a second by using the left hand because the secondary menu is not required to be selected.
Typically, the body of the electronic pen is provided with a switch button (which may be mechanical or non-mechanical), which button functionality may also be integrated into the brush type selection.
The writing module 910 includes a coding chip and electrodes having functions of transmitting and receiving electromagnetic waves for communicating with a touch module of a second device (e.g., a tablet). The control module 830 will take the necessary control of this portion to ensure that it is able to implement the underlying writing function.
The communication module 840 is used for the electronic pen to communicate with the second device, and transmit the configuration information of the object and the content displayed on the screen, where the communication module is preferably a wireless module, such as a bluetooth module, a WI-FI hotspot module, a WI-FI point-to-point module, and the like.
The control module 830 is configured to control the entire system, such as a single chip Microcomputer (MCU), FPGA, CPLD, etc.
The display module 810 is used for displaying graphics. It may employ LCD, OLED, electronic ink screen, etc. technologies. Compared with the display module in the second device, the area of the display module is smaller and the display module is closer to the finger, so that the operation is more convenient;
the touch module 820 is used to detect the touch behavior of an object on a display screen. The touch module is installed under the display module 810, and has grid-shaped electrodes inside, which detect the position of the subject's finger by means of a scan signal or capacitive coupling when the subject's finger touches a certain area of the screen.
Communication link during use of the object:
the second device controls the electronic pen to display different information: the second device sends button information to be displayed to a control module of the electronic pen through the wireless module; and the control module completes operations such as drawing on a screen according to the received information, and then sends the drawn graph to the display module.
After the object clicks the option button, the electronic pen feeds back the selected writing option to the second device: after the touch module of the electronic pen detects the clicking event of the object, the control module calculates the clicking event and judges which option icon the object clicks. The control module feeds back the information of the icon clicked by the object to the second device through the communication module, and the writing effect is updated in real time.
Optionally, the electronic pen may implement status display, for example, information such as a state of charge, a remaining usage period, and the like may be displayed. In a specific implementation of this embodiment, the electronic pen further includes:
the control module is further configured to obtain status information of the first device, where the status information includes any one of the following: the state of charge, the state of charge and the remaining use time of the device;
and the display module is also used for displaying state information, wherein the state information display area is not overlapped with the writing option display area.
The embodiment has the advantages that the object can realize the fast switching writing effect without barriers when writing, and the state information of the electronic pen can be timely fed back to the object, so that the interactivity with the object is improved.
It should be further noted that the specific implementation manner of the electronic pen is substantially the same as the specific embodiment of the writing effect determining method, and will not be described herein.
The disclosed embodiments also provide a computer device, the computer device comprising: the writing effect determining device comprises a memory, a processor, a program stored in the memory and capable of running on the processor, and a data bus for realizing connection communication between the processor and the memory, wherein the program is executed by the processor to realize the writing effect determining method. The computer equipment can be any intelligent terminal including a tablet personal computer, a vehicle-mounted computer and the like.
Referring to fig. 10, fig. 10 illustrates a hardware structure of a computer device according to another embodiment, where the computer device includes:
the processor 1010 may be implemented by a general-purpose CPU (Central Processing Unit ), a microprocessor, an application-specific integrated circuit (Application Specific Integrated Circuit, ASIC), or one or more integrated circuits, etc., for executing related programs to implement the technical solutions provided by the embodiments of the present disclosure;
The Memory 1020 may be implemented in the form of a Read Only Memory (ROM), a static storage device, a dynamic storage device, or a random access Memory (Random Access Memory, RAM). Memory 1020 may store an operating system and other application programs, and when the technical solutions provided by the embodiments of the present disclosure are implemented by software or firmware, relevant program codes are stored in memory 1020 and invoked by processor 1010 to perform the writing effect determining method of the embodiments of the present disclosure;
an input/output interface 1030 for implementing information input and output;
the communication interface 1040 is configured to implement communication interaction between the device and other devices, and may implement communication in a wired manner (such as USB, network cable, etc.), or may implement communication in a wireless manner (such as mobile network, WIFI, bluetooth, etc.);
a bus 1050 that transfers information between the various components of the device (e.g., processor 1010, memory 1020, input/output interface 1030, and communication interface 1040);
wherein processor 1010, memory 1020, input/output interface 1030, and communication interface 1040 implement communication connections therebetween within the device via a bus 1050.
The embodiment of the disclosure also provides a storage medium, which is a computer readable storage medium and is used for computer readable storage, the storage medium stores one or more programs, and the one or more programs can be executed by one or more processors to realize the writing effect determining method.
The memory, as a non-transitory computer readable storage medium, may be used to store non-transitory software programs as well as non-transitory computer executable programs. In addition, the memory may include high-speed random access memory, and may also include non-transitory memory, such as at least one magnetic disk storage device, flash memory device, or other non-transitory solid state storage device. In some embodiments, the memory optionally includes memory remotely located relative to the processor, the remote memory being connectable to the processor through a network. Examples of such networks include, but are not limited to, the internet, intranets, local area networks, mobile communication networks, and combinations thereof.
The embodiments described in the embodiments of the present disclosure are for more clearly describing the technical solutions of the embodiments of the present disclosure, and do not constitute a limitation on the technical solutions provided by the embodiments of the present disclosure, and as those skilled in the art can know that, with the evolution of technology and the appearance of new application scenarios, the technical solutions provided by the embodiments of the present disclosure are equally applicable to similar technical problems.
It will be appreciated by those skilled in the art that the solutions shown in fig. 3-7 are not limiting to the embodiments of the present disclosure, and may include more or fewer steps than shown, or certain steps may be combined, or different steps.
The above described apparatus embodiments are merely illustrative, wherein the units illustrated as separate components may or may not be physically separate, i.e. may be located in one place, or may be distributed over a plurality of network elements. Some or all of the modules may be selected according to actual needs to achieve the purpose of the solution of this embodiment.
Those of ordinary skill in the art will appreciate that all or some of the steps of the methods, systems, functional modules/units in the devices disclosed above may be implemented as software, firmware, hardware, and suitable combinations thereof.
The terms "first," "second," "third," "fourth," and the like in the description of the present application and in the above-described figures, if any, are used for distinguishing between similar objects and not necessarily for describing a particular sequential or chronological order. It is to be understood that the data so used may be interchanged where appropriate such that embodiments of the present application described herein may be implemented in sequences other than those illustrated or otherwise described herein. Furthermore, the terms "comprises," "comprising," and "having," and any variations thereof, are intended to cover a non-exclusive inclusion, such that a process, method, system, article, or apparatus that comprises a list of steps or elements is not necessarily limited to those steps or elements expressly listed but may include other steps or elements not expressly listed or inherent to such process, method, article, or apparatus.
It should be understood that in this application, "at least one" means one or more, and "a plurality" means two or more. "and/or" for describing the association relationship of the association object, the representation may have three relationships, for example, "a and/or B" may represent: only a, only B and both a and B are present, wherein a, B may be singular or plural. The character "/" generally indicates that the context-dependent object is an "or" relationship. "at least one of" or the like means any combination of these items, including any combination of single item(s) or plural items(s). For example, at least one (one) of a, b or c may represent: a, b, c, "a and b", "a and c", "b and c", or "a and b and c", wherein a, b, c may be single or plural.
In the several embodiments provided in this application, it should be understood that the disclosed apparatus and method may be implemented in other ways. For example, the apparatus embodiments described above are merely illustrative, e.g., the division of the units is merely a logical function division, and there may be additional divisions when actually implemented, e.g., multiple units or components may be combined or integrated into another system, or some features may be omitted or not performed. Alternatively, the coupling or direct coupling or communication connection shown or discussed with each other may be an indirect coupling or communication connection via some interfaces, devices or units, which may be in electrical, mechanical or other form.
The units described as separate units may or may not be physically separate, and units shown as units may or may not be physical units, may be located in one place, or may be distributed on a plurality of network units. Some or all of the units may be selected according to actual needs to achieve the purpose of the solution of this embodiment.
In addition, each functional unit in each embodiment of the present application may be integrated in one processing unit, or each unit may exist alone physically, or two or more units may be integrated in one unit. The integrated units may be implemented in hardware or in software functional units.
The integrated units, if implemented in the form of software functional units and sold or used as stand-alone products, may be stored in a computer readable storage medium. Based on such understanding, the technical solution of the present application may be embodied in essence or a part contributing to the prior art or all or part of the technical solution in the form of a software product stored in a storage medium, including multiple instructions to cause a computer device (which may be a personal computer, a server, or a network device, etc.) to perform all or part of the steps of the methods described in the embodiments of the present application. And the aforementioned storage medium includes: a U-disk, a removable hard disk, a Read-Only Memory (ROM), a random access Memory (Random Access Memory, RAM), a magnetic disk, or an optical disk, or other various media capable of storing a program.
Preferred embodiments of the disclosed embodiments are described above with reference to the accompanying drawings, and thus do not limit the scope of the claims of the disclosed embodiments. Any modifications, equivalent substitutions and improvements made by those skilled in the art without departing from the scope and spirit of the embodiments of the present disclosure shall fall within the scope of the claims of the embodiments of the present disclosure.

Claims (10)

1. A writing effect determining method, the method comprising:
displaying candidate writing options;
receiving a first click operation of an object on a writing option display area;
determining a selected writing option in response to the first click operation;
and sending the selected writing options to a second device, so that when the first device writes the second device, the second device displays writing content based on the writing effect corresponding to the selected writing options.
2. The writing effect determination method according to claim 1, wherein the displaying the candidate writing option includes:
receiving a writing event starting request sent by second equipment;
determining a target writing event from the writing event starting request;
and displaying candidate writing options based on the target writing event.
3. The writing effect determination method according to claim 1 or 2, wherein the candidate writing options are a plurality of candidate writing options, and the displaying the candidate writing options includes:
Acquiring priorities corresponding to candidate writing options;
placing a plurality of candidate writing options on a candidate display list according to the order of the priorities from high to low;
and displaying a plurality of candidate writing options according to the sequence in the candidate display list.
4. A writing effect determination method according to claim 3, wherein the acquiring the priority of the candidate writing option includes:
acquiring clicking times corresponding to the candidate writing options;
acquiring the use duration corresponding to the candidate writing option;
and determining the priority of the candidate writing options according to the clicking times and the using time.
5. The writing effect determination method of claim 2, wherein the target writing event is a plurality of target writing events, the transmitting the selected writing option to a second device comprising:
detecting a time difference from a time point of last transmission of the selected writing option to a current time;
and if the time difference is greater than the time threshold, transmitting a plurality of selected writing options corresponding to the plurality of target writing events to the second device.
6. A writing effect determining apparatus, characterized in that the apparatus comprises:
The display module is used for displaying candidate writing options;
the touch module is used for receiving a first clicking operation of the object on the writing option display area;
a control module for determining a selected writing option in response to the first click operation;
and the communication module is used for sending the selected writing options to the second equipment, so that when the first equipment writes the second equipment, the second equipment displays writing contents based on the writing effect corresponding to the selected writing options.
7. An electronic pen, the electronic pen comprising:
the display module is used for displaying candidate writing options;
the touch module is used for receiving a first clicking operation of the object on the writing option display area;
a control module for determining a selected writing option in response to the first click operation;
a communication module for transmitting the selected writing option to a second device;
and the writing module is used for writing the second equipment so that the second equipment displays writing content based on the writing effect corresponding to the selected writing option.
8. The electronic pen of claim 7, further comprising:
The control module is further configured to obtain status information of the first device, where the status information includes any one of the following: the state of charge, the state of charge and the remaining use time of the device;
the display module is further configured to display the status information, where the status information display area is not overlapped with the writing option display area.
9. A computer device comprising a memory, a processor, a program stored on the memory and executable on the processor, and a data bus for enabling a connection communication between the processor and the memory, the program when executed by the processor implementing the steps of the writing effect determining method according to any of claims 1 to 5.
10. A storage medium, which is a computer-readable storage medium, for computer-readable storage, characterized in that the storage medium stores one or more programs executable by one or more processors to implement the steps of the writing effect determining method of any one of claims 1 to 5.
CN202310669075.8A 2023-06-07 2023-06-07 Writing effect determining method and device, electronic pen, computer equipment and medium Pending CN116382558A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202310669075.8A CN116382558A (en) 2023-06-07 2023-06-07 Writing effect determining method and device, electronic pen, computer equipment and medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202310669075.8A CN116382558A (en) 2023-06-07 2023-06-07 Writing effect determining method and device, electronic pen, computer equipment and medium

Publications (1)

Publication Number Publication Date
CN116382558A true CN116382558A (en) 2023-07-04

Family

ID=86981037

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202310669075.8A Pending CN116382558A (en) 2023-06-07 2023-06-07 Writing effect determining method and device, electronic pen, computer equipment and medium

Country Status (1)

Country Link
CN (1) CN116382558A (en)

Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103530220A (en) * 2013-10-09 2014-01-22 华为技术有限公司 Display method and system and terminal for application program icons
US20140253468A1 (en) * 2013-03-11 2014-09-11 Barnesandnoble.Com Llc Stylus with Active Color Display/Select for Touch Sensitive Devices
US20140362024A1 (en) * 2013-06-07 2014-12-11 Barnesandnoble.Com Llc Activating voice command functionality from a stylus
CN108376036A (en) * 2017-01-30 2018-08-07 京瓷办公信息系统株式会社 Pen type input device and display input system
CN112269505A (en) * 2020-10-22 2021-01-26 维沃移动通信有限公司 Audio and video control method and device and electronic equipment
CN114968028A (en) * 2022-05-24 2022-08-30 浪潮卓数大数据产业发展有限公司 Method, apparatus, and medium for dynamically changing menu layout based on user behavior analysis
CN116048331A (en) * 2022-12-29 2023-05-02 中国联合网络通信集团有限公司 Menu ordering method and device, electronic equipment and storage medium

Patent Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20140253468A1 (en) * 2013-03-11 2014-09-11 Barnesandnoble.Com Llc Stylus with Active Color Display/Select for Touch Sensitive Devices
US20140362024A1 (en) * 2013-06-07 2014-12-11 Barnesandnoble.Com Llc Activating voice command functionality from a stylus
CN103530220A (en) * 2013-10-09 2014-01-22 华为技术有限公司 Display method and system and terminal for application program icons
CN108376036A (en) * 2017-01-30 2018-08-07 京瓷办公信息系统株式会社 Pen type input device and display input system
CN112269505A (en) * 2020-10-22 2021-01-26 维沃移动通信有限公司 Audio and video control method and device and electronic equipment
CN114968028A (en) * 2022-05-24 2022-08-30 浪潮卓数大数据产业发展有限公司 Method, apparatus, and medium for dynamically changing menu layout based on user behavior analysis
CN116048331A (en) * 2022-12-29 2023-05-02 中国联合网络通信集团有限公司 Menu ordering method and device, electronic equipment and storage medium

Similar Documents

Publication Publication Date Title
CN106020595B (en) Message reply method and device
US20210256077A1 (en) Methods, devices and computer-readable storage media for processing a hosted application
CN103473027A (en) Split-screen multi-task interaction method for communication terminal and communication terminal
CN103902056B (en) Dummy keyboard input method, equipment and system
EP3614250A1 (en) Data processing method and electronic device
CN104049887A (en) Methods for data transmission and electronic devices using the same
WO2022156606A1 (en) Information processing method and apparatus, and electronic device
CN113179204B (en) Message withdrawal method and device and electronic equipment
CN110022399B (en) Message display method and device, user terminal and readable storage medium
CN112230821B (en) Session display method and device, computer equipment and storage medium
CN104679239B (en) A kind of terminal input method
CN105426103A (en) Message editing method and device on mobile terminal
CN113259222A (en) Message processing method and device and electronic equipment
CN112947807A (en) Display method and device and electronic equipment
EP4095686A2 (en) Method for switching skin of mini-program page, and electronic device
CN109683760B (en) Recent content display method, device, terminal and storage medium
CN114327088A (en) Message sending method, device, electronic equipment and medium
CN112291412B (en) Application program control method and device and electronic equipment
CN107291564B (en) Information copying and pasting method and device and electronic equipment
WO2024012508A1 (en) Functional interface display method and apparatus
WO2023131092A1 (en) Information display method and apparatus
WO2023046105A1 (en) Message sending method and apparatus and electronic device
CN116382558A (en) Writing effect determining method and device, electronic pen, computer equipment and medium
CN113824627B (en) Group chat message display method and device, electronic equipment and storage medium
CN104346120A (en) Display method and electronic equipment

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
RJ01 Rejection of invention patent application after publication

Application publication date: 20230704

RJ01 Rejection of invention patent application after publication