WO2017133363A1 - 触摸图形宽度的检测、触摸图形识别方法和系统 - Google Patents

触摸图形宽度的检测、触摸图形识别方法和系统 Download PDF

Info

Publication number
WO2017133363A1
WO2017133363A1 PCT/CN2016/113200 CN2016113200W WO2017133363A1 WO 2017133363 A1 WO2017133363 A1 WO 2017133363A1 CN 2016113200 W CN2016113200 W CN 2016113200W WO 2017133363 A1 WO2017133363 A1 WO 2017133363A1
Authority
WO
WIPO (PCT)
Prior art keywords
touch
information
coordinate information
width
graphic
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
Application number
PCT/CN2016/113200
Other languages
English (en)
French (fr)
Inventor
程遥
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Guangzhou Shirui Electronics Co Ltd
Original Assignee
Guangzhou Shirui Electronics Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Guangzhou Shirui Electronics Co Ltd filed Critical Guangzhou Shirui Electronics Co Ltd
Priority to EP16889169.5A priority Critical patent/EP3413209B1/en
Priority to ES16889169T priority patent/ES2991088T3/es
Priority to US16/074,644 priority patent/US11520420B2/en
Publication of WO2017133363A1 publication Critical patent/WO2017133363A1/zh
Anticipated expiration legal-status Critical
Ceased legal-status Critical Current

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING OR CALCULATING; COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/01Input arrangements or combined input and output arrangements for interaction between user and computer
    • G06F3/048Interaction techniques based on graphical user interfaces [GUI]
    • G06F3/0487Interaction techniques based on graphical user interfaces [GUI] using specific features provided by the input device, e.g. functions controlled by the rotation of a mouse with dual sensing arrangements, or of the nature of the input device, e.g. tap gestures based on pressure sensed by a digitiser
    • G06F3/0488Interaction techniques based on graphical user interfaces [GUI] using specific features provided by the input device, e.g. functions controlled by the rotation of a mouse with dual sensing arrangements, or of the nature of the input device, e.g. tap gestures based on pressure sensed by a digitiser using a touch-screen or digitiser, e.g. input of commands through traced gestures
    • G06F3/04883Interaction techniques based on graphical user interfaces [GUI] using specific features provided by the input device, e.g. functions controlled by the rotation of a mouse with dual sensing arrangements, or of the nature of the input device, e.g. tap gestures based on pressure sensed by a digitiser using a touch-screen or digitiser, e.g. input of commands through traced gestures for inputting data by handwriting, e.g. gesture or text
    • GPHYSICS
    • G06COMPUTING OR CALCULATING; COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/01Input arrangements or combined input and output arrangements for interaction between user and computer
    • G06F3/048Interaction techniques based on graphical user interfaces [GUI]
    • G06F3/0484Interaction techniques based on graphical user interfaces [GUI] for the control of specific functions or operations, e.g. selecting or manipulating an object, an image or a displayed text element, setting a parameter value or selecting a range
    • G06F3/04847Interaction techniques to control parameter settings, e.g. interaction with sliders or dials
    • GPHYSICS
    • G06COMPUTING OR CALCULATING; COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/01Input arrangements or combined input and output arrangements for interaction between user and computer
    • G06F3/03Arrangements for converting the position or the displacement of a member into a coded form
    • G06F3/041Digitisers, e.g. for touch screens or touch pads, characterised by the transducing means
    • GPHYSICS
    • G06COMPUTING OR CALCULATING; COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • GPHYSICS
    • G06COMPUTING OR CALCULATING; COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/20Information retrieval; Database structures therefor; File system structures therefor of structured data, e.g. relational data
    • G06F16/24Querying
    • G06F16/245Query processing
    • GPHYSICS
    • G06COMPUTING OR CALCULATING; COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/01Input arrangements or combined input and output arrangements for interaction between user and computer
    • G06F3/048Interaction techniques based on graphical user interfaces [GUI]
    • G06F3/0487Interaction techniques based on graphical user interfaces [GUI] using specific features provided by the input device, e.g. functions controlled by the rotation of a mouse with dual sensing arrangements, or of the nature of the input device, e.g. tap gestures based on pressure sensed by a digitiser
    • G06F3/0488Interaction techniques based on graphical user interfaces [GUI] using specific features provided by the input device, e.g. functions controlled by the rotation of a mouse with dual sensing arrangements, or of the nature of the input device, e.g. tap gestures based on pressure sensed by a digitiser using a touch-screen or digitiser, e.g. input of commands through traced gestures
    • GPHYSICS
    • G06COMPUTING OR CALCULATING; COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/44Arrangements for executing specific programs
    • G06F9/451Execution arrangements for user interfaces

Definitions

  • the present invention relates to the field of touch information processing technologies, and in particular, to a touch pattern width detection, a touch pattern recognition method and system.
  • touch devices have been widely used in people's work and life, which puts higher demands on the processing of related touch information on touch devices.
  • the touch input device such as the touch frame of the touch device should distribute the touch width information and the touch coordinate information to the corresponding operating system for distribution to application.
  • the touch input device due to the complexity of the technology of transmitting the width information to the operating system, some manufacturers' touch input devices can only report the coordinate information to the operating system, and the width information is not reported to the above operating system, thereby affecting the application software to obtain the touch. The effect of the information.
  • a method for detecting the width of a touch graphic includes the following steps:
  • the first coordinate information that is consistent with the second coordinate information is searched for in the saved first coordinate information, and the touch width information corresponding to the first coordinate information that is found is determined as the width information of the current touch graphic.
  • an application software for acquiring touch information of a touch graphic is required.
  • the first coordinate information sent by the touch device and the corresponding touch width information thereof may be directly obtained from the touch device, and the second coordinate information of the current touch graphic may be acquired by the corresponding operating system, and the second coordinate information sent by the operating system is used to search.
  • Corresponding first coordinate information thereby detecting the touch graphic width information, so that the application program obtains the first coordinate information through the operating system to make it easier to make the service level response action, and simplifies the detection process of the corresponding touch width information. , to ensure the acquisition effect of the touch information corresponding to the touch graphic.
  • the process of receiving the first coordinate information of the touch graphic sent by the touch device and the corresponding touch width information thereof may include:
  • the first coordinate information of the touch graphic and its corresponding touch width information are acquired from the touch device through a relay service program installed on the operating system.
  • the method for detecting a touch graphic width can obtain the first coordinate information of the touch graphic and the corresponding touch width information by using a relay service program installed on the operating system, so that the decoupling between the touch device and the application program can be implemented.
  • the process of saving the first coordinate information and the touch width information includes:
  • the touch information set is stored in the touch information table.
  • the method for detecting the width of the touch pattern is configured to save the first coordinate information and the touch information set corresponding to the touch width information by using the touch information table, thereby improving the subsequent searching for the first coordinate information, and further detecting the corresponding touch width information. s efficiency.
  • the first coordinate information that is consistent with the second coordinate information is searched for in the saved first coordinate information, and the touch width information corresponding to the first coordinate information that is found is determined as the width of the current touch graphic.
  • the process of information includes:
  • the foregoing process of saving the first coordinate information and the touch width information includes:
  • the process of searching for first coordinate information consistent with the second coordinate information includes:
  • the first coordinate information of the preset threshold is the first coordinate information that is consistent with the second coordinate information to improve the efficiency of searching for the first coordinate information.
  • the preset threshold may be set according to factors such as the size and resolution of the touch device, such as setting values of 1, 0.5, and the like.
  • the method for detecting a touch graphic width further includes:
  • the found touch width information and the corresponding first coordinate information are deleted, and the touch width information and the storage space occupied by the first coordinate information are released.
  • the touch width information and the corresponding first coordinate information are deleted, and the touch width information and the first coordinate information may be released. Storage space to increase the efficiency of the corresponding application.
  • the foregoing process of receiving the first coordinate information of the touch graphic sent by the touch device and the corresponding touch width information thereof further includes:
  • first communication link Separating a first communication link between the touch device and the second communication link with the operating system by using a serial port, wherein the first communication link is configured to receive the first coordinate information sent by the touch device and Corresponding touch width information; the second communication link is configured to receive second coordinate information sent by the operating system.
  • the above-mentioned method for detecting the width of the touch pattern uses the serial port to transmit the corresponding information, thereby ensuring the stability of the transmitted information.
  • the touch width information includes long axis information and short axis information of the inscribed ellipse corresponding to the touch graphic.
  • a touch graphic recognition method includes the following steps:
  • a touch graphic is identified based on the touch width information.
  • the application software that needs to acquire the touch graphic touch information can directly obtain the first coordinate information and the corresponding touch width information sent by the touch device through the related software, and can also obtain the current touch graphic through the corresponding operating system.
  • the second coordinate information finds the corresponding first coordinate information, thereby detecting the touch graphic width information, and then identifying the corresponding touch graphic according to the detected width information, so that the application is easy to make a response on the service level.
  • the detection process of the corresponding touch width information is simplified, and the acquisition effect of the touch information corresponding to the touch graphic is ensured, thereby improving the recognition effect of the touch graphic.
  • a touch graphic width detection system comprising:
  • a first receiving module configured to receive first coordinate information of the touch graphic sent by the touch device and corresponding touch width information thereof, and save the first coordinate information and the touch width information;
  • a second receiving module configured to receive second coordinate information of the current touch graphic sent by the operating system, where the second coordinate information is touch graphic coordinate information sent by the touch device to the operating system;
  • a detecting module configured to search, in the saved first coordinate information, the first coordinate information that is consistent with the second coordinate information, and determine the touch width information corresponding to the first coordinate information that is found as the width information of the current touch graphic .
  • the application software that needs to acquire the touch graphic touch information can directly obtain the first coordinate information and the corresponding touch width information sent by the touch device through the related software, and can obtain the current current through the corresponding operating system. Touching the second coordinate information of the graphic, searching for the corresponding first coordinate information according to the second coordinate information sent by the operating system, thereby detecting the touch graphic width information, so that the application obtains the first coordinate information through the operating system, which is easier
  • the detection process of the corresponding touch width information is simplified, and the acquisition effect of the touch information corresponding to the touch graphic is ensured.
  • a touch graphic recognition system comprising:
  • a first receiving module configured to receive first coordinate information of the touch graphic sent by the touch device and corresponding touch width information thereof, and save the first coordinate information and the touch width information;
  • a second receiving module configured to receive second coordinate information of the current touch graphic sent by the operating system, where the second coordinate information is touch graphic coordinate information sent by the touch device to the operating system;
  • a detecting module configured to search, in the saved first coordinate information, the first coordinate information that is consistent with the second coordinate information, and determine the touch width information corresponding to the first coordinate information that is found as the width information of the current touch graphic ;
  • an identification module configured to identify the touch graphic according to the touch width information.
  • the application software that needs to acquire the touch graphic touch information can directly obtain the first coordinate information and the corresponding touch width information sent by the touch device through the related software, and can also obtain the current touch graphic through the corresponding operating system.
  • the second coordinate information finds the corresponding first coordinate information, thereby detecting the touch graphic width information, and then identifying the corresponding touch graphic according to the detected width information, so that the application is easy to make a response on the service level.
  • the detection process of the corresponding touch width information is simplified, and the acquisition effect of the touch information corresponding to the touch graphic is ensured, thereby improving the recognition effect of the touch graphic.
  • FIG. 1 is a flow chart of a method for detecting a touch pattern width according to an embodiment
  • FIG. 2 is a schematic diagram of a touch graphic of an embodiment
  • 3 is a schematic diagram of transmission of coordinate information and touch width information of an embodiment
  • FIG. 4 is a schematic structural diagram of a touch pattern width detecting system according to an embodiment
  • FIG. 5 is a flowchart of a touch pattern recognition method according to an embodiment
  • FIG. 6 is a schematic structural diagram of a touch pattern recognition system according to an embodiment.
  • FIG. 1 is a flow chart of a method for detecting a touch pattern width according to an embodiment, which includes the following steps:
  • the touch device may perform related reading on the touch graphic input by the user through the relevant touch operation to obtain first coordinate information and touch width information of the touch graphic, and the first coordinate information and the touch width information. Send directly to the app.
  • the touch graphic may be the graphic 202 on the touch device 201 as shown in FIG. 2, or may be the graphic 203 on the touch device 201.
  • the touch graphic 202 may be a graphic that the user's finger slides on the corresponding touch screen.
  • the graphic 203 may be a graphic that the user inputs to the touch device 201 through the palm of the hand.
  • the first coordinate information may include a central coordinate value of the closed geometric figure corresponding to the touch graphic, and the corresponding touch width information of the first coordinate information includes information such as the length and width of the circumscribed rectangle of the closed geometric figure corresponding to the same touch graphic, It may also include long axis information, short axis information, and the like of the inscribed ellipse of the closed geometry corresponding to the touch pattern described above.
  • the first coordinate information and the corresponding touch width information thereof are saved correspondingly, and the first coordinate information uniquely corresponds to one touch width information, and may be stored according to a certain first coordinate information.
  • the space accurately detects the corresponding touch width information.
  • the corresponding table can be saved to save the first coordinate information and the touch width information to improve the convenience of subsequent searching and detecting.
  • S20 Receive second coordinate information of a current touch graphic sent by the operating system, where the second coordinate information is touch graphic coordinate information sent by the touch device to the operating system;
  • the second coordinate information may include a central coordinate value of the closed geometric figure corresponding to the touch graphic, and the first coordinate information and the second coordinate information of the same touch graphic are consistent.
  • the touch device acquires the coordinate information of the current touch graphic
  • the coordinate information is sent to the operating system, and the operating system sends the coordinate information to the application, that is, the second coordinate information received by the application.
  • the above operating systems may include Windows systems, Linux systems, and OSX systems.
  • the transmission information of the coordinate information and the touch width information of the same touch graphic may be as shown in FIG. 3, after the touch device acquires the coordinate information and the touch width information of the touch graphic, the coordinate information and the touch width information are sent to The application, correspondingly, the application receives the coordinate information and the touch width information to obtain the first coordinate information and the corresponding touch width information thereof; the touch device further transmits the coordinate information of the touch graphic to the operating system, and the operating system further The received coordinate information (second coordinate information) is sent to the application; the application can directly process the coordinate information forwarded by the operating system to obtain support of the application programming framework.
  • the application can more easily make a response action at the service level when receiving the coordinate information forwarded by the operating system than directly processing the related data sent by the touch device to the application.
  • the operating system only forwards the coordinate information of the touch graphic without forwarding the corresponding touch width information, so that the amount of data forwarded by the operating system can be as small as possible to improve the corresponding forwarding effect.
  • the application can simply make a response at the service level, and can obtain complete touch information through processing such as searching and detecting in the storage space according to the second coordinate information. (including the first coordinate information and the touch width information corresponding to the second coordinate information).
  • the first coordinate information and the corresponding touch width information that the application software that needs to acquire the touch information of the touch graphic can directly send from the touch device through the related software may also pass the corresponding operating system.
  • the detection process of the corresponding touch width information is simplified, and the acquisition effect of the touch information corresponding to the touch graphic is ensured.
  • the process of receiving the first coordinate information of the touch graphic sent by the touch device and the corresponding touch width information thereof may include:
  • the first coordinate information of the touch graphic and its corresponding touch width information are acquired from the touch device through a relay service program installed on the operating system.
  • the first coordinate information and its corresponding touch width information are sent and received in the operating system.
  • the transit service program, the touch device first sends the first coordinate information and its corresponding touch width information to the transfer service program, and then the transfer service program is forwarded to the corresponding application program, so that the transfer is performed by the transfer service program. Decoupling of touch devices from applications can be achieved.
  • the foregoing process of saving the first coordinate information and the touch width information may include:
  • the touch information set is stored in the touch information table.
  • the touch information set includes a set of corresponding first coordinate information and touch width information, and when the touch information set is found in the storage space of the application, the first coordinate information and the touch width information may be acquired, and the The efficiency of detecting coordinate width information by a coordinate information.
  • the touch information table is established, and each touch information set including the first coordinate information and the touch width information can be stored in the touch information table in an orderly manner, so that the touch information set is more easily searched.
  • the first coordinate information that is consistent with the second coordinate information is searched for in the saved first coordinate information, and the touch width information corresponding to the first coordinate information that is found is determined as the width of the current touch graphic.
  • the process of information can include:
  • the second coordinate information and the first coordinate information may respectively include an identifier.
  • the second coordinate information and the first coordinate information having the same identifier are identical second coordinate information and first coordinate information;
  • the identifier may include content of the second coordinate information and the acquisition time and the acquisition position of the first coordinate information that can uniquely refer to the touch graphic coordinate information.
  • the foregoing process of saving the first coordinate information and the touch width information may include:
  • the process of searching for first coordinate information consistent with the second coordinate information includes:
  • the establishment of the data dictionary to save the first coordinate information and the touch width information facilitates subsequent searching of the first coordinate information. Since the first coordinate information and the second coordinate information may have related errors in the acquiring process, the first coordinate information and the second coordinate information are reasonably offset from the coordinate information corresponding to the touch graphic, and thus the distance value from the second coordinate information is smaller than
  • the first coordinate information of the preset threshold is the first coordinate information that is consistent with the second coordinate information to improve the efficiency of searching for the first coordinate information.
  • the preset threshold may be set according to factors such as the size and resolution of the touch device, such as setting values of 1, 0.5, and the like.
  • the method for detecting the width of the touch graphic may further include
  • the found touch width information and the corresponding first coordinate information are deleted, and the touch width information and the storage space occupied by the first coordinate information are released.
  • the touch width information and the corresponding first coordinate information are deleted, and the touch width information and the storage space occupied by the first coordinate information may be released. Improve the efficiency of the corresponding application.
  • the foregoing process of receiving the first coordinate information of the touch graphic sent by the touch device and the corresponding touch width information thereof may further include:
  • first communication link Separating a first communication link between the touch device and the second communication link with the operating system by using a serial port, wherein the first communication link is configured to receive the first coordinate information sent by the touch device and Corresponding touch width information; the second communication link is configured to receive second coordinate information sent by the operating system.
  • the touch device can separately send relevant data to the application program and the operating system by using a communication link set by the serial port; after receiving the second coordinate information, the operating system can separately send the second coordinate information to the application by using a communication link set by the serial port. program.
  • the touch device may send the first coordinate information and its corresponding touch width information to the transfer service program by using the communication link set by the serial port, and transfer The service program sends the above data to the application over the serial communication link.
  • the serial port is used to transmit corresponding information, which can ensure the stability of the transmitted information.
  • the touch width information may include long axis information and short axis information of the inscribed ellipse corresponding to the touch graphic.
  • the touch pattern is modified by using an inscribed ellipse corresponding to the touch pattern, so that the inscribed ellipse for acquiring the touch width information all falls into the touch area of the user, and the corresponding touch pattern can be covered as much as possible to ensure The accuracy of the acquired touch width information;
  • the touch width information may be expressed as (w, h); wherein w represents the long axis length of the inscribed ellipse, and h represents the short axis length of the inscribed ellipse;
  • the long axis information and the short axis information of the inscribed ellipse can obtain information such as the area and size of the touch graphic, and can be correspondingly identified according to information such as the area and size of the touch graphic.
  • the unit in the long axis information and the short axis information described above may be a pixel.
  • the touch width information may include a length and a width of a circumscribed rectangle corresponding to the touch graphic.
  • the touch rectangle is corrected by using a circumscribed rectangle corresponding to the touch pattern, so that the corresponding touch patterns all fall into the circumscribed rectangle, so that the circumscribed rectangle includes all the information of the touch pattern;
  • the touch width information can be expressed as ( a, b); wherein a represents the length of the circumscribed rectangle, and b represents the width of the circumscribed rectangle; according to the length and width of the circumscribed rectangle, information such as the area and size of the touched graphic can be obtained, and thus the touched graphic can be The area, size and other information are identified accordingly.
  • the units of the above length and width may be pixels.
  • FIG. 4 is a schematic structural diagram of a touch pattern width detecting system according to an embodiment, including:
  • the first receiving module 10 is configured to receive first coordinate information of the touch graphic sent by the touch device and corresponding touch width information thereof, and save the first coordinate information and the touch width information;
  • the second receiving module 20 is configured to receive second coordinate information of the current touch graphic sent by the operating system, where the second coordinate information is touch graphic coordinate information sent by the touch device to the operating system;
  • the detecting module 30 is configured to search, in the saved first coordinate information, the first coordinate information that is consistent with the second coordinate information, and determine the touch width information corresponding to the first coordinate information that is found as the width of the current touch graphic. information.
  • the touch graphic width detecting system provided by the present invention and the touch graphic width inspection provided by the present invention The measurement method has a one-to-one correspondence, and the technical features and the beneficial effects thereof described in the embodiment of the method for detecting the width of the touch pattern are all applicable to the embodiment of the detection system for the touch pattern width, which is hereby declared.
  • FIG. 5 is a flowchart of a touch pattern recognition method according to an embodiment, which includes the following steps:
  • the touch device may perform related reading on the touch graphic input by the user through the relevant touch operation to obtain first coordinate information and touch width information of the touch graphic, and the first coordinate information and the touch width information. Send directly to the app.
  • the touch graphic may be the graphic 202 on the touch device 201 as shown in FIG. 2, or may be the graphic 203 on the touch device 201.
  • the touch graphic 202 may be a graphic that the user's finger slides on the corresponding touch screen.
  • the graphic 203 may be a graphic that the user inputs to the touch device 201 through the palm of the hand.
  • the first coordinate information may include a central coordinate value of the closed geometric figure corresponding to the touch graphic, and the corresponding touch width information of the first coordinate information includes information such as the length and width of the circumscribed rectangle of the closed geometric figure corresponding to the same touch graphic, It may also include long axis information, short axis information, and the like of the inscribed ellipse of the closed geometry corresponding to the touch pattern described above.
  • the first coordinate information and the corresponding touch width information thereof are saved correspondingly, and the first coordinate information uniquely corresponds to one touch width information, and may be stored according to a certain first coordinate information.
  • the space accurately detects the corresponding touch width information.
  • the corresponding table can be saved to save the first coordinate information and the touch width information to improve the convenience of subsequent searching and detecting.
  • S20 Receive second coordinate information of a current touch graphic sent by the operating system, where the second coordinate information is touch graphic coordinate information sent by the touch device to the operating system;
  • the second coordinate information may include a central coordinate value of the closed geometric figure corresponding to the touch graphic, and the first coordinate information and the second coordinate information of the same touch graphic are consistent.
  • the coordinate information is sent to the operating system, and the operating system sends the coordinate information to the application, that is, the second coordinate information received by the application.
  • Above operating system It can include Windows systems, Linux systems, and OSX systems.
  • the transmission information of the coordinate information and the touch width information of the same touch graphic may be as shown in FIG. 3, after the touch device acquires the coordinate information and the touch width information of the touch graphic, the coordinate information and the touch width information are sent to The application, correspondingly, the application receives the coordinate information and the touch width information to obtain the first coordinate information and the corresponding touch width information thereof; the touch device further transmits the coordinate information of the touch graphic to the operating system, and the operating system further The received coordinate information (second coordinate information) is sent to the application; the application can directly process the coordinate information forwarded by the operating system to obtain support of the application programming framework.
  • the application can more easily make a response action at the service level when receiving the coordinate information forwarded by the operating system than directly processing the related data sent by the touch device to the application.
  • the operating system only forwards the coordinate information of the touch graphic without forwarding the corresponding touch width information, so that the amount of data forwarded by the operating system can be as small as possible to improve the corresponding forwarding effect.
  • the application can simply make a response at the service level, and can obtain complete touch information through processing such as searching and detecting in the storage space according to the second coordinate information. (including the first coordinate information and the touch width information corresponding to the second coordinate information).
  • the application can determine the size of the touch graphic according to the touch width information of the touch graphic, thereby identifying the source of the touch graphic, such as a touch graphic input by the user through finger input or by palm or other means;
  • the touch graphic as shown in FIG. 2 202 may be a touch graphic input by a user by sliding a finger;
  • the touch graphic 203 may be a touch graphic input by a user through a palm or the like.
  • the corresponding touch graphic can be identified as an invalid touch graphic.
  • the touch width information includes the length a and the width b of the circumscribed rectangle, if any one of the length a and the width b is larger than the set value of the application, the corresponding touch can be The graphic recognition is invalid; if the touch width information includes the long axis length w and the short axis length h of the inscribed ellipse, if any of the long axis length w and the short axis length h is greater than another set value of the application, The corresponding touch graphic is recognized as invalid.
  • the application software that needs to acquire the touch graphic touch information can directly obtain the first coordinate information and the corresponding touch width information sent by the touch device through the related software, and can also obtain the above by using the corresponding operating system.
  • the second coordinate information of the current touch graph is further searched for the corresponding first coordinate information, thereby detecting the touch graphic width information, and then identifying the corresponding touch graphic according to the detected width information, so that the application is easy to make a service level response.
  • the detection process of the corresponding touch width information is simplified, and the acquisition effect of the touch information corresponding to the touch graphic is ensured, thereby improving the recognition effect of the touch graphic.
  • FIG. 6 is a schematic structural diagram of a touch pattern recognition system according to an embodiment, including:
  • the first receiving module 10 is configured to receive first coordinate information of the touch graphic sent by the touch device and corresponding touch width information thereof, and save the first coordinate information and the touch width information;
  • the second receiving module 20 is configured to receive second coordinate information of the current touch graphic sent by the operating system, where the second coordinate information is touch graphic coordinate information sent by the touch device to the operating system;
  • the detecting module 30 is configured to search, in the saved first coordinate information, the first coordinate information that is consistent with the second coordinate information, and determine the touch width information corresponding to the first coordinate information that is found as the width of the current touch graphic. information;
  • the identification module 40 is configured to identify the touch graphic according to the touch width information.
  • the touch pattern recognition system provided by the present invention has a one-to-one correspondence with the touch pattern recognition method provided by the present invention, and the technical features and the beneficial effects thereof in the embodiment of the touch pattern recognition method are all applicable to the embodiment of the touch pattern recognition system. , hereby declare.

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • General Engineering & Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Human Computer Interaction (AREA)
  • Software Systems (AREA)
  • Data Mining & Analysis (AREA)
  • Databases & Information Systems (AREA)
  • Computational Linguistics (AREA)
  • User Interface Of Digital Computer (AREA)
  • Position Input By Displaying (AREA)

Abstract

一种触摸图形宽度的检测、触摸图形识别方法和系统;其中触摸图形宽度的检测方法包括如下步骤:接收触摸设备发送的触摸图形的第一坐标信息及其相应的触摸宽度信息,并保存所述第一坐标信息和触摸宽度信息(S10);接收操作系统发送的当前触摸图形的第二坐标信息;其中,所述第二坐标信息为触摸设备向操作系统发送的触摸图形坐标信息(S20);在保存的第一坐标信息中查找与所述第二坐标信息一致的第一坐标信息,将查找到的第一坐标信息所对应的触摸宽度信息确定为当前触摸图形的宽度信息(S30)。触摸图形宽度的检测、触摸图形识别方法和系统可以简化相应触摸宽度信息的检测过程,保证了触摸图形所对应的触摸信息的获取效果。

Description

触摸图形宽度的检测、触摸图形识别方法和系统 技术领域
本发明涉及触摸信息处理技术领域,特别是涉及一种触摸图形宽度的检测、触摸图形识别方法和系统。
背景技术
近年来,触摸设备已广泛应用到了人们的工作和生活中,这便对触摸设备上相关触摸信息的处理提出了更高的要求。
通常情况下,为了将触摸点的宽度或者面积等信息传递给PC端的应用软件,触摸设备的触摸框等触摸输入设备本应该将触摸宽度信息和触摸坐标信息统一交由相应的操作系统来分发给应用软件。但是由于将宽度信息传递给操作系统的技术较为复杂,导致部分厂商的触摸输入设备仅能向操作系统报告坐标信息,而不会将宽度信息一并报告给上述操作系统,从而影响应用软件获取触摸信息的效果。
发明内容
基于此,有必要针对传统技术影响应用软件获取触摸信息效果的技术问题,提供一种触摸图形宽度的检测、触摸图形识别方法和系统。
一种触摸图形宽度的检测方法,包括如下步骤:
接收触摸设备发送的触摸图形的第一坐标信息及其相应的触摸宽度信息,并保存所述第一坐标信息和触摸宽度信息;
接收操作系统发送的当前触摸图形的第二坐标信息;其中,所述第二坐标信息为触摸设备向操作系统发送的触摸图形坐标信息;
在保存的第一坐标信息中查找与所述第二坐标信息一致的第一坐标信息,将查找到的第一坐标信息所对应的触摸宽度信息确定为当前触摸图形的宽度信息。
上述触摸图形宽度的检测方法中,需要获取触摸图形触摸信息的应用软件 可以直接从触摸设备通过相关软件发送的第一坐标信息及其相应的触摸宽度信息,还可以通过相应的操作系统获取上述当前触摸图形的第二坐标信息,根据操作系统发送的第二坐标信息查找相应的第一坐标信息,从而进行触摸图形宽度信息的检测,使应用程序在通过操作系统获取第一坐标信息,以更容易做出业务层面响应动作的基础上,简化相应触摸宽度信息的检测过程,保证了触摸图形所对应的触摸信息的获取效果。
在一个实施例中,上述接收触摸设备发送的触摸图形的第一坐标信息及其相应的触摸宽度信息的过程可以包括:
通过安装在操作系统上的中转服务程序,从触摸设备获取触摸图形的第一坐标信息及其相应的触摸宽度信息。
上述触摸图形宽度的检测方法,利用安装在操作系统上的中转服务程序获取触摸图形的第一坐标信息及其相应的触摸宽度信息,可以实现触摸设备与应用程序的解耦。
在一个实施例中,上保存所述第一坐标信息和触摸宽度信息的过程包括:
根据所述第一坐标信息和触摸宽度信息建立触摸信息集合;
建立触摸信息表;
将所述触摸信息集合存入所述触摸信息表。
上述触摸图形宽度的检测方法,通过建立触摸信息表,利用上述触摸信息表保存第一坐标信息和触摸宽度信息所对应的触摸信息集合,可以提高后续查找第一坐标信息,进而检测相应触摸宽度信息的效率。
作为一个实施例,上述在保存的第一坐标信息中查找与所述第二坐标信息一致的第一坐标信息,将查找到的第一坐标信息所对应的触摸宽度信息确定为当前触摸图形的宽度信息的过程包括:
将第二坐标信息触摸信息表中的各个第一坐标信息进行比对,获取与所述第二坐标信息一致的第一坐标信息;
在所述第一坐标信息对应的触摸信息集合中读取触摸宽度信息;根据所述触摸宽度信息确定当前触摸图形的宽度信息。
在一个实施例中,上述保存所述第一坐标信息和触摸宽度信息的过程包括:
建立数据字典,将所述第一坐标信息和触摸宽度信息存入所述数据字典;
所述查找与所述第二坐标信息一致的第一坐标信息的过程包括:
在数据字典中查找与所述第二坐标信息距离值小于预设阈值的第一坐标信息,得到与所述第二坐标信息一致的第一坐标信息。
由于第一坐标信息和第二坐标信息在获取过程中可能存在相关误差,导致上述第一坐标信息和第二坐标信息合理的偏移触摸图形对应的坐标信息,因此与第二坐标信息距离值小于预设阈值的第一坐标信息便为与上述第二坐标信息一致的第一坐标信息,以提高查找上述第一坐标信息的效率。上述预设阈值可以根据触摸设备的尺寸和分辨率等因素进行设置,比如设置为1、0.5等值。
在一个实施例中,上述触摸图形宽度的检测方法,还包括:
删除已查找到的触摸宽度信息以及相应的第一坐标信息,释放所述触摸宽度信息以及第一坐标信息所占的存储空间。
上述触摸图形宽度的检测方法在检测到应用程序所需要的触摸宽度信息后,对上述触摸宽度信息以及相应的第一坐标信息进行删除,可以释放所述触摸宽度信息以及第一坐标信息所占的存储空间,以提高相应应用程序的效率。
在一个实施例中,上述接收触摸设备发送的触摸图形的第一坐标信息及其相应的触摸宽度信息的过程之前还包括:
分别利用串口设置与触摸设备之间的第一通信链路以及与操作系统之间的第二通信链路;其中,所述第一通信链路用于接收触摸设备发送的第一坐标信息及其相应的触摸宽度信息;所述第二通信链路用于接收操作系统发送的第二坐标信息。
上述触摸图形宽度的检测方法,利用串口进行相应信息的传输,可以保证所传信息的稳定性。
在一个实施例中,上述触摸宽度信息包括触摸图形所对应的内接椭圆的长轴信息和短轴信息。
一种触摸图形识别方法,包括如下步骤:
接收触摸设备发送的触摸图形的第一坐标信息及其相应的触摸宽度信息,并保存所述第一坐标信息和触摸宽度信息;
接收操作系统发送的当前触摸图形的第二坐标信息;其中,所述第二坐标信息为触摸设备向操作系统发送的触摸图形坐标信息;
在保存的第一坐标信息中查找与所述第二坐标信息一致的第一坐标信息,将查找到的第一坐标信息所对应的触摸宽度信息确定为当前触摸图形的宽度信息;
根据所述触摸宽度信息识别触摸图形。
上述触摸图形识别方法中,需要获取触摸图形触摸信息的应用软件可以直接从触摸设备通过相关软件发送的第一坐标信息及其相应的触摸宽度信息,还可以通过相应的操作系统获取上述当前触摸图形的第二坐标信息,进而查找相应的第一坐标信息,从而进行触摸图形宽度信息的检测,再根据所检测的宽度信息识别相应的触摸图形,使应用程序在容易做出业务层面响应动作的基础上,简化相应触摸宽度信息的检测过程,保证了触摸图形所对应的触摸信息的获取效果,从而提高了触摸图形的识别效果。
一种触摸图形宽度的检测系统,包括:
第一接收模块,用于接收触摸设备发送的触摸图形的第一坐标信息及其相应的触摸宽度信息,并保存所述第一坐标信息和触摸宽度信息;
第二接收模块,用于接收操作系统发送的当前触摸图形的第二坐标信息;其中,所述第二坐标信息为触摸设备向操作系统发送的触摸图形坐标信息;
检测模块,用于在保存的第一坐标信息中查找与所述第二坐标信息一致的第一坐标信息,将查找到的第一坐标信息所对应的触摸宽度信息确定为当前触摸图形的宽度信息。
上述触摸图形宽度的检测系统中,需要获取触摸图形触摸信息的应用软件可以直接从触摸设备通过相关软件发送的第一坐标信息及其相应的触摸宽度信息,还可以通过相应的操作系统获取上述当前触摸图形的第二坐标信息,根据操作系统发送的第二坐标信息查找相应的第一坐标信息,从而进行触摸图形宽度信息的检测,使应用程序在通过操作系统获取第一坐标信息,以更容易做出业务层面响应动作的基础上,简化相应触摸宽度信息的检测过程,保证了触摸图形所对应的触摸信息的获取效果。
一种触摸图形识别系统,包括:
第一接收模块,用于接收触摸设备发送的触摸图形的第一坐标信息及其相应的触摸宽度信息,并保存所述第一坐标信息和触摸宽度信息;
第二接收模块,用于接收操作系统发送的当前触摸图形的第二坐标信息;其中,所述第二坐标信息为触摸设备向操作系统发送的触摸图形坐标信息;
检测模块,用于在保存的第一坐标信息中查找与所述第二坐标信息一致的第一坐标信息,将查找到的第一坐标信息所对应的触摸宽度信息确定为当前触摸图形的宽度信息;
识别模块,用于根据所述触摸宽度信息识别触摸图形。
上述触摸图形识别系统中,需要获取触摸图形触摸信息的应用软件可以直接从触摸设备通过相关软件发送的第一坐标信息及其相应的触摸宽度信息,还可以通过相应的操作系统获取上述当前触摸图形的第二坐标信息,进而查找相应的第一坐标信息,从而进行触摸图形宽度信息的检测,再根据所检测的宽度信息识别相应的触摸图形,使应用程序在容易做出业务层面响应动作的基础上,简化相应触摸宽度信息的检测过程,保证了触摸图形所对应的触摸信息的获取效果,从而提高了触摸图形的识别效果。
附图说明
图1为一个实施例的触摸图形宽度的检测方法流程图;
图2为一个实施例的触摸图形示意图;
图3为一个实施例的坐标信息和触摸宽度信息的传输示意图;
图4为一个实施例的触摸图形宽度的检测系统结构示意图;
图5为一个实施例的触摸图形识别方法流程图;
图6为一个实施例的触摸图形识别系统结构示意图。
具体实施方式
下面结合附图对本发明的触摸图形宽度的检测方法和系统的具体实施方式作详细描述。
参考图1,图1所示为一个实施例的触摸图形宽度的检测方法流程图,包括如下步骤:
S10,接收触摸设备发送的触摸图形的第一坐标信息及其相应的触摸宽度信息,并保存所述第一坐标信息和触摸宽度信息;
上述步骤S10中,触摸设备可以对用户通过相关触摸操作向其输入的触摸图形进行相关读取,以得到触摸图形的第一坐标信息和触摸宽度信息,并将上述第一坐标信息和触摸宽度信息直接发送至应用程序。
参考图2,上述触摸图形可以如图2所示触摸设备201上的图形202,也可以如触摸设备201上的图形203,上述触摸图形202可以为用户手指在相应触摸屏上滑动的图形,上述触摸图形203可以为用户通过手掌向触摸设备201所输入的图形。
上述第一坐标信息可以包括触摸图形所对应的封闭几何图形的中心坐标值,第一坐标信息相应的触摸宽度信息包括同一个触摸图形所对应的封闭几何图形的外接矩形的长和宽等信息,也可以包括上述触摸图形所对应的封闭几何图形的内接椭圆的长轴信息和短轴信息等。
保存上述第一坐标信息和触摸宽度信息时,需要对第一坐标信息及其相应的触摸宽度信息对应保存,一个第一坐标信息唯一对应一个触摸宽度信息,根据某个第一坐标信息可以在存储空间准确检测到相应的触摸宽度信息。可以建立相应的表格对上述第一坐标信息和触摸宽度信息进行保存,以提高后续查找和检测的便利性。
S20,接收操作系统发送的当前触摸图形的第二坐标信息;其中,所述第二坐标信息为触摸设备向操作系统发送的触摸图形坐标信息;
上述第二坐标信息可以包括触摸图形所对应的封闭几何图形的中心坐标值,同一个触摸图形的第一坐标信息和第二坐标信息是一致的。触摸设备获取当前触摸图形的坐标信息后,将上述坐标信息发送至操作系统,操作系统再将上述坐标信息发送至应用程序,即应用程序所接收的第二坐标信息。上述操作系统可以包括Windows系统、Linux系统以及OSX系统等。
S30,在保存的第一坐标信息中查找与所述第二坐标信息一致的第一坐标信 息,将查找到的第一坐标信息所对应的触摸宽度信息确定为当前触摸图形的宽度信息。
作为一个实施例,同一个触摸图形的坐标信息和触摸宽度信息的传输示意图可以如图3所示,触摸设备在获取触摸图形的坐标信息和触摸宽度信息后,将坐标信息和触摸宽度信息发送至应用程序,相应地,应用程序接收上述坐标信息和触摸宽度信息,得到第一坐标信息及其相应的触摸宽度信息;触摸设备还将上述触摸图形的坐标信息发送至操作系统,操作系统再将其接收的坐标信息(第二坐标信息)发送至应用程序;使应用程序可以直接处理操作系统转发的坐标信息,以得到应用程序编程框架的支持。
这样相比于直接处理触摸设备发送至应用程序的相关数据,应用程序在收到操作系统转发的坐标信息时可以更容易地做出业务层面的响应动作。且操作系统只转发触摸图形的坐标信息,而不转发相应的触摸宽度信息,使操作系统转发的数据量可以尽量小,以提高相应的转发效果。应用程序在接收操作系统转发的第二坐标系统后,既能简单地做出业务层面的响应,又能根据上述第二坐标信息在存储空间通过查找、检测等处理过程,获取到完整的触摸信息(包括上述第二坐标信息对应的第一坐标信息及触摸宽度信息)。
本发明提供的触摸图形宽度的检测方法中,需要获取触摸图形触摸信息的应用软件可以直接从触摸设备通过相关软件发送的第一坐标信息及其相应的触摸宽度信息,还可以通过相应的操作系统获取上述当前触摸图形的第二坐标信息,根据操作系统发送的第二坐标信息查找相应的第一坐标信息,从而进行触摸图形宽度信息的检测,使应用程序在通过操作系统获取第一坐标信息,以更容易做出业务层面响应动作的基础上,简化相应触摸宽度信息的检测过程,保证了触摸图形所对应的触摸信息的获取效果。
在一个实施例中,上述接收触摸设备发送的触摸图形的第一坐标信息及其相应的触摸宽度信息的过程可以包括:
通过安装在操作系统上的中转服务程序,从触摸设备获取触摸图形的第一坐标信息及其相应的触摸宽度信息。
本实施例中,在操作系统设置收发第一坐标信息及其相应的触摸宽度信息 的中转服务程序,触摸设备先将第一坐标信息及其相应的触摸宽度信息发送至中转服务程序,再由上述中转服务程序转发至相应的应用程序,这样通过上述中转服务程序进行相应的中转,可以实现触摸设备与应用程序的解耦。
在一个实施例中,上述保存所述第一坐标信息和触摸宽度信息的过程可以包括:
根据所述第一坐标信息和触摸宽度信息建立触摸信息集合;
建立触摸信息表;
将所述触摸信息集合存入所述触摸信息表。
上述触摸信息集合包含一组相对应的第一坐标信息和触摸宽度信息,在应用程序的存储空间查找到某触摸信息集合,便可以获取其中的第一坐标信息和触摸宽度信息,可以提高根据第一坐标信息检测触摸宽度信息的效率。建立触摸信息表,可以使各个包括第一坐标信息和触摸宽度信息的触摸信息集合有序的存入上述触摸信息表中,使触摸信息集合更容易被查找。
作为一个实施例,上述在保存的第一坐标信息中查找与所述第二坐标信息一致的第一坐标信息,将查找到的第一坐标信息所对应的触摸宽度信息确定为当前触摸图形的宽度信息的过程可以包括:
将第二坐标信息触摸信息表中的各个第一坐标信息进行比对,获取与所述第二坐标信息一致的第一坐标信息;
在所述第一坐标信息对应的触摸信息集合中读取触摸宽度信息;根据所述触摸宽度信息确定当前触摸图形的宽度信息。
上述第二坐标信息和第一坐标信息可以分别包括某标识符,比对过程中,标识符相同的第二坐标信息和第一坐标信息便为一致的第二坐标信息和第一坐标信息;上述标识符可以包括第二坐标信息和第一坐标信息的获取时刻和获取位置等能唯一指代触摸图形坐标信息的内容。
在一个实施例中,上述保存所述第一坐标信息和触摸宽度信息的过程可以包括:
建立数据字典,将所述第一坐标信息和触摸宽度信息存入所述数据字典;
所述查找与所述第二坐标信息一致的第一坐标信息的过程包括:
在数据字典中查找与所述第二坐标信息距离值小于预设阈值的第一坐标信息,得到与所述第二坐标信息一致的第一坐标信息。
本实施例中,建立数据字典保存上述第一坐标信息和触摸宽度信息,有利于后续对第一坐标信息的查找。由于第一坐标信息和第二坐标信息在获取过程中可能存在相关误差,导致上述第一坐标信息和第二坐标信息合理的偏移触摸图形对应的坐标信息,因此与第二坐标信息距离值小于预设阈值的第一坐标信息便为与上述第二坐标信息一致的第一坐标信息,以提高查找上述第一坐标信息的效率。上述预设阈值可以根据触摸设备的尺寸和分辨率等因素进行设置,比如设置为1、0.5等值。
在一个实施例中,上述触摸图形宽度的检测方法还可以包括
删除已查找到的触摸宽度信息以及相应的第一坐标信息,释放所述触摸宽度信息以及第一坐标信息所占的存储空间。
本实施例在检测到应用程序所需要的触摸宽度信息后,对上述触摸宽度信息以及相应的第一坐标信息进行删除,可以释放所述触摸宽度信息以及第一坐标信息所占的存储空间,以提高相应应用程序的效率。
在一个实施例中,上述接收触摸设备发送的触摸图形的第一坐标信息及其相应的触摸宽度信息的过程之前还可以包括:
分别利用串口设置与触摸设备之间的第一通信链路以及与操作系统之间的第二通信链路;其中,所述第一通信链路用于接收触摸设备发送的第一坐标信息及其相应的触摸宽度信息;所述第二通信链路用于接收操作系统发送的第二坐标信息。
触摸设备可以通过利用串口设置的通信链路分别发送相关数据至应用程序和操作系统;操作系统在接收到第二坐标信息后可以通过利用串口设置的通信链路分别发送上述第二坐标信息至应用程序。
若第一坐标信息及其相应的触摸宽度信息通过中转服务程序发送至应用程序,触摸设备可以通过利用串口设置的通信链路发送第一坐标信息及其相应的触摸宽度信息至中转服务程序,中转服务程序在通过串口通信链路发送上述数据至应用程序。
本实施例利用串口进行相应信息的传输,可以保证所传信息的稳定性。
在一个实施例中,上述触摸宽度信息可以包括触摸图形所对应的内接椭圆的长轴信息和短轴信息。
本实施例采用触摸图形所对应的内接椭圆对上述触摸图形进行修正,可以使获取触摸宽度信息的内接椭圆全部落入用户的触摸区域,且可以尽量大的覆盖相应的触摸图形,以保证所获取的触摸宽度信息的准确性;上述触摸宽度信息可以表示为(w,h);其中,w表示所述内接椭圆的长轴长,h表示所述内接椭圆的短轴长;根据上述内接椭圆的长轴信息和短轴信息,可以获取触摸图形的面积、尺寸等信息,进而可以根据触摸图形的面积、尺寸等信息进行相应的识别。上述长轴信息和短轴信息中的单位可以为像素。
在一个实施例中,上述触摸宽度信息可以包括触摸图形所对应的外接矩形的长和宽。
本实施例采用触摸图形所对应的外接矩形对上述触摸图形进行修正,可以使相应的触摸图形全部落入上述外接矩形,使外接矩形包含上述触摸图形的全部信息;上述触摸宽度信息可以表示为(a,b);其中,a表示所述外接矩形的长,b表示所述外接矩形的宽;根据上述外接矩形的长和宽,可以获取触摸图形的面积、尺寸等信息,进而可以根据触摸图形的面积、尺寸等信息进行相应的识别。上述长和宽的单位可以为像素。
参考图4,图4所示为一个实施例的触摸图形宽度的检测系统结构示意图,包括:
第一接收模块10,用于接收触摸设备发送的触摸图形的第一坐标信息及其相应的触摸宽度信息,并保存所述第一坐标信息和触摸宽度信息;
第二接收模块20,用于接收操作系统发送的当前触摸图形的第二坐标信息;其中,所述第二坐标信息为触摸设备向操作系统发送的触摸图形坐标信息;
检测模块30,用于在保存的第一坐标信息中查找与所述第二坐标信息一致的第一坐标信息,将查找到的第一坐标信息所对应的触摸宽度信息确定为当前触摸图形的宽度信息。
本发明提供的触摸图形宽度的检测系统与本发明提供的触摸图形宽度的检 测方法一一对应,在所述触摸图形宽度的检测方法的实施例阐述的技术特征及其有益效果均适用于触摸图形宽度的检测系统的实施例中,特此声明。
参考图5,图5所示为一个实施例的触摸图形识别方法流程图,包括如下步骤:
S10,接收触摸设备发送的触摸图形的第一坐标信息及其相应的触摸宽度信息,并保存所述第一坐标信息和触摸宽度信息;
上述步骤S10中,触摸设备可以对用户通过相关触摸操作向其输入的触摸图形进行相关读取,以得到触摸图形的第一坐标信息和触摸宽度信息,并将上述第一坐标信息和触摸宽度信息直接发送至应用程序。
参考图2,上述触摸图形可以如图2所示触摸设备201上的图形202,也可以如触摸设备201上的图形203,上述触摸图形202可以为用户手指在相应触摸屏上滑动的图形,上述触摸图形203可以为用户通过手掌向触摸设备201所输入的图形。
上述第一坐标信息可以包括触摸图形所对应的封闭几何图形的中心坐标值,第一坐标信息相应的触摸宽度信息包括同一个触摸图形所对应的封闭几何图形的外接矩形的长和宽等信息,也可以包括上述触摸图形所对应的封闭几何图形的内接椭圆的长轴信息和短轴信息等。
保存上述第一坐标信息和触摸宽度信息时,需要对第一坐标信息及其相应的触摸宽度信息对应保存,一个第一坐标信息唯一对应一个触摸宽度信息,根据某个第一坐标信息可以在存储空间准确检测到相应的触摸宽度信息。可以建立相应的表格对上述第一坐标信息和触摸宽度信息进行保存,以提高后续查找和检测的便利性。
S20,接收操作系统发送的当前触摸图形的第二坐标信息;其中,所述第二坐标信息为触摸设备向操作系统发送的触摸图形坐标信息;
上述第二坐标信息可以包括触摸图形所对应的封闭几何图形的中心坐标值,同一个触摸图形的第一坐标信息和第二坐标信息是一致的。触摸设备获取当前触摸图形的坐标信息后,将上述坐标信息发送至操作系统,操作系统再将上述坐标信息发送至应用程序,即应用程序所接收的第二坐标信息。上述操作系统 可以包括Windows系统、Linux系统以及OSX系统等。
S30,在保存的第一坐标信息中查找与所述第二坐标信息一致的第一坐标信息,将查找到的第一坐标信息所对应的触摸宽度信息确定为当前触摸图形的宽度信息。
作为一个实施例,同一个触摸图形的坐标信息和触摸宽度信息的传输示意图可以如图3所示,触摸设备在获取触摸图形的坐标信息和触摸宽度信息后,将坐标信息和触摸宽度信息发送至应用程序,相应地,应用程序接收上述坐标信息和触摸宽度信息,得到第一坐标信息及其相应的触摸宽度信息;触摸设备还将上述触摸图形的坐标信息发送至操作系统,操作系统再将其接收的坐标信息(第二坐标信息)发送至应用程序;使应用程序可以直接处理操作系统转发的坐标信息,以得到应用程序编程框架的支持。
这样相比于直接处理触摸设备发送至应用程序的相关数据,应用程序在收到操作系统转发的坐标信息时可以更容易地做出业务层面的响应动作。且操作系统只转发触摸图形的坐标信息,而不转发相应的触摸宽度信息,使操作系统转发的数据量可以尽量小,以提高相应的转发效果。应用程序在接收操作系统转发的第二坐标系统后,既能简单地做出业务层面的响应,又能根据上述第二坐标信息在存储空间通过查找、检测等处理过程,获取到完整的触摸信息(包括上述第二坐标信息对应的第一坐标信息及触摸宽度信息)。
S40,根据所述触摸宽度信息识别触摸图形。
应用程序可以根据触摸图形的触摸宽度信息判断上述触摸图形的尺寸,进而识别上述触摸图形的来源,例如用户是通过手指输入还是通过手掌或者其他方式输入的触摸图形;如图2所示的触摸图形202可以为用户通过滑动手指输入的触摸图形;触摸图形203可以为用户通过手掌或者其他方式输入的触摸图形。
作为一个实施例,对于某些应用程序而已,若只有小尺寸触摸图形为其有效的触摸指令,当应用程序检测到数值较大的触摸宽度信息时,便可以识别相应的触摸图形为无效触摸图形。比如,若触摸宽度信息包括其外接矩形的长a和宽b,若长a和宽b中任意一个大于应用程序的设定值,便可以将相应的触摸 图形识别为无效;若触摸宽度信息包括其内接椭圆的长轴长w和短轴长h,若长轴长w和短轴长h中任意一个大于应用程序的另一设定值,便可以将相应的触摸图形识别为无效。
本发明提供的触摸图形识别方法中,需要获取触摸图形触摸信息的应用软件可以直接从触摸设备通过相关软件发送的第一坐标信息及其相应的触摸宽度信息,还可以通过相应的操作系统获取上述当前触摸图形的第二坐标信息,进而查找相应的第一坐标信息,从而进行触摸图形宽度信息的检测,再根据所检测的宽度信息识别相应的触摸图形,使应用程序在容易做出业务层面响应动作的基础上,简化相应触摸宽度信息的检测过程,保证了触摸图形所对应的触摸信息的获取效果,从而提高了触摸图形的识别效果。
参考图6,图6所示为一个实施例的触摸图形识别系统结构示意图,包括:
第一接收模块10,用于接收触摸设备发送的触摸图形的第一坐标信息及其相应的触摸宽度信息,并保存所述第一坐标信息和触摸宽度信息;
第二接收模块20,用于接收操作系统发送的当前触摸图形的第二坐标信息;其中,所述第二坐标信息为触摸设备向操作系统发送的触摸图形坐标信息;
检测模块30,用于在保存的第一坐标信息中查找与所述第二坐标信息一致的第一坐标信息,将查找到的第一坐标信息所对应的触摸宽度信息确定为当前触摸图形的宽度信息;
识别模块40,用于根据所述触摸宽度信息识别触摸图形。
本发明提供的触摸图形识别系统与本发明提供的触摸图形识别方法一一对应,在所述触摸图形识别方法的实施例阐述的技术特征及其有益效果均适用于触摸图形识别系统的实施例中,特此声明。
以上所述实施例的各技术特征可以进行任意的组合,为使描述简洁,未对上述实施例中的各个技术特征所有可能的组合都进行描述,然而,只要这些技术特征的组合不存在矛盾,都应当认为是本说明书记载的范围。
以上所述实施例仅表达了本发明的几种实施方式,其描述较为具体和详细,但并不能因此而理解为对发明专利范围的限制。应当指出的是,对于本领域的 普通技术人员来说,在不脱离本发明构思的前提下,还可以做出若干变形和改进,这些都属于本发明的保护范围。因此,本发明专利的保护范围应以所附权利要求为准。

Claims (11)

  1. 一种触摸图形宽度的检测方法,其特征在于,包括如下步骤:
    接收触摸设备发送的触摸图形的第一坐标信息及其相应的触摸宽度信息,并保存所述第一坐标信息和触摸宽度信息;
    接收操作系统发送的当前触摸图形的第二坐标信息;其中,所述第二坐标信息为触摸设备向操作系统发送的触摸图形坐标信息;
    在保存的第一坐标信息中查找与所述第二坐标信息一致的第一坐标信息,将查找到的第一坐标信息所对应的触摸宽度信息确定为当前触摸图形的宽度信息。
  2. 根据权利要求1所述的触摸图形宽度的检测方法,其特征在于,所述接收触摸设备发送的触摸图形的第一坐标信息及其相应的触摸宽度信息的过程包括:
    通过安装在操作系统上的中转服务程序,从触摸设备获取触摸图形的第一坐标信息及其相应的触摸宽度信息。
  3. 根据权利要求1所述的触摸图形宽度的检测方法,其特征在于,所述保存所述第一坐标信息和触摸宽度信息的过程包括:
    根据所述第一坐标信息和触摸宽度信息建立触摸信息集合;
    建立触摸信息表;
    将所述触摸信息集合存入所述触摸信息表。
  4. 根据权利要求3所述的触摸图形宽度的检测方法,其特征在于,所述在保存的第一坐标信息中查找与所述第二坐标信息一致的第一坐标信息,将查找到的第一坐标信息所对应的触摸宽度信息确定为当前触摸图形的宽度信息的过程包括:
    将第二坐标信息触摸信息表中的各个第一坐标信息进行比对,获取与所述第二坐标信息一致的第一坐标信息;
    在所述第一坐标信息对应的触摸信息集合中读取触摸宽度信息;根据所述触摸宽度信息确定当前触摸图形的宽度信息。
  5. 根据权利要求1所述的触摸图形宽度的检测方法,其特征在于,所述保 存所述第一坐标信息和触摸宽度信息的过程包括:
    建立数据字典,将所述第一坐标信息和触摸宽度信息存入所述数据字典;
    所述查找与所述第二坐标信息一致的第一坐标信息的过程包括:
    在数据字典中查找与所述第二坐标信息距离值小于预设阈值的第一坐标信息,得到与所述第二坐标信息一致的第一坐标信息。
  6. 根据权利要求1所述的触摸图形宽度的检测方法,其特征在于,还包括:
    删除已查找到的触摸宽度信息以及相应的第一坐标信息,释放所述触摸宽度信息以及第一坐标信息所占的存储空间。
  7. 根据权利要求1所述的触摸图形宽度的检测方法,其特征在于,所述接收触摸设备发送的触摸图形的第一坐标信息及其相应的触摸宽度信息的过程之前还包括:
    分别利用串口设置与触摸设备之间的第一通信链路以及与操作系统之间的第二通信链路;其中,所述第一通信链路用于接收触摸设备发送的第一坐标信息及其相应的触摸宽度信息;所述第二通信链路用于接收操作系统发送的第二坐标信息。
  8. 根据权利要求1所述的触摸宽度信息发送方法,其特征在于,所述触摸宽度信息包括触摸图形所对应的内接椭圆的长轴信息和短轴信息。
  9. 一种触摸图形识别方法,其特征在于,包括如下步骤:
    接收触摸设备发送的触摸图形的第一坐标信息及其相应的触摸宽度信息,并保存所述第一坐标信息和触摸宽度信息;
    接收操作系统发送的当前触摸图形的第二坐标信息;其中,所述第二坐标信息为触摸设备向操作系统发送的触摸图形坐标信息;
    在保存的第一坐标信息中查找与所述第二坐标信息一致的第一坐标信息,将查找到的第一坐标信息所对应的触摸宽度信息确定为当前触摸图形的宽度信息;
    根据所述触摸宽度信息识别触摸图形。
  10. 一种触摸图形宽度的检测系统,其特征在于,包括:
    第一接收模块,用于接收触摸设备发送的触摸图形的第一坐标信息及其相 应的触摸宽度信息,并保存所述第一坐标信息和触摸宽度信息;
    第二接收模块,用于接收操作系统发送的当前触摸图形的第二坐标信息;其中,所述第二坐标信息为触摸设备向操作系统发送的触摸图形坐标信息;
    检测模块,用于在保存的第一坐标信息中查找与所述第二坐标信息一致的第一坐标信息,将查找到的第一坐标信息所对应的触摸宽度信息确定为当前触摸图形的宽度信息。
  11. 一种触摸图形识别系统,其特征在于,包括:
    第一接收模块,用于接收触摸设备发送的触摸图形的第一坐标信息及其相应的触摸宽度信息,并保存所述第一坐标信息和触摸宽度信息;
    第二接收模块,用于接收操作系统发送的当前触摸图形的第二坐标信息;其中,所述第二坐标信息为触摸设备向操作系统发送的触摸图形坐标信息;
    检测模块,用于在保存的第一坐标信息中查找与所述第二坐标信息一致的第一坐标信息,将查找到的第一坐标信息所对应的触摸宽度信息确定为当前触摸图形的宽度信息;
    识别模块,用于根据所述触摸宽度信息识别触摸图形。
PCT/CN2016/113200 2016-02-02 2016-12-29 触摸图形宽度的检测、触摸图形识别方法和系统 Ceased WO2017133363A1 (zh)

Priority Applications (3)

Application Number Priority Date Filing Date Title
EP16889169.5A EP3413209B1 (en) 2016-02-02 2016-12-29 Method and system for detecting width of touch pattern and identifying touch pattern
ES16889169T ES2991088T3 (es) 2016-02-02 2016-12-29 Método y sistema para detectar anchura de patrón táctil e identificar patrón táctil
US16/074,644 US11520420B2 (en) 2016-02-02 2016-12-29 Method and system for detecting width of touch pattern and identifying touch pattern

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN201610074095.0 2016-02-02
CN201610074095.0A CN105739871B (zh) 2016-02-02 2016-02-02 触摸图形宽度的检测、触摸图形识别方法和系统

Publications (1)

Publication Number Publication Date
WO2017133363A1 true WO2017133363A1 (zh) 2017-08-10

Family

ID=56245686

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2016/113200 Ceased WO2017133363A1 (zh) 2016-02-02 2016-12-29 触摸图形宽度的检测、触摸图形识别方法和系统

Country Status (5)

Country Link
US (1) US11520420B2 (zh)
EP (1) EP3413209B1 (zh)
CN (1) CN105739871B (zh)
ES (1) ES2991088T3 (zh)
WO (1) WO2017133363A1 (zh)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105739871B (zh) 2016-02-02 2019-03-01 广州视睿电子科技有限公司 触摸图形宽度的检测、触摸图形识别方法和系统

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20110084938A1 (en) * 2009-10-08 2011-04-14 Silicon Motion, Inc. Touch detection apparatus and touch point detection method
CN103049131A (zh) * 2012-12-18 2013-04-17 深圳市富晶科技有限公司 Windows XP系统下实现多触摸屏操作的方法及系统
CN104123094A (zh) * 2014-07-11 2014-10-29 Tcl通讯(宁波)有限公司 根据触摸宽度生成图标操作指令的方法及系统
CN105739871A (zh) * 2016-02-02 2016-07-06 广州视睿电子科技有限公司 触摸图形宽度的检测、触摸图形识别方法和系统

Family Cites Families (15)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US6128661A (en) * 1997-10-24 2000-10-03 Microsoft Corporation Integrated communications architecture on a mobile device
KR100595926B1 (ko) * 1998-01-26 2006-07-05 웨인 웨스터만 수동 입력 통합 방법 및 장치
US20050052427A1 (en) * 2003-09-10 2005-03-10 Wu Michael Chi Hung Hand gesture interaction with touch surface
US8686964B2 (en) * 2006-07-13 2014-04-01 N-Trig Ltd. User specific recognition of intended user interaction with a digitizer
US9082117B2 (en) * 2008-05-17 2015-07-14 David H. Chin Gesture based authentication for wireless payment by a mobile electronic device
GB201011146D0 (en) * 2010-07-02 2010-08-18 Vodafone Ip Licensing Ltd Mobile computing device
US10838557B2 (en) * 2010-11-22 2020-11-17 I.P. Solutions Ltd. Information input system, program, medium
US8776213B2 (en) * 2011-07-07 2014-07-08 Bottomline Technologies (De), Inc. Mobile application security system and method
US20130207913A1 (en) 2012-02-09 2013-08-15 Sony Mobile Communications Inc. Touch panel device, portable terminal, position detecting method, and recording medium
KR20130141107A (ko) * 2012-06-15 2013-12-26 삼성전자주식회사 메모 검색 방법 및 그 단말
US9304622B2 (en) * 2012-06-29 2016-04-05 Parade Technologies, Ltd. Touch orientation calculation
JP6103835B2 (ja) * 2012-06-29 2017-03-29 キヤノン株式会社 情報処理装置およびその制御方法
US9207772B2 (en) * 2013-05-13 2015-12-08 Ohio University Motion-based identity authentication of an individual with a communications device
CN104182159B (zh) * 2013-05-23 2018-12-25 华为终端(东莞)有限公司 一种触摸屏解锁的方法、装置及设备
US9680855B2 (en) * 2014-06-30 2017-06-13 Neo Prime, LLC Probabilistic model for cyber risk forecasting

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20110084938A1 (en) * 2009-10-08 2011-04-14 Silicon Motion, Inc. Touch detection apparatus and touch point detection method
CN103049131A (zh) * 2012-12-18 2013-04-17 深圳市富晶科技有限公司 Windows XP系统下实现多触摸屏操作的方法及系统
CN104123094A (zh) * 2014-07-11 2014-10-29 Tcl通讯(宁波)有限公司 根据触摸宽度生成图标操作指令的方法及系统
CN105739871A (zh) * 2016-02-02 2016-07-06 广州视睿电子科技有限公司 触摸图形宽度的检测、触摸图形识别方法和系统

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
See also references of EP3413209A4 *

Also Published As

Publication number Publication date
CN105739871A (zh) 2016-07-06
EP3413209A1 (en) 2018-12-12
EP3413209A4 (en) 2019-02-06
US20190056814A1 (en) 2019-02-21
ES2991088T3 (es) 2024-12-02
US11520420B2 (en) 2022-12-06
EP3413209B1 (en) 2024-10-02
CN105739871B (zh) 2019-03-01

Similar Documents

Publication Publication Date Title
WO2022105569A1 (zh) 页面方向识别方法、装置、设备及计算机可读存储介质
CN109992125B (zh) 信息输入方法、装置和系统
CN106662970B (zh) 一种设置指纹识别器中断阈值的方法、装置和终端设备
US11048950B2 (en) Method and device for processing images of vehicles
CN104866804A (zh) 一种掌纹信息识别的方法和设备
CN108073495B (zh) 应用程序崩溃原因的定位方法及装置
US11074428B2 (en) Fingerprint identification device and method
CN105335653A (zh) 一种异常数据检测方法及装置
CN110366100A (zh) 终端的定位方法、定位装置、可读存储介质及终端设备
CN109670979B (zh) 布料检测数据处理方法、装置和设备
WO2017133363A1 (zh) 触摸图形宽度的检测、触摸图形识别方法和系统
TW201419050A (zh) 手勢識別系統及手勢識別方法
CN112637888B (zh) 覆盖空洞区域识别方法、装置、设备及可读存储介质
US9239998B2 (en) Information processing apparatus, information processing method, and computer readable medium storing program
US10178245B2 (en) Terminal device, diagnosis system and non-transitory computer readable medium
US10356613B2 (en) Information processing device and information processing system that executes a process based on a user operation received from an operator
CN112733573A (zh) 表格检测方法、装置、移动终端及存储介质
CN114973145B (zh) 一种图像去重方法、装置、设备及可读存储介质
CN113327204B (zh) 图像校准方法和装置、设备及存储介质
JP2015076041A (ja) 誤入力検出装置および誤入力検出プログラム
CN104933161B (zh) 一种获取来自输入设备的输入数据的方法及装置
CN116225255A (zh) 显示屏的适配方法、装置、设备、存储介质及程序产品
US20170230519A1 (en) Terminal device, diagnosis system, computer readable medium, diagnostic method, and computer data signal
WO2017219641A1 (zh) 触摸时间获取方法和系统、触摸图形显示方法和系统
US9569666B2 (en) Systems and methods for measuring image recognition accuracy

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: 16889169

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE

WWE Wipo information: entry into national phase

Ref document number: 2016889169

Country of ref document: EP

ENP Entry into the national phase

Ref document number: 2016889169

Country of ref document: EP

Effective date: 20180903