CN107491210B - Multi-electromagnetic-pen writing distinguishing method and device and electronic equipment - Google Patents

Multi-electromagnetic-pen writing distinguishing method and device and electronic equipment Download PDF

Info

Publication number
CN107491210B
CN107491210B CN201710692116.XA CN201710692116A CN107491210B CN 107491210 B CN107491210 B CN 107491210B CN 201710692116 A CN201710692116 A CN 201710692116A CN 107491210 B CN107491210 B CN 107491210B
Authority
CN
China
Prior art keywords
pressure
electromagnetic
information
sensitive
preset
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.)
Active
Application number
CN201710692116.XA
Other languages
Chinese (zh)
Other versions
CN107491210A (en
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.)
Guangzhou Shiyuan Electronics Thecnology Co Ltd
Guangzhou Shirui Electronics Co Ltd
Original Assignee
Guangzhou Shiyuan Electronics Thecnology Co Ltd
Guangzhou Shirui Electronics 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 Guangzhou Shiyuan Electronics Thecnology Co Ltd, Guangzhou Shirui Electronics Co Ltd filed Critical Guangzhou Shiyuan Electronics Thecnology Co Ltd
Priority to CN201710692116.XA priority Critical patent/CN107491210B/en
Priority to PCT/CN2017/116083 priority patent/WO2019033643A1/en
Publication of CN107491210A publication Critical patent/CN107491210A/en
Application granted granted Critical
Publication of CN107491210B publication Critical patent/CN107491210B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

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/03Arrangements for converting the position or the displacement of a member into a coded form
    • G06F3/041Digitisers, e.g. for touch screens or touch pads, characterised by the transducing means
    • G06F3/0416Control or interface arrangements specially adapted for digitisers
    • 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/03Arrangements for converting the position or the displacement of a member into a coded form
    • G06F3/033Pointing devices displaced or positioned by the user, e.g. mice, trackballs, pens or joysticks; Accessories therefor
    • G06F3/0354Pointing devices displaced or positioned by the user, e.g. mice, trackballs, pens or joysticks; Accessories therefor with detection of 2D relative movements between the device, or an operating part thereof, and a plane or surface, e.g. 2D mice, trackballs, pens or pucks
    • G06F3/03545Pens or stylus
    • 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/03Arrangements for converting the position or the displacement of a member into a coded form
    • G06F3/033Pointing devices displaced or positioned by the user, e.g. mice, trackballs, pens or joysticks; Accessories therefor
    • G06F3/0354Pointing devices displaced or positioned by the user, e.g. mice, trackballs, pens or joysticks; Accessories therefor with detection of 2D relative movements between the device, or an operating part thereof, and a plane or surface, e.g. 2D mice, trackballs, pens or pucks
    • G06F3/03547Touch pads, in which fingers can move on a surface
    • 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/03Arrangements for converting the position or the displacement of a member into a coded form
    • G06F3/041Digitisers, e.g. for touch screens or touch pads, characterised by the transducing means
    • G06F3/0412Digitisers structurally integrated in a display
    • 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/03Arrangements for converting the position or the displacement of a member into a coded form
    • G06F3/041Digitisers, e.g. for touch screens or touch pads, characterised by the transducing means
    • G06F3/0414Digitisers, e.g. for touch screens or touch pads, characterised by the transducing means using force sensing means to determine a position
    • 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/03Arrangements for converting the position or the displacement of a member into a coded form
    • G06F3/041Digitisers, e.g. for touch screens or touch pads, characterised by the transducing means
    • G06F3/046Digitisers, e.g. for touch screens or touch pads, characterised by the transducing means by electromagnetic means

Landscapes

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

Abstract

The application provides a multi-electromagnetic-pen writing distinguishing method, a multi-electromagnetic-pen writing distinguishing device and electronic equipment, wherein the method comprises the steps of calculating touch position information and pressure information of an electromagnetic pen by acquiring electromagnetic touch signals generated during writing of the electromagnetic pen; expanding the pressure-sensitive information to ensure that the pressure-sensitive information generated by different electromagnetic pens has different characteristics; and packaging the touch position information and the expanded pressure-sensitive information into a multi-point touch signal, matching writing attribute information preset for the electromagnetic pen according to the expanded pressure-sensitive information, and generating a writing track with preset writing attributes at the touch position of the electromagnetic pen. By setting different writing attribute information such as colors and line shapes, different writing tracks of the colors and the line shapes can be generated when different electromagnetic pens are used for writing, and therefore the writing contents corresponding to all writers can be distinguished.

Description

Multi-electromagnetic-pen writing distinguishing method and device and electronic equipment
Technical Field
The present disclosure relates to the field of electromagnetic touch technologies, and in particular, to a method and an apparatus for distinguishing writing with multiple electromagnetic pens and an electronic device.
Background
With the further and deep reformation of teaching, the electronic whiteboard product capable of supporting handwriting is concerned by the education market, and the market demand is continuously increased. When the electronic whiteboard is used for classroom interactive teaching, a plurality of students may need to answer questions on the electronic whiteboard at the same time, and aiming at the requirement, the electronic whiteboard supporting synchronous handwriting of a plurality of people exists at present.
However, in the conventional electronic whiteboard supporting multi-user synchronous handwriting, the colors of the handwriting written by multiple pens at the same time are the same, and it is difficult to distinguish the writing contents corresponding to each writer at the adjacent, crossed and overlapped parts of the writing contents.
Disclosure of Invention
In view of this, the present application provides a method and an apparatus for distinguishing writing with multiple electromagnetic pens, and an electronic device, which aim to solve the problem that it is difficult to distinguish the writing contents corresponding to each writer when multiple electromagnetic pens write.
Specifically, the method is realized through the following technical scheme:
a multi-electromagnetic-pen writing distinguishing method is applied to an electronic device loaded with an operating system, and comprises the following steps:
acquiring an electromagnetic touch signal generated when an electromagnetic pen with a preset electromagnetic frequency is contacted with an electronic panel, and calculating touch position information and pressure information of the electromagnetic pen according to the electromagnetic touch signal;
expanding the pressure-sensitive information according to a preset expansion algorithm corresponding to a preset electromagnetic frequency;
packaging the touch position information and the expanded pressure-sensitive information into a multi-point touch signal, and analyzing the multi-point touch signal, wherein the expanded pressure-sensitive information is analyzed into a floating point type;
and converting the floating-point type pressure-sensitive information into expanded pressure-sensitive information according to a preset conversion algorithm, matching the expanded pressure-sensitive information with writing attribute information preset by the electromagnetic pen, and generating a writing track with a preset writing attribute at the touch position of the electromagnetic pen.
In one embodiment, the expanded pressure-sensitive information is pressure-sensitive information in a preset form corresponding to different electromagnetic pens;
the preset form comprises: singular and even forms, fixed mantissa forms.
In one embodiment, when the preset format is a singular format and an even format, and is used for distinguishing two electromagnetic pens, the preset conversion algorithm is as follows:
expanding the pressure-sensitive value in the pressure-sensitive information of one electromagnetic pen according to a formula (1);
expanding the pressure-sensitive value in the pressure-sensitive information of the other electromagnetic pen according to the formula (2);
Fa1=2×Fa0+1……(1)
Fb1=2×Fb0……(2)
wherein: fa0、Fa1Pressure-sensitive value, F, in pressure-sensitive information before and after expansion for an electromagnetic penb0、Fb1And expanding the pressure-sensitive value in the pressure-sensitive information before and after the expansion of another electromagnetic pen.
In one embodiment, the preset conversion algorithm is:
converting the floating-point type pressure-sensitive value into an expanded pressure-sensitive value according to a formula (3);
F=INT(f×(2×u-1)+0.5)……(3)
wherein: f is the pressure-sensitive value of the electromagnetic pen floating point type, F is the expanded pressure-sensitive value, u is the preset pressure-sensitive level of the electromagnetic pen, and INT is the rounding operation.
In one embodiment, when the preset form is a fixed mantissa form and is used for distinguishing no more than ten electromagnetic pens, the preset conversion algorithm is:
expanding the pressure-sensitive value in the pressure-sensitive information of the electromagnetic pen according to a formula (4);
Fn1=10×Fn0+n……(4)
wherein: fn0、Fn1The n is any integer of 0, 1, … … and 9, and is the pressure sensing value in the pressure sensing information before and after the expansion of the (n + 1) th electromagnetic pen.
In one embodiment, the preset conversion algorithm is:
converting the floating-point type pressure-sensitive value into an expanded pressure-sensitive value according to a formula (5);
Fn=INT(fn×(2×vn-1)+0.5)……(5)
wherein: fn is the floating point type pressure-sensitive value of the n +1 st electromagnetic pen, Fn is the expanded pressure-sensitive value, vn is the preset pressure-sensitive level of the electromagnetic pen, and INT is the rounding operation.
In one embodiment, the method further comprises:
and adjusting the line type thickness and the color depth of the writing track according to the expanded pressure information.
In one embodiment, the method further comprises:
when detecting the setting information for modifying the writing attribute and the expanded pressure-sensitive information triggering the setting information, associating the modified writing attribute information with the expanded pressure-sensitive information;
when detecting the setting information for modifying the writing attribute of the electromagnetic pen with the name of A, associating the modified writing attribute information with the expanded pressure information of the electromagnetic pen;
wherein the writing attributes include: line type, color, font, identifier.
The application also discloses many electromagnetism pens write and distinguish device includes:
the calculation module is used for acquiring an electromagnetic touch signal generated when an electromagnetic pen with a preset electromagnetic frequency is contacted with the electronic panel, and calculating touch position information and pressure information of the electromagnetic pen according to the electromagnetic touch signal; and
expanding the pressure-sensitive information according to a preset expansion algorithm corresponding to a preset electromagnetic frequency;
the sending module is used for packaging the touch position information and the expanded pressure-sensitive information into a multi-point touch signal and analyzing the multi-point touch signal, wherein the expanded pressure-sensitive information is analyzed into a floating point type;
the writing module is used for converting the floating-point type pressure-sensitive information into expanded pressure-sensitive information according to a preset conversion algorithm, matching the expanded pressure-sensitive information into writing attribute information preset by the electromagnetic pen according to the expanded pressure-sensitive information, and generating a writing track with a preset writing attribute at the touch position of the electromagnetic pen.
The application also discloses an electronic device, including:
a processor;
a memory for storing processor-executable instructions;
wherein the processor is configured to:
acquiring an electromagnetic touch signal generated when an electromagnetic pen with a preset electromagnetic frequency is contacted with an electronic panel, and calculating touch position information and pressure information of the electromagnetic pen according to the electromagnetic touch signal;
expanding the pressure-sensitive information according to a preset expansion algorithm corresponding to a preset electromagnetic frequency;
packaging the touch position information and the expanded pressure-sensitive information into a multi-point touch signal, and analyzing the multi-point touch signal, wherein the expanded pressure-sensitive information is analyzed into a floating point type;
and converting the floating-point type pressure-sensitive information into expanded pressure-sensitive information according to a preset conversion algorithm, matching the expanded pressure-sensitive information with writing attribute information preset by the electromagnetic pen, and generating a writing track with a preset writing attribute at the touch position of the electromagnetic pen.
In the application, different electromagnetic pens have different electromagnetic frequency ranges, and touch position information and pressure information of the electromagnetic pens are calculated by acquiring electromagnetic touch signals generated when the electromagnetic pens write; expanding the pressure-sensitive information to ensure that the pressure-sensitive information generated by different electromagnetic pens has different characteristics; the touch position information and the expanded pressure-sensitive information are encapsulated into a multi-point touch signal, and the expanded pressure-sensitive information is analyzed into a floating point type in the process of analyzing the multi-point touch signal; and converting the floating-point type pressure-sensitive information into expanded pressure-sensitive information, matching the expanded pressure-sensitive information with writing attribute information preset for the electromagnetic pen according to the expanded pressure-sensitive information, and generating a writing track with the preset writing attribute at the touch position of the electromagnetic pen. Writing attribute information of each electromagnetic pen is preset, the writing attribute information comprises colors, line shapes and the like, and different colors and line shapes are set, so that writing tracks of different colors and line shapes can be generated when different electromagnetic pens are used for writing, and writing contents corresponding to writers are distinguished.
Drawings
FIG. 1 is a flow chart illustrating a method for multi-pen writing differentiation in accordance with an exemplary embodiment of the present application;
FIG. 2 is a schematic diagram illustrating an exemplary embodiment of the present application that distinguishes two electromagnetic pens;
FIG. 3 is a schematic diagram illustrating an electromagnetic pen modifying its writing attributes according to an exemplary embodiment of the present application;
FIG. 4 is a schematic diagram illustrating modification of writing attributes according to electromagnetic pen names according to an exemplary embodiment of the present application;
FIG. 5 is a logic block diagram illustrating a multi-pen writing differentiation apparatus in accordance with an exemplary embodiment of the present application;
fig. 6 is a logic block diagram of an electronic device shown in an exemplary embodiment of the present application.
Detailed Description
Reference will now be made in detail to the exemplary embodiments, examples of which are illustrated in the accompanying drawings. When the following description refers to the accompanying drawings, like numbers in different drawings represent the same or similar elements unless otherwise indicated. The embodiments described in the following exemplary embodiments do not represent all embodiments consistent with the present application. Rather, they are merely examples of apparatus and methods consistent with certain aspects of the present application, as detailed in the appended claims.
The terminology used herein is for the purpose of describing particular embodiments only and is not intended to be limiting of the application. As used in this application and the appended claims, the singular forms "a", "an", and "the" are intended to include the plural forms as well, unless the context clearly indicates otherwise. It should also be understood that the term "and/or" as used herein refers to and encompasses any and all possible combinations of one or more of the associated listed items.
It is to be understood that although the terms first, second, third, etc. may be used herein to describe various information, such information should not be limited to these terms. These terms are only used to distinguish one type of information from another. For example, first information may also be referred to as second information, and similarly, second information may also be referred to as first information, without departing from the scope of the present application. The word "if" as used herein may be interpreted as "at … …" or "when … …" or "in response to a determination", depending on the context.
As shown in fig. 1, a multi-electromagnetic pen writing differentiation method may include the steps of:
step S110: acquiring an electromagnetic touch signal generated when an electromagnetic pen with a preset electromagnetic frequency is contacted with an electronic panel, and calculating touch position information and pressure information of the electromagnetic pen according to the electromagnetic touch signal;
step S120: expanding the pressure-sensitive information according to a preset expansion algorithm corresponding to a preset electromagnetic frequency;
according to the multi-electromagnetic-pen writing distinguishing method provided by the embodiment of the invention, the execution main body can be a terminal, wherein the terminal can be electronic equipment such as an electronic flat panel supporting electromagnetic pen writing, and the like, and the terminal can be internally provided with application programs such as an electronic white board and the like, and the application programs support setting of writing attributes such as different colors and the like for a plurality of electromagnetic pens.
The electromagnetic pen is a device capable of generating electromagnetic waves, when the electromagnetic pen is in contact with an electronic panel (for example, in the writing process), a touch frame device in the electronic panel can calculate the contact position (touch position information) of the electromagnetic pen and the electronic panel by receiving electromagnetic waves (electromagnetic touch signals) sent by the electromagnetic pen, and the electromagnetic wave frequency bands sent by different electromagnetic pens in the application are different, for example, the preset electromagnetic frequency of a 1024-level electromagnetic pen A is 120KHz-140KHz, the preset electromagnetic frequency of a 1024-level electromagnetic pen B is 150KHz-170KHz, although the pressing force during writing is possibly the same, the electromagnetic waves generated by the electromagnetic pen A are always in the range of 120KHz-140KHz, the electromagnetic waves generated by the electromagnetic pen B are always in the range of 150KHz-170KHz, so that the electromagnetic waves sent by which electromagnetic pen can be distinguished according to the range of the received electromagnetic waves, after calculating the pressure information according to the electromagnetic touch signal, the touch frame device expands the pressure information according to a preset expansion algorithm, so that the pressure information of different electromagnetic pens has different forms, namely the expanded pressure information has the pressure information of the preset forms corresponding to the different electromagnetic pens; for example, when 2 electromagnetic pens are distinguished, the singular number of 1, 3, 5 … … and the like can be used as expanded pressure-sensitive information of one electromagnetic pen, and the even number of 0, 2, 4 … … and the like can be used as expanded pressure-sensitive information of another electromagnetic pen; or the expanded pressure-sensitive information of one electromagnetic pen can be changed into the mantissas of 0, and the expanded pressure-sensitive information of the other electromagnetic pen can be changed into the mantissas of 1, and the like. The subsequent program can distinguish the electromagnetic pen according to the pressure information through expansion.
Step S130: packaging the touch position information and the expanded pressure-sensitive information into a multi-point touch signal, and analyzing the multi-point touch signal, wherein the expanded pressure-sensitive information is analyzed into a floating point type;
the multi-touch signal is usually in the form of (X, Y, Down, Up, Move), (X, Y) indicates the coordinate position of the touch, and Down, Up, Move describe three states of touch action press, lift, and slide, respectively. The multi-touch signal inputted from the outside is transmitted to the operating system and can be received by the application program, and the operating system analyzes the multi-touch signal to identify the information therein, wherein the expanded pressure-sensitive information is analyzed to be of a floating point type, for example, floating point numbers between 0.0 and 1.0.
Step S140: and converting the floating-point type pressure-sensitive information into expanded pressure-sensitive information according to a preset conversion algorithm, matching the expanded pressure-sensitive information with writing attribute information preset by the electromagnetic pen, and generating a writing track with a preset writing attribute at the touch position of the electromagnetic pen.
For example, 100 and 101 are difficult to distinguish after being converted into floating point numbers, and therefore, according to a preset conversion algorithm, floating point type pressure sensing information is converted into expanded pressure sensing information, that is, the floating point type pressure sensing information is restored into the form of the expanded pressure sensing information, so that which electromagnetic pen the multi-point touch signal belongs to can be distinguished according to the expanded pressure sensing information, different writing attribute information can be preset for different electromagnetic pens, for example, one electromagnetic pen is set to be red, the other electromagnetic pen is set to be blue, so that the writing attribute information can be matched according to the expanded pressure sensing information, and a writing track with corresponding writing attributes is generated at a touch position, for example, the writing track of one electromagnetic pen is red, and the writing track of the other electromagnetic pen is blue. Although the writing attribute of electromagnetic pen can also be changed to traditional mode, the writing attribute of different electromagnetic pens is the same, if want to write out different colours then will write the attribute constantly, and many people still can not distinguish each person of writing's writing content when writing simultaneously, and this application can set up different colours for different electromagnetic pens, writing attributes such as linear, when many electromagnetic pens write simultaneously, can generate different colours, linear writing orbit, thereby distinguish the writing content that each person of writing corresponds, also can regard different electromagnetic pens as "color pen" to use, the problem of writing the attribute has frequently been saved to the modification.
The above describes how to obtain the expanded pressure information in the singular form and the even form, and the fixed mantissa form, by distinguishing the different electromagnetic pens according to the expanded pressure information in the preset form.
For distinguishing two electromagnetic pens by pressure-sensitive information in the singular form and the even form, the preset conversion algorithm may be:
expanding the pressure-sensitive value in the pressure-sensitive information of one electromagnetic pen according to a formula (1);
expanding the pressure-sensitive value in the pressure-sensitive information of the other electromagnetic pen according to the formula (2);
Fa1=2×Fa0+1……(1)
Fb1=2×Fb0……(2)
wherein: fa0、Fa1Pressure-sensitive value, F, in pressure-sensitive information before and after expansion for an electromagnetic penb0、Fb1And expanding the pressure-sensitive value in the pressure-sensitive information before and after the expansion of another electromagnetic pen.
The pressure-sensitive values obtained by the expansion according to the formula (1) are both singular numbers, and the pressure-sensitive values obtained by the expansion according to the formula (2) are both even numbers. As shown in fig. 2, taking 1024-level electromagnetic pen a and electromagnetic pen B as an example to write on the electronic tablet 200, if the pressure sensitivity values corresponding to writing are all 100, the formula (1): 2 × 100+1 is 201, the pressure sensitivity value of the electromagnetic pen a is expanded to 201, and the pressure sensitivity value is expressed by the formula (2): the pressure-sensitive value of the electromagnetic pen B is expanded to 200 by 2 × 100 ═ 200, so that the touch signal generated by the electromagnetic pen can be distinguished by whether the pressure-sensitive value is in the singular form or in the even form.
After the analysis of the operating system, the odd-numbered form and the even-numbered form of pressure-sensitive information become floating-point type pressure-sensitive information with extremely small difference, and in order to enable an application program to distinguish which electromagnetic pen generates the multi-touch signal, the floating-point type pressure-sensitive value is converted into the expanded pressure-sensitive value according to the formula (3);
F=INT(f×(2×u-1)+0.5)……(3)
wherein: f is the pressure-sensitive value of the electromagnetic pen floating point type, F is the expanded pressure-sensitive value, u is the preset pressure-sensitive level of the electromagnetic pen, and INT is the rounding operation.
For example, the expanded pressure-sensitive value 200 is 0.09765625 after being converted into a floating point type with 8 bits, the expanded pressure-sensitive value 201 is 0.09814453 after being converted into a floating point type with 8 bits, and calculation is performed according to the formula (3) for a 1024-level electromagnetic pen: INT (0.09765625 × (2 × 1024-1) +0.5) ═ 200, INT (0.09814453 × (2 × 1024-1) +0.5) ═ 201, where increasing the value by 0.5 can offset the numerical deviation that occurs in the rounding operation during reduction due to rounding involved in the conversion to the floating point type, and therefore the floating point type pressure sensitivity value can be accurately reduced to the expanded pressure sensitivity value. And then, the electromagnetic pen to which the received multi-point touch information belongs can be distinguished through the odd-even judgment of the pressure sensing value, so that the application program generates a writing track according to the writing attribute corresponding to the multi-point touch information. For example, a teacher answers a question "1 + 1" with a blue electromagnetic pen before the student on the electronic tablet, the student answers "2" with the blue electromagnetic pen, and the teacher can draw a mark of "check mark" or "x" with a red electromagnetic pen to distinguish the writing contents corresponding to each writer conveniently by different colors.
For distinguishing no more than ten electromagnetic pens by pressure-sensitive information in the form of fixed mantissas, the preset conversion algorithm may be:
expanding the pressure-sensitive value in the pressure-sensitive information of the electromagnetic pen according to a formula (4);
Fn1=10×Fn0+n……(4)
wherein: fn0、Fn1The n is any integer of 0, 1, … … and 9, and is the pressure sensing value in the pressure sensing information before and after the expansion of the (n + 1) th electromagnetic pen.
After the pressure-sensitive values of the same electromagnetic pen are expanded by the above formula (4), pressure-sensitive values with fixed mantissas can be obtained, taking 1024-level 1 st to 10 th electromagnetic pens to write on the electronic tablet as an example, if the pressure-sensitive values corresponding to writing are all 100, the method is represented by the formula (4): the pressure sensitivity value of the 1 st electromagnetic pen is expanded to 1000 by 10 × 100+0, and is expressed by the formula (4): the pressure sensitivity value of the 2 nd electromagnetic pen is expanded to 1001 by 10 × 100+1 ═ 1001, and the pressure sensitivity value is expressed by the formula (4): 1009 is the pressure sensitivity value of 10 × 100+9, 1009 is expanded to the pressure sensitivity value of the 10 th electromagnetic pen, 1009, the mantissa after the expansion according to the formula (4) of the pressure sensitivity value generated by the same electromagnetic pen is the same, so that the touch signal generated by the electromagnetic pen can be distinguished through the mantissa form of the expanded pressure sensitivity value.
After the analysis of the operating system, the pressure-sensitive information in the form of the fixed mantissa is changed into floating-point pressure-sensitive information which cannot be directly identified, and in order to enable an application program to distinguish which electromagnetic pen generates the multi-touch signal, the floating-point pressure-sensitive value is converted into an expanded pressure-sensitive value according to a formula (5);
Fn=INT(fn×(2×vn-1)+0.5)……(5)
wherein: f. ofnIs a floating point type pressure-sensitive value of the n +1 electromagnetic pen, FnFor expanded pressure-sensitive value, vnAnd INT is rounding operation for the preset pressure induction grade of the electromagnetic pen.
For example, the expanded pressure-sensitive value 1000 is 0.09765625 after being converted into a floating point type with 8 bits, the expanded pressure-sensitive value 2000 is 0.1953125 after being converted into a floating point type with 8 bits, and calculation is performed according to the formula (5) for a 1024-level electromagnetic pen: INT (0.09765625 × (2 × 1024-1) +0.5) — 1000, where increasing the value of 0.5 can offset the numerical deviation of the rounding operation during the reduction due to the rounding involved in the conversion into the floating point type, so that the floating point type pressure-sensitive value can be accurately reduced to the expanded pressure-sensitive value. And then, the electromagnetic pen to which the received multi-point touch information belongs can be distinguished through the odd-even judgment of the pressure sensing value, so that the application program generates a writing track according to the writing attribute corresponding to the multi-point touch information.
In the writing process of the electromagnetic pen, different pressure feelings are generated according to different dynamics of a writer, so that the line type thickness, the color depth and the like of a writing track can be changed according to the writing dynamics, and the feeling of actually writing on paper by using a writing brush (original handwriting) is realized. Although the pressure-sensitive value is expanded for distinguishing the electromagnetic pen, the expanded pressure-sensitive value is in direct proportion to the original pressure-sensitive value, so that the line-type thickness and the color depth of the writing track can be adjusted according to the expanded pressure-sensitive information. For example, when two electromagnetic pens are distinguished by pressure information in the singular form and the even form, the expanded pressure values 0 and 1 can be corresponding to the line thickness and the color depth corresponding to the pressure value 0 before the expansion, and the expanded pressure values 2 and 3 can be corresponding to the line thickness and the color depth corresponding to the pressure value 1 before the expansion; when no more than ten electromagnetic pens are distinguished by pressure sensitivity information in a fixed mantissa form, expanded pressure sensitivity values 0, 1, … … and 9 can be associated with the line type thickness and the color depth corresponding to the pressure sensitivity value 0 before expansion, and expanded pressure sensitivity values 10, 11, … … and 19 can be associated with the line type thickness and the color depth corresponding to the pressure sensitivity value 1 before expansion. Therefore, when the writing contents of the electromagnetic pens are distinguished, the original handwriting can be written.
Generally, the number of distinguishable electromagnetic pens configured for an electronic tablet is limited, and of course, the number of electromagnetic pens is also limited, and it is substantially impossible to provide one electromagnetic pen for each color, so that it is necessary to provide the electromagnetic pen with a function of modifying writing properties, and 2 exemplary modifications are provided below:
when detecting the setting information for modifying the writing attribute and the expanded pressure-sensitive information triggering the setting information, associating the modified writing attribute information with the expanded pressure-sensitive information;
when detecting the setting information for modifying the writing attribute of the electromagnetic pen with the name of A, associating the modified writing attribute information with the expanded pressure information of the electromagnetic pen;
wherein the writing attributes include: line type, color, font, identifier.
As shown in fig. 3, a user modifies writing attributes of an electromagnetic pen on an electronic tablet 300, the modified writing attribute information is associated with the electromagnetic pen that triggers the setting information, that is, which electromagnetic pen is currently modifying the writing attribute information, which indicates that the writing attribute of the electromagnetic pen is modified, and during the operation of the electromagnetic pen, which electromagnetic pen is in operation can be distinguished according to an electromagnetic touch signal generated by the electromagnetic pen, so that the modified writing attribute information can be associated with the expanded pressure information. The modification mode is direct and convenient, but when the number of the electromagnetic pens is large (for example, 10 electromagnetic pens), 10 electromagnetic pens are required to be replaced to modify the writing attribute information one by one, so that the operation burden of a user is increased, as shown in fig. 4, the modification mode according to the pen name is further provided, the user modifies the writing attribute of the electromagnetic pen on the electronic tablet 400, namely, the writing attribute information of one electromagnetic pen is modified, the electromagnetic pen has the modified writing attribute, and the modification mode is visual and convenient.
Corresponding to the embodiments of the multi-electromagnetic-pen writing distinguishing method, the application also provides embodiments of a multi-electromagnetic-pen writing distinguishing device.
Referring to fig. 5, the multi-pen writing differentiating device 500 includes:
the calculating module 510 is configured to obtain an electromagnetic touch signal generated when an electromagnetic pen with a preset electromagnetic frequency contacts the electronic tablet, and calculate touch position information and pressure information of the electromagnetic pen according to the electromagnetic touch signal; and
expanding the pressure-sensitive information according to a preset expansion algorithm corresponding to a preset electromagnetic frequency;
a sending module 520, configured to encapsulate the touch position information and the expanded pressure-sensitive information into a multi-point touch signal, and analyze the multi-point touch signal, where the expanded pressure-sensitive information is analyzed into a floating point type;
the writing module 530 is configured to convert the floating-point type pressure-sensitive information into expanded pressure-sensitive information according to a preset conversion algorithm, match the expanded pressure-sensitive information with writing attribute information preset by the electromagnetic pen, and generate a writing track with a preset writing attribute at a touch position of the electromagnetic pen.
Referring to fig. 6, the present application further provides an electronic device 600, including:
a processor 610;
a memory 620 for storing processor-executable instructions;
wherein the processor 610 is configured to:
acquiring an electromagnetic touch signal generated when an electromagnetic pen with a preset electromagnetic frequency is contacted with an electronic panel, and calculating touch position information and pressure information of the electromagnetic pen according to the electromagnetic touch signal;
expanding the pressure-sensitive information according to a preset expansion algorithm corresponding to a preset electromagnetic frequency;
packaging the touch position information and the expanded pressure-sensitive information into a multi-point touch signal, and analyzing the multi-point touch signal, wherein the expanded pressure-sensitive information is analyzed into a floating point type;
and converting the floating-point type pressure-sensitive information into expanded pressure-sensitive information according to a preset conversion algorithm, matching the expanded pressure-sensitive information with writing attribute information preset by the electromagnetic pen, and generating a writing track with a preset writing attribute at the touch position of the electromagnetic pen.
The implementation process of the functions and actions of each unit in the above device is specifically described in the implementation process of the corresponding step in the above method, and is not described herein again.
For the device embodiments, since they substantially correspond to the method embodiments, reference may be made to the partial description of the method embodiments for relevant points. The above-described embodiments of the apparatus are merely illustrative, and the units described as separate parts may or may not be physically separate, and parts displayed 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 modules can be selected according to actual needs to achieve the purpose of the scheme of the application. One of ordinary skill in the art can understand and implement it without inventive effort.
The above description is only exemplary of the present application and should not be taken as limiting the present application, as any modification, equivalent replacement, or improvement made within the spirit and principle of the present application should be included in the scope of protection of the present application.

Claims (8)

1. A multi-electromagnetic-pen writing distinguishing method applied to an electronic device loaded with an operating system is characterized by comprising the following steps of:
acquiring an electromagnetic touch signal generated when an electromagnetic pen with a preset electromagnetic frequency is contacted with an electronic panel, and calculating touch position information and pressure information of the electromagnetic pen according to the electromagnetic touch signal;
expanding the pressure-sensitive information according to a preset expansion algorithm corresponding to a preset electromagnetic frequency;
packaging the touch position information and the expanded pressure-sensitive information into a multi-point touch signal, and analyzing the multi-point touch signal, wherein the expanded pressure-sensitive information is analyzed into a floating point type;
converting the floating-point type pressure-sensitive information into expanded pressure-sensitive information according to a preset conversion algorithm, matching the expanded pressure-sensitive information into writing attribute information preset by the electromagnetic pen, and generating a writing track with a preset writing attribute at the touch position of the electromagnetic pen;
the expanded pressure-sensitive information is pressure-sensitive information in a preset form corresponding to different electromagnetic pens; the preset form comprises: singular and even forms, fixed mantissa forms; when the preset form is a singular form and an even form and is used for distinguishing two electromagnetic pens, the preset conversion algorithm is as follows:
expanding the pressure-sensitive value in the pressure-sensitive information of one electromagnetic pen according to a formula (1);
expanding the pressure-sensitive value in the pressure-sensitive information of the other electromagnetic pen according to the formula (2);
Fa1=2×Fa0+1……(1)
Fb1=2×Fb0……(2)
wherein: fa0、Fa1Pressure-sensitive value, F, in pressure-sensitive information before and after expansion for an electromagnetic penb0、Fb1To another oneThe electromagnetic pen expands the pressure value in the pressure information before and after expansion.
2. A method for differentiating writing with multiple electromagnetic pens according to claim 1, wherein said predetermined conversion algorithm is:
converting the floating-point type pressure-sensitive value into an expanded pressure-sensitive value according to a formula (3);
F=INT(f×(2×u-1)+0.5)……(3)
wherein: f is the pressure-sensitive value of the electromagnetic pen floating point type, F is the expanded pressure-sensitive value, u is the preset pressure-sensitive level of the electromagnetic pen, and INT is the rounding operation.
3. A multi-electromagnetic pen writing differentiation method according to claim 1, wherein when said preset form is a fixed mantissa form and is used to differentiate no more than ten electromagnetic pens, said preset conversion algorithm is:
expanding the pressure-sensitive value in the pressure-sensitive information of the electromagnetic pen according to a formula (4);
Fn1=10×Fn0+n……(4)
wherein: fn0、Fn1The n is any integer of 0, 1, … … and 9, and is the pressure sensing value in the pressure sensing information before and after the expansion of the (n + 1) th electromagnetic pen.
4. A method for differentiating writing with multiple electromagnetic pens according to claim 3, wherein said predetermined conversion algorithm is:
converting the floating-point type pressure-sensitive value into an expanded pressure-sensitive value according to a formula (5);
Fn=INT(fn×(2×vn-1)+0.5)……(5)
wherein: f. ofnIs a floating point type pressure-sensitive value of the n +1 electromagnetic pen, FnFor expanded pressure-sensitive value, vnAnd INT is rounding operation for the preset pressure induction grade of the electromagnetic pen.
5. A multi-electromagnetic-pen writing differentiation method according to any of claims 1 to 4, characterized in that said method further comprises:
and adjusting the line type thickness and the color depth of the writing track according to the expanded pressure information.
6. A multi-electromagnetic-pen writing differentiation method according to any of claims 1 to 4, characterized in that said method further comprises:
when detecting the setting information for modifying the writing attribute and the expanded pressure-sensitive information triggering the setting information, associating the modified writing attribute information with the expanded pressure-sensitive information;
when detecting the setting information for modifying the writing attribute of the electromagnetic pen with the name of A, associating the modified writing attribute information with the expanded pressure information of the electromagnetic pen;
wherein the writing attributes include: line type, color, font, identifier.
7. A multi-pen writing differentiation device, comprising:
the calculation module is used for acquiring an electromagnetic touch signal generated when an electromagnetic pen with a preset electromagnetic frequency is contacted with the electronic panel, and calculating touch position information and pressure information of the electromagnetic pen according to the electromagnetic touch signal; and
expanding the pressure-sensitive information according to a preset expansion algorithm corresponding to a preset electromagnetic frequency;
the sending module is used for packaging the touch position information and the expanded pressure-sensitive information into a multi-point touch signal and analyzing the multi-point touch signal, wherein the expanded pressure-sensitive information is analyzed into a floating point type;
the writing module is used for converting the floating-point type pressure-sensitive information into expanded pressure-sensitive information according to a preset conversion algorithm, matching the expanded pressure-sensitive information into writing attribute information preset by the electromagnetic pen according to the expanded pressure-sensitive information, and generating a writing track with a preset writing attribute at the touch position of the electromagnetic pen;
the expanded pressure-sensitive information is pressure-sensitive information in a preset form corresponding to different electromagnetic pens; the preset form comprises: singular and even forms, fixed mantissa forms; when the preset form is a singular form and an even form and is used for distinguishing two electromagnetic pens, the preset conversion algorithm is as follows:
expanding the pressure-sensitive value in the pressure-sensitive information of one electromagnetic pen according to a formula (1);
expanding the pressure-sensitive value in the pressure-sensitive information of the other electromagnetic pen according to the formula (2);
Fa1=2×Fa0+1……(1)
Fb1=2×Fb0……(2)
wherein: fa0、Fa1Pressure-sensitive value, F, in pressure-sensitive information before and after expansion for an electromagnetic penb0、Fb1And expanding the pressure-sensitive value in the pressure-sensitive information before and after the expansion of another electromagnetic pen.
8. An electronic device, comprising:
a processor;
a memory for storing processor-executable instructions;
wherein the processor is configured to:
acquiring an electromagnetic touch signal generated when an electromagnetic pen with a preset electromagnetic frequency is contacted with an electronic panel, and calculating touch position information and pressure information of the electromagnetic pen according to the electromagnetic touch signal;
expanding the pressure-sensitive information according to a preset expansion algorithm corresponding to a preset electromagnetic frequency;
packaging the touch position information and the expanded pressure-sensitive information into a multi-point touch signal, and analyzing the multi-point touch signal, wherein the expanded pressure-sensitive information is analyzed into a floating point type;
converting the floating-point type pressure-sensitive information into expanded pressure-sensitive information according to a preset conversion algorithm, matching the expanded pressure-sensitive information into writing attribute information preset by the electromagnetic pen, and generating a writing track with a preset writing attribute at the touch position of the electromagnetic pen;
the expanded pressure-sensitive information is pressure-sensitive information in a preset form corresponding to different electromagnetic pens; the preset form comprises: singular and even forms, fixed mantissa forms; when the preset form is a singular form and an even form and is used for distinguishing two electromagnetic pens, the preset conversion algorithm is as follows:
expanding the pressure-sensitive value in the pressure-sensitive information of one electromagnetic pen according to a formula (1);
expanding the pressure-sensitive value in the pressure-sensitive information of the other electromagnetic pen according to the formula (2);
Fa1=2×Fa0+1……(1)
Fb1=2×Fb0……(2)
wherein: fa0、Fa1Pressure-sensitive value, F, in pressure-sensitive information before and after expansion for an electromagnetic penb0、Fb1And expanding the pressure-sensitive value in the pressure-sensitive information before and after the expansion of another electromagnetic pen.
CN201710692116.XA 2017-08-14 2017-08-14 Multi-electromagnetic-pen writing distinguishing method and device and electronic equipment Active CN107491210B (en)

Priority Applications (2)

Application Number Priority Date Filing Date Title
CN201710692116.XA CN107491210B (en) 2017-08-14 2017-08-14 Multi-electromagnetic-pen writing distinguishing method and device and electronic equipment
PCT/CN2017/116083 WO2019033643A1 (en) 2017-08-14 2017-12-14 Method and apparatus for distinguishing writing made by multiple electromagnetic pens, and electronic device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201710692116.XA CN107491210B (en) 2017-08-14 2017-08-14 Multi-electromagnetic-pen writing distinguishing method and device and electronic equipment

Publications (2)

Publication Number Publication Date
CN107491210A CN107491210A (en) 2017-12-19
CN107491210B true CN107491210B (en) 2020-06-09

Family

ID=60645395

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201710692116.XA Active CN107491210B (en) 2017-08-14 2017-08-14 Multi-electromagnetic-pen writing distinguishing method and device and electronic equipment

Country Status (2)

Country Link
CN (1) CN107491210B (en)
WO (1) WO2019033643A1 (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111813311A (en) * 2020-09-10 2020-10-23 湖南新云网科技有限公司 Track color generation method and device, electronic equipment and readable storage medium

Families Citing this family (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108762579B (en) * 2018-06-15 2021-09-28 广州华欣电子科技有限公司 Method and system for generating handwriting of multiple pressure-sensitive pens and related components
CN109407962A (en) * 2018-11-14 2019-03-01 北京科加触控技术有限公司 A kind of style of writing display methods, device, apparatus for writing, touch apparatus and system
CN109919148B (en) * 2019-03-05 2022-01-11 郑州万特电气股份有限公司 Multi-target screen positioning method and system, fire extinguishing practical training system and using method
CN111352570B (en) * 2020-03-24 2021-06-01 深圳市鸿合创新信息技术有限责任公司 Writing interaction method, intelligent interaction display equipment and writing interaction system
CN114003137A (en) * 2020-07-27 2022-02-01 华为技术有限公司 Method, device and system for controlling information input equipment on terminal
CN113253961B (en) * 2021-06-02 2021-12-03 广州朗国电子科技股份有限公司 Electronic blackboard control method and system, electronic blackboard and readable medium

Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US4814552A (en) * 1987-12-02 1989-03-21 Xerox Corporation Ultrasound position input device
CN101256457A (en) * 2008-03-10 2008-09-03 清华大学 Wireless control laser pen with user identification as well as multiuser light spot recognition system
CN201302702Y (en) * 2008-11-19 2009-09-02 苏州瀚瑞微电子有限公司 Touch pen used for capacitive touch screen for displaying handwritings in different thicknesses
CN103207706A (en) * 2012-01-13 2013-07-17 南京先能光电科技有限公司 Double-light pen electronic whiteboard system and light pen identifying method
CN103870089A (en) * 2012-12-10 2014-06-18 航天信息股份有限公司 Input display system and method
CN203786706U (en) * 2013-12-31 2014-08-20 深圳市天时通科技有限公司 Electronic whiteboard writing system
CN105320390A (en) * 2014-06-20 2016-02-10 鸿合科技有限公司 Double handwriting recognition method and device based on electromagnetic white plate and electromagnetic pens

Family Cites Families (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20080129709A1 (en) * 2006-12-01 2008-06-05 Chun-Lin Lin Electromagnetic Pen With Amplitude-Controlled Inking Function
CN201259668Y (en) * 2008-09-26 2009-06-17 汉王科技股份有限公司 Electromagnetic multi-point touch induction device
CN103677326B (en) * 2012-09-19 2017-02-22 深圳市经纬科技有限公司 Pressure compensation method and system of electromagnetic pen and terminal
CN105278794B (en) * 2014-06-20 2019-11-15 鸿合科技股份有限公司 The synchronous hand-written recognition method of more people based on electromagnetic whiteboard, device and time writer

Patent Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US4814552A (en) * 1987-12-02 1989-03-21 Xerox Corporation Ultrasound position input device
CN101256457A (en) * 2008-03-10 2008-09-03 清华大学 Wireless control laser pen with user identification as well as multiuser light spot recognition system
CN201302702Y (en) * 2008-11-19 2009-09-02 苏州瀚瑞微电子有限公司 Touch pen used for capacitive touch screen for displaying handwritings in different thicknesses
CN103207706A (en) * 2012-01-13 2013-07-17 南京先能光电科技有限公司 Double-light pen electronic whiteboard system and light pen identifying method
CN103870089A (en) * 2012-12-10 2014-06-18 航天信息股份有限公司 Input display system and method
CN203786706U (en) * 2013-12-31 2014-08-20 深圳市天时通科技有限公司 Electronic whiteboard writing system
CN105320390A (en) * 2014-06-20 2016-02-10 鸿合科技有限公司 Double handwriting recognition method and device based on electromagnetic white plate and electromagnetic pens

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111813311A (en) * 2020-09-10 2020-10-23 湖南新云网科技有限公司 Track color generation method and device, electronic equipment and readable storage medium
CN111813311B (en) * 2020-09-10 2020-12-04 湖南新云网科技有限公司 Track color generation method and device, electronic equipment and readable storage medium

Also Published As

Publication number Publication date
WO2019033643A1 (en) 2019-02-21
CN107491210A (en) 2017-12-19

Similar Documents

Publication Publication Date Title
CN107491210B (en) Multi-electromagnetic-pen writing distinguishing method and device and electronic equipment
US8358320B2 (en) Interactive transcription system and method
CN109697905A (en) A kind of exam paper marking system
CN110362228A (en) A kind of unlimited writing on the blackboard method and its system based on liquid crystal blackboard
CN106971638B (en) Interactive wireless teaching method
CN104166499A (en) Handwriting practice system and practice handwriting automatic detecting and evaluating method
US8494279B2 (en) Method and system for information processing and a handwriting input terminal
CN108960149A (en) Paper reads and appraises method, apparatus and electronic equipment automatically
CN103606315A (en) Touch-screen painting and calligraphy practicing method and practicing device thereof
CN111782131A (en) Pen point implementation method, device, equipment and readable storage medium
JP2007322776A (en) Remote education system and method
CN109086336A (en) Paper date storage method, device and electronic equipment
CN110796065A (en) Calligraphy practicing scoring method and system based on image recognition and computer readable medium
KR101700317B1 (en) System, method and computer readable recording medium for managing an education using a smart pen based on a dot code
JP6068615B1 (en) Learning support system, electronic device, server device, information processing device, and program
Effenberg et al. SoundScript-Supporting the acquisition of character writing by multisensory integration
CN106648432A (en) Control method and control apparatus for large-screen display device
CN204884274U (en) Chinese character strokes of a chinese character are write and are standardized perception board
CN116758786A (en) Handwriting evaluation method and device, computer equipment and medium
CN105975200A (en) Sequence drawing method and device
CN203870835U (en) Interactive teaching system based on electronic whiteboard
JPS6159523A (en) Nriting brush character style input and output device
CN100478844C (en) Graphic input device
US11410569B1 (en) Methods, systems, and media for identifying and scoring assignment answers
CN113641876A (en) Method and system for practicing calligraphy based on dot matrix code and computer readable storage medium

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
GR01 Patent grant
GR01 Patent grant