WO2019237448A1 - Method and system for generating handwriting of multiple pressure sensing pens, and related component - Google Patents
Method and system for generating handwriting of multiple pressure sensing pens, and related component Download PDFInfo
- Publication number
- WO2019237448A1 WO2019237448A1 PCT/CN2018/095598 CN2018095598W WO2019237448A1 WO 2019237448 A1 WO2019237448 A1 WO 2019237448A1 CN 2018095598 W CN2018095598 W CN 2018095598W WO 2019237448 A1 WO2019237448 A1 WO 2019237448A1
- Authority
- WO
- WIPO (PCT)
- Prior art keywords
- pen
- pressure
- touch
- sensitive
- data
- 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.)
- Ceased
Links
Images
Classifications
-
- G—PHYSICS
- G06—COMPUTING OR CALCULATING; COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F3/00—Input 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/01—Input arrangements or combined input and output arrangements for interaction between user and computer
- G06F3/03—Arrangements for converting the position or the displacement of a member into a coded form
- G06F3/041—Digitisers, e.g. for touch screens or touch pads, characterised by the transducing means
- G06F3/0414—Digitisers, e.g. for touch screens or touch pads, characterised by the transducing means using force sensing means to determine a position
-
- G—PHYSICS
- G06—COMPUTING OR CALCULATING; COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F3/00—Input 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/01—Input arrangements or combined input and output arrangements for interaction between user and computer
- G06F3/03—Arrangements for converting the position or the displacement of a member into a coded form
- G06F3/033—Pointing devices displaced or positioned by the user, e.g. mice, trackballs, pens or joysticks; Accessories therefor
- G06F3/0354—Pointing 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/03545—Pens or stylus
-
- G—PHYSICS
- G06—COMPUTING OR CALCULATING; COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F3/00—Input 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/01—Input arrangements or combined input and output arrangements for interaction between user and computer
- G06F3/03—Arrangements for converting the position or the displacement of a member into a coded form
- G06F3/041—Digitisers, e.g. for touch screens or touch pads, characterised by the transducing means
- G06F3/042—Digitisers, e.g. for touch screens or touch pads, characterised by the transducing means by opto-electronic means
Definitions
- the invention relates to the field of intelligent touch interaction, in particular to a method and system for generating writing handwriting of multiple pressure-sensitive pens, a computer-readable storage medium and an infrared touch screen writing component.
- Infrared touch screen is also called infrared technology touch screen (Infrared Touch Screen).
- the infrared emitting and receiving sensing elements on the touch screen frame form an infrared detection network on the screen surface. Any touch object can change the infrared on the contact. And realize touch screen operation.
- writing handwriting is displayed according to the touch data of the infrared detection circuit on the touch screen and the pressure-sensitive data uploaded by the pressure-sensitive pen, but since the touch data and the pressure-sensitive data are not uploaded by the same device, when multiple pressure-sensitive pens are simultaneously
- the infrared touch screen cannot correctly recognize the correspondence between the touch data and the pressure-sensitive pen, and thus cannot correctly display the handwriting written by multiple pressure-sensitive pens.
- the purpose of this application is to provide a method, system, computer-readable storage medium, and infrared touch screen writing component for generating writing handwriting of multiple pressure-sensitive pens, which can correctly perform the writing process of multiple pressure-sensitive pens. Recognize the corresponding writing handwriting and improve the accuracy of generating writing handwriting.
- the present application provides a method for generating writing pressure of multiple pressure-sensitive pens.
- the generating method includes:
- a first target pressure-sensitive pen corresponding to the writing touch data is determined according to the pairing table, and an intermediate frame writing handwriting is generated according to the pressure-sensitive data and the writing touch data of the first target pressure-sensitive pen;
- a second target pressure-sensitive pen corresponding to the touch-up touch data is determined according to the pairing table, and the last frame of writing handwriting is generated according to the pressure-sensitive data of the second target touch-sensitive pen and the touch-up touch data, And delete all pen-in touch data and pressure-sensitive data corresponding to the pen-up touch data in the pairing table.
- the method before obtaining pen-in touch data and pressure-sensitive data of the active point, the method further includes:
- the method further includes:
- the correspondence between the touch point ID of the pen touch data of each active point and the pressure sensitive pen ID corresponding to the pressure sensitive data in the pairing table includes:
- the correspondence between the touch point ID and the pressure-sensitive pen ID is recorded in the pairing table.
- determining the first target pressure-sensitive pen corresponding to the writing touch data according to the pairing table includes:
- determining the second target pressure-sensitive pen corresponding to the touch-up touch data according to the pairing table includes:
- the pressure-sensitive data includes a writing pressure value and a pressure-sensitive pen ID of the pressure-sensitive pen that generates the pressure-sensitive data.
- the present application also provides a system for generating handwriting of multiple pressure-sensitive pens.
- the system includes:
- the pairing table setting module is used to obtain the pen-in touch data and pressure-sensitive data of the active points, and record the pen-in touch data and pressure-sensitive data corresponding to each active point in the pairing table in chronological order;
- Write-in handwriting generation module for generating the first frame of writing handwriting of all active points according to the pairing table
- a writing handwriting generating module is configured to, when receiving writing touch data, determine a first target pressure-sensitive pen corresponding to the writing touch data according to a pairing table, and generate an intermediate according to the pressure-sensitive data of the first target pressure-sensitive pen and the writing touch data.
- the lift-up handwriting generating module is configured to determine a second target pressure-sensitive pen corresponding to the lift-up touch data according to the pairing table when receiving the lift-up touch data, and according to the pressure-sensitive data and lift-up of the second target pressure-sensitive pen Touch the data to generate the last frame of handwriting.
- the present application also provides a computer-readable storage medium on which a computer program is stored, and when the computer program is executed, the steps of the method for generating a plurality of pressure-sensitive pen writing handwritings are performed.
- the application also provides an infrared touch screen writing component, which includes an infrared touch screen, a pressure-sensitive pen, a memory, and a processor.
- the infrared touch screen is used to periodically scan a preset area through an infrared receiving tube. Pen touch data, and / or write touch data, and / or lift pen writing track; the pressure-sensitive pen is used to perform writing operations on the infrared touch screen through the pressure-sensitive pen input end; and stored in the memory
- There is a computer program and when the processor calls the computer program in the memory, the steps of the method for generating a plurality of pressure-sensitive pen writing handwriting are implemented.
- the invention provides a method for generating writing handwriting of multiple pressure-sensitive pens, which includes acquiring pen-in touch data and pressure-sensitive data of active points, and recording the pen-in corresponding to each active point in a pairing table according to a time sequence.
- Touch data and pressure-sensitive data generate the first frame writing handwriting of all active points according to the pairing table; when receiving writing touch data, determine the first target pressure-sensitive pen corresponding to the writing touch data according to the pairing table, and according to the first
- the pressure-sensitive data and writing touch data of a target pressure-sensitive pen generate intermediate frame writing handwriting; when receiving the touch-up touch data, determine a second target pressure-sensitive pen corresponding to the touch-up touch data according to the pairing table, and according to the second target
- the pressure-sensitive data and pressure-up touch data of the pressure-sensitive pen generate the last frame of writing handwriting, and delete all the pen-in touch data and pressure-sensitive data corresponding to the pressure-up touch data in the pairing table.
- the writing operation of the pressure-sensitive pen on the infrared touch screen can be divided into three processes: pen-entry, writing, and pen-lifting.
- the present invention first records the pen-entry touch of each active point when entering the pen in the pairing table according to the time sequence. Data and pressure-sensitive data, establish the correspondence between pen-in touch data and pressure-sensitive data. Because the pressure-sensitive pen does not lift the pen-in touch data, write the touch data, and raise the pen-touch data in a single writing process. The touch point ID of a point is unchanged.
- the pressure-sensitive pen corresponding to the writing touch data can be determined by looking up the pairing table, and then the writing touch data is fused with the pressure-sensitive data of the corresponding pressure-sensitive pen to generate an intermediate frame writing handwriting.
- the pressure-sensitive pen corresponding to the touch-up touch data can be determined by searching through the pairing table, and then the touch-up data of the touch-up pen and the pressure-sensitive data of the corresponding pressure-sensitive pen are fused to generate the last frame of writing handwriting.
- This solution can correctly identify corresponding writing handwriting during the writing process of multiple pressure-sensitive pens, and improves the accuracy of generating writing handwriting.
- the present application also provides a multi-pressure-sensitive pen writing handwriting generating system, a computer-readable storage medium, and an infrared touch screen writing component, which have the above-mentioned beneficial effects, and are not repeated here.
- FIG. 1 is a flowchart of a method for generating handwriting of multiple pressure-sensitive pens according to an embodiment of the present application
- FIG. 2 is a flowchart of a method for setting a pairing table according to an embodiment of the present application
- FIG. 3 is a flowchart of a method for generating intermediate frame writing handwriting provided by an embodiment of the present application
- FIG. 4 is a flowchart of a method for generating a last frame of writing handwriting provided by an embodiment of the present application
- FIG. 5 is a schematic structural diagram of a system for generating writing pressure of multiple pressure-sensitive pens according to an embodiment of the present application.
- FIG. 1 is a flowchart of a method for generating writing pressure of multiple pressure-sensitive pens provided by an embodiment of the present application.
- S101 Obtain pen-in touch data and pressure-sensitive data of an active point, and record the correspondence between the touch-point ID of the pen-in touch data of each active point and the pressure-sensitive pen ID corresponding to the pressure-sensitive data in a pairing table;
- the implementation body of this embodiment is a processor, and the processor receives information about pressure-sensitive pen writing, and then generates writing handwriting for display on a screen.
- the infrared touch screen includes a screen body and an infrared detection circuit.
- the infrared detection circuit is used to detect touch information at a preset height above the screen body.
- the infrared detection circuit may include an infrared transmitting tube and an infrared receiving tube, and the touch information of the interval of a preset height above the screen body is detected by scanning at a preset period.
- Using infrared detection circuit to detect touch information is equivalent to a dense net consisting of infrared rays at a preset height above the screen body.
- this "net” specifically The infrared receiving condition of the radio frequency will change, so it is possible to determine whether there is a touch point through the touch data.
- the touch point determined according to the touch data is actually a point of dense "net” contact formed by the touch object and infrared rays, not the touch object. The point of contact with the screen body.
- the touch data detected by the infrared detection circuit can accurately determine the position of the touch point, and the distance between the interval detected by the infrared detection circuit and the screen body is small, when the touch object contacts the screen body, the touch object can be determined based on the touch data. The contact position with the screen body.
- This embodiment is directed to the handwriting display of the pressure-sensitive pen on the infrared touch screen.
- the infrared detection circuit will receive the following three types of touch data:
- In-touch data At this time, the pressure-sensitive pen is just in contact with the infrared touch screen, and the infrared detection circuit can detect a sudden change in infrared reception.
- the touch point ID mentioned above refers to the number that the processor actively assigns to the touch point when a touch point is detected. As long as the touch point is always present on the infrared touch screen, its touch point ID will not change, and the position of the touch point will move. It also does not change the touch point ID. It should also be explained that in this embodiment, by default, each pressure-sensitive pen has its corresponding pressure-sensitive pen ID, and each pressure-sensitive pen ID is inherent information of the pressure-sensitive pen and cannot be changed. The line color, line type, etc. of the writing handwriting can be determined according to the pressure-sensitive pen ID of the pressure-sensitive pen.
- this embodiment is mainly directed to a method for generating writing handwriting of multiple pressure-sensitive pens when the multiple pressure-sensitive pens successively write on the infrared touch screen.
- the purpose is to determine which pressure-sensitive data corresponds to each touch data. Pen-generated.
- the concept of the active point mentioned in this step is proposed relative to the passive point.
- the active point refers to the touch point determined by the infrared detection circuit when the pressure-sensitive pen is operated on the infrared touch screen.
- the passive point is a non-pressure point.
- the touch point when the touch object of the touch pen is in contact with the infrared touch screen, specifically, the passive point may be the point where the hand touches the infrared touch screen when the hand is using the pressure-sensitive pen.
- This embodiment is directed to the writing handwriting of multiple pressure-sensitive pens on an infrared touch screen, and is not an operation to determine whether a touch point is an active point. Therefore, in this embodiment, all active points are finger pressure.
- the stylus acts on the first point on the infrared touch screen.
- the touch point mentioned here is not a point in the mathematical or physical sense, but refers to the shape of a cross section within the detection range of the pressure-sensitive pen and the infrared detection circuit, which can be specifically understood as a circle.
- the width refers to the horizontal length of the touch point, and the height refers to the vertical length of the touch point.
- it can also be determined whether the touch point is an active point according to whether the area of the touch point is smaller than the standard area.
- This step is not limited to acquiring the pen-in touch data and pressure-sensitive data of several active points (the pressure-sensitive data here is specifically the pressure-sensitive data corresponding to the moment when the pen-in touch data is generated), and the active points can be obtained according to Set the pairing table in order of the pen-in touch data and pressure-sensitive data, that is, record the correspondence between each pen-in touch data and each type of pressure-sensitive data in the pairing table, a pair of pen-in touch data and pressure-sensitive data Specifically, it refers to the position information about the touch point detected by the infrared detection circuit and the pressure value detected by the pressure sensor at the writing end of the pressure-sensitive pen when a pressure-sensitive pen is inserted on the infrared touch screen.
- the significance of the correspondence between the touch data and the pressure-sensitive data is that the movement track of the pressure-sensitive pen on the infrared touch screen is bound to a specific number of pressure-sensitive pens.
- S102 Generate the first frame writing handwriting of all active points according to the touch-in data and pressure-sensitive data according to the time sequence;
- the first frame of pen-in touch data and pressure-sensitive touch data can be written. Further, in this step, the first frame of writing handwriting corresponding to multiple active points can be generated successively. Because the time of writing of multiple pressure-sensitive pens on the infrared touch screen is inconsistent, as long as there is pen-in touch data and For the pressure-sensitive data, the operations in this step can be performed to obtain the first frame writing handwriting of each pen.
- the touch data detected by the infrared touch screen has been divided into three types.
- writing touch data it means that the pressure-sensitive pen is moving on the infrared touch screen at this time.
- the display process of writing handwriting mentioned in this embodiment specifically refers to the entire process of the pressure-sensitive pen from contacting the infrared touch screen to the pressure-sensitive pen moving on the infrared touch screen and finally leaving the infrared touch screen, as long as When the pressure-sensitive pen leaves the infrared touch screen, it is considered that one writing handwriting of a pressure-sensitive pen on the infrared touch screen has been completed.
- the writing end of the pressure-sensitive pen is always in contact with the infrared touch screen. Further, since the pressure-sensitive pen does not lift the pen during a writing process, the touch point ID of the active point corresponding to the pen input data, the writing touch data, and the pen lifting touch data is unchanged, so the pairing table can be queried by The touch point ID corresponding to the pen touch data corresponding to the touch point ID corresponding to the writing touch data can determine the number of the pressure sensitive pen corresponding to the writing touch data, and then the pressure sensitive data of the corresponding pressure pen and the writing can be determined. The fusion of touch data results in intermediate frame writing.
- the writing handwriting of the pressure-sensitive pen is divided into three parts in this embodiment: (1) the writing handwriting in the first frame when the pen is entered, and (2) the writing handwriting in the middle frame during the writing process (which may include (Several frames), (3) the last frame of writing when lifting the pen.
- the operation performed in this step is basically the same as that in S103, and the number of the pressure-sensitive pen corresponding to the touch-up touch data is also queried through a pairing table. According to the pressure-sensitive data of the second target pressure-sensitive pen and the pressure-up pen Touch the data to generate the last frame of handwriting.
- this step there may be an operation of deleting all pen-entry touch data and pressure-sensitive data corresponding to the pen-up touch data in the pairing table.
- the pressure is explained. The process of writing with a touch pen is over. At this time, if you keep all pen touch data and pressure-sensitive data corresponding to the touch-up touch data in the pairing table, the corresponding relationship in the writing process of other pressure-sensitive pens will be confusing, so you can change it. delete.
- the first frame writing handwriting, the middle frame writing handwriting, and the last frame writing handwriting obtained in S102, S103, and S104 may not be the writing writing of the same pressure-sensitive pen, but as long as the pressure-sensitive pen is completed on the infrared touch screen After writing, there will be three kinds of writing handwriting.
- the combination of the first frame writing handwriting, the middle frame writing handwriting, and the last frame writing handwriting corresponding to the same pressure sensitive pen is the entire writing handwriting of the pressure sensitive pen.
- S103 performs a display operation on the middle frame writing handwriting of the first target pressure-sensitive pen. In fact, there must be a display operation on the last frame writing handwriting of the first target pressure-sensitive pen after S103.
- the specific content is basically the same as S104.
- the touch-up touch data is received, the first target pressure-sensitive pen corresponding to the touch-up touch data is determined according to the pairing table, and according to the pressure-sensitive data of the first target pressure-sensitive pen. And touch up the touch data to generate the last frame of writing handwriting; S104 performs the display operation of the middle frame writing handwriting of the second target pressure-sensitive pen. In fact, there must be a middle of the second target pressure-sensitive pen before S104.
- the specific operation of the frame writing handwriting display operation is basically the same as S103.
- a second target pressure-sensitive pen corresponding to the writing touch data is determined according to the pairing table, and the second target pressure-sensitive pen is determined according to the pairing table.
- Generated pressure-sensitive data and writing touch data to generate intermediate frame writing handwriting. It is worth noting that the display of writing handwriting on one pen is a very common operation in the prior art, and the simultaneous display of writing handwriting on multiple pens is the purpose of this application.
- the writing operation of the pressure-sensitive pen on the infrared touch screen can be divided into three processes: pen-entry, writing, and pen-lifting.
- the present invention first records the pen-entry touch of each active point when entering the pen in the pairing table according to the time sequence. Data and pressure-sensitive data, establish the correspondence between pen-in touch data and pressure-sensitive data. Because the pressure-sensitive pen does not lift the pen-in touch data, write the touch data, and raise the pen-touch data in a single writing process. The touch point ID of a point is unchanged.
- the pressure-sensitive pen corresponding to the writing touch data can be determined by looking up the pairing table, and then the writing touch data is fused with the pressure-sensitive data of the corresponding pressure-sensitive pen to generate an intermediate frame writing handwriting.
- the pressure-sensitive pen corresponding to the touch-up touch data can be determined by searching through the pairing table, and then the touch-up data of the touch-up pen and the pressure-sensitive data of the corresponding pressure-sensitive pen are fused to generate the last frame of handwriting.
- FIG. 2 is a flowchart of a method for setting a pairing table according to an embodiment of the present application. This embodiment is a more specific explanation of S101 in the first embodiment.
- S201 Receive pen-in touch data and pressure-sensitive data of all touch points in sequence according to time sequence
- the writing notes are displayed for multiple pressure-sensitive pens, there may be operations of writing multiple pressure-sensitive pens on the infrared touch screens at different times.
- the purpose of this step is to receive pen-in touch data and pressure-sensitive data in the order in which the touch points appear. It should be noted that each time a new touch point appears, the processor will automatically assign a touch point ID to the touch point. When pen touch data is detected, it will be accompanied by pressure-sensitive data.
- the pressure-sensitive data includes the writing pressure value and The pressure-sensitive pen ID of the pressure-sensitive pen generating the pressure-sensitive data.
- S202 Determine the width and height of each touch point according to the pen-in touch data of all touch points, and set the touch point whose width is less than the standard width and whose height is less than the standard height as the active point.
- S203 Set a touch point ID corresponding to the active point according to the receiving order of the pen-in touch data
- S205 Record the correspondence between the touch point ID and the pressure-sensitive pen ID in the pairing table.
- FIG. 3 is a flowchart of a method for generating intermediate frame writing handwriting provided by an embodiment of the present application. This embodiment is a more specific explanation of S103 in the first embodiment.
- S302 Query whether the first target touch point ID is recorded in the pairing table; if yes, go to S303; if not, end the process;
- S303 Query the first target pressure-sensitive pen ID corresponding to the first target touch point ID according to the pairing table, and determine the first target pressure-sensitive pen corresponding to the writing touch data according to the first target pressure-sensitive pen ID.
- S304 Generate intermediate frame writing handwriting according to the pressure-sensitive data and the writing touch data of the first target pressure-sensitive pen;
- FIG. 4 is a flowchart of a method for generating a last frame of writing handwriting provided by an embodiment of the present application. This embodiment is a more specific explanation of S104 in the first embodiment.
- S402 Query whether the second target touch point ID is recorded in the pairing table; if yes, go to S403; if not, end the process;
- S403 Query a second target pressure-sensitive pen ID corresponding to the second target touch point ID according to the pairing table, and determine a second target pressure-sensitive pen corresponding to the touch-up touch data according to the second target pressure-sensitive pen ID.
- S404 Generate the last frame of writing handwriting according to the pressure-sensitive data of the second target pressure-sensitive pen and the touch-up data of the pen;
- S405 Delete all pen-entry touch data and pressure-sensitive data corresponding to the pen-up touch data in the pairing table.
- the pairing table can be defined by the structure array.
- the pairing table can record information of multiple touch points (the specific number can be set according to the number of touch points actually supported by the touch frame).
- Each structure of the pairing table can include four elements: active points / Passive point mark, touch point ID, pressure pen ID, pairing mark.
- the width and height of the touch point can be determined according to the touch down data, and the width and height are compared to a set threshold. If the threshold is greater than this, the pairing table is written passively. Click the mark and record the touch point ID; if it is less than the threshold, write the pairing table active point mark and touch electric ID.
- the pressure-sensitive pen data is generated, judge the above two information (active point mark and touch electric ID) and write The pressure pen ID, the pairing flag is set, and the first frame of active point data is generated according to the set pairing table.
- the corresponding row of the pairing table is found according to the touch point ID and it is determined whether it is an active point. If it is a passive point, it is not processed. If it is an active point, it is based on the pairing table.
- the pairing information combines touch move data and pressure-sensitive data to generate intermediate frame writing handwriting.
- the corresponding row of the pairing table is searched according to the touch point ID and the source point flag is judged. If it is a passive point, it is not processed. If it is an active point, it is based on the pairing table.
- the pairing information combines the touch-up data and the pressure-sensitive data, and then the pairing information is cleared.
- FIG. 5 is a schematic structural diagram of a multi-pressure-sensitive pen writing handwriting generating system according to an embodiment of the present application
- the system can include:
- the pairing table setting module 100 is configured to obtain pen-in touch data and pressure-sensitive data of the active points, and record the touch point ID and the pressure-sensitive data of the pen-in touch data of each of the active points in the pairing table.
- the pen-in handwriting generation module 200 is configured to generate, according to the time sequence, the first frame writing handwriting of all the active points according to the pen-in touch data and the pressure-sensitive data;
- a writing handwriting generating module 300 is configured to, when receiving writing touch data, determine a first target pressure-sensitive pen corresponding to the writing touch data according to the pairing table, and according to the pressure sensitivity of the first target pressure-sensitive pen Data and the writing touch data to generate intermediate frame writing handwriting;
- the pen-up handwriting generating module 400 is configured to determine a second target pressure-sensitive pen corresponding to the pen-up touch data according to the pairing table, and according to the pressure-sensitive data of the second target pressure-sensitive pen and the pen-up touch The data generates the last frame of handwriting, and deletes all pen-in touch data and pressure-sensitive data in the pairing table corresponding to the pen-up touch data.
- the display system further includes:
- a data receiving module configured to receive pen-in touch data and pressure-sensitive data of all touch points in order in time sequence
- An active point judgment module is configured to determine the width and height of each touch point according to the pen touch data of all touch points, and set the touch point whose width is less than the standard width and the height is less than the standard height as the Source.
- the pairing table setting module 300 includes:
- Active point data acquisition unit for acquiring pen-in touch data and pressure-sensitive data of an active point
- a touch point ID setting unit configured to set a touch point ID corresponding to the active point according to a receiving order of the pen-in touch data
- a pressure-sensitive pen ID determining unit configured to obtain a pressure-sensitive pen ID corresponding to the active point according to the pressure-sensitive data
- the correspondence between the touch point ID and the pressure-sensitive pen ID is recorded in the pairing table.
- the writing handwriting generating module 300 includes:
- a first querying unit is configured to, when receiving the writing touch data, determine a first target touch point ID of a first target touch point according to the writing touch data, and query whether the pairing table records the first target touch point ID.
- a first pressure-sensitive pen determining unit configured to query the first target pressure-sensitive pen ID corresponding to the first target touch point ID according to the pairing table when the first target touch-point ID is recorded in a pairing table And determine a first target pressure-sensitive pen corresponding to the writing touch data according to the first target pressure-sensitive pen ID;
- a first stroke generating unit configured to generate an intermediate frame writing stroke according to the pressure-sensitive data of the first target pressure-sensitive pen and the writing touch data
- the pen-raising handwriting generating module 400 includes:
- a second query unit configured to determine a second target touch point ID of a second target touch point according to the touch-up touch data when the touch-up touch data is received, and query whether the first pair is recorded in the pairing table Two target touch point IDs;
- a second pressure-sensitive pen determining unit configured to query the second target pressure point corresponding to the second target touch point ID according to the pairing table when the second target touch point ID is recorded in the pairing table A pen ID, and a second target pressure-sensitive pen corresponding to the pen-up touch data is determined according to the second target pressure-sensitive pen ID.
- a second handwriting generating unit configured to generate a last frame of writing handwriting according to the pressure-sensitive data of the second target pressure-sensitive pen and the pen lifting touch data
- a pairing table release unit configured to delete all pen-in touch data and pressure-sensitive data in the pairing table corresponding to the pen-up touch data
- the present application also provides a computer-readable storage medium on which a computer program is stored.
- the storage medium may include: a U disk, a mobile hard disk, a read-only memory (Read-Only Memory (ROM)), a random access memory (Random Access Memory, RAM), a magnetic disk, or an optical disk, which can store program codes.
- ROM Read-Only Memory
- RAM Random Access Memory
- the application also provides an infrared touch screen writing component, which includes an infrared touch screen, a pressure-sensitive pen, a memory, and a processor.
- the infrared touch screen is used to periodically scan a preset area through an infrared receiving tube. Pen touch data, and / or write touch data, and / or lift pen writing track; the pressure-sensitive pen is used to perform writing operations on the infrared touch screen through the pressure-sensitive pen input end; and stored in the memory
- the processor calls the computer program in the memory, the steps of the method for generating a plurality of pressure-sensitive pen writing handwriting are implemented.
- the infrared touch screen writing component may also include various network interfaces, power supplies, and other components.
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)
- Position Input By Displaying (AREA)
Abstract
Description
本申请要求于2018年06月15日提交中国专利局、申请号为201810620455.1、发明名称为“一种多支压感笔书写笔迹的生成方法、系统及相关组件”的中国专利申请的优先权,其全部内容通过引用结合在本申请中。This application claims the priority of a Chinese patent application filed with the Chinese Patent Office on June 15, 2018, with an application number of 201810620455.1, and an invention name of "a method, system and related components for generating multi-pressure pen writing handwriting", The entire contents of which are incorporated herein by reference.
本发明涉及智能触控交互领域,特别涉及一种多支压感笔书写笔迹的生成方法、系统、一种计算机可读存储介质及一种红外触控屏书写组件。The invention relates to the field of intelligent touch interaction, in particular to a method and system for generating writing handwriting of multiple pressure-sensitive pens, a computer-readable storage medium and an infrared touch screen writing component.
红外触控屏又称红外线技术触摸屏(Infrared Touch Screen Technology),触摸屏外框上有的红外线发射与接收感测元件,在屏幕表面上,形成红外线探测网,任何触摸物体可改变触点上的红外线而实现触摸屏操作。Infrared touch screen is also called infrared technology touch screen (Infrared Touch Screen). The infrared emitting and receiving sensing elements on the touch screen frame form an infrared detection network on the screen surface. Any touch object can change the infrared on the contact. And realize touch screen operation.
现有技术是根据触摸屏上的红外检测电路的触摸数据和压感笔上传的压感数据显示书写笔迹,但是由于触摸数据和压感数据并不是同一装置上传的,因此当多支压感笔同时在红外触控屏上进行书写时,红外触控屏无法正确识别触摸数据与压感笔的对应关系,进而无法正确显示多支压感笔书写的笔迹。In the prior art, writing handwriting is displayed according to the touch data of the infrared detection circuit on the touch screen and the pressure-sensitive data uploaded by the pressure-sensitive pen, but since the touch data and the pressure-sensitive data are not uploaded by the same device, when multiple pressure-sensitive pens are simultaneously When writing on the infrared touch screen, the infrared touch screen cannot correctly recognize the correspondence between the touch data and the pressure-sensitive pen, and thus cannot correctly display the handwriting written by multiple pressure-sensitive pens.
因此,如何在多支压感笔在书写过程中正确识别对应的书写笔迹,提高生成书写笔迹的准确程度是本领域技术人员目前需要解决的技术问题。Therefore, how to correctly identify the corresponding writing handwriting in the writing process of multiple pressure-sensitive pens and improve the accuracy of generating writing handwriting is a technical problem that those skilled in the art need to solve at present.
发明内容Summary of the Invention
本申请的目的是提供一种多支压感笔书写笔迹的生成方法、系统、一种计算机可读存储介质及一种红外触控屏书写组件,能够在多支压感笔在书写过程中正确识别对应的书写笔迹,提高生成书写笔迹的准确程度。The purpose of this application is to provide a method, system, computer-readable storage medium, and infrared touch screen writing component for generating writing handwriting of multiple pressure-sensitive pens, which can correctly perform the writing process of multiple pressure-sensitive pens. Recognize the corresponding writing handwriting and improve the accuracy of generating writing handwriting.
为解决上述技术问题,本申请提供一种多支压感笔书写笔迹的生成方法,该生成方法包括:In order to solve the above technical problems, the present application provides a method for generating writing pressure of multiple pressure-sensitive pens. The generating method includes:
获取有源点的入笔触摸数据和压感数据,并在配对表中记录每一有源点的入笔触摸数据的触摸点ID和压感数据对应的压感笔ID的对应关系;Obtain pen-in touch data and pressure-sensitive data of the active point, and record the correspondence between the touch-point ID of the pen-in touch data of each active point and the pressure-sensitive pen ID corresponding to the pressure-sensitive data in the pairing table;
按照时间次序根据入笔触摸数据和压感数据生成所有有源点的第一帧书写笔迹;Generate the first frame of handwriting of all active points according to the chronological order according to the pen touch data and pressure data;
当接收到书写触摸数据时,根据配对表确定与书写触摸数据对应的第一目标压感笔,并根据第一目标压感笔的压感数据和书写触摸数据生成中间帧书写笔迹;When the writing touch data is received, a first target pressure-sensitive pen corresponding to the writing touch data is determined according to the pairing table, and an intermediate frame writing handwriting is generated according to the pressure-sensitive data and the writing touch data of the first target pressure-sensitive pen;
当接收到抬笔触摸数据时,根据配对表确定与抬笔触摸数据对应的第二目标压感笔,根据第二目标压感笔的压感数据和抬笔触摸数据生成最后一帧书写笔迹,并删除配对表中所有与抬笔触摸数据对应的入笔触摸数据和压感数据。When the touch-up touch data is received, a second target pressure-sensitive pen corresponding to the touch-up touch data is determined according to the pairing table, and the last frame of writing handwriting is generated according to the pressure-sensitive data of the second target touch-sensitive pen and the touch-up touch data, And delete all pen-in touch data and pressure-sensitive data corresponding to the pen-up touch data in the pairing table.
可选的,在获取有源点的入笔触摸数据和压感数据之前,还包括:Optionally, before obtaining pen-in touch data and pressure-sensitive data of the active point, the method further includes:
按照时间顺序依次接收所有触摸点的入笔触摸数据和压感数据;Receive pen-in touch data and pressure-sensitive data of all touch points in order in chronological order;
可选的,在根据所述第二目标压感笔的压感数据和所述抬笔触摸数据生成最后一帧书写笔迹之后,还包括:Optionally, after generating the last frame of writing handwriting according to the pressure-sensitive data of the second target pressure-sensitive pen and the pen-up touch data, the method further includes:
删除所述配对表中所有与所述抬笔触摸数据对应的入笔触摸数据和压感数据。Delete all pen-in touch data and pressure-sensitive data corresponding to the pen-up touch data in the pairing table.
根据所有触摸点的入笔触摸数据确定每一触摸点的宽度和高度,并将宽度小于标准宽度且高度小于标准高度的触摸点设置为有源点。Determine the width and height of each touch point according to the pen touch data of all touch points, and set the touch point with a width smaller than the standard width and a height smaller than the standard height as the active point.
可选的,在配对表中记录每一有源点的入笔触摸数据的触摸点ID和压感数据对应的压感笔ID的对应关系包括:Optionally, the correspondence between the touch point ID of the pen touch data of each active point and the pressure sensitive pen ID corresponding to the pressure sensitive data in the pairing table includes:
根据入笔触摸数据的接收次序设置有源点对应的触摸点ID;Set the touch point ID corresponding to the active point according to the receiving order of the pen touch data;
根据压感数据得到有源点对应的压感笔ID;Obtain the pressure-sensitive pen ID corresponding to the active point according to the pressure-sensitive data;
在配对表中记录触摸点ID和压感笔ID的对应关系。The correspondence between the touch point ID and the pressure-sensitive pen ID is recorded in the pairing table.
可选的,当接收到书写触摸数据时,根据配对表确定与书写触摸数据对应的第一目标压感笔包括:Optionally, when the writing touch data is received, determining the first target pressure-sensitive pen corresponding to the writing touch data according to the pairing table includes:
当接收到书写触摸数据时,根据书写触摸数据确定第一目标触摸点的第一目标触摸点ID,并查询配对表中是否记录有第一目标触摸点ID;When the writing touch data is received, determine the first target touch point ID of the first target touch point according to the writing touch data, and query whether the first target touch point ID is recorded in the pairing table;
若是,则根据配对表查询第一目标触摸点ID对应的第一目标压感笔 ID,并根据第一目标压感笔ID确定与书写触摸数据对应的第一目标压感笔。If yes, query the first target pressure-sensitive pen ID corresponding to the first target touch point ID according to the pairing table, and determine the first target pressure-sensitive pen corresponding to the writing touch data according to the first target pressure-sensitive pen ID.
可选的,当接收到抬笔触摸数据时,根据配对表确定与抬笔触摸数据对应的第二目标压感笔包括:Optionally, when receiving the touch-up touch data, determining the second target pressure-sensitive pen corresponding to the touch-up touch data according to the pairing table includes:
当接收到抬笔触摸数据时,根据抬笔触摸数据确定第二目标触摸点的第二目标触摸点ID,并查询配对表中是否记录有第二目标触摸点ID;When receiving the touch-up touch data, determine the second target touch point ID of the second target touch point according to the touch-up touch data, and query whether the second target touch point ID is recorded in the pairing table;
若是,则根据配对表查询第二目标触摸点ID对应的第二目标压感笔ID,并根据第二目标压感笔ID确定与抬笔触摸数据对应的第二目标压感笔。If yes, query the second target pressure-sensitive pen ID corresponding to the second target touch point ID according to the pairing table, and determine the second target pressure-sensitive pen corresponding to the touch-up touch data according to the second target pressure-sensitive pen ID.
可选的,压感数据包括书写压力值和产生压感数据的压感笔的压感笔ID。Optionally, the pressure-sensitive data includes a writing pressure value and a pressure-sensitive pen ID of the pressure-sensitive pen that generates the pressure-sensitive data.
本申请还提供了一种多支压感笔书写笔迹的生成系统,该系统包括:The present application also provides a system for generating handwriting of multiple pressure-sensitive pens. The system includes:
配对表设置模块,用于获取有源点的入笔触摸数据和压感数据,并按照时间次序在配对表中记录每一有源点对应的入笔触摸数据和压感数据;The pairing table setting module is used to obtain the pen-in touch data and pressure-sensitive data of the active points, and record the pen-in touch data and pressure-sensitive data corresponding to each active point in the pairing table in chronological order;
入笔笔迹生成模块,用于根据配对表生成所有有源点的第一帧书写笔迹;Write-in handwriting generation module, for generating the first frame of writing handwriting of all active points according to the pairing table;
书写笔迹生成模块,用于当接收到书写触摸数据时,根据配对表确定与书写触摸数据对应的第一目标压感笔,并根据第一目标压感笔的压感数据和书写触摸数据生成中间帧书写笔迹A writing handwriting generating module is configured to, when receiving writing touch data, determine a first target pressure-sensitive pen corresponding to the writing touch data according to a pairing table, and generate an intermediate according to the pressure-sensitive data of the first target pressure-sensitive pen and the writing touch data. Frame, writing, handwriting
抬笔笔迹生成模块,用于当接收到抬笔触摸数据时,根据配对表确定与抬笔触摸数据对应的第二目标压感笔,并根据第二目标压感笔的压感数据和抬笔触摸数据生成最后一帧书写笔迹。The lift-up handwriting generating module is configured to determine a second target pressure-sensitive pen corresponding to the lift-up touch data according to the pairing table when receiving the lift-up touch data, and according to the pressure-sensitive data and lift-up of the second target pressure-sensitive pen Touch the data to generate the last frame of handwriting.
本申请还提供了一种计算机可读存储介质,其上存储有计算机程序,所述计算机程序执行时实现上述多支压感笔书写笔迹的生成方法执行的步骤。The present application also provides a computer-readable storage medium on which a computer program is stored, and when the computer program is executed, the steps of the method for generating a plurality of pressure-sensitive pen writing handwritings are performed.
本申请还提供了一种红外触控屏书写组件,包括红外触控屏、压感笔、存储器和处理器,所述红外触控屏用于通过红外接收管对预设区域进行周期性扫描生成入笔触摸数据,和/或书写触摸数据,和/或抬笔书写轨迹;所述压感笔用于通过压感笔输入端在所述红外触控屏上执行书写操作;所述 存储器中存储有计算机程序,所述处理器调用所述存储器中的计算机程序时实现上述多支压感笔书写笔迹的生成方法执行的步骤。The application also provides an infrared touch screen writing component, which includes an infrared touch screen, a pressure-sensitive pen, a memory, and a processor. The infrared touch screen is used to periodically scan a preset area through an infrared receiving tube. Pen touch data, and / or write touch data, and / or lift pen writing track; the pressure-sensitive pen is used to perform writing operations on the infrared touch screen through the pressure-sensitive pen input end; and stored in the memory There is a computer program, and when the processor calls the computer program in the memory, the steps of the method for generating a plurality of pressure-sensitive pen writing handwriting are implemented.
本发明提供了一种多支压感笔书写笔迹的生成方法,包括获取有源点的入笔触摸数据和压感数据,并按照时间次序在配对表中记录每一有源点对应的入笔触摸数据和压感数据;根据配对表生成所有有源点的第一帧书写笔迹;当接收到书写触摸数据时,根据配对表确定与书写触摸数据对应的第一目标压感笔,并根据第一目标压感笔的压感数据和书写触摸数据生成中间帧书写笔迹;当接收到抬笔触摸数据时,根据配对表确定与抬笔触摸数据对应的第二目标压感笔,根据第二目标压感笔的压感数据和抬笔触摸数据生成最后一帧书写笔迹,并删除配对表中所有与抬笔触摸数据对应的入笔触摸数据和压感数据。The invention provides a method for generating writing handwriting of multiple pressure-sensitive pens, which includes acquiring pen-in touch data and pressure-sensitive data of active points, and recording the pen-in corresponding to each active point in a pairing table according to a time sequence. Touch data and pressure-sensitive data; generate the first frame writing handwriting of all active points according to the pairing table; when receiving writing touch data, determine the first target pressure-sensitive pen corresponding to the writing touch data according to the pairing table, and according to the first The pressure-sensitive data and writing touch data of a target pressure-sensitive pen generate intermediate frame writing handwriting; when receiving the touch-up touch data, determine a second target pressure-sensitive pen corresponding to the touch-up touch data according to the pairing table, and according to the second target The pressure-sensitive data and pressure-up touch data of the pressure-sensitive pen generate the last frame of writing handwriting, and delete all the pen-in touch data and pressure-sensitive data corresponding to the pressure-up touch data in the pairing table.
压感笔在红外触控屏上的书写操作可以分为三个过程:入笔、书写和抬笔,本发明首先按照时间次序在配对表中记录入笔时每一有源点的入笔触摸数据和压感数据,建立好入笔触摸数据与压感数据的对应关系,由于压感笔在一次书写过程中只要不抬笔入笔触摸数据、书写触摸数据和抬笔触摸数据对应的有源点的触摸点ID是不变的。因此当检测到书写触摸数据时,可以通过配对表查找确定书写触摸数据对应的压感笔,进而将书写触摸数据与对应的压感笔的压感数据融合生成中间帧书写笔迹;同理,当检测到抬笔触摸数据时,可以通过配对表查找确定抬笔触摸数据对应的压感笔,进而将抬笔触摸数据与对应的压感笔的压感数据融合生成最后一帧书写笔迹。本方案能够在多支压感笔在书写过程中正确识别对应的书写笔迹,提高生成书写笔迹的准确程度。本申请同时还提供了一种多支压感笔书写笔迹的生成系统、一种计算机可读存储介质和一种红外触控屏书写组件,具有上述有益效果,在此不再赘述。The writing operation of the pressure-sensitive pen on the infrared touch screen can be divided into three processes: pen-entry, writing, and pen-lifting. The present invention first records the pen-entry touch of each active point when entering the pen in the pairing table according to the time sequence. Data and pressure-sensitive data, establish the correspondence between pen-in touch data and pressure-sensitive data. Because the pressure-sensitive pen does not lift the pen-in touch data, write the touch data, and raise the pen-touch data in a single writing process. The touch point ID of a point is unchanged. Therefore, when the writing touch data is detected, the pressure-sensitive pen corresponding to the writing touch data can be determined by looking up the pairing table, and then the writing touch data is fused with the pressure-sensitive data of the corresponding pressure-sensitive pen to generate an intermediate frame writing handwriting. Similarly, when When the touch-up touch data is detected, the pressure-sensitive pen corresponding to the touch-up touch data can be determined by searching through the pairing table, and then the touch-up data of the touch-up pen and the pressure-sensitive data of the corresponding pressure-sensitive pen are fused to generate the last frame of writing handwriting. This solution can correctly identify corresponding writing handwriting during the writing process of multiple pressure-sensitive pens, and improves the accuracy of generating writing handwriting. The present application also provides a multi-pressure-sensitive pen writing handwriting generating system, a computer-readable storage medium, and an infrared touch screen writing component, which have the above-mentioned beneficial effects, and are not repeated here.
为了更清楚地说明本发明实施例或现有技术中的技术方案,下面将对实施例或现有技术描述中所需要使用的附图作简单地介绍,显而易见地, 下面描述中的附图仅仅是本发明的一些实施例,对于本领域普通技术人员来讲,在不付出创造性劳动的前提下,还可以根据这些附图获得其他的附图。In order to more clearly explain the embodiments of the present invention or the technical solutions in the prior art, the drawings used in the description of the embodiments or the prior art will be briefly introduced below. Obviously, the drawings in the following description are merely These are some embodiments of the present invention. For those of ordinary skill in the art, other drawings can be obtained based on these drawings without paying creative labor.
图1为本申请实施例所提供的一种多支压感笔书写笔迹的生成方法的流程图;FIG. 1 is a flowchart of a method for generating handwriting of multiple pressure-sensitive pens according to an embodiment of the present application;
图2为本申请实施例所提供的一种设置配对表的方法的流程图;2 is a flowchart of a method for setting a pairing table according to an embodiment of the present application;
图3为本申请实施例所提供的一种生成中间帧书写笔迹的方法的流程图;3 is a flowchart of a method for generating intermediate frame writing handwriting provided by an embodiment of the present application;
图4为本申请实施例所提供的一种生成最后一帧书写笔迹的方法的流程图;4 is a flowchart of a method for generating a last frame of writing handwriting provided by an embodiment of the present application;
图5为本申请实施例所提供的一种多支压感笔书写笔迹的生成系统的结构示意图。FIG. 5 is a schematic structural diagram of a system for generating writing pressure of multiple pressure-sensitive pens according to an embodiment of the present application.
下面将结合本发明实施例中的附图,对本发明实施例中的技术方案进行清楚、完整地描述,显然,所描述的实施例仅仅是本发明一部分实施例,而不是全部的实施例。基于本发明中的实施例,本领域普通技术人员在没有作出创造性劳动前提下所获得的所有其他实施例,都属于本发明保护的范围。In the following, the technical solutions in the embodiments of the present invention will be clearly and completely described with reference to the drawings in the embodiments of the present invention. Obviously, the described embodiments are only a part of the embodiments of the present invention, but not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by a person of ordinary skill in the art without creative efforts shall fall within the protection scope of the present invention.
下面请参见图1,图1为本申请实施例所提供的一种多支压感笔书写笔迹的生成方法的流程图。Please refer to FIG. 1 below. FIG. 1 is a flowchart of a method for generating writing pressure of multiple pressure-sensitive pens provided by an embodiment of the present application.
具体步骤可以包括:Specific steps can include:
S101:获取有源点的入笔触摸数据和压感数据,并在配对表中记录每一有源点的入笔触摸数据的触摸点ID和压感数据对应的压感笔ID的对应关系;S101: Obtain pen-in touch data and pressure-sensitive data of an active point, and record the correspondence between the touch-point ID of the pen-in touch data of each active point and the pressure-sensitive pen ID corresponding to the pressure-sensitive data in a pairing table;
其中,本实施例的实施主体为处理器,处理器接收关于压感笔书写的信息,进而生成书写笔迹在屏幕上进行显示。红外触控屏包括屏幕本体和红外检测电路,红外检测电路是用来检测屏幕本体上方预设高度的触摸信息的。红外检测电路可以包括红外发射管和红外接收管,通过预设周期的 扫描检测屏幕本体上方预设高度的区间的触摸信息。利用红外检测电路检测触摸信息就相当于,屏幕本体上方预设高度存在一张由红外线构成的密集的网,当有触摸物到达距离屏幕本体上方预设高度的位置,这张“网”上具体的红外线接收情况就会发生改变,因此也就能够通过触摸数据来判断是否存在触摸点。需要说明的是,根据触摸数据(包括入笔触摸数据、书写触摸数据和抬笔触摸数据)确定的触摸点实际上是触摸物与红外线构成的密集的“网”接触的点,并不是触摸物与屏幕本体接触的点。但是由于红外检测电路检测的触摸数据能够精确的确定触摸点的位置,且红外检测电路检测的区间与屏幕本体的距离很小,因此在触摸物接触到屏幕本体时,可以根据触摸数据确定触摸物与屏幕本体的接触位置。The implementation body of this embodiment is a processor, and the processor receives information about pressure-sensitive pen writing, and then generates writing handwriting for display on a screen. The infrared touch screen includes a screen body and an infrared detection circuit. The infrared detection circuit is used to detect touch information at a preset height above the screen body. The infrared detection circuit may include an infrared transmitting tube and an infrared receiving tube, and the touch information of the interval of a preset height above the screen body is detected by scanning at a preset period. Using infrared detection circuit to detect touch information is equivalent to a dense net consisting of infrared rays at a preset height above the screen body. When a touched object reaches a position at a preset height above the screen body, this "net" specifically The infrared receiving condition of the radio frequency will change, so it is possible to determine whether there is a touch point through the touch data. It should be noted that the touch point determined according to the touch data (including pen touch data, writing touch data, and pen lifting touch data) is actually a point of dense "net" contact formed by the touch object and infrared rays, not the touch object. The point of contact with the screen body. However, because the touch data detected by the infrared detection circuit can accurately determine the position of the touch point, and the distance between the interval detected by the infrared detection circuit and the screen body is small, when the touch object contacts the screen body, the touch object can be determined based on the touch data. The contact position with the screen body.
本实施例是针对压感笔在红外触控屏上书写的笔迹显示,在压感笔书写过程中红外检测电路会接受到以下三种触摸数据:This embodiment is directed to the handwriting display of the pressure-sensitive pen on the infrared touch screen. During the writing process of the pressure-sensitive pen, the infrared detection circuit will receive the following three types of touch data:
(1)入笔触摸数据:此时压感笔刚好与红外触控屏接触,红外检测电路能够检测到红外接收情况的突变。(1) In-touch data: At this time, the pressure-sensitive pen is just in contact with the infrared touch screen, and the infrared detection circuit can detect a sudden change in infrared reception.
(2)书写触摸数据:此时压感笔在红外触摸屏上划动产生书写轨迹,红外检测电路能够检测到压感笔在检测范围内移动的轨迹(即触摸点的移动情况)。(2) Writing touch data: At this time, the pressure-sensitive pen is moved on the infrared touch screen to generate a writing trajectory, and the infrared detection circuit can detect the trajectory of the pressure-sensitive pen moving within the detection range (that is, the movement of the touch point).
(3)抬笔触摸数据:此时压感笔刚好离开红外触控屏,下一时刻红外检测电路检测的红外接收情况与产生入笔触摸数据之前一致。(3) Lift the pen touch data: At this time, the pressure-sensitive pen just leaves the infrared touch screen, and the infrared reception detected by the infrared detection circuit at the next moment is the same as before the pen-touch data is generated.
上述提到的触摸点ID是指当检测到存在触摸点时处理器主动为触摸点分配的编号,只要触摸点一直存在于红外触摸屏上其触摸点ID就不会发生变化,触摸点位置的移动也不会改变触摸点ID。还需要解释的是,本实施例默认每一支压感笔都有其对应的压感笔ID,每个压感笔ID是压感笔的固有信息,不可改变。可以根据压感笔的压感笔ID确定生成书写笔迹时的线条颜色、线条类型等。The touch point ID mentioned above refers to the number that the processor actively assigns to the touch point when a touch point is detected. As long as the touch point is always present on the infrared touch screen, its touch point ID will not change, and the position of the touch point will move. It also does not change the touch point ID. It should also be explained that in this embodiment, by default, each pressure-sensitive pen has its corresponding pressure-sensitive pen ID, and each pressure-sensitive pen ID is inherent information of the pressure-sensitive pen and cannot be changed. The line color, line type, etc. of the writing handwriting can be determined according to the pressure-sensitive pen ID of the pressure-sensitive pen.
需要说明的是,本实施例主要是针对多支压感笔先后在红外触控屏上书写时,多支压感笔的书写笔迹的生成方法。本实施例默认存在多支压感笔在红外触控屏上书写,且所有压感笔的入笔时间均不相同,其目的在于确定每个触摸数据对应的压感数据是由哪只压感笔产生的。在实际应用的 场景中,由于压感笔的使用者为用户,多支压感笔的使用者为多个不同的用户,因此是不会产生多个压感笔恰好在同一时刻进行入笔操作。It should be noted that this embodiment is mainly directed to a method for generating writing handwriting of multiple pressure-sensitive pens when the multiple pressure-sensitive pens successively write on the infrared touch screen. In this embodiment, there are multiple pressure-sensitive pens writing on the infrared touch screen by default, and the pressure-in time of all the pressure-sensitive pens is different. The purpose is to determine which pressure-sensitive data corresponds to each touch data. Pen-generated. In a practical application scenario, since the user of the pressure-sensitive pen is a user, and the users of multiple pressure-sensitive pens are multiple different users, it is not possible to generate multiple pressure-sensitive pens to perform the pen input operation at the same time. .
在本步骤中提到的有源点的概念是相对于无源点提出的,有源点是指压感笔在红外触控屏上操作时红外检测电路确定的触摸点,无源点是非压感笔的触摸物与红外触控屏接触时的触摸点,具体来说无源点可以是手在使用压感笔时手与红外触控屏接触的点。本实施例针对多支压感笔在红外触控屏上的书写笔迹,并不是关于判断某触控点是否为有源点的操作,因此在本实施例中所有的有源点都是指压感笔作用于红外触控屏上的第一个点。当然,作为一种优选的实施方案,可以存在检测到触摸点后判断触摸点是否为有源点的操作:即,按照时间顺序依次接收所有触摸点的入笔触摸数据和压感数据;根据所有触摸点的入笔触摸数据确定每一触摸点的宽度和高度,并将宽度小于标准宽度且高度小于标准高度的触摸点设置为有源点。可以理解的是,所有宽度大于或等于标准宽度和/或高度大于或等于标准高度的触摸点都为无源点。进一步的,此处提到的触摸点并不是数学或物理意义上的点,而是指压感笔与红外检测电路检测范围内的截面的形状,具体来说可以近似理解为圆形。宽度是指触摸点横向的长度,高度是指触摸点纵向的长度。作为一种优选的实施方式,还可以根据触摸点的面积是否小于标准面积来判断该触摸点是否为有源点。The concept of the active point mentioned in this step is proposed relative to the passive point. The active point refers to the touch point determined by the infrared detection circuit when the pressure-sensitive pen is operated on the infrared touch screen. The passive point is a non-pressure point. The touch point when the touch object of the touch pen is in contact with the infrared touch screen, specifically, the passive point may be the point where the hand touches the infrared touch screen when the hand is using the pressure-sensitive pen. This embodiment is directed to the writing handwriting of multiple pressure-sensitive pens on an infrared touch screen, and is not an operation to determine whether a touch point is an active point. Therefore, in this embodiment, all active points are finger pressure. The stylus acts on the first point on the infrared touch screen. Of course, as a preferred implementation, there may be an operation of judging whether the touch point is an active point after the touch point is detected: that is, sequentially receiving pen-in touch data and pressure-sensitive data of all touch points in sequence; according to all The pen-in touch data of a touch point determines the width and height of each touch point, and sets a touch point whose width is less than the standard width and whose height is less than the standard height as the active point. It can be understood that all touch points with a width greater than or equal to the standard width and / or a height greater than or equal to the standard height are passive points. Further, the touch point mentioned here is not a point in the mathematical or physical sense, but refers to the shape of a cross section within the detection range of the pressure-sensitive pen and the infrared detection circuit, which can be specifically understood as a circle. The width refers to the horizontal length of the touch point, and the height refers to the vertical length of the touch point. As a preferred implementation manner, it can also be determined whether the touch point is an active point according to whether the area of the touch point is smaller than the standard area.
本步骤并不限定获取了几个有源点的入笔触摸数据和压感数据(此处的压感数据具体为产生入笔触摸数据的时刻对应的压感数据),可以按照获取有源点的入笔触摸数据和压感数据的先后顺序设置配对表,即在配对表中记录每一种入笔触摸数据和每一种压感数据的对应关系,一对入笔触摸数据和压感数据具体是指某支压感笔在红外触控屏上入笔时,红外检测电路检测到的关于触碰点的位置信息和压感笔书写端的压力传感器检测到的压力值。触摸数据与压感数据建立的对应关系的意义在于,将压感笔在红外触控屏上的移动轨迹与具体编号的压感笔进行了绑定。当然,可以存在每支压感笔的对应的书写颜色不同、显示效果不同,可以根据入笔触摸数据与压感笔数据的对应关系确定相应的显示方式。This step is not limited to acquiring the pen-in touch data and pressure-sensitive data of several active points (the pressure-sensitive data here is specifically the pressure-sensitive data corresponding to the moment when the pen-in touch data is generated), and the active points can be obtained according to Set the pairing table in order of the pen-in touch data and pressure-sensitive data, that is, record the correspondence between each pen-in touch data and each type of pressure-sensitive data in the pairing table, a pair of pen-in touch data and pressure-sensitive data Specifically, it refers to the position information about the touch point detected by the infrared detection circuit and the pressure value detected by the pressure sensor at the writing end of the pressure-sensitive pen when a pressure-sensitive pen is inserted on the infrared touch screen. The significance of the correspondence between the touch data and the pressure-sensitive data is that the movement track of the pressure-sensitive pen on the infrared touch screen is bound to a specific number of pressure-sensitive pens. Of course, there may be different writing colors and different display effects for each pressure-sensitive pen, and the corresponding display manner may be determined according to the correspondence between the pen touch data and the pressure-sensitive pen data.
S102:按照时间次序根据入笔触摸数据和压感数据生成所有有源点的 第一帧书写笔迹;S102: Generate the first frame writing handwriting of all active points according to the touch-in data and pressure-sensitive data according to the time sequence;
其中,由于配对表中记录了所有有源点的入笔触摸数据和压感数据,因此可以将入笔触摸数据和压感触摸数据的第一帧书写笔迹。进一步的,本步骤可以先后生成多个有源点对应的第一帧书写笔迹,由于多支压感笔在红外触控屏上书写的时间不一致因此,只要存在有源点的入笔触摸数据和压感数据都可以执行本步骤中的操作得到每一支笔的第一帧书写笔迹。Among them, since the pen-in touch data and pressure-sensitive data of all active points are recorded in the pairing table, the first frame of pen-in touch data and pressure-sensitive touch data can be written. Further, in this step, the first frame of writing handwriting corresponding to multiple active points can be generated successively. Because the time of writing of multiple pressure-sensitive pens on the infrared touch screen is inconsistent, as long as there is pen-in touch data and For the pressure-sensitive data, the operations in this step can be performed to obtain the first frame writing handwriting of each pen.
S103:当接收到书写触摸数据时,根据配对表确定与书写触摸数据对应的第一目标压感笔,并根据第一目标压感笔的压感数据和书写触摸数据生成中间帧书写笔迹;S103: When the writing touch data is received, a first target pressure-sensitive pen corresponding to the writing touch data is determined according to the pairing table, and an intermediate frame writing handwriting is generated according to the pressure-sensitive data and the writing touch data of the first target pressure-sensitive pen;
其中,在前面的论述中已经将红外触控屏检测到的触摸数据分为三类,当检测到书写触摸数据时,说明此时压感笔正在红外触控屏上移动。需要说明的是,本实施例提到的书写笔迹的显示过程具体是指压感笔从接触红外触控屏到压感笔在红外触控屏上移动最后离开红外触控屏的整个过程,只要存在压感笔离开红外触控屏的情况即视为一支压感笔在在红外触控屏上的一条书写笔迹已完成。因此在本步骤中接收书写触摸数据的过程中压感笔的书写端始终与红外触控屏接触。进一步的,由于压感笔在一次书写过程中只要不抬笔那么入笔触摸数据、书写触摸数据和抬笔触摸数据对应的有源点的触摸点ID是不变的,因此可以通过查询配对表中与书写触摸数据对应的触摸点ID对应的入笔触摸数据对应的触摸点ID,即可确定与该书写触摸数据对应的压感笔的编号,进而通过相应压感笔的压感数据与书写触摸数据的融合得到中间帧书写笔迹。Among them, in the foregoing discussion, the touch data detected by the infrared touch screen has been divided into three types. When writing touch data is detected, it means that the pressure-sensitive pen is moving on the infrared touch screen at this time. It should be noted that the display process of writing handwriting mentioned in this embodiment specifically refers to the entire process of the pressure-sensitive pen from contacting the infrared touch screen to the pressure-sensitive pen moving on the infrared touch screen and finally leaving the infrared touch screen, as long as When the pressure-sensitive pen leaves the infrared touch screen, it is considered that one writing handwriting of a pressure-sensitive pen on the infrared touch screen has been completed. Therefore, in the process of receiving writing touch data in this step, the writing end of the pressure-sensitive pen is always in contact with the infrared touch screen. Further, since the pressure-sensitive pen does not lift the pen during a writing process, the touch point ID of the active point corresponding to the pen input data, the writing touch data, and the pen lifting touch data is unchanged, so the pairing table can be queried by The touch point ID corresponding to the pen touch data corresponding to the touch point ID corresponding to the writing touch data can determine the number of the pressure sensitive pen corresponding to the writing touch data, and then the pressure sensitive data of the corresponding pressure pen and the writing can be determined. The fusion of touch data results in intermediate frame writing.
此处需要说明的是,本实施例将压感笔的书写笔迹划分为三个部分:(1)入笔时的第一帧书写笔迹,(2)书写过程中的中间帧书写笔迹(可以包括若干帧),(3)抬笔时的最后一帧书写笔迹。What needs to be explained here is that the writing handwriting of the pressure-sensitive pen is divided into three parts in this embodiment: (1) the writing handwriting in the first frame when the pen is entered, and (2) the writing handwriting in the middle frame during the writing process (which may include (Several frames), (3) the last frame of writing when lifting the pen.
S104:当接收到抬笔触摸数据时,根据配对表确定与抬笔触摸数据对应的第二目标压感笔,并根据第二目标压感笔的压感数据和抬笔触摸数据生成最后一帧书写笔迹。S104: When the touch-up touch data is received, a second target pressure-sensitive pen corresponding to the touch-up touch data is determined according to the pairing table, and the last frame is generated according to the pressure-sensitive data of the second target touch-sensitive pen and the touch-up touch data. Writing handwriting.
其中,本步骤执行的操作与S103中的基本相同,也是通过配对表查询与抬笔触摸数据对应的压感笔的编号,根据所述第二目标压感笔的压感数 据和所述抬笔触摸数据生成最后一帧书写笔迹。The operation performed in this step is basically the same as that in S103, and the number of the pressure-sensitive pen corresponding to the touch-up touch data is also queried through a pairing table. According to the pressure-sensitive data of the second target pressure-sensitive pen and the pressure-up pen Touch the data to generate the last frame of handwriting.
作为一种优选的实施方式,在本步骤执行完之后还可以存在删除配对表中所有与抬笔触摸数据对应的入笔触摸数据和压感数据的操作,当接收到抬笔触摸数据时说明压感笔书写的过程已结束,此时若保留配对表中所有与抬笔触摸数据对应的入笔触摸数据和压感数据会造成后续其他压感笔书写过程中的对应关系混乱,因此可以将其删除。As a preferred embodiment, after this step is performed, there may be an operation of deleting all pen-entry touch data and pressure-sensitive data corresponding to the pen-up touch data in the pairing table. When receiving the pen-up touch data, the pressure is explained. The process of writing with a touch pen is over. At this time, if you keep all pen touch data and pressure-sensitive data corresponding to the touch-up touch data in the pairing table, the corresponding relationship in the writing process of other pressure-sensitive pens will be confusing, so you can change it. delete.
可以理解的是,S102、S103、S104得到的第一帧书写笔迹、中间帧书写笔迹和最后一帧书写笔迹可以不是同一压感笔的书写笔迹,但是只要压感笔在红外触控屏上完成了书写操作就会必然有上述三种书写笔迹,将同一压感笔对应的第一帧书写笔迹、中间帧书写笔迹和最后一帧书写笔迹结合起来就是压感笔的整个书写笔迹。It can be understood that the first frame writing handwriting, the middle frame writing handwriting, and the last frame writing handwriting obtained in S102, S103, and S104 may not be the writing writing of the same pressure-sensitive pen, but as long as the pressure-sensitive pen is completed on the infrared touch screen After writing, there will be three kinds of writing handwriting. The combination of the first frame writing handwriting, the middle frame writing handwriting, and the last frame writing handwriting corresponding to the same pressure sensitive pen is the entire writing handwriting of the pressure sensitive pen.
需要说明的是,S103执行的是关于第一目标压感笔的中间帧书写笔迹的显示操作,事实上在S103之后一定还会存在关于第一目标压感笔的最后一帧书写笔迹的显示操作其具体内容与S104基本一致,可以为:当接收到抬笔触摸数据时,根据配对表确定与抬笔触摸数据对应的第一目标压感笔,并根据第一目标压感笔的压感数据和抬笔触摸数据生成最后一帧书写笔迹;S104执行的是关于第二目标压感笔的中间帧书写笔迹的显示操作,事实上在S104之前一定还会存在关于第二目标压感笔的中间帧书写笔迹的显示操作其具体内容与S103基本一致,可以为:当接收到书写触摸数据时,根据配对表确定与书写触摸数据对应的第二目标压感笔,并根据第二目标压感笔的压感数据和书写触摸数据生成中间帧书写笔迹。值得注意的是,关于一支笔的书写笔迹的显示是现有技术中很常见的操作,而关于多支笔的书写笔迹的同时显示则是本申请的目的所在。It should be noted that S103 performs a display operation on the middle frame writing handwriting of the first target pressure-sensitive pen. In fact, there must be a display operation on the last frame writing handwriting of the first target pressure-sensitive pen after S103. The specific content is basically the same as S104. When the touch-up touch data is received, the first target pressure-sensitive pen corresponding to the touch-up touch data is determined according to the pairing table, and according to the pressure-sensitive data of the first target pressure-sensitive pen. And touch up the touch data to generate the last frame of writing handwriting; S104 performs the display operation of the middle frame writing handwriting of the second target pressure-sensitive pen. In fact, there must be a middle of the second target pressure-sensitive pen before S104. The specific operation of the frame writing handwriting display operation is basically the same as S103. When the writing touch data is received, a second target pressure-sensitive pen corresponding to the writing touch data is determined according to the pairing table, and the second target pressure-sensitive pen is determined according to the pairing table. Generated pressure-sensitive data and writing touch data to generate intermediate frame writing handwriting. It is worth noting that the display of writing handwriting on one pen is a very common operation in the prior art, and the simultaneous display of writing handwriting on multiple pens is the purpose of this application.
压感笔在红外触控屏上的书写操作可以分为三个过程:入笔、书写和抬笔,本发明首先按照时间次序在配对表中记录入笔时每一有源点的入笔触摸数据和压感数据,建立好入笔触摸数据与压感数据的对应关系,由于压感笔在一次书写过程中只要不抬笔入笔触摸数据、书写触摸数据和抬笔触摸数据对应的有源点的触摸点ID是不变的。因此当检测到书写触摸数据时,可以通过配对表查找确定书写触摸数据对应的压感笔,进而将书写触 摸数据与对应的压感笔的压感数据融合生成中间帧书写笔迹;同理,当检测到抬笔触摸数据时,可以通过配对表查找确定抬笔触摸数据对应的压感笔,进而将抬笔触摸数据与对应的压感笔的压感数据融合生成最后一帧书写笔迹。本方案能够在多支压感笔在书写过程中正确识别对应的书写笔迹,提高生成书写笔迹的准确程度。The writing operation of the pressure-sensitive pen on the infrared touch screen can be divided into three processes: pen-entry, writing, and pen-lifting. The present invention first records the pen-entry touch of each active point when entering the pen in the pairing table according to the time sequence. Data and pressure-sensitive data, establish the correspondence between pen-in touch data and pressure-sensitive data. Because the pressure-sensitive pen does not lift the pen-in touch data, write the touch data, and raise the pen-touch data in a single writing process. The touch point ID of a point is unchanged. Therefore, when the writing touch data is detected, the pressure-sensitive pen corresponding to the writing touch data can be determined by looking up the pairing table, and then the writing touch data is fused with the pressure-sensitive data of the corresponding pressure-sensitive pen to generate an intermediate frame writing handwriting. Similarly, when When the touch-up touch data is detected, the pressure-sensitive pen corresponding to the touch-up touch data can be determined by searching through the pairing table, and then the touch-up data of the touch-up pen and the pressure-sensitive data of the corresponding pressure-sensitive pen are fused to generate the last frame of handwriting. This solution can correctly identify corresponding writing handwriting during the writing process of multiple pressure-sensitive pens, and improves the accuracy of generating writing handwriting.
下面请参见图2,图2为本申请实施例所提供的一种设置配对表的方法的流程图,本实施例是对第一个实施例中S101的更具体的解释。Please refer to FIG. 2 below. FIG. 2 is a flowchart of a method for setting a pairing table according to an embodiment of the present application. This embodiment is a more specific explanation of S101 in the first embodiment.
具体步骤可以包括:Specific steps can include:
S201:按照时间顺序依次接收所有触摸点的入笔触摸数据和压感数据;S201: Receive pen-in touch data and pressure-sensitive data of all touch points in sequence according to time sequence;
其中,由于本实施例是针对多支压感笔的书写笔记显示,因此可以存在多支压感笔在不同的时刻分别在红外触控屏上书写的操作。本步骤的目的在于,按照触摸点出现的先后次序接收入笔触摸数据和压感数据。需要说明的是,每当出现一个新触摸点时处理器会自动为该触摸点分配一个触摸点ID,当检测到入笔触摸数据时会伴随有压感数据,压感数据包括书写压力值和产生所述压感数据的压感笔的压感笔ID。In this embodiment, since the writing notes are displayed for multiple pressure-sensitive pens, there may be operations of writing multiple pressure-sensitive pens on the infrared touch screens at different times. The purpose of this step is to receive pen-in touch data and pressure-sensitive data in the order in which the touch points appear. It should be noted that each time a new touch point appears, the processor will automatically assign a touch point ID to the touch point. When pen touch data is detected, it will be accompanied by pressure-sensitive data. The pressure-sensitive data includes the writing pressure value and The pressure-sensitive pen ID of the pressure-sensitive pen generating the pressure-sensitive data.
S202:根据所有触摸点的入笔触摸数据确定每一触摸点的宽度和高度,并将宽度小于标准宽度且高度小于标准高度的触摸点设置为有源点。S202: Determine the width and height of each touch point according to the pen-in touch data of all touch points, and set the touch point whose width is less than the standard width and whose height is less than the standard height as the active point.
S203:根据所述入笔触摸数据的接收次序设置所述有源点对应的触摸点ID;S203: Set a touch point ID corresponding to the active point according to the receiving order of the pen-in touch data;
S204:根据压感数据得到有源点对应的压感笔ID;S204: Obtain the pressure-sensitive pen ID corresponding to the active point according to the pressure-sensitive data;
S205:在配对表中记录触摸点ID和压感笔ID的对应关系。S205: Record the correspondence between the touch point ID and the pressure-sensitive pen ID in the pairing table.
下面请参见图3,图3为本申请实施例所提供的一种生成中间帧书写笔迹的方法的流程图,本实施例是对第一个实施例中S103的更具体的解释。Please refer to FIG. 3 below. FIG. 3 is a flowchart of a method for generating intermediate frame writing handwriting provided by an embodiment of the present application. This embodiment is a more specific explanation of S103 in the first embodiment.
具体步骤可以包括:Specific steps can include:
S301:当接收到书写触摸数据时,根据书写触摸数据确定第一目标触摸点的第一目标触摸点ID;S301: When the writing touch data is received, determine a first target touch point ID of the first target touch point according to the writing touch data;
S302:查询配对表中是否记录有第一目标触摸点ID;若是,则进入S303;若否,则结束流程;S302: Query whether the first target touch point ID is recorded in the pairing table; if yes, go to S303; if not, end the process;
S303:根据配对表查询第一目标触摸点ID对应的第一目标压感笔ID,并根据第一目标压感笔ID确定与书写触摸数据对应的第一目标压感笔。S303: Query the first target pressure-sensitive pen ID corresponding to the first target touch point ID according to the pairing table, and determine the first target pressure-sensitive pen corresponding to the writing touch data according to the first target pressure-sensitive pen ID.
S304:根据第一目标压感笔的压感数据和书写触摸数据生成中间帧书写笔迹;S304: Generate intermediate frame writing handwriting according to the pressure-sensitive data and the writing touch data of the first target pressure-sensitive pen;
下面请参见图4,图4为本申请实施例所提供的一种生成最后一帧书写笔迹的方法的流程图,本实施例是对第一个实施例中S104的更具体的解释。Please refer to FIG. 4 below, which is a flowchart of a method for generating a last frame of writing handwriting provided by an embodiment of the present application. This embodiment is a more specific explanation of S104 in the first embodiment.
S401:当接收到抬笔触摸数据时,根据抬笔触摸数据确定第二目标触摸点的第二目标触摸点ID;S401: When the touch-up touch data is received, determine the second target touch point ID of the second target touch point according to the touch-up touch data;
S402:查询配对表中是否记录有第二目标触摸点ID;若是,则进入S403;若否,则结束流程;S402: Query whether the second target touch point ID is recorded in the pairing table; if yes, go to S403; if not, end the process;
S403:根据配对表查询第二目标触摸点ID对应的第二目标压感笔ID,并根据第二目标压感笔ID确定与抬笔触摸数据对应的第二目标压感笔。S403: Query a second target pressure-sensitive pen ID corresponding to the second target touch point ID according to the pairing table, and determine a second target pressure-sensitive pen corresponding to the touch-up touch data according to the second target pressure-sensitive pen ID.
S404:根据第二目标压感笔的压感数据和抬笔触摸数据生成最后一帧书写笔迹;S404: Generate the last frame of writing handwriting according to the pressure-sensitive data of the second target pressure-sensitive pen and the touch-up data of the pen;
S405:删除配对表中所有与抬笔触摸数据对应的入笔触摸数据和压感数据。S405: Delete all pen-entry touch data and pressure-sensitive data corresponding to the pen-up touch data in the pairing table.
下面基于上述实施例提到的方法从配对表的角度具体介绍多支压感笔在红外触控屏上显示书写笔迹的全部过程:Based on the method mentioned in the above embodiment, the following describes in detail the entire process of displaying writing handwriting on the infrared touch screen from the perspective of a pairing table:
(1)定义配对表(1) Define the pairing table
可以通过结构体数组定义配对表,配对表可以记录多个触摸点的信息(具体数量可根据触摸框实际支持的触摸点数设置),配对表的每个结构体可以包括四个元素:有源点/无源点标志、触摸点ID、压感笔ID、配对标志。The pairing table can be defined by the structure array. The pairing table can record information of multiple touch points (the specific number can be set according to the number of touch points actually supported by the touch frame). Each structure of the pairing table can include four elements: active points / Passive point mark, touch point ID, pressure pen ID, pairing mark.
(2)设置配对表(2) Set the pairing table
当有触摸down数据(即,入笔触摸数据)产生时,可以根据触摸down数据确定触摸点的宽和高,将宽和高于设定的阈值相比较,大于该阈值则写配对表无源点标志并记录触摸点ID;小于该阈值则写配对表有源点标志和触摸电ID,当压感笔数据产生则判断上述两个信息(有源点标志和触摸电ID),并写入压感笔ID,配对标志置位,根据设置好的配对表生成第一帧有源点数据。When there is touch down data (that is, pen touch data), the width and height of the touch point can be determined according to the touch down data, and the width and height are compared to a set threshold. If the threshold is greater than this, the pairing table is written passively. Click the mark and record the touch point ID; if it is less than the threshold, write the pairing table active point mark and touch electric ID. When the pressure-sensitive pen data is generated, judge the above two information (active point mark and touch electric ID) and write The pressure pen ID, the pairing flag is set, and the first frame of active point data is generated according to the set pairing table.
(3)使用配对表(3) Use the pairing table
当有触摸move数据(即,书写触摸数据)时,则根据触摸点ID寻找配对表对应行并判断是否为有源点,如果为无源点则不处理,如果为有源点则根据配对表的配对信息将触摸move数据和压感数据进行结合生成中间帧书写笔迹。When there is touch move data (that is, writing touch data), the corresponding row of the pairing table is found according to the touch point ID and it is determined whether it is an active point. If it is a passive point, it is not processed. If it is an active point, it is based on the pairing table. The pairing information combines touch move data and pressure-sensitive data to generate intermediate frame writing handwriting.
(4)释放配对表(4) Release the pairing table
当有触摸up数据(即,抬笔触摸数据)时,根据触摸点ID寻找配对表对应行并判断有源点标志,如果为无源点则不处理,如果为有源点则根据配对表的配对信息将触摸up数据和压感数据进行结合,然后清除该行配对信息。When there is touch-up data (that is, lift the touch data), the corresponding row of the pairing table is searched according to the touch point ID and the source point flag is judged. If it is a passive point, it is not processed. If it is an active point, it is based on the pairing table. The pairing information combines the touch-up data and the pressure-sensitive data, and then the pairing information is cleared.
请参见图5,图5为本申请实施例所提供的一种多支压感笔书写笔迹的生成系统的结构示意图;Please refer to FIG. 5, which is a schematic structural diagram of a multi-pressure-sensitive pen writing handwriting generating system according to an embodiment of the present application;
该系统可以包括:The system can include:
配对表设置模块100,用于获取有源点的入笔触摸数据和压感数据,并在配对表中记录每一所述有源点的入笔触摸数据的触摸点ID和所述压感数据对应的压感笔ID的对应关系;The pairing
入笔笔迹生成模块200,用于按照时间次序根据所述入笔触摸数据和所述压感数据生成所有所述有源点的第一帧书写笔迹;The pen-in
书写笔迹生成模块300,用于当接收到书写触摸数据时,根据所述配对表确定与所述书写触摸数据对应的第一目标压感笔,并根据所述第一目标压感笔的压感数据和所述书写触摸数据生成中间帧书写笔迹;A writing
抬笔笔迹生成模块400,用于根据所述配对表确定与所述抬笔触摸数 据对应的第二目标压感笔,根据所述第二目标压感笔的压感数据和所述抬笔触摸数据生成最后一帧书写笔迹,并删除所述配对表中所有与所述抬笔触摸数据对应的入笔触摸数据和压感数据。The pen-up
进一步的,该显示系统还包括:Further, the display system further includes:
数据接收模块,用于按照时间顺序依次接收所有触摸点的入笔触摸数据和压感数据;A data receiving module, configured to receive pen-in touch data and pressure-sensitive data of all touch points in order in time sequence;
有源点判断模块,用于根据所有触摸点的入笔触摸数据确定每一触摸点的宽度和高度,并将所述宽度小于标准宽度且所述高度小于标准高度的触摸点设置为所述有源点。An active point judgment module is configured to determine the width and height of each touch point according to the pen touch data of all touch points, and set the touch point whose width is less than the standard width and the height is less than the standard height as the Source.
进一步的,所述配对表设置模块300包括:Further, the pairing
有源点数据获取单元,用于获取有源点的入笔触摸数据和压感数据Active point data acquisition unit for acquiring pen-in touch data and pressure-sensitive data of an active point
触摸点ID设置单元,用于根据所述入笔触摸数据的接收次序设置所述有源点对应的触摸点ID;A touch point ID setting unit, configured to set a touch point ID corresponding to the active point according to a receiving order of the pen-in touch data;
压感笔ID确定单元,用于根据所述压感数据得到所述有源点对应的压感笔ID;A pressure-sensitive pen ID determining unit, configured to obtain a pressure-sensitive pen ID corresponding to the active point according to the pressure-sensitive data;
在所述配对表中记录所述触摸点ID和所述压感笔ID的对应关系。The correspondence between the touch point ID and the pressure-sensitive pen ID is recorded in the pairing table.
进一步的,所述书写笔迹生成模块300包括:Further, the writing
第一查询单元,用于当接收到所述书写触摸数据时,根据所述书写触摸数据确定第一目标触摸点的第一目标触摸点ID,并查询所述配对表中是否记录有所述第一目标触摸点ID;A first querying unit is configured to, when receiving the writing touch data, determine a first target touch point ID of a first target touch point according to the writing touch data, and query whether the pairing table records the first target touch point ID. A target touch point ID;
第一压感笔确定单元,用于当配对表中记录有所述第一目标触摸点ID时,则根据所述配对表查询所述第一目标触摸点ID对应的第一目标压感笔ID,并根据所述第一目标压感笔ID确定与所述书写触摸数据对应的第一目标压感笔;A first pressure-sensitive pen determining unit, configured to query the first target pressure-sensitive pen ID corresponding to the first target touch point ID according to the pairing table when the first target touch-point ID is recorded in a pairing table And determine a first target pressure-sensitive pen corresponding to the writing touch data according to the first target pressure-sensitive pen ID;
第一笔迹生成单元,用于根据所述第一目标压感笔的压感数据和所述书写触摸数据生成中间帧书写笔迹A first stroke generating unit, configured to generate an intermediate frame writing stroke according to the pressure-sensitive data of the first target pressure-sensitive pen and the writing touch data
进一步的,所述抬笔笔迹生成模块400包括:Further, the pen-raising
第二查询单元,用于当接收到抬笔触摸数据时,根据所述抬笔触摸数据确定第二目标触摸点的第二目标触摸点ID,并查询所述配对表中是否记 录有所述第二目标触摸点ID;A second query unit, configured to determine a second target touch point ID of a second target touch point according to the touch-up touch data when the touch-up touch data is received, and query whether the first pair is recorded in the pairing table Two target touch point IDs;
第二压感笔确定单元,用于当所述配对表中记录有所述第二目标触摸点ID时,则根据所述配对表查询所述第二目标触摸点ID对应的第二目标压感笔ID,并根据所述第二目标压感笔ID确定与所述抬笔触摸数据对应的第二目标压感笔。A second pressure-sensitive pen determining unit, configured to query the second target pressure point corresponding to the second target touch point ID according to the pairing table when the second target touch point ID is recorded in the pairing table A pen ID, and a second target pressure-sensitive pen corresponding to the pen-up touch data is determined according to the second target pressure-sensitive pen ID.
第二笔迹生成单元,用于根据所述第二目标压感笔的压感数据和所述抬笔触摸数据生成最后一帧书写笔迹,A second handwriting generating unit, configured to generate a last frame of writing handwriting according to the pressure-sensitive data of the second target pressure-sensitive pen and the pen lifting touch data,
配对表释放单元,用于删除所述配对表中所有与所述抬笔触摸数据对应的入笔触摸数据和压感数据A pairing table release unit, configured to delete all pen-in touch data and pressure-sensitive data in the pairing table corresponding to the pen-up touch data
由于系统部分的实施例与方法部分的实施例相互对应,因此系统部分的实施例请参见方法部分的实施例的描述,这里暂不赘述。Since the embodiment of the system part corresponds to the embodiment of the method part, for the embodiment of the system part, refer to the description of the embodiment of the method part, which will not be repeated here.
本申请还提供了一种计算机可读存储介质,其上存有计算机程序,该计算机程序被执行时可以实现上述实施例所提供的步骤。该存储介质可以包括:U盘、移动硬盘、只读存储器(Read-Only Memory,ROM)、随机存取存储器(Random Access Memory,RAM)、磁碟或者光盘等各种可以存储程序代码的介质。The present application also provides a computer-readable storage medium on which a computer program is stored. When the computer program is executed, the steps provided in the foregoing embodiments can be implemented. The storage medium may include: a U disk, a mobile hard disk, a read-only memory (Read-Only Memory (ROM)), a random access memory (Random Access Memory, RAM), a magnetic disk, or an optical disk, which can store program codes.
本申请还提供了一种红外触控屏书写组件,包括红外触控屏、压感笔、存储器和处理器,所述红外触控屏用于通过红外接收管对预设区域进行周期性扫描生成入笔触摸数据,和/或书写触摸数据,和/或抬笔书写轨迹;所述压感笔用于通过压感笔输入端在所述红外触控屏上执行书写操作;所述存储器中存储有计算机程序,所述处理器调用所述存储器中的计算机程序时实现上述多支压感笔书写笔迹的生成方法执行的步骤。当然所述红外触控屏书写组件还可以包括各种网络接口,电源等组件。The application also provides an infrared touch screen writing component, which includes an infrared touch screen, a pressure-sensitive pen, a memory, and a processor. The infrared touch screen is used to periodically scan a preset area through an infrared receiving tube. Pen touch data, and / or write touch data, and / or lift pen writing track; the pressure-sensitive pen is used to perform writing operations on the infrared touch screen through the pressure-sensitive pen input end; and stored in the memory There is a computer program, and when the processor calls the computer program in the memory, the steps of the method for generating a plurality of pressure-sensitive pen writing handwriting are implemented. Of course, the infrared touch screen writing component may also include various network interfaces, power supplies, and other components.
说明书中各个实施例采用递进的方式描述,每个实施例重点说明的都是与其他实施例的不同之处,各个实施例之间相同相似部分互相参见即可。对于实施例公开的系统而言,由于其与实施例公开的方法相对应,所以描述的比较简单,相关之处参见方法部分说明即可。应当指出,对于本技术 领域的普通技术人员来说,在不脱离本申请原理的前提下,还可以对本申请进行若干改进和修饰,这些改进和修饰也落入本申请权利要求的保护范围内。Each embodiment in the specification is described in a progressive manner, and each embodiment focuses on the differences from other embodiments, and the same or similar parts between the various embodiments can be referred to each other. For the system disclosed in the embodiment, since it corresponds to the method disclosed in the embodiment, the description is relatively simple. For the relevant part, refer to the description of the method section. It should be noted that, for those of ordinary skill in the art, without departing from the principle of the present application, several improvements and modifications can be made to the application, and these improvements and modifications also fall into the protection scope of the claims of the application.
还需要说明的是,在本说明书中,诸如第一和第二等之类的关系术语仅仅用来将一个实体或者操作与另一个实体或操作区分开来,而不一定要求或者暗示这些实体或操作之间存在任何这种实际的关系或者顺序。而且,术语“包括”、“包含”或者其任何其他变体意在涵盖非排他性的包含,从而使得包括一系列要素的过程、方法、物品或者设备不仅包括那些要素,而且还包括没有明确列出的其他要素,或者是还包括为这种过程、方法、物品或者设备所固有的要素。在没有更多限制的状况下,由语句“包括一个……”限定的要素,并不排除在包括所述要素的过程、方法、物品或者设备中还存在另外的相同要素。It should also be noted that in this specification, relational terms such as first and second are used only to distinguish one entity or operation from another entity or operation, and do not necessarily require or imply that these entities or operations There is any such actual relationship or order between operations. Moreover, the terms "including", "comprising", or any other variation thereof are intended to encompass non-exclusive inclusion, such that a process, method, article, or device that includes a series of elements includes not only those elements but also those that are not explicitly listed Or other elements inherent to such a process, method, article, or device. Without more restrictions, the elements defined by the sentence "including a ..." do not exclude the existence of other identical elements in the process, method, article, or equipment that includes the elements.
Claims (10)
Applications Claiming Priority (2)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| CN201810620455.1 | 2018-06-15 | ||
| CN201810620455.1A CN108762579B (en) | 2018-06-15 | 2018-06-15 | Method and system for generating handwriting of multiple pressure-sensitive pens and related components |
Publications (1)
| Publication Number | Publication Date |
|---|---|
| WO2019237448A1 true WO2019237448A1 (en) | 2019-12-19 |
Family
ID=63978146
Family Applications (1)
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| PCT/CN2018/095598 Ceased WO2019237448A1 (en) | 2018-06-15 | 2018-07-13 | Method and system for generating handwriting of multiple pressure sensing pens, and related component |
Country Status (2)
| Country | Link |
|---|---|
| CN (1) | CN108762579B (en) |
| WO (1) | WO2019237448A1 (en) |
Cited By (4)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN109542278A (en) * | 2018-09-27 | 2019-03-29 | 江苏特思达电子科技股份有限公司 | Processing method, device and the touch apparatus of touch data |
| CN111857431A (en) * | 2020-07-24 | 2020-10-30 | 青岛海信商用显示股份有限公司 | Information display method, touch control equipment and storage medium |
| US20210064208A1 (en) * | 2019-09-03 | 2021-03-04 | Wacom Co., Ltd. | Method and device for deriving pen position and reporting pen position to host computer |
| CN114629884A (en) * | 2022-01-27 | 2022-06-14 | 通彩视听科技(上海)有限公司 | A remote multi-person writing handwriting implementation method, client and server |
Families Citing this family (2)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN109445637B (en) * | 2018-11-07 | 2022-08-19 | 合肥禾斗技汇科技有限公司 | Handwriting processing method based on pen point position |
| CN110134292B (en) * | 2019-05-24 | 2022-12-16 | 京东方科技集团股份有限公司 | Handwriting input device, preparation method thereof and handwriting input equipment |
Citations (6)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| US20080273013A1 (en) * | 2007-05-01 | 2008-11-06 | Levine James L | Infrared Touch Screen Gated By Touch Force |
| US20090158144A1 (en) * | 2004-02-27 | 2009-06-18 | Research In Motion Limited | Text input system for a mobile electronic device and methods thereof |
| CN104049874A (en) * | 2014-06-10 | 2014-09-17 | 广州视睿电子科技有限公司 | Touch handwriting generation method and system of stylus |
| CN106371644A (en) * | 2015-07-22 | 2017-02-01 | 鸿合科技有限公司 | Method and apparatus for performing writing on screen by multiple persons at the same time |
| CN107045408A (en) * | 2017-04-14 | 2017-08-15 | 广州华欣电子科技有限公司 | Touch control method, smart pen, touch control identification method, apparatus and system |
| CN107491210A (en) * | 2017-08-14 | 2017-12-19 | 广州视源电子科技股份有限公司 | Multi-electromagnetic-pen writing distinguishing method and device and electronic equipment |
Family Cites Families (9)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| WO2015075931A1 (en) * | 2013-11-19 | 2015-05-28 | Wacom Co., Ltd. | Method and system for ink data generation, ink data rendering, ink data manipulation and ink data communication |
| CN105320390A (en) * | 2014-06-20 | 2016-02-10 | 鸿合科技有限公司 | Double handwriting recognition method and device based on electromagnetic white plate and electromagnetic pens |
| 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 |
| CN107111388B (en) * | 2015-01-04 | 2020-06-05 | 微软技术许可有限责任公司 | Method and apparatus for communicating with a universal stylus of a digitizer |
| CN104731329B (en) * | 2015-03-24 | 2017-11-28 | 天脉聚源(北京)教育科技有限公司 | A kind of method and apparatus of user handwriting color treatments |
| CN106527775A (en) * | 2016-11-23 | 2017-03-22 | 广州视源电子科技股份有限公司 | Interaction device, track generation method and device |
| CN106775136A (en) * | 2016-11-23 | 2017-05-31 | 广州视源电子科技股份有限公司 | Interaction method and system |
| CN107102781A (en) * | 2017-04-17 | 2017-08-29 | 华东师范大学 | A kind of tagging stylus and multipoint touch interactive system |
| CN107390958B (en) * | 2017-06-13 | 2020-06-16 | 广州华欣电子科技有限公司 | Intelligent writing method and system |
-
2018
- 2018-06-15 CN CN201810620455.1A patent/CN108762579B/en not_active Expired - Fee Related
- 2018-07-13 WO PCT/CN2018/095598 patent/WO2019237448A1/en not_active Ceased
Patent Citations (6)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| US20090158144A1 (en) * | 2004-02-27 | 2009-06-18 | Research In Motion Limited | Text input system for a mobile electronic device and methods thereof |
| US20080273013A1 (en) * | 2007-05-01 | 2008-11-06 | Levine James L | Infrared Touch Screen Gated By Touch Force |
| CN104049874A (en) * | 2014-06-10 | 2014-09-17 | 广州视睿电子科技有限公司 | Touch handwriting generation method and system of stylus |
| CN106371644A (en) * | 2015-07-22 | 2017-02-01 | 鸿合科技有限公司 | Method and apparatus for performing writing on screen by multiple persons at the same time |
| CN107045408A (en) * | 2017-04-14 | 2017-08-15 | 广州华欣电子科技有限公司 | Touch control method, smart pen, touch control identification method, apparatus and system |
| CN107491210A (en) * | 2017-08-14 | 2017-12-19 | 广州视源电子科技股份有限公司 | Multi-electromagnetic-pen writing distinguishing method and device and electronic equipment |
Cited By (7)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN109542278A (en) * | 2018-09-27 | 2019-03-29 | 江苏特思达电子科技股份有限公司 | Processing method, device and the touch apparatus of touch data |
| US20210064208A1 (en) * | 2019-09-03 | 2021-03-04 | Wacom Co., Ltd. | Method and device for deriving pen position and reporting pen position to host computer |
| US11599219B2 (en) * | 2019-09-03 | 2023-03-07 | Wacom Co., Ltd. | Method and device for deriving pen position and reporting pen position to host computer |
| US12111995B2 (en) | 2019-09-03 | 2024-10-08 | Wacom Co., Ltd. | Method and device for deriving pen position and reporting pen position to host computer |
| CN111857431A (en) * | 2020-07-24 | 2020-10-30 | 青岛海信商用显示股份有限公司 | Information display method, touch control equipment and storage medium |
| CN111857431B (en) * | 2020-07-24 | 2023-10-27 | 青岛海信商用显示股份有限公司 | Information display method, touch control equipment and storage medium |
| CN114629884A (en) * | 2022-01-27 | 2022-06-14 | 通彩视听科技(上海)有限公司 | A remote multi-person writing handwriting implementation method, client and server |
Also Published As
| Publication number | Publication date |
|---|---|
| CN108762579B (en) | 2021-09-28 |
| CN108762579A (en) | 2018-11-06 |
Similar Documents
| Publication | Publication Date | Title |
|---|---|---|
| WO2019237448A1 (en) | Method and system for generating handwriting of multiple pressure sensing pens, and related component | |
| CN102301322B (en) | Method and electronic device for virtual handwritten input | |
| CN108780369B (en) | Method and apparatus for soft touch detection of a stylus | |
| CN117724620A (en) | Interaction method and interaction panel | |
| CN101943968A (en) | Sensitivity control as a function of touch shape | |
| CN113867521B (en) | A handwriting input method, device and electronic device based on gesture visual recognition | |
| CN108415661A (en) | Written handwriting generation method, system and associated component based on infrared touch screen | |
| WO2021213274A1 (en) | Method and apparatus for preventing false touch of mobile terminal, and computer device and storage medium | |
| WO2019223461A1 (en) | Touch detection method and computer-readable storage medium | |
| CN110045840A (en) | Writing track association method and device, terminal equipment and storage medium | |
| US11868566B1 (en) | Touch response method, device, interactive white board, and storage medium | |
| US9092085B2 (en) | Configuring a touchpad setting based on the metadata of an active application of an electronic device | |
| CN108984096A (en) | Touch operation method, device, storage medium and electronic device | |
| CN115048027B (en) | Handwriting input method, device, system, electronic device and storage medium | |
| CN108776548A (en) | Written handwriting generation method, system and associated component based on infrared touch screen | |
| JP2017515241A (en) | Element deletion method and apparatus based on touch panel | |
| US20160342275A1 (en) | Method and device for processing touch signal | |
| CN110377214A (en) | Method for detecting angle and angle detection device | |
| TWI602098B (en) | Touch Sensor Device And Sensing Method For Touch Point | |
| US20210055861A1 (en) | Method for recognizing multiple capacitive styluses, touch control unit, touch panel and system | |
| CN115834958A (en) | A touch screen writing delay test method and device | |
| CN104331153B (en) | Numeric character handwriting input method and device based on temperature touch | |
| CN114691009A (en) | Method, system, device and medium for always forward displaying handwriting data | |
| US10712883B2 (en) | Electronic device validating multiple finger touch detection through donut shaped touch islands, and related methods | |
| CN104866215B (en) | A kind of information processing method and electronic equipment |
Legal Events
| Date | Code | Title | Description |
|---|---|---|---|
| 121 | Ep: the epo has been informed by wipo that ep was designated in this application |
Ref document number: 18922208 Country of ref document: EP Kind code of ref document: A1 |
|
| NENP | Non-entry into the national phase |
Ref country code: DE |
|
| 122 | Ep: pct application non-entry in european phase |
Ref document number: 18922208 Country of ref document: EP Kind code of ref document: A1 |
|
| 122 | Ep: pct application non-entry in european phase |
Ref document number: 18922208 Country of ref document: EP Kind code of ref document: A1 |