WO2019037348A1 - Circular selection method and device for handwritten chinese characters, touch apparatus, and readable storage medium - Google Patents

Circular selection method and device for handwritten chinese characters, touch apparatus, and readable storage medium Download PDF

Info

Publication number
WO2019037348A1
WO2019037348A1 PCT/CN2017/116310 CN2017116310W WO2019037348A1 WO 2019037348 A1 WO2019037348 A1 WO 2019037348A1 CN 2017116310 W CN2017116310 W CN 2017116310W WO 2019037348 A1 WO2019037348 A1 WO 2019037348A1
Authority
WO
WIPO (PCT)
Prior art keywords
handwriting
point
track
closed
points
Prior art date
Application number
PCT/CN2017/116310
Other languages
French (fr)
Chinese (zh)
Inventor
向淘
Original Assignee
广州视源电子科技股份有限公司
广州视臻信息科技有限公司
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by 广州视源电子科技股份有限公司, 广州视臻信息科技有限公司 filed Critical 广州视源电子科技股份有限公司
Publication of WO2019037348A1 publication Critical patent/WO2019037348A1/en

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/01Input arrangements or combined input and output arrangements for interaction between user and computer
    • G06F3/048Interaction techniques based on graphical user interfaces [GUI]
    • G06F3/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
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/01Input arrangements or combined input and output arrangements for interaction between user and computer
    • G06F3/048Interaction techniques based on graphical user interfaces [GUI]
    • G06F3/0487Interaction techniques based on graphical user interfaces [GUI] using specific features provided by the input device, e.g. functions controlled by the rotation of a mouse with dual sensing arrangements, or of the nature of the input device, e.g. tap gestures based on pressure sensed by a digitiser
    • G06F3/0488Interaction techniques based on graphical user interfaces [GUI] using specific features provided by the input device, e.g. functions controlled by the rotation of a mouse with dual sensing arrangements, or of the nature of the input device, e.g. tap gestures based on pressure sensed by a digitiser using a touch-screen or digitiser, e.g. input of commands through traced gestures

Definitions

  • FIG. 1 A schematic diagram of the selection situation.
  • the writing stroke is located inside the circled track, and the user has theoretically selected the writing hand, but if judged according to the above steps 1) to 7), the opposite result is obtained.
  • the user may appear Ming has already circled the writing handwriting, but still can not select the phenomenon of writing handwriting, so that the user has difficulty in selecting the writing handwriting, which is easy to bring a bad user experience.
  • the embodiment of the invention provides a method and a device for selecting a writing stroke circle, a touch device and a readable storage medium, which can reduce the difficulty of the user to select a writing handwriting in the screen and improve the user experience.
  • a method for selecting a writing stroke circle specifically includes: at an electronic device having a touch-sensitive surface:
  • the target handwriting is circled.
  • the touch points that are detected during the circle selection operation are connected to generate a closed movement track corresponding to the circle selection operation, which specifically includes:
  • determining, according to an intersection of a straight line corresponding to each of the handwriting points of the target handwriting and the closed moving track, and a track angle of the closed moving track at each of the intersection points, determining each of the handwriting points Whether it is located inside the closed moving track, for each of the straight lines specifically includes:
  • the preset threshold is 90 degrees.
  • the embodiment of the present invention further provides a writing stroke circle selection device, which specifically includes:
  • the circle selection operation monitoring module is configured to monitor the circle selection operation of the target handwriting located on the display interface
  • a closed movement trajectory generating module configured to connect the touch points detected during the circle selection operation to generate a closed movement trajectory corresponding to the circle selection operation
  • a handwriting point circle selection judging module configured to determine, according to an intersection of a straight line corresponding to each handwriting point of the target handwriting and the closed moving track, and a track angle of the closed moving track at each of the intersection points Whether the handwriting point is located inside the closed moving track; wherein the straight line corresponding to the handwriting point is a straight line passing through the handwriting point;
  • a target handwriting circle selection determining module configured to determine, according to the calculated number of the handwriting points located inside the closed moving track, whether the target handwriting is located inside the closed moving track;
  • a second hand point circle selection result determining unit configured to, when, for each side of the handwriting point in the straight line, the two intersection points having the track angle difference value smaller than the preset threshold value, Determining that the handwriting point is located inside the closed moving track;
  • FIG. 2 is a schematic flow chart of a preferred embodiment of a writing stroke selection method provided by the present invention
  • FIG. 7 is a schematic structural diagram of a preferred embodiment of a touch device provided by the present invention.
  • the present invention determines the handwriting by making a straight line through the handwriting point and according to the number of intersections between the straight line and the closed moving track generated by the user's circled operation and the track angle of the closed moving track at each intersection. Whether the point is inside the closed movement track, and further determining whether the target handwriting composed of the handwriting point is inside the closed movement track, thereby determining whether the user's selection operation is selected by the circle selection operation. In the present invention, it is determined whether or not the handwriting point corresponding to the straight line is selected according to the double standard of the number of intersections between the moving trajectory of the straight line and the circle selection operation and the angle of the moving trajectory at the position of the intersection point, thereby determining whether the corresponding correspondence is selected.
  • the target handwriting can therefore make up for the logic loopholes of the traditional handwriting circle selection method, reduce the difficulty of the user to select the writing handwriting in the screen, and improve the user experience.
  • a schematic flowchart of a preferred embodiment of a writing stroke selection method provided by the present invention includes steps S21 to S25, as follows: at an electronic device having a touch-sensitive surface:
  • S24 determining, according to the calculated number of the handwriting points located inside the closed moving track, whether the target handwriting is located inside the closed moving track;
  • an electronic device having a touch-sensitive surface, such as a smart phone having a touch surface, a smart tablet, or the like.
  • the touch sensitive surface may be a capacitive screen, a resistive screen, an infrared screen or the like for receiving a touch operation of a user.
  • the electronic device can also have a display interface for displaying related user interaction information.
  • a corresponding circle selection operation is performed on the touch-sensitive surface.
  • the electronic device monitors the circle selection operation on the touch-sensitive surface, and acquires the position information of the current location of the touch point at intervals, and the current location of the touched point that is currently monitored is the last time that the touched point is monitored. The location where the touch point is located is connected.
  • the end of the circle selection operation is detected (ie, the lifting operation)
  • the start point and the end point of the circle selection operation are connected, thereby generating a corresponding closed movement track.
  • the trajectory angle is an angle between a trajectory direction of the closed moving trajectory at each intersection and a reference direction of the touch sensitive surface.
  • each touch-sensitive surface has a corresponding built-in coordinate system.
  • the reference direction of the touch-sensitive surface may be the positive direction of the abscissa axis of the built-in coordinate system, or may be the vertical axis.
  • the direction can also be other preset coordinate directions, and the specific settings can be set according to the needs of the actual application scenario.
  • determining whether the target handwriting is located inside the closed moving track is The next judgment method:
  • the unselected result prompt may also be outputted on the display interface at the same time.
  • a line passing through the handwriting point is made to the handwriting point, and the handwriting point is judged to be inside the circled track according to the number of intersections of the line and the user's circled track, according to The trajectory angle of the circled trajectory at each intersection point is further verified by whether the handwriting point is located inside the circled trajectory, that is, by determining whether the handwriting point is located inside the circled trajectory according to the double standard, thereby determining the Whether the target handwriting where the handwriting point is located is located inside the circled track, thereby making up for the logic loophole of the traditional handwriting circle selection method, improving the accuracy of determining whether the target handwriting composed of the handwriting point is inside the circled track, and reducing The user selects the difficulty of writing strokes on the screen to improve the user experience.
  • the touch points that are detected during the circle selection operation are connected to generate a closed movement track corresponding to the circle selection operation, which specifically includes:
  • the electronic device acquires the position information of the touch point on the touch-sensitive surface every predetermined time period, and the touch point detected this time.
  • the position is connected with the position of the touch point detected last time, thereby obtaining a vector line segment including direction information, wherein the position of the touch point detected by the vector line segment is the starting point, and the touch detected this time
  • the location of the point is the end point.
  • FIG. 3 it is a schematic diagram for generating a vector line segment of the circle selection operation process.
  • the touch point of the electronic device on the touch-sensitive surface disappears, that is, when the user's circle-finding operation is detected, the end point of the circle-selection operation is the vector start point, and the start point of the circle-selection operation is the vector end point.
  • the termination point and the starting point of the circle selection operation are connected, thereby obtaining corresponding vector line segments, thereby obtaining a closed movement track composed of all the above-mentioned vector line segments.
  • FIG. 4 it is a schematic diagram of a closed moving track.
  • FIG. 5 a schematic diagram of a line 1 passing through a handwriting point A intersecting a closed moving track.
  • the intersections of the straight line 1 and the closed moving track are a, b, c, and d, respectively.
  • the writing stroke circle selection method passes the straight line passing through the handwriting point to the handwriting point, and whether the handwriting point is located in the circled trajectory according to the number of intersections of the straight line and the user's circled trajectory While internally judging, according to the trajectory angle of the circled trajectory at each intersection, whether the handwriting point is located inside the circled trajectory is further verified, that is, whether the handwriting point is located in the circle according to the double standard Selecting the inside of the track to determine whether the target handwriting of the handwriting point is located inside the circled track, thereby making up for the logic loophole of the traditional handwriting circle selection method, and improving whether the target handwriting composed of the handwriting point is in the circle Selecting the internal accuracy of the track reduces the difficulty of the user's choice of writing strokes on the screen and improves the user experience.
  • the present invention also provides a writing stroke circle selecting device, which can implement the above embodiments. Write all the flow of the stroke selection method.
  • FIG. 6 is a schematic structural diagram of a preferred embodiment of a writing stroke sorting device provided by the present invention, as follows:
  • the circle selection operation monitoring module 61 is configured to monitor the circle selection operation of the target handwriting located on the display interface;
  • a closed movement trajectory generating module 62 configured to connect the touch points detected during the circle selection operation to generate a closed movement trajectory corresponding to the circle selection operation;
  • a handwriting point circle selection judging module 63 configured to determine, according to an intersection of a straight line corresponding to each handwriting point of the target handwriting and the closed moving track, and a track angle of the closed moving track at each of the intersection points Whether each of the handwriting points is located inside the closed moving track; wherein the straight line corresponding to the handwriting point is a straight line passing through the handwriting point;
  • a closed movement trajectory obtaining unit configured to connect a start point and a end point of the circle selection operation when detecting the end of the circle selection operation, and generate the closed movement trajectory according to all of the vector line segments.
  • the handwriting point circle selection determining module specifically includes:
  • a first track circle selection result determining unit configured to determine that the handwriting point is located inside the closed moving track when the number of the intersection points on any side of the handwriting point in the straight line is an odd number ;or,
  • a second hand point circle selection result determining unit configured to, when, for each side of the handwriting point in the straight line, the two intersection points having the track angle difference value smaller than the preset threshold value, Determining that the handwriting point is located inside the closed moving track;
  • a third hand point circle selection result determining unit configured to: when for any side of the handwriting point in the straight line, the track angle difference value between each two of the intersection points is not less than the preset At the threshold, it is determined that the handwriting point is outside the closed moving track.
  • the preset threshold is 90 degrees.
  • the writing stroke circle selecting device passes the straight line passing through the handwriting point to the handwriting point, and whether the handwriting point is located in the circled trajectory according to the number of intersections of the straight line and the user's circled trajectory While internally judging, according to the trajectory angle of the circled trajectory at each intersection, whether the handwriting point is located inside the circled trajectory is further verified, that is, whether the handwriting point is located in the circle according to the double standard Selecting the inside of the track to determine whether the target handwriting of the handwriting point is located inside the circled track, thereby making up for the logic loophole of the traditional handwriting circle selection method, and improving whether the target handwriting composed of the handwriting point is in the circle Selecting the internal accuracy of the track reduces the difficulty of the user's choice of writing strokes on the screen and improves the user experience.
  • FIG. 7 is a schematic structural diagram of a preferred embodiment of a touch device provided by the present invention, specifically including at least one memory 71 and at least one processor 72;
  • the memory 71 includes at least one executable program stored therein;

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

A circular selection method and device for handwritten Chinese characters, a touch apparatus, and a readable storage medium. The circular selection method for handwritten Chinese characters comprises: monitoring a circular selection operation performed on target handwriting on a display interface (S21); connecting touch points detected during the circular selection operation, and generating an enclosed motion trajectory corresponding to the circular selection operation (S22); determining, according to a point of intersection between a straight line corresponding to each handwriting point of the target handwriting and the enclosed motion trajectory and a trajectory angle corresponding to each of the points of intersection therebetween, whether each handwriting point is located within the enclosed motion trajectory, wherein the straight line corresponding to each handwriting point is a straight line passing through the handwriting points (S23); determining, according to the calculated number of handwriting points located within the enclosed motion trajectory, whether the target handwriting is located within the enclosed motion trajectory (S24); if it is determined that the target handwriting is located within the enclosed motion trajectory, encircling and selecting the target handwriting (S25). The method reduces user difficulty in selecting a handwritten Chinese character on a screen, thereby improving user experience.

Description

书写笔迹圈选方法及装置、触摸设备、可读存储介质Writing stroke circle selection method and device, touch device, readable storage medium 技术领域Technical field
本发明涉及计算机技术领域,尤其涉及一种书写笔迹圈选方法及装置、触摸设备、可读存储介质。The present invention relates to the field of computer technologies, and in particular, to a method and device for writing a handwriting circle, a touch device, and a readable storage medium.
背景技术Background technique
在现有技术中,当用户对触屏设备(如,电子白板)中的书写笔迹进行圈选时,在获得用户的圈选轨迹之后,通过下列步骤1)至7)判断该用户是否选中该书写笔迹:In the prior art, when the user circles the writing handwriting in the touch screen device (eg, the electronic whiteboard), after obtaining the user's circled trajectory, it is determined whether the user selects the user by the following steps 1) to 7) Writing handwriting:
1)连接该圈选轨迹的起点和终点,获得闭合的圈选轨迹;1) connecting the start point and the end point of the circle selection track to obtain a closed circle selection track;
2)作一条穿过书写笔迹中的某一笔迹点的直线,获得该直线与上述闭合的圈选轨迹之间的交点;2) making a straight line passing through a certain writing point in the writing handwriting to obtain an intersection between the straight line and the closed circled trajectory;
3)判断在上述直线中分布在上述笔迹点的左侧或右侧的交点的个数是否为奇数,若是,则跳转至4),若否,则跳转至5);3) determining whether the number of intersections distributed on the left or right side of the above-mentioned handwriting point in the above-mentioned straight line is an odd number, and if so, jumps to 4), and if not, jumps to 5);
4)判定该笔迹点在上述闭合的圈选轨迹的内部,并跳转至6);4) determining that the handwriting point is inside the closed circled track and jumping to 6);
5)判定该笔迹点在上述闭合的圈选轨迹的外部;5) determining that the handwriting point is outside the closed circled track;
6)循环上述步骤2)至5),对书写笔迹中的所有笔迹点均进行上述判断;6) Looping the above steps 2) to 5), and performing the above judgment on all the handwriting points in the written handwriting;
7)判断该书写笔迹中的所有笔迹点是否均在上述闭合的圈选轨迹的内部,若是,则判定该书写笔迹在该闭合的圈选轨迹的内部,并选中该书写笔迹,若否,则判定该书写笔迹在该闭合的圈选轨迹的外部,不选中该书写笔迹。7) judging whether all the handwriting points in the writing handwriting are inside the closed circled track, and if so, determining that the writing handwriting is inside the closed circled track, and selecting the writing handwriting, if not, then It is determined that the writing handwriting is outside the closed circled track, and the writing handwriting is not selected.
通过执行上述步骤1)至7),能够获得用户对书写笔迹进行圈选的结果,但是,现有技术并不适用于所有的圈选情形,如图1所示,为一种不适用的圈选情形的示意图。在图1中,书写笔迹位于圈选轨迹的内部,理论上用户已经选中了该书写笔迹,但是,若根据上述步骤1)至7)进行判断,则会得到相反的圈选结果。由此可见,由于现有技术中的判断逻辑存在漏洞,会出现用户明 明已经圈选了书写笔迹,却仍然不能够选中该书写笔迹的现象,从而会出现用户选中书写笔迹的难度大的问题,容易带来不良的用户体验。By performing the above steps 1) to 7), it is possible to obtain the result of the user's circled writing stroke, but the prior art is not applicable to all the circled situations, as shown in FIG. 1, which is an inapplicable circle. A schematic diagram of the selection situation. In Fig. 1, the writing stroke is located inside the circled track, and the user has theoretically selected the writing hand, but if judged according to the above steps 1) to 7), the opposite result is obtained. It can be seen that due to the vulnerability of the judgment logic in the prior art, the user may appear Ming has already circled the writing handwriting, but still can not select the phenomenon of writing handwriting, so that the user has difficulty in selecting the writing handwriting, which is easy to bring a bad user experience.
发明内容Summary of the invention
本发明实施例提出一种书写笔迹圈选方法及装置、触摸设备、可读存储介质,能够降低用户选中屏幕中的书写笔迹的难度,提高用户体验。The embodiment of the invention provides a method and a device for selecting a writing stroke circle, a touch device and a readable storage medium, which can reduce the difficulty of the user to select a writing handwriting in the screen and improve the user experience.
本发明实施例提供的一种书写笔迹圈选方法,具体包括:在具有触敏表面的电子装置处:A method for selecting a writing stroke circle according to an embodiment of the present invention specifically includes: at an electronic device having a touch-sensitive surface:
监听对位于显示界面上的目标笔迹的圈选操作;Monitoring the circle selection operation of the target handwriting on the display interface;
将在所述圈选操作过程中检测到的触摸点进行连接,生成与所述圈选操作相对应的闭合移动轨迹;Connecting the touch points detected during the circle selection operation to generate a closed movement trajectory corresponding to the circle selection operation;
根据与所述目标笔迹的每个笔迹点对应的直线与所述闭合移动轨迹的交点以及所述闭合移动轨迹在每个所述交点处的轨迹角度,判断各个所述笔迹点是否位于所述闭合移动轨迹的内部;其中,所述与所述笔迹点对应的直线为经过该笔迹点的直线;Determining whether each of the handwriting points is located in the closed according to an intersection of a straight line corresponding to each of the handwriting points of the target handwriting and the closed moving track and a track angle of the closed moving track at each of the intersection points Moving the inside of the trajectory; wherein the straight line corresponding to the handwriting point is a straight line passing through the handwriting point;
根据计算到的位于所述闭合移动轨迹内部的所述笔迹点的数目判断所述目标笔迹是否位于所述闭合移动轨迹的内部;Determining whether the target handwriting is located inside the closed moving track according to the calculated number of the handwriting points located inside the closed moving track;
当确定所述目标笔迹位于所述闭合移动轨迹的内部时,圈选所述目标笔迹。When it is determined that the target handwriting is located inside the closed movement track, the target handwriting is circled.
进一步地,所述将在所述圈选操作过程中检测到的触摸点进行连接,生成与所述圈选操作相对应的闭合移动轨迹,具体包括:Further, the touch points that are detected during the circle selection operation are connected to generate a closed movement track corresponding to the circle selection operation, which specifically includes:
在所述圈选操作过程中,每隔预定时间获取在所述触敏表面上的触摸点的位置;Obtaining a position of a touch point on the touch-sensitive surface every predetermined time during the circle selection operation;
对获取到的所述触敏表面上的触摸点依次进行连接,生成对应的矢量线段;And sequentially connecting the acquired touch points on the touch-sensitive surface to generate corresponding vector line segments;
当检测到所述圈选操作结束时,连接所述圈选操作的起始点和终止点,并根据所有的所述矢量线段生成所述闭合移动轨迹。When the end of the circle selection operation is detected, the start point and the end point of the circle selection operation are connected, and the closed movement track is generated according to all of the vector line segments.
进一步地,所述轨迹角度为对应的所述交点所在的所述矢量线段的方向与所述触敏表面的基准方向之间的角度。 Further, the trajectory angle is an angle between a direction of the corresponding vector line segment where the intersection point corresponds and a reference direction of the touch-sensitive surface.
进一步地,所述根据与所述目标笔迹的每个笔迹点对应的直线与所述闭合移动轨迹的交点以及所述闭合移动轨迹在每个所述交点处的轨迹角度,判断各个所述笔迹点是否位于所述闭合移动轨迹的内部,对于每个所述直线,均具体包括:Further, determining, according to an intersection of a straight line corresponding to each of the handwriting points of the target handwriting and the closed moving track, and a track angle of the closed moving track at each of the intersection points, determining each of the handwriting points Whether it is located inside the closed moving track, for each of the straight lines, specifically includes:
判断所述直线中的位于所述笔迹点的两侧的所述交点的个数是否均为偶数;Determining whether the number of the intersection points on both sides of the handwriting point in the straight line are even numbers;
若否,则确定所述笔迹点位于所述闭合移动轨迹内部;If not, determining that the handwriting point is located inside the closed movement track;
若是,则判断所述直线中的位于所述笔迹点的同一侧的每两个所述交点所对应的所述轨迹角度之间的轨迹角度差值是否小于预设阈值;If yes, determining whether a difference in the trajectory angle between the trajectory angles corresponding to each of the intersection points of the same side of the handwriting point in the straight line is less than a preset threshold;
若对于所述直线中的所述笔迹点的每一侧,均具有所述轨迹角度差值小于所述预设阈值的两个所述交点,则确定所述笔迹点位于所述闭合移动轨迹的内部;Determining that the handwriting point is located in the closed moving track if, for each side of the handwriting point in the straight line, the two intersection points having the track angle difference value being less than the preset threshold value internal;
若对于所述直线中的所述笔迹点的任意一侧,每两个所述交点之间的所述轨迹角度差值均不小于所述预设阈值,则确定所述笔迹点位于所述闭合移动轨迹的外部。Determining that the handwriting point is located in the closed if, for any side of the handwriting point in the straight line, the track angle difference between each two of the intersection points is not less than the preset threshold value Move the outside of the track.
进一步地,所述预设阈值为90度。Further, the preset threshold is 90 degrees.
相应地,本发明实施例还提供了一种书写笔迹圈选装置,具体包括:Correspondingly, the embodiment of the present invention further provides a writing stroke circle selection device, which specifically includes:
圈选操作监听模块,用于监听对位于显示界面上的目标笔迹的圈选操作;The circle selection operation monitoring module is configured to monitor the circle selection operation of the target handwriting located on the display interface;
闭合移动轨迹生成模块,用于将在所述圈选操作过程中检测到的触摸点进行连接,生成与所述圈选操作相对应的闭合移动轨迹;a closed movement trajectory generating module, configured to connect the touch points detected during the circle selection operation to generate a closed movement trajectory corresponding to the circle selection operation;
笔迹点圈选判断模块,用于根据与所述目标笔迹的每个笔迹点对应的直线与所述闭合移动轨迹的交点以及所述闭合移动轨迹在每个所述交点处的轨迹角度,判断各个所述笔迹点是否位于所述闭合移动轨迹的内部;其中,所述与所述笔迹点对应的直线为经过该笔迹点的直线;a handwriting point circle selection judging module, configured to determine, according to an intersection of a straight line corresponding to each handwriting point of the target handwriting and the closed moving track, and a track angle of the closed moving track at each of the intersection points Whether the handwriting point is located inside the closed moving track; wherein the straight line corresponding to the handwriting point is a straight line passing through the handwriting point;
目标笔迹圈选判断模块,用于根据计算到的位于所述闭合移动轨迹内部的所述笔迹点的数目判断所述目标笔迹是否位于所述闭合移动轨迹的内部;以及,a target handwriting circle selection determining module, configured to determine, according to the calculated number of the handwriting points located inside the closed moving track, whether the target handwriting is located inside the closed moving track;
目标笔迹圈选模块,用于当确定所述目标笔迹位于所述闭合移动轨迹的内 部时,圈选所述目标笔迹。a target handwriting circle selection module, configured to determine that the target handwriting is located within the closed movement track In the case of the Ministry, the target handwriting is circled.
进一步地,所述闭合移动轨迹生成模块,具体包括:Further, the closed movement trajectory generating module specifically includes:
触摸点位置获取单元,用于在所述圈选操作过程中,每隔预定时间获取在触敏表面上的触摸点的位置;a touch point location acquiring unit, configured to acquire a position of a touch point on the touch-sensitive surface every predetermined time during the circle selection operation;
矢量线段生成单元,用于对获取到的所述触敏表面上的触摸点依次进行连接,生成对应的矢量线段;以及,a vector line segment generating unit, configured to sequentially connect the acquired touch points on the touch-sensitive surface to generate corresponding vector line segments; and
闭合移动轨迹获得单元,用于当检测到所述圈选操作结束时,连接所述圈选操作的起始点和终止点,并根据所有的所述矢量线段生成所述闭合移动轨迹;其中,所述轨迹角度为对应的所述交点所在的所述矢量线段的方向与所述触敏表面的基准方向之间的角度。a closed movement trajectory obtaining unit, configured to connect a starting point and a ending point of the arranging operation when detecting the end of the circling operation, and generate the closed moving trajectory according to all the vector line segments; The trajectory angle is an angle between a direction of the corresponding vector line segment where the intersection point corresponds and a reference direction of the touch-sensitive surface.
进一步地,所述笔迹点圈选判断模块,具体包括:Further, the handwriting point circle selection judgment module specifically includes:
交点个数判断单元,用于判断所述直线中的位于所述笔迹点的两侧的所述交点的个数是否均为偶数;a intersection number judging unit, configured to determine whether the number of the intersection points on both sides of the handwriting point in the straight line are even numbers;
第一笔迹点圈选结果确定单元,用于当所述直线中的位于所述笔迹点的任意一侧的所述交点的个数为奇数时,确定所述笔迹点位于所述闭合移动轨迹内部;或者,a first track circle selection result determining unit, configured to determine that the handwriting point is located inside the closed moving track when the number of the intersection points on any side of the handwriting point in the straight line is an odd number ;or,
轨迹角度差值判断单元,用于当所述直线中的位于所述笔迹点的两侧的所述交点的个数均为偶数时,判断所述直线中的位于所述笔迹点的同一侧的每两个所述交点所对应的所述轨迹角度之间的轨迹角度差值是否小于预设阈值;以及,a trajectory angle difference value determining unit, configured to determine, when the number of the intersection points on both sides of the handwriting point in the straight line are even numbers, determining that the straight line is located on the same side of the handwriting point Whether the difference in the trajectory angle between the trajectory angles corresponding to each of the two intersection points is less than a preset threshold; and
第二笔迹点圈选结果确定单元,用于当对于所述直线中的所述笔迹点的每一侧,均具有所述轨迹角度差值小于所述预设阈值的两个所述交点时,确定所述笔迹点位于所述闭合移动轨迹的内部;或者,a second hand point circle selection result determining unit, configured to, when, for each side of the handwriting point in the straight line, the two intersection points having the track angle difference value smaller than the preset threshold value, Determining that the handwriting point is located inside the closed moving track; or
第三笔迹点圈选结果确定单元,用于当对于所述直线中的所述笔迹点的任意一侧,每两个所述交点之间的所述轨迹角度差值均不小于所述预设阈值时,确定所述笔迹点位于所述闭合移动轨迹的外部。 a third hand point circle selection result determining unit, configured to: when for any side of the handwriting point in the straight line, the track angle difference value between each two of the intersection points is not less than the preset At the threshold, it is determined that the handwriting point is outside the closed moving track.
本发明实施例还提供一种触摸设备,具体包括至少一个存储器以及至少一个处理器;An embodiment of the present invention further provides a touch device, specifically including at least one memory and at least one processor;
所述存储器,包括存储于其中的至少一个可执行程序;The memory includes at least one executable program stored therein;
所述可执行程序在由所述处理器执行时,使得所述处理器实现上述书写笔迹圈选方法。The executable program, when executed by the processor, causes the processor to implement the above-described writing stroke selection method.
本发明实施例还提供一种计算机可读存储介质,具体包括存储的计算机程序,其中,在所述计算机程序运行时控制所述计算机可读存储介质所在设备执行如上所述的书写笔迹圈选方法。The embodiment of the invention further provides a computer readable storage medium, in particular comprising a stored computer program, wherein the device in which the computer readable storage medium is controlled to execute the writing stroke selection method as described above when the computer program is running .
实施本发明实施例,具有如下有益效果:Embodiments of the present invention have the following beneficial effects:
本发明实施例提供的书写笔迹圈选方法及装置、触摸设备、可读存储介质,通过对笔迹点作经过该笔迹点的直线,并在根据该直线与用户的圈选轨迹的交点的个数对该笔迹点是否位于该圈选轨迹的内部进行判断的同时,根据该圈选轨迹在各个交点处的轨迹角度对该笔迹点是否位于该圈选轨迹的内部进行进一步的验证判断,即,通过按照双重标准判断该笔迹点是否位于圈选轨迹的内部,进而判断该笔迹点所在的目标笔迹是否位于该圈选轨迹的内部,从而能够弥补传统的笔迹圈选方法的逻辑漏洞,提高判断该笔迹点所组成的目标笔迹是否在该圈选轨迹内部的准确度,降低用户选中屏幕中的书写笔迹的难度,提高用户体验。The writing stroke circle selection method and device, the touch device and the readable storage medium provided by the embodiment of the invention pass the line passing through the handwriting point to the handwriting point, and the number of intersections between the line and the user's circled track according to the line While determining whether the handwriting point is located inside the circled trajectory, according to the trajectory angle of the circled trajectory at each intersection point, whether the handwriting point is located inside the circled trajectory is further verified and judged, that is, According to the double standard, it is judged whether the handwriting point is located inside the circled track, and then it is determined whether the target handwriting of the handwriting point is located inside the circled track, thereby being able to make up for the logic loophole of the traditional handwriting circle selection method and improving the judgment of the handwriting. Whether the target handwriting composed of the points is within the circled track accuracy, reduces the difficulty of the user's selected handwriting on the screen, and improves the user experience.
附图说明DRAWINGS
图1是现有的笔迹圈选方法的一种不适用的圈选情形的示意图;1 is a schematic diagram of an unsuitable circle selection situation of a conventional handwriting circle selection method;
图2是本发明提供的书写笔迹圈选方法的一个优选的实施例的流程示意图;2 is a schematic flow chart of a preferred embodiment of a writing stroke selection method provided by the present invention;
图3是本发明提供的书写笔迹圈选方法的一个优选的实施例中的圈选操作过程的矢量线段的生成示意图;3 is a schematic diagram of generating a vector line segment of a circle selection operation process in a preferred embodiment of the writing stroke selection method provided by the present invention;
图4是本发明提供的书写笔迹圈选方法的一个优选的实施例中的一个闭合移动轨迹的示意图; 4 is a schematic diagram of a closed movement trajectory in a preferred embodiment of the writing stroke selection method provided by the present invention;
图5是本发明提供的书写笔迹圈选方法的另一个优选的实施例中的经过一个笔迹点所作的直线与闭合移动轨迹相交的示意图;FIG. 5 is a schematic diagram showing a line intersecting a closed moving track by a handwriting point in another preferred embodiment of the writing handwriting circle selection method provided by the present invention; FIG.
图6是本发明提供的书写笔迹圈选装置的一个优选的实施例的结构示意图;6 is a schematic structural view of a preferred embodiment of a writing stroke sorting device provided by the present invention;
图7是本发明提供的触摸设备的一个优选的实施例的结构示意图。FIG. 7 is a schematic structural diagram of a preferred embodiment of a touch device provided by the present invention.
具体实施方式Detailed ways
下面将结合本发明实施例中的附图,对本发明实施例中的技术方案进行清楚、完整地描述,显然,所描述的实施例仅仅是本发明一部分实施例,而不是全部的实施例。基于本发明中的实施例,本领域普通技术人员在没有作出创造性劳动前提下所获得的所有其他实施例,都属于本发明保护的范围。The technical solutions in the embodiments of the present invention are clearly and completely described in the following with reference to the accompanying drawings in the embodiments of the present invention. It is obvious that the described embodiments are only a part of the embodiments of the present invention, but not all embodiments. All other embodiments obtained by those skilled in the art based on the embodiments of the present invention without creative efforts are within the scope of the present invention.
本发明通过穿过笔迹点作直线,并根据该直线与依用户的圈选操作所生成的闭合移动轨迹之间的交点的个数以及该闭合移动轨迹在各个交点处的轨迹角度,判断该笔迹点是否在该闭合移动轨迹的内部,进而判断由该笔迹点所组成的目标笔迹是否在该闭合移动轨迹的内部,从而确定用户的该圈选操作是否选中该目标笔迹。本发明由于是根据直线与圈选操作的移动轨迹之间的交点的个数以及交点所在位置的该移动轨迹的角度等双重标准来判定是否选中该直线所对应的笔迹点,进而判断是否选中对应的目标笔迹的,因此能够弥补传统的笔迹圈选方法的逻辑漏洞,降低用户选中屏幕中的书写笔迹的难度,提高用户体验。The present invention determines the handwriting by making a straight line through the handwriting point and according to the number of intersections between the straight line and the closed moving track generated by the user's circled operation and the track angle of the closed moving track at each intersection. Whether the point is inside the closed movement track, and further determining whether the target handwriting composed of the handwriting point is inside the closed movement track, thereby determining whether the user's selection operation is selected by the circle selection operation. In the present invention, it is determined whether or not the handwriting point corresponding to the straight line is selected according to the double standard of the number of intersections between the moving trajectory of the straight line and the circle selection operation and the angle of the moving trajectory at the position of the intersection point, thereby determining whether the corresponding correspondence is selected. The target handwriting can therefore make up for the logic loopholes of the traditional handwriting circle selection method, reduce the difficulty of the user to select the writing handwriting in the screen, and improve the user experience.
如图2所示,为本发明提供的书写笔迹圈选方法的一个优选的实施例的流程示意图,包括步骤S21至S25,具体如下:在具有触敏表面的电子装置处:As shown in FIG. 2, a schematic flowchart of a preferred embodiment of a writing stroke selection method provided by the present invention includes steps S21 to S25, as follows: at an electronic device having a touch-sensitive surface:
S21:监听对位于显示界面上的目标笔迹的圈选操作;S21: monitoring the circle selection operation of the target handwriting located on the display interface;
S22:将在所述圈选操作过程中检测到的触摸点进行连接,生成与所述圈选操作相对应的闭合移动轨迹;S22: Connect the touch points detected during the circle selection operation to generate a closed movement track corresponding to the circle selection operation;
S23:根据与所述目标笔迹的每个笔迹点对应的直线与所述闭合移动轨迹的 交点以及所述闭合移动轨迹在每个所述交点处的轨迹角度,判断各个所述笔迹点是否位于所述闭合移动轨迹的内部;其中,所述与所述笔迹点对应的直线为经过该笔迹点的直线;S23: according to a straight line corresponding to each handwriting point of the target handwriting and the closed moving track An intersection point and a trajectory angle of the closed movement trajectory at each of the intersection points, determining whether each of the handwriting points is located inside the closed movement trajectory; wherein the straight line corresponding to the handwriting point passes the handwriting a straight line of points;
S24:根据计算到的位于所述闭合移动轨迹内部的所述笔迹点的数目判断所述目标笔迹是否位于所述闭合移动轨迹的内部;S24: determining, according to the calculated number of the handwriting points located inside the closed moving track, whether the target handwriting is located inside the closed moving track;
S25:当确定所述目标笔迹位于所述闭合移动轨迹的内部时,圈选所述目标笔迹。S25: When the target handwriting is determined to be located inside the closed movement track, the target handwriting is circled.
需要说明的是,本发明实施例由具有触敏表面的电子装置执行,例如,具有触摸表面的智能手机、智能平板等。其中,该触敏表面可以是电容屏、电阻屏、红外屏等,其用于接收用户的触摸操作。该电子装置还可以具有显示界面,用于显示相关的用户交互信息。It should be noted that embodiments of the present invention are performed by an electronic device having a touch-sensitive surface, such as a smart phone having a touch surface, a smart tablet, or the like. The touch sensitive surface may be a capacitive screen, a resistive screen, an infrared screen or the like for receiving a touch operation of a user. The electronic device can also have a display interface for displaying related user interaction information.
当用户需要圈选位于显示界面中的某个目标笔迹时,在上述触敏表面上进行相应的圈选操作。上述电子装置对触敏表面上的圈选操作进行监听,并每隔一段时间获取触摸点当前所在的位置的位置信息,并将本次监听到的触摸点当前所在的位置与上一次监听到的触摸点所在的位置相连接。在监听到该圈选操作结束时(即抬起操作),连接该圈选操作的起始点和终止点,从而生成相应的闭合移动轨迹。随后,对于该目标笔迹中的每一个笔迹点,都生成一条经过该笔迹点的直线,并获得这些直线与上述闭合移动轨迹之间的交点以及各个交点所对应的轨迹角度。其中,该轨迹角度为上述闭合移动轨迹在各个交点处的轨迹方向与上述触敏表面的基准方向之间的角度。可以理解的是,每个触敏表面均具有对应的内置坐标系,在本实施例中,触敏表面的基准方向可以为该内置坐标系的横坐标轴正方向,也可以为纵坐标轴正方向,还可以为其他预设的坐标方向,其具体的设定可以根据实际应用场景的需要进行设置。在获得经过笔迹点的直线与上述闭合移动轨迹之间的交点以及各个交点所对应的轨迹角度之后,根据这些交点的个数以及各个交点所对应的轨迹角度,判断该笔迹点是否在上述闭合移动轨迹内部。When the user needs to circle a certain target handwriting located in the display interface, a corresponding circle selection operation is performed on the touch-sensitive surface. The electronic device monitors the circle selection operation on the touch-sensitive surface, and acquires the position information of the current location of the touch point at intervals, and the current location of the touched point that is currently monitored is the last time that the touched point is monitored. The location where the touch point is located is connected. When the end of the circle selection operation is detected (ie, the lifting operation), the start point and the end point of the circle selection operation are connected, thereby generating a corresponding closed movement track. Then, for each of the handwriting points in the target handwriting, a straight line passing through the handwriting points is generated, and an intersection between the straight lines and the closed moving track and a track angle corresponding to each intersection point are obtained. Wherein, the trajectory angle is an angle between a trajectory direction of the closed moving trajectory at each intersection and a reference direction of the touch sensitive surface. It can be understood that each touch-sensitive surface has a corresponding built-in coordinate system. In this embodiment, the reference direction of the touch-sensitive surface may be the positive direction of the abscissa axis of the built-in coordinate system, or may be the vertical axis. The direction can also be other preset coordinate directions, and the specific settings can be set according to the needs of the actual application scenario. After obtaining the intersection between the straight line passing the handwriting point and the closed moving track and the trajectory angle corresponding to each intersection point, determining whether the handwriting point is in the closed movement according to the number of the intersection points and the trajectory angle corresponding to each intersection point Inside the track.
在本发明实施例中,确定目标笔迹是否位于所述闭合移动轨迹的内部有如 下判断方法:In the embodiment of the present invention, determining whether the target handwriting is located inside the closed moving track is The next judgment method:
一、当确定到一个位于所述闭合移动轨迹内部的笔迹点后,即马上确定所述目标笔迹位于所述闭合移动轨迹内部;1. After determining a handwriting point located inside the closed moving track, immediately determining that the target handwriting is located inside the closed moving track;
二、当确定到预定个数位于所述闭合移动轨迹内部的笔迹点后,即确定所述目标笔迹位于所述闭合移动轨迹内部;After determining that the predetermined number of handwriting points located inside the closed moving track, determining that the target handwriting is located inside the closed moving track;
三、在对目标笔迹中的所有笔迹点均按照上述步骤判断是否位于上述闭合移动轨迹内部之后,统计其中位于该闭合移动轨迹内部的笔迹点的个数,并判断该目标笔迹中的位于该闭合移动轨迹内部的笔迹点的个数与该目标笔迹中的所有笔迹点的个数的比值是否大于预设阈值,若是,则判定该目标笔迹在上述闭合移动轨迹的内部,并选中该目标笔迹,若否,则判定该目标笔迹在上述闭合移动轨迹的外部,并不对该目标笔迹进行处理,在一些具体的实施例中,还可以同时在显示界面上输出未选中的结果提示。3. After all the handwriting points in the target handwriting are judged according to the above steps, whether or not the handwriting points are located inside the closed moving track, the number of handwriting points located inside the closed moving track is counted, and it is determined that the target handwriting is located in the closed Whether the ratio of the number of handwriting points inside the moving track to the number of all the handwriting points in the target handwriting is greater than a preset threshold, and if so, determining that the target handwriting is inside the closed moving track, and selecting the target handwriting, If not, it is determined that the target handwriting is outside the closed moving track, and the target handwriting is not processed. In some specific embodiments, the unselected result prompt may also be outputted on the display interface at the same time.
本发明实施例通过对笔迹点作经过该笔迹点的直线,并在根据该直线与用户的圈选轨迹的交点的个数对该笔迹点是否位于该圈选轨迹的内部进行判断的同时,根据该圈选轨迹在各个交点处的轨迹角度对该笔迹点是否位于该圈选轨迹的内部进行进一步的验证判断,即,通过按照双重标准判断该笔迹点是否位于圈选轨迹的内部,进而判断该笔迹点所在的目标笔迹是否位于该圈选轨迹的内部,从而能够弥补传统的笔迹圈选方法的逻辑漏洞,提高判断该笔迹点所组成的目标笔迹是否在该圈选轨迹内部的准确度,降低用户选中屏幕中的书写笔迹的难度,提高用户体验。In the embodiment of the present invention, a line passing through the handwriting point is made to the handwriting point, and the handwriting point is judged to be inside the circled track according to the number of intersections of the line and the user's circled track, according to The trajectory angle of the circled trajectory at each intersection point is further verified by whether the handwriting point is located inside the circled trajectory, that is, by determining whether the handwriting point is located inside the circled trajectory according to the double standard, thereby determining the Whether the target handwriting where the handwriting point is located is located inside the circled track, thereby making up for the logic loophole of the traditional handwriting circle selection method, improving the accuracy of determining whether the target handwriting composed of the handwriting point is inside the circled track, and reducing The user selects the difficulty of writing strokes on the screen to improve the user experience.
更优选地,所述将在所述圈选操作过程中检测到的触摸点进行连接,生成与所述圈选操作相对应的闭合移动轨迹,具体包括:More preferably, the touch points that are detected during the circle selection operation are connected to generate a closed movement track corresponding to the circle selection operation, which specifically includes:
在所述圈选操作过程中,每隔预定时间获取在所述触敏表面上的触摸点的位置;Obtaining a position of a touch point on the touch-sensitive surface every predetermined time during the circle selection operation;
对获取到的所述触敏表面上的触摸点依次进行连接,生成对应的矢量线段;And sequentially connecting the acquired touch points on the touch-sensitive surface to generate corresponding vector line segments;
当检测到所述圈选操作结束时,连接所述圈选操作的起始点和终止点,并 根据所有的所述矢量线段生成所述闭合移动轨迹。When the end of the circle selection operation is detected, the start point and the end point of the circle selection operation are connected, and The closed movement trajectory is generated from all of the vector line segments.
进一步地,所述轨迹角度为对应的所述交点所在的所述矢量线段的方向与所述触敏表面的基准方向之间的角度。Further, the trajectory angle is an angle between a direction of the corresponding vector line segment where the intersection point corresponds and a reference direction of the touch-sensitive surface.
需要说明的是,上述电子装置在监听到触敏表面的用户的圈选操作时,每隔预定的时间段获取该触敏表面上的触摸点的位置信息,并且将本次检测到的触摸点所在的位置与上一次检测到的触摸点所在的位置相连接,从而获得包含方向信息的矢量线段,其中,该矢量线段以上一次检测到的触摸点所在的位置为起点,本次检测到的触摸点所在的位置为终点。如图3所示,为圈选操作过程的矢量线段的生成示意图。电子装置在监听到触敏表面上的触摸点消失,即,监听到用户的圈选操作结束时,以该圈选操作的终止点为矢量起点,以该圈选操作的起始点为矢量终点,连接该圈选操作的终止点和起始点,从而获得相应的矢量线段,进而获得由所有上述矢量线段组成的闭合移动轨迹。如图4所示,为一个闭合移动轨迹的示意图。It should be noted that, when the user selects the circle selection operation of the touch-sensitive surface, the electronic device acquires the position information of the touch point on the touch-sensitive surface every predetermined time period, and the touch point detected this time. The position is connected with the position of the touch point detected last time, thereby obtaining a vector line segment including direction information, wherein the position of the touch point detected by the vector line segment is the starting point, and the touch detected this time The location of the point is the end point. As shown in FIG. 3, it is a schematic diagram for generating a vector line segment of the circle selection operation process. The touch point of the electronic device on the touch-sensitive surface disappears, that is, when the user's circle-finding operation is detected, the end point of the circle-selection operation is the vector start point, and the start point of the circle-selection operation is the vector end point. The termination point and the starting point of the circle selection operation are connected, thereby obtaining corresponding vector line segments, thereby obtaining a closed movement track composed of all the above-mentioned vector line segments. As shown in FIG. 4, it is a schematic diagram of a closed moving track.
在获得闭合移动轨迹之后,电子装置对显示界面中的目标笔迹中的每个笔迹点均作一条经过该笔迹点的直线,并获得该直线与上述闭合移动轨迹之间的交点以及该交点所对应的轨迹角度。其中,该轨迹角度为对应的交点所在的矢量线段的方向与触敏表面的基准方向之间的角度。在一些更优选的实施例中,该直线为穿过对应的笔迹点且平行于触敏表面的内置坐标系的横坐标轴的直线。随后,电子装置即可根据所获得的交点的数目以及各个交点所对应的轨迹角度判断上述目标笔迹是否在上述闭合移动轨迹的内部,从而判断用户的圈选操作是否选中该目标笔迹。After obtaining the closed movement trajectory, the electronic device makes a straight line passing through the handwriting point for each of the target handwritings in the display interface, and obtains an intersection between the straight line and the closed moving trajectory and corresponding to the intersection point. The trajectory angle. Wherein, the trajectory angle is an angle between a direction of the vector line segment where the corresponding intersection point is located and a reference direction of the touch-sensitive surface. In some more preferred embodiments, the line is a line that passes through the corresponding handwriting point and is parallel to the abscissa axis of the built-in coordinate system of the touch-sensitive surface. Then, the electronic device can determine whether the target handwriting is inside the closed movement track according to the obtained number of intersection points and the trajectory angle corresponding to each intersection point, thereby determining whether the user's circle selection operation selects the target handwriting.
在另一个更优选的实施例中,在上述实施例的基础上,所述根据与所述目标笔迹的每个笔迹点对应的直线与所述闭合移动轨迹的交点以及所述闭合移动轨迹在每个所述交点处的轨迹角度,判断各个所述笔迹点是否位于所述闭合移动轨迹的内部,对于每个所述直线,均具体包括:In another more preferred embodiment, based on the above embodiment, the intersection of the straight line corresponding to each of the handwriting points of the target handwriting and the closed moving track and the closed moving track are each The trajectory angle at the intersection point is determined whether each of the handwriting points is located inside the closed moving track, and for each of the straight lines, specifically:
判断所述直线中的位于所述笔迹点的两侧的所述交点的个数是否均为偶数; Determining whether the number of the intersection points on both sides of the handwriting point in the straight line are even numbers;
若否,则确定所述笔迹点位于所述闭合移动轨迹内部;If not, determining that the handwriting point is located inside the closed movement track;
若是,则判断所述直线中的位于所述笔迹点的同一侧的每两个所述交点所对应的所述轨迹角度之间的轨迹角度差值是否小于预设阈值;If yes, determining whether a difference in the trajectory angle between the trajectory angles corresponding to each of the intersection points of the same side of the handwriting point in the straight line is less than a preset threshold;
若对于所述直线中的所述笔迹点的每一侧,均具有所述轨迹角度差值小于所述预设阈值的两个所述交点,则确定所述笔迹点位于所述闭合移动轨迹的内部;Determining that the handwriting point is located in the closed moving track if, for each side of the handwriting point in the straight line, the two intersection points having the track angle difference value being less than the preset threshold value internal;
若对于所述直线中的所述笔迹点的任意一侧,每两个所述交点之间的所述轨迹角度差值均不小于所述预设阈值,则确定所述笔迹点位于所述闭合移动轨迹的外部。Determining that the handwriting point is located in the closed if, for any side of the handwriting point in the straight line, the track angle difference between each two of the intersection points is not less than the preset threshold value Move the outside of the track.
更优选的,所述预设阈值为90度。More preferably, the preset threshold is 90 degrees.
需要说明的是,在获得根据用户的圈选操作所形成的闭合移动轨迹以及经过目标笔迹中的各个笔迹点所作的一个或者多个直线之后,执行如下步骤S1至S9,判断该目标笔迹是否位于闭合移动轨迹内部:It should be noted that after obtaining the closed movement trajectory formed according to the user's circle operation and one or more straight lines passing through the respective handwriting points in the target handwriting, the following steps S1 to S9 are performed to determine whether the target handwriting is located. Close the inside of the movement track:
S1:获得该目标笔迹中的一个笔迹点以及该笔迹点所对应的直线;S1: obtaining a handwriting point in the target handwriting and a straight line corresponding to the handwriting point;
S2:获得该直线与上述闭合移动轨迹的交点,并判断该直线中的位于该笔迹点两侧的交点的个数是否均为偶数,若是,则跳转至S3,若否,则跳转至S4;S2: obtaining an intersection of the straight line and the closed movement track, and determining whether the number of intersection points on the two sides of the handwriting point in the straight line are even numbers, if yes, jumping to S3, if not, jumping to S4;
S3:计算获得这些交点中的每个交点所对应的轨迹角度与这些交点中的其他各个交点所对应的轨迹角度之间的轨迹角度差值,并判断直线中的笔迹点的每一侧是否均具有轨迹角度差值小于预设阈值的两个交点,若是,则跳转至S4,若否,则跳转至S5;S3: calculating a trajectory angle difference between a trajectory angle corresponding to each intersection point of the intersection points and a trajectory angle corresponding to each of the intersection points of the intersection points, and determining whether each side of the handwriting point in the line is uniform There are two intersection points whose track angle difference is less than the preset threshold, if yes, then jump to S4, if not, then jump to S5;
S4:确定该笔迹点位于上述闭合移动轨迹的内部,并跳转至S6;S4: determining that the handwriting point is located inside the closed moving track, and jumping to S6;
S5:确定该笔迹点位于上述闭合移动轨迹的外部;S5: determining that the handwriting point is located outside the closed moving track;
S6:判断上述目标笔迹中是否还具有下一个未经判断的笔迹点,若是,则获取下一个笔迹点以及该下一个笔迹点所对应的直线,并跳转至S2,若否,则跳转至S7;S6: determining whether the target stroke has the next undetermined handwriting point, and if so, acquiring the next handwriting point and the line corresponding to the next handwriting point, and jumping to S2, if not, jumping To S7;
S7:统计该目标笔迹中的位于上述闭合移动轨迹内部的笔迹点的个数,并判断该目标笔迹中的位于上述闭合移动轨迹内部的笔迹点的个数与该目标笔迹 中的所有笔迹点的个数的比值是否大于预设阈值,若是,则跳转至S8,若否,则跳转至S9;S7: counting the number of handwriting points in the target handwriting that are located inside the closed moving track, and determining the number of handwriting points in the target handwriting that are inside the closed moving track and the target handwriting Whether the ratio of the number of all the handwriting points in the middle is greater than a preset threshold, if yes, then jump to S8, if not, then jump to S9;
S8:确定该目标笔迹位于该闭合移动轨迹的内部,并选中该目标笔迹。S8: Determine that the target handwriting is located inside the closed moving track, and select the target handwriting.
S9:确定该目标笔迹位于该闭合移动轨迹的外部,不选中该目标笔迹,并输出未选中的结果提示至显示界面上。S9: determining that the target handwriting is outside the closed moving track, not selecting the target handwriting, and outputting an unselected result prompt to the display interface.
在一些更优选的实施例中,上述预设阈值为90度。In some more preferred embodiments, the predetermined threshold is 90 degrees.
例如,如图5所示,为经过一个笔迹点A所作的直线1与闭合移动轨迹相交的示意图。其中,该直线1与闭合移动轨迹的交点分别为a、b、c和d。在判断该笔迹点A是否位于闭合移动轨迹的内部时,首先判断该直线1中的位于该笔迹点A两侧的交点的个数是否均为偶数。由图可知,该直线1中的位于该笔迹点A左侧和右侧的交点的个数均为2个,因此进一步判断这些交点所对应的轨迹角度之间的差值是否小于90度。具体地,对于笔迹点A的左侧,计算交点a和交点b之间的轨迹角度差值,并判断该轨迹角度差值是否小于90度;对于笔迹点A的右侧,计算交点c和交点d之间的轨迹角度差值,并判断该轨迹角度差值是否小于90度。若交点a和交点b之间的轨迹角度差值以及交点c和交点d之间的轨迹角度差值均小于90度,则判定该笔迹点A位于该闭合移动轨迹的内部,否则,判定该笔迹点A位于该闭合移动轨迹的外部。For example, as shown in FIG. 5, a schematic diagram of a line 1 passing through a handwriting point A intersecting a closed moving track. The intersections of the straight line 1 and the closed moving track are a, b, c, and d, respectively. When it is judged whether or not the handwriting point A is located inside the closed moving track, it is first determined whether the number of intersections of the straight line 1 located on both sides of the handwriting point A is even. As can be seen from the figure, the number of intersections on the left and right sides of the handwriting point A in the straight line 1 is two, so it is further determined whether the difference between the trajectory angles corresponding to the intersection points is less than 90 degrees. Specifically, for the left side of the handwriting point A, the trajectory angle difference between the intersection point a and the intersection point b is calculated, and it is determined whether the trajectory angle difference is less than 90 degrees; for the right side of the handwriting point A, the intersection point c and the intersection point are calculated The difference in the trajectory angle between d, and determine whether the trajectory angle difference is less than 90 degrees. If the difference in the trajectory angle between the intersection point a and the intersection point b and the trajectory angle difference between the intersection point c and the intersection point d are both less than 90 degrees, it is determined that the handwriting point A is located inside the closed movement trajectory, otherwise, the handwriting is determined. Point A is located outside of the closed moving track.
本发明实施例提供的书写笔迹圈选方法,通过对笔迹点作经过该笔迹点的直线,并在根据该直线与用户的圈选轨迹的交点的个数对该笔迹点是否位于该圈选轨迹的内部进行判断的同时,根据该圈选轨迹在各个交点处的轨迹角度对该笔迹点是否位于该圈选轨迹的内部进行进一步的验证判断,即,通过按照双重标准判断该笔迹点是否位于圈选轨迹的内部,进而判断该笔迹点所在的目标笔迹是否位于该圈选轨迹的内部,从而能够弥补传统的笔迹圈选方法的逻辑漏洞,提高判断该笔迹点所组成的目标笔迹是否在该圈选轨迹内部的准确度,降低用户选中屏幕中的书写笔迹的难度,提高用户体验。The writing stroke circle selection method provided by the embodiment of the invention passes the straight line passing through the handwriting point to the handwriting point, and whether the handwriting point is located in the circled trajectory according to the number of intersections of the straight line and the user's circled trajectory While internally judging, according to the trajectory angle of the circled trajectory at each intersection, whether the handwriting point is located inside the circled trajectory is further verified, that is, whether the handwriting point is located in the circle according to the double standard Selecting the inside of the track to determine whether the target handwriting of the handwriting point is located inside the circled track, thereby making up for the logic loophole of the traditional handwriting circle selection method, and improving whether the target handwriting composed of the handwriting point is in the circle Selecting the internal accuracy of the track reduces the difficulty of the user's choice of writing strokes on the screen and improves the user experience.
相应地,本发明还提供一种书写笔迹圈选装置,能够实现上述实施例中的 书写笔迹圈选方法的所有流程。Correspondingly, the present invention also provides a writing stroke circle selecting device, which can implement the above embodiments. Write all the flow of the stroke selection method.
如图6所示,为本发明提供的书写笔迹圈选装置的一个优选的实施例的结构示意图,具体如下:FIG. 6 is a schematic structural diagram of a preferred embodiment of a writing stroke sorting device provided by the present invention, as follows:
圈选操作监听模块61,用于监听对位于显示界面上的目标笔迹的圈选操作;The circle selection operation monitoring module 61 is configured to monitor the circle selection operation of the target handwriting located on the display interface;
闭合移动轨迹生成模块62,用于将在所述圈选操作过程中检测到的触摸点进行连接,生成与所述圈选操作相对应的闭合移动轨迹;a closed movement trajectory generating module 62, configured to connect the touch points detected during the circle selection operation to generate a closed movement trajectory corresponding to the circle selection operation;
笔迹点圈选判断模块63,用于根据与所述目标笔迹的每个笔迹点对应的直线与所述闭合移动轨迹的交点以及所述闭合移动轨迹在每个所述交点处的轨迹角度,判断各个所述笔迹点是否位于所述闭合移动轨迹的内部;其中,所述与所述笔迹点对应的直线为经过该笔迹点的直线;a handwriting point circle selection judging module 63, configured to determine, according to an intersection of a straight line corresponding to each handwriting point of the target handwriting and the closed moving track, and a track angle of the closed moving track at each of the intersection points Whether each of the handwriting points is located inside the closed moving track; wherein the straight line corresponding to the handwriting point is a straight line passing through the handwriting point;
目标笔迹圈选判断模块64,用于根据计算到的位于所述闭合移动轨迹内部的所述笔迹点的数目判断所述目标笔迹是否位于所述闭合移动轨迹的内部;以及,a target handwriting circle selection determining module 64, configured to determine, according to the calculated number of the handwriting points located inside the closed moving track, whether the target handwriting is located inside the closed moving track;
目标笔迹圈选模块65,用于当确定所述目标笔迹位于所述闭合移动轨迹的内部时,圈选所述目标笔迹。The target handwriting circle selection module 65 is configured to circle the target handwriting when it is determined that the target handwriting is located inside the closed movement track.
更优选地,所述闭合移动轨迹生成模块,具体包括:More preferably, the closed movement trajectory generating module specifically includes:
触摸点位置获取单元,用于在所述圈选操作过程中,每隔预定时间获取在触敏表面上的触摸点的位置;a touch point location acquiring unit, configured to acquire a position of a touch point on the touch-sensitive surface every predetermined time during the circle selection operation;
矢量线段生成单元,用于对获取到的所述触敏表面上的触摸点依次进行连接,生成对应的矢量线段;以及,a vector line segment generating unit, configured to sequentially connect the acquired touch points on the touch-sensitive surface to generate corresponding vector line segments; and
闭合移动轨迹获得单元,用于当检测到所述圈选操作结束时,连接所述圈选操作的起始点和终止点,并根据所有的所述矢量线段生成所述闭合移动轨迹。a closed movement trajectory obtaining unit configured to connect a start point and a end point of the circle selection operation when detecting the end of the circle selection operation, and generate the closed movement trajectory according to all of the vector line segments.
进一步地,所述轨迹角度为对应的所述交点所在的所述矢量线段的方向与所述触敏表面的基准方向之间的角度。Further, the trajectory angle is an angle between a direction of the corresponding vector line segment where the intersection point corresponds and a reference direction of the touch-sensitive surface.
在另一个更优选的实施例中,在上述实施例的基础上,所述笔迹点圈选判断模块,具体包括:In another more preferred embodiment, based on the foregoing embodiment, the handwriting point circle selection determining module specifically includes:
交点个数判断单元,用于判断所述直线中的位于所述笔迹点的两侧的所述 交点的个数是否均为偶数;a intersection number judging unit for judging the one of the straight lines located on both sides of the handwriting point Whether the number of intersections is even;
第一笔迹点圈选结果确定单元,用于当所述直线中的位于所述笔迹点的任意一侧的所述交点的个数为奇数时,确定所述笔迹点位于所述闭合移动轨迹内部;或者,a first track circle selection result determining unit, configured to determine that the handwriting point is located inside the closed moving track when the number of the intersection points on any side of the handwriting point in the straight line is an odd number ;or,
轨迹角度差值判断单元,用于当所述直线中的位于所述笔迹点的两侧的所述交点的个数均为偶数时,判断所述直线中的位于所述笔迹点的同一侧的每两个所述交点所对应的所述轨迹角度之间的轨迹角度差值是否小于预设阈值;以及,a trajectory angle difference value determining unit, configured to determine, when the number of the intersection points on both sides of the handwriting point in the straight line are even numbers, determining that the straight line is located on the same side of the handwriting point Whether the difference in the trajectory angle between the trajectory angles corresponding to each of the two intersection points is less than a preset threshold; and
第二笔迹点圈选结果确定单元,用于当对于所述直线中的所述笔迹点的每一侧,均具有所述轨迹角度差值小于所述预设阈值的两个所述交点时,确定所述笔迹点位于所述闭合移动轨迹的内部;或者,a second hand point circle selection result determining unit, configured to, when, for each side of the handwriting point in the straight line, the two intersection points having the track angle difference value smaller than the preset threshold value, Determining that the handwriting point is located inside the closed moving track; or
第三笔迹点圈选结果确定单元,用于当对于所述直线中的所述笔迹点的任意一侧,每两个所述交点之间的所述轨迹角度差值均不小于所述预设阈值时,确定所述笔迹点位于所述闭合移动轨迹的外部。a third hand point circle selection result determining unit, configured to: when for any side of the handwriting point in the straight line, the track angle difference value between each two of the intersection points is not less than the preset At the threshold, it is determined that the handwriting point is outside the closed moving track.
更优选地,所述预设阈值为90度。More preferably, the preset threshold is 90 degrees.
本发明实施例提供的书写笔迹圈选装置,通过对笔迹点作经过该笔迹点的直线,并在根据该直线与用户的圈选轨迹的交点的个数对该笔迹点是否位于该圈选轨迹的内部进行判断的同时,根据该圈选轨迹在各个交点处的轨迹角度对该笔迹点是否位于该圈选轨迹的内部进行进一步的验证判断,即,通过按照双重标准判断该笔迹点是否位于圈选轨迹的内部,进而判断该笔迹点所在的目标笔迹是否位于该圈选轨迹的内部,从而能够弥补传统的笔迹圈选方法的逻辑漏洞,提高判断该笔迹点所组成的目标笔迹是否在该圈选轨迹内部的准确度,降低用户选中屏幕中的书写笔迹的难度,提高用户体验。The writing stroke circle selecting device provided by the embodiment of the invention passes the straight line passing through the handwriting point to the handwriting point, and whether the handwriting point is located in the circled trajectory according to the number of intersections of the straight line and the user's circled trajectory While internally judging, according to the trajectory angle of the circled trajectory at each intersection, whether the handwriting point is located inside the circled trajectory is further verified, that is, whether the handwriting point is located in the circle according to the double standard Selecting the inside of the track to determine whether the target handwriting of the handwriting point is located inside the circled track, thereby making up for the logic loophole of the traditional handwriting circle selection method, and improving whether the target handwriting composed of the handwriting point is in the circle Selecting the internal accuracy of the track reduces the difficulty of the user's choice of writing strokes on the screen and improves the user experience.
本发明还提供了一种触摸设备。The present invention also provides a touch device.
如图7所示,为本发明提供的触摸设备的一个优选的实施例的结构示意图,具体包括至少一个存储器71以及至少一个处理器72; FIG. 7 is a schematic structural diagram of a preferred embodiment of a touch device provided by the present invention, specifically including at least one memory 71 and at least one processor 72;
所述存储器71,包括存储于其中的至少一个可执行程序;The memory 71 includes at least one executable program stored therein;
所述可执行程序在由所述处理器72执行时,使得所述处理器72实现上述任一实施例所述的书写笔迹圈选方法。The executable program, when executed by the processor 72, causes the processor 72 to implement the writing stroke selection method described in any of the above embodiments.
需要说明的是,图7仅以该触摸设备中的一个存储器和一个处理器相连接为例进行示意,在一些具体的实施例中,触摸设备中还可以包括多个存储器和/或多个处理器,其具体的数目及连接方式可根据实际情况需要进行设置和适应性调整。It should be noted that FIG. 7 is only illustrated by taking a memory of the touch device and a processor as an example. In some specific embodiments, the touch device may further include multiple memories and/or multiple processes. The specific number and connection mode of the device can be adjusted and adapted according to actual conditions.
本发明还提供了一种计算机可读存储介质,具体包括存储的计算机程序,其中,在所述计算机程序运行时控制所述计算机可读存储介质所在设备执行如上任一实施例所述的书写笔迹圈选方法。The present invention also provides a computer readable storage medium, particularly comprising a stored computer program, wherein the device in which the computer readable storage medium is controlled to execute the writing handwriting as described in any of the embodiments is executed while the computer program is running Circle method.
需要说明的是,本发明实现上述实施例方法中的全部或部分流程,也可以通过计算机程序来指令相关的硬件来完成,所述的计算机程序可存储于一计算机可读存储介质中,该计算机程序在被处理器执行时,可实现上述各个方法实施例的步骤。其中,所述计算机程序包括计算机程序代码,所述计算机程序代码可以为源代码形式、对象代码形式、可执行文件或某些中间形式等。所述计算机可读介质可以包括:能够携带所述计算机程序代码的任何实体或装置、记录介质、U盘、移动硬盘、磁碟、光盘、计算机存储器、只读存储器(ROM,Read-Only Memory)、随机存取存储器(RAM,Random Access Memory)、电载波信号、电信信号以及软件分发介质等。需要进一步说明的是,所述计算机可读介质包含的内容可以根据司法管辖区内立法和专利实践的要求进行适当的增减,例如在某些司法管辖区,根据立法和专利实践,计算机可读介质不包括电载波信号和电信信号。It should be noted that all or part of the process of the foregoing embodiments of the present invention may be implemented by a computer program for instructing related hardware, and the computer program may be stored in a computer readable storage medium. The steps of the various method embodiments described above may be implemented when the program is executed by the processor. Wherein, the computer program comprises computer program code, which may be in the form of source code, object code form, executable file or some intermediate form. The computer readable medium may include any entity or device capable of carrying the computer program code, a recording medium, a USB flash drive, a removable hard disk, a magnetic disk, an optical disk, a computer memory, a read-only memory (ROM). , random access memory (RAM, Random Access Memory), electrical carrier signals, telecommunications signals, and software distribution media. It should be further noted that the content contained in the computer readable medium may be appropriately increased or decreased according to the requirements of legislation and patent practice in jurisdictions, for example, in some jurisdictions, according to legislation and patent practice, computer readable The medium does not include electrical carrier signals and telecommunication signals.
本发明实施例提供的触摸设备、可读存储介质,通过对笔迹点作经过该笔迹点的直线,并在根据该直线与用户的圈选轨迹的交点的个数对该笔迹点是否位于该圈选轨迹的内部进行判断的同时,根据该圈选轨迹在各个交点处的轨迹角度对该笔迹点是否位于该圈选轨迹的内部进行进一步的验证判断,即,通过 按照双重标准判断该笔迹点是否位于圈选轨迹的内部,进而判断该笔迹点所在的目标笔迹是否位于该圈选轨迹的内部,从而能够弥补传统的笔迹圈选方法的逻辑漏洞,提高判断该笔迹点所组成的目标笔迹是否在该圈选轨迹内部的准确度,降低用户选中屏幕中的书写笔迹的难度,提高用户体验。The touch device and the readable storage medium provided by the embodiment of the present invention pass the line passing through the handwriting point to the handwriting point, and whether the handwriting point is located in the circle according to the number of intersections of the straight line and the user's circled track. While judging the inside of the selected track, according to the track angle of the circled track at each intersection, whether the hand point is located inside the circled track is further verified and judged, that is, According to the double standard, it is judged whether the handwriting point is located inside the circled track, and then it is determined whether the target handwriting of the handwriting point is located inside the circled track, thereby being able to make up for the logic loophole of the traditional handwriting circle selection method and improving the judgment of the handwriting. Whether the target handwriting composed of the points is within the circled track accuracy, reduces the difficulty of the user's selected handwriting on the screen, and improves the user experience.
以上所述是本发明的优选实施方式,应当指出,对于本技术领域的普通技术人员来说,在不脱离本发明原理的前提下,还可以作出若干改进和润饰,这些改进和润饰也视为本发明的保护范围。 The above is a preferred embodiment of the present invention, and it should be noted that those skilled in the art can also make several improvements and retouchings without departing from the principles of the present invention. The scope of protection of the present invention.

Claims (10)

  1. 一种书写笔迹圈选方法,其特征在于,包括:在具有触敏表面的电子装置处:A writing stroke circle selection method, comprising: at an electronic device having a touch-sensitive surface:
    监听对位于显示界面上的目标笔迹的圈选操作;Monitoring the circle selection operation of the target handwriting on the display interface;
    将在所述圈选操作过程中检测到的触摸点进行连接,生成与所述圈选操作相对应的闭合移动轨迹;Connecting the touch points detected during the circle selection operation to generate a closed movement trajectory corresponding to the circle selection operation;
    根据与所述目标笔迹的每个笔迹点对应的直线与所述闭合移动轨迹的交点以及所述闭合移动轨迹在每个所述交点处的轨迹角度,判断各个所述笔迹点是否位于所述闭合移动轨迹的内部;其中,所述与所述笔迹点对应的直线为经过该笔迹点的直线;Determining whether each of the handwriting points is located in the closed according to an intersection of a straight line corresponding to each of the handwriting points of the target handwriting and the closed moving track and a track angle of the closed moving track at each of the intersection points Moving the inside of the trajectory; wherein the straight line corresponding to the handwriting point is a straight line passing through the handwriting point;
    根据计算到的位于所述闭合移动轨迹内部的所述笔迹点的数目判断所述目标笔迹是否位于所述闭合移动轨迹的内部;Determining whether the target handwriting is located inside the closed moving track according to the calculated number of the handwriting points located inside the closed moving track;
    当确定所述目标笔迹位于所述闭合移动轨迹的内部时,圈选所述目标笔迹。When it is determined that the target handwriting is located inside the closed movement track, the target handwriting is circled.
  2. 如权利要求1所述的书写笔迹圈选方法,其特征在于,所述将在所述圈选操作过程中检测到的触摸点进行连接,生成与所述圈选操作相对应的闭合移动轨迹,具体包括:The writing stroke circle selection method according to claim 1, wherein the touch points detected during the circle selection operation are connected to generate a closed movement track corresponding to the circle selection operation, Specifically include:
    在所述圈选操作过程中,每隔预定时间获取在所述触敏表面上的触摸点的位置;Obtaining a position of a touch point on the touch-sensitive surface every predetermined time during the circle selection operation;
    对获取到的所述触敏表面上的触摸点依次进行连接,生成对应的矢量线段;And sequentially connecting the acquired touch points on the touch-sensitive surface to generate corresponding vector line segments;
    当检测到所述圈选操作结束时,连接所述圈选操作的起始点和终止点,并根据所有的所述矢量线段生成所述闭合移动轨迹。When the end of the circle selection operation is detected, the start point and the end point of the circle selection operation are connected, and the closed movement track is generated according to all of the vector line segments.
  3. 如权利要求2所述的书写笔迹圈选方法,其特征在于,所述轨迹角度为对应的所述交点所在的所述矢量线段的方向与所述触敏表面的基准方向之间的角度。 The writing stroke selection method according to claim 2, wherein the trajectory angle is an angle between a direction of the corresponding vector line segment where the intersection point corresponds and a reference direction of the touch-sensitive surface.
  4. 如权利要求1所述的书写笔迹圈选方法,其特征在于,所述根据与所述目标笔迹的每个笔迹点对应的直线与所述闭合移动轨迹的交点以及所述闭合移动轨迹在每个所述交点处的轨迹角度,判断各个所述笔迹点是否位于所述闭合移动轨迹的内部,对于每个所述直线,均具体包括:The writing stroke circle selection method according to claim 1, wherein said intersection of said straight line corresponding to each of said handwriting points of said target handwriting and said closed moving track and said closed moving track are each The trajectory angle at the intersection point is determined whether each of the handwriting points is located inside the closed movement track, and for each of the straight lines, specifically:
    判断所述直线中的位于所述笔迹点的两侧的所述交点的个数是否均为偶数;Determining whether the number of the intersection points on both sides of the handwriting point in the straight line are even numbers;
    若否,则确定所述笔迹点位于所述闭合移动轨迹内部;If not, determining that the handwriting point is located inside the closed movement track;
    若是,则判断所述直线中的位于所述笔迹点的同一侧的每两个所述交点所对应的所述轨迹角度之间的轨迹角度差值是否小于预设阈值;If yes, determining whether a difference in the trajectory angle between the trajectory angles corresponding to each of the intersection points of the same side of the handwriting point in the straight line is less than a preset threshold;
    若对于所述直线中的所述笔迹点的每一侧,均具有所述轨迹角度差值小于所述预设阈值的两个所述交点,则确定所述笔迹点位于所述闭合移动轨迹的内部;Determining that the handwriting point is located in the closed moving track if, for each side of the handwriting point in the straight line, the two intersection points having the track angle difference value being less than the preset threshold value internal;
    若对于所述直线中的所述笔迹点的任意一侧,每两个所述交点之间的所述轨迹角度差值均不小于所述预设阈值,则确定所述笔迹点位于所述闭合移动轨迹的外部。Determining that the handwriting point is located in the closed if, for any side of the handwriting point in the straight line, the track angle difference between each two of the intersection points is not less than the preset threshold value Move the outside of the track.
  5. 如权利要求4所述的书写笔迹圈选方法,其特征在于,所述预设阈值为90度。The writing stroke selection method according to claim 4, wherein the preset threshold is 90 degrees.
  6. 一种书写笔迹圈选装置,其特征在于,包括:A writing stroke circle selecting device, comprising:
    圈选操作监听模块,用于监听对位于显示界面上的目标笔迹的圈选操作;The circle selection operation monitoring module is configured to monitor the circle selection operation of the target handwriting located on the display interface;
    闭合移动轨迹生成模块,用于将在所述圈选操作过程中检测到的触摸点进行连接,生成与所述圈选操作相对应的闭合移动轨迹;a closed movement trajectory generating module, configured to connect the touch points detected during the circle selection operation to generate a closed movement trajectory corresponding to the circle selection operation;
    笔迹点圈选判断模块,用于根据与所述目标笔迹的每个笔迹点对应的直线与所述闭合移动轨迹的交点以及所述闭合移动轨迹在每个所述交点处的轨迹角度,判断各个所述笔迹点是否位于所述闭合移动轨迹的内部;其中,所述与所述笔迹点对应的直线为经过该笔迹点的直线;a handwriting point circle selection judging module, configured to determine, according to an intersection of a straight line corresponding to each handwriting point of the target handwriting and the closed moving track, and a track angle of the closed moving track at each of the intersection points Whether the handwriting point is located inside the closed moving track; wherein the straight line corresponding to the handwriting point is a straight line passing through the handwriting point;
    目标笔迹圈选判断模块,用于根据计算到的位于所述闭合移动轨迹内部的 所述笔迹点的数目判断所述目标笔迹是否位于所述闭合移动轨迹的内部;以及,a target handwriting circle selection judging module for calculating the inside of the closed movement track The number of the handwriting points determines whether the target handwriting is located inside the closed moving track;
    目标笔迹圈选模块,用于当确定所述目标笔迹位于所述闭合移动轨迹的内部时,圈选所述目标笔迹。The target handwriting circle selection module is configured to circle the target handwriting when it is determined that the target handwriting is located inside the closed movement track.
  7. 如权利要求6所述的书写笔迹圈选装置,其特征在于,所述闭合移动轨迹生成模块,具体包括:The writing stroke circling device of claim 6, wherein the closed movement trajectory generating module comprises:
    触摸点位置获取单元,用于在所述圈选操作过程中,每隔预定时间获取在触敏表面上的触摸点的位置;a touch point location acquiring unit, configured to acquire a position of a touch point on the touch-sensitive surface every predetermined time during the circle selection operation;
    矢量线段生成单元,用于对获取到的所述触敏表面上的触摸点依次进行连接,生成对应的矢量线段;以及,a vector line segment generating unit, configured to sequentially connect the acquired touch points on the touch-sensitive surface to generate corresponding vector line segments; and
    闭合移动轨迹获得单元,用于当检测到所述圈选操作结束时,连接所述圈选操作的起始点和终止点,并根据所有的所述矢量线段生成所述闭合移动轨迹;其中,所述轨迹角度为对应的所述交点所在的所述矢量线段的方向与所述触敏表面的基准方向之间的角度。a closed movement trajectory obtaining unit, configured to connect a starting point and a ending point of the arranging operation when detecting the end of the circling operation, and generate the closed moving trajectory according to all the vector line segments; The trajectory angle is an angle between a direction of the corresponding vector line segment where the intersection point corresponds and a reference direction of the touch-sensitive surface.
  8. 如权利要求6所述的书写笔迹圈选装置,其特征在于,所述笔迹点圈选判断模块,具体包括:The writing stroke circle selection device according to claim 6, wherein the handwriting point selection determination module comprises:
    交点个数判断单元,用于判断所述直线中的位于所述笔迹点的两侧的所述交点的个数是否均为偶数;a intersection number judging unit, configured to determine whether the number of the intersection points on both sides of the handwriting point in the straight line are even numbers;
    第一笔迹点圈选结果确定单元,用于当所述直线中的位于所述笔迹点的任意一侧的所述交点的个数为奇数时,确定所述笔迹点位于所述闭合移动轨迹内部;或者,a first track circle selection result determining unit, configured to determine that the handwriting point is located inside the closed moving track when the number of the intersection points on any side of the handwriting point in the straight line is an odd number ;or,
    轨迹角度差值判断单元,用于当所述直线中的位于所述笔迹点的两侧的所述交点的个数均为偶数时,判断所述直线中的位于所述笔迹点的同一侧的每两个所述交点所对应的所述轨迹角度之间的轨迹角度差值是否小于预设阈值;以及,a trajectory angle difference value determining unit, configured to determine, when the number of the intersection points on both sides of the handwriting point in the straight line are even numbers, determining that the straight line is located on the same side of the handwriting point Whether the difference in the trajectory angle between the trajectory angles corresponding to each of the two intersection points is less than a preset threshold; and
    第二笔迹点圈选结果确定单元,用于当对于所述直线中的所述笔迹点的每 一侧,均具有所述轨迹角度差值小于所述预设阈值的两个所述交点时,确定所述笔迹点位于所述闭合移动轨迹的内部;或者,a second hand point circle selection result determining unit for each of the handwriting points in the straight line Determining that the handwriting point is located inside the closed moving track when one side has two intersection points whose track angle difference is less than the preset threshold; or
    第三笔迹点圈选结果确定单元,用于当对于所述直线中的所述笔迹点的任意一侧,每两个所述交点之间的所述轨迹角度差值均不小于所述预设阈值时,确定所述笔迹点位于所述闭合移动轨迹的外部。a third hand point circle selection result determining unit, configured to: when for any side of the handwriting point in the straight line, the track angle difference value between each two of the intersection points is not less than the preset At the threshold, it is determined that the handwriting point is outside the closed moving track.
  9. 一种触摸设备,其特征在于,包括至少一个存储器以及至少一个处理器;A touch device, comprising at least one memory and at least one processor;
    所述存储器,包括存储于其中的至少一个可执行程序;The memory includes at least one executable program stored therein;
    所述可执行程序在由所述处理器执行时,使得所述处理器实现如权利要求1至6中任一项所述的书写笔迹圈选方法。The executable program, when executed by the processor, causes the processor to implement the writing stroke selection method according to any one of claims 1 to 6.
  10. 一种计算机可读存储介质,其特征在于,所述计算机可读存储介质包括存储的计算机程序,其中,在所述计算机程序运行时控制所述计算机可读存储介质所在设备执行如权利要求1至5中任一项所述的书写笔迹圈选方法。 A computer readable storage medium, comprising: a stored computer program, wherein the computer readable storage medium is controlled to execute the apparatus as claimed in claim 1 The writing stroke selection method according to any one of the five.
PCT/CN2017/116310 2017-08-21 2017-12-15 Circular selection method and device for handwritten chinese characters, touch apparatus, and readable storage medium WO2019037348A1 (en)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN201710722871.8 2017-08-21
CN201710722871.8A CN107632760B (en) 2017-08-21 2017-08-21 Handwriting circle selection method and device, touch equipment and readable storage medium

Publications (1)

Publication Number Publication Date
WO2019037348A1 true WO2019037348A1 (en) 2019-02-28

Family

ID=61100240

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2017/116310 WO2019037348A1 (en) 2017-08-21 2017-12-15 Circular selection method and device for handwritten chinese characters, touch apparatus, and readable storage medium

Country Status (2)

Country Link
CN (1) CN107632760B (en)
WO (1) WO2019037348A1 (en)

Families Citing this family (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110045909B (en) * 2019-04-15 2021-01-22 广州视源电子科技股份有限公司 Ellipse processing method, device and equipment based on writing track and storage medium
CN111427497B (en) * 2019-05-17 2021-08-24 杭州海康威视数字技术股份有限公司 Handwriting display method and device
CN111475097B (en) * 2020-04-07 2021-08-06 广州视源电子科技股份有限公司 Handwriting selection method and device, computer equipment and storage medium

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102778968A (en) * 2011-05-11 2012-11-14 深圳富泰宏精密工业有限公司 Object selection method and object selection system
CN102929503A (en) * 2012-10-30 2013-02-13 华为终端有限公司 Method and terminal for selecting files
CN104615379A (en) * 2015-03-06 2015-05-13 蔡伟英 Personal desktop application shortcut operation method and system
US20150248166A1 (en) * 2014-01-26 2015-09-03 Shangkar Meitei Mayanglambam System for spontaneous recognition of continuous gesture input
CN105320437A (en) * 2015-05-21 2016-02-10 马兰英 Method of selecting character or image and computing device

Family Cites Families (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101685497B (en) * 2008-09-28 2011-10-12 汉王科技股份有限公司 Method and device for processing hand-written information
CN102520849B (en) * 2011-11-28 2013-08-07 北京盛世宣合信息科技有限公司 Electronic brush writing method and system
CN105094564A (en) * 2015-08-11 2015-11-25 广州视睿电子科技有限公司 Handwriting editing method and system based on touch operation

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102778968A (en) * 2011-05-11 2012-11-14 深圳富泰宏精密工业有限公司 Object selection method and object selection system
CN102929503A (en) * 2012-10-30 2013-02-13 华为终端有限公司 Method and terminal for selecting files
US20150248166A1 (en) * 2014-01-26 2015-09-03 Shangkar Meitei Mayanglambam System for spontaneous recognition of continuous gesture input
CN104615379A (en) * 2015-03-06 2015-05-13 蔡伟英 Personal desktop application shortcut operation method and system
CN105320437A (en) * 2015-05-21 2016-02-10 马兰英 Method of selecting character or image and computing device

Also Published As

Publication number Publication date
CN107632760A (en) 2018-01-26
CN107632760B (en) 2019-12-17

Similar Documents

Publication Publication Date Title
CN103390358B (en) Method and device for judging normativity of character writing operation of electronic equipment
CN106469165B (en) Bullet screen display method and bullet screen display device
US10606474B2 (en) Touch screen finger tracing device
US20170192500A1 (en) Method and electronic device for controlling terminal according to eye action
US20180335925A1 (en) 3d visualization
US20190354171A1 (en) Input method and apparatus of device
CN106919333B (en) Method and device for recording writing content on electronic writing board
JP2007317159A (en) Input apparatus of electronic device and input method thereof
US20100149109A1 (en) Multi-Touch Shape Drawing
WO2019037348A1 (en) Circular selection method and device for handwritten chinese characters, touch apparatus, and readable storage medium
CN109634552A (en) Report control method and terminal device applied to dictation
TWI497402B (en) Apparatus and method for processing handwriting input
JP2014501998A (en) System and method for presenting multiple frames on a touch screen
US9696840B2 (en) Information processing method and electronic device
US9275275B2 (en) Object tracking in a video stream
US20200218424A1 (en) Touch detection method and computer-readable storage medium
KR20150091365A (en) Multi-touch symbol recognition
JP2019518259A5 (en)
CN104007920A (en) Method for selecting waveforms on electronic test equipment
US20170168771A1 (en) Song playing progress control method and electronic device
WO2017054142A1 (en) Video data acquisition method, apparatus and system, and computer readable storage medium
WO2016017101A1 (en) Information processing device, information processing method and program
WO2016112791A1 (en) Method and device for displaying interface of application program on mobile terminal
US20170192653A1 (en) Display area adjusting method and electronic device
US9733732B2 (en) Generating a virtual eraser area

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

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

Country of ref document: EP

Kind code of ref document: A1

32PN Ep: public notification in the ep bulletin as address of the adressee cannot be established

Free format text: NOTING OF LOSS OF RIGHTS PURSUANT TO RULE 112(1) EPC (EPO FORM 1205A DATED 16.10.2020)

122 Ep: pct application non-entry in european phase

Ref document number: 17922666

Country of ref document: EP

Kind code of ref document: A1