Method for judging false hand-sleeve touch in handwriting of large-screen electronic whiteboard based on touch
Technical Field
The invention relates to the fields of image processing, handwriting recognition, electronic whiteboards, education electronic informatization and the like, in particular to a judgment method for hand sleeve false touch in handwriting based on a large-screen electronic whiteboard.
Background
Most of the current handwriting touch large screens are 10-point touch, if a teacher needs to write a large number of board writings on an electronic whiteboard in a teaching scene, the wrong touch of a hand sleeve is particularly easy to trigger, because most of the current touch large screens are based on an infrared sensing system, any object can be identified as a newly added touch point to generate strokes as long as entering a sensing area, and the wrong touch can interfere with the normal writing of a user;
most electronic whiteboards with large touch screens in the market do not process the false touch of the hand sleeve, many manufacturers support multi-point writing so as to directly cause the false touch of the hand sleeve to write and draw handwriting, the user experience is very poor, electronic whiteboards of some manufacturers only support single-point writing and only do zooming movement in a non-writing mode, the problem that the false touch of the hand sleeve is avoided by sacrificing the user experience is also solved, and therefore a judgment method based on the false touch of the hand sleeve in the handwriting of the large touch screen electronic whiteboards is provided.
Disclosure of Invention
The invention mainly aims to provide a method for judging the false touch of a hand sleeve in a handwriting based on a large-screen electronic whiteboard, which can effectively solve the problems in the background technology.
In order to achieve the purpose, the invention adopts the technical scheme that:
a judgment method for hand sleeve false touch in handwriting of a large-screen electronic whiteboard based on touch comprises the following specific steps:
(1) through analyzing a large amount of real handwriting data, the judgment model is obtained through the false touch data of the hand sleeve: the system obtains characteristic data of a user under a large handwriting touch screen in a real handwriting scene through a large number of experiments in advance, obtains a universal model through analysis, particularly analyzes data characteristics of false hand touch of the hand sleeve, and uses the characteristic values in judgment of the false hand touch of the hand sleeve;
(2) a user writes strokes in a touch screen to input touch point information;
(3) entering a delay gesture judgment module to judge the gesture type, including zooming, moving, hand sleeve and single-finger writing;
(4) and if the judgment is successful, sending the judgment result to an execution module for corresponding operation.
Preferably, the hand sleeve false touch data obtained from a large number of experimental receipts in the step (1) is determined as follows:
(1) the area of the hand sleeve is greatly different from the area of the finger for writing, and the area of the hand sleeve is 3-4 times of the area of the finger for writing;
(2) the fingers fall down firstly, and the sleeves fall down subsequently, so that a certain time difference is achieved;
(3) the total touch point is more than 2 when the hand sleeve is touched by mistake.
Preferably, the touch screen in the step (2) is formed by installing an outer frame in front of the display, the outer frame is provided with a circuit board, and the transmitting infrared tubes and the receiving infrared tubes are arranged on four sides of the touch screen and form the infrared matrixes which are crossed horizontally and vertically in a one-to-one correspondence manner.
When a touch occurs, a finger or other objects can block the horizontal infrared rays and the vertical infrared rays passing through the position, when the touch screen is scanned, after one infrared ray is found and certain to be blocked, the red light is on to indicate that the infrared ray is blocked and possibly touched, the touch screen is switched to another coordinate to scan at once, if another axis is found to have one infrared ray blocked again, the yellow light is on to indicate that the touch is found, the positions of the two infrared pair tubes which are found to be blocked are reported to a host, and the position and the touch area of a touch point on the screen are judged through calculation.
The working principle of the infrared touch large screen is that the infrared touch screen is an infrared matrix which is densely distributed in the direction of X, Y and is close to the front of the screen, and whether infrared rays are blocked by an object or not is continuously scanned, so that the touch of a user is detected and positioned.
Preferably, the delayed gesture determination module in step (3) is configured to collect information of all touch points in the current electronic whiteboard within a delay time, perform determination continuously, and finally obtain a determination conclusion.
Preferably, the delayed gesture determination module in step (3) includes a plurality of empirical parameters, and the parameter values are obtained by analyzing a large amount of real writing data, so that the method is universal and representative.
Preferably, in the step (3), delay determination of accumulated data is required when writing is performed by one finger, and the distance moved and the time moved in the delay determination time reach determination thresholds.
Preferably, the moving directions of the two touch points during zooming in step (3) are not consistent, and the hand sleeve and the real touch drawing point have the same direction and speed dynamically.
Preferably, the areas of the two touch points are equivalent when moving in the step (3), the difference is small, and the hand sleeve and the real touch writing point have the same direction and speed dynamically, but the areas of the touch points are different.
Compared with the prior art, the invention has the following beneficial effects:
1. the multi-finger zooming and moving are supported in the writing state of the touch screen, the mode does not need to be switched, the moving directions of two touch points are inconsistent during zooming, the dynamic viewing hand sleeve and the real touch writing point have the same direction and speed, the areas of the two touch points are equivalent during moving, the difference is small, and the dynamic viewing hand sleeve and the real touch writing point have the same direction and speed but the areas of the touch points are different;
2. the method has the advantages that the false hand-sleeve touch is recognized in the writing process of the touch screen, if the touch area of the current input touch point is larger than the area of the hand sleeve, the false hand-sleeve touch is directly judged and positioned, the phenomenon that false touch handwriting is generated and normal handwriting is interfered is avoided, and the current writing speed is not influenced in the false hand-sleeve touch judging process.
Drawings
FIG. 1 is a flow chart of a method for judging false hand touch of a hand sleeve in a handwriting based on a large-screen electronic whiteboard;
fig. 2 is a schematic structural diagram of a touch screen based on the false hand contact of a hand sleeve in the handwriting of the large-screen electronic whiteboard.
Detailed Description
In order to make the technical means, the creation characteristics, the achievement purposes and the effects of the invention easy to understand, the invention is further described with the specific embodiments.
Example 1
(1) Through analyzing a large amount of real handwriting data, the judgment model is obtained through the false touch data of the hand sleeve: the system obtains characteristic data of a user under a large handwriting touch screen in a real handwriting scene through a large number of experiments in advance, obtains a universal model through analysis, particularly analyzes data characteristics of false hand touch of the hand sleeve, and uses the characteristic values in judgment of the false hand touch of the hand sleeve; the hand sleeve false touch data obtained from a large number of experimental receipts are determined as follows:
the area of the hand sleeve is greatly different from the area of the finger for writing, and the area of the hand sleeve is 3-4 times of the area of the finger for writing;
the fingers fall down firstly, and the sleeves fall down subsequently, so that a certain time difference is achieved;
the total touch point is more than 2 when the hand sleeve is touched by mistake.
(2) A user writes strokes in the touch screen to input touch point information, the touch screen is provided with an outer frame in front of a display, a circuit board is designed in the outer frame, and transmitting infrared tubes and receiving infrared tubes are arranged on four sides of the touch screen and form an infrared matrix which is crossed horizontally and vertically in a one-to-one correspondence mode.
When a touch occurs, a finger or other objects can block the horizontal infrared rays and the vertical infrared rays passing through the position, when the touch screen is scanned, after one infrared ray is found and certain to be blocked, the red light is on to indicate that the infrared ray is blocked and possibly touched, the touch screen is switched to another coordinate to scan at once, if another axis is found to have one infrared ray blocked again, the yellow light is on to indicate that the touch is found, the positions of the two infrared pair tubes which are found to be blocked are reported to a host, and the position and the touch area of a touch point on the screen are judged through calculation.
The working principle of the infrared touch large screen is that the infrared touch screen is an infrared matrix which is densely distributed in the direction of X, Y and is close to the front of the screen, and whether infrared rays are blocked by an object or not is continuously scanned, so that the touch of a user is positioned;
(3) entering a delay gesture judgment module, judging gesture types including zooming, moving, hand sleeve and single-finger writing, wherein the delay gesture judgment module is used for collecting all touch point information in the current electronic whiteboard within a delay time, continuously judging and finally obtaining a judgment conclusion, and the delay gesture judgment module comprises a plurality of experience parameters which are obtained by analyzing a large amount of real writing data and have universality and representativeness;
delay judgment of accumulated data is needed during single-finger writing, and the moving distance and the moving time in the delay judgment time reach judgment threshold values;
the motion directions of the two touch points are inconsistent during zooming, and the hand sleeve and the real touch writing and drawing point have the same direction and speed in a dynamic way;
the areas of the two touch points are equivalent when the hand sleeve moves, the difference is small, the hand sleeve and the real touch writing and drawing point have the same direction and speed when the hand sleeve and the real touch writing and drawing point are dynamically seen, but the areas of the touch points are different;
(4) and if the judgment is successful, sending the judgment result to an execution module for corresponding operation.
Example 2
If the touch area of the current input touch point is larger than the area of the hand sleeve, the error touch of the hand sleeve is directly judged and positioned;
example 3
If the number of current touch points is 1, namely when only one finger writes, delay judgment of accumulated data is needed, and if the moving distance and the moving time reach judgment threshold values within delay judgment time, single-finger writing is judged;
example 4
If the current touch points have the same direction and speed but the areas of the touch points are different, the areas of the two touch points are equivalent, and the difference is small, the current touch points are judged to move;
example 5
If the number of current touch points is 2, finding out the point with the storage point area smaller than the hand sleeve judgment threshold value as the touch point, and if the area of the two points is larger than the threshold value, continuing to collect data and delaying the judgment; repeating the above steps until the determination is successful, and then releasing the data points accumulated during the delay determination; because the frequency of data point collection by the operating system is about 15ms, the UI refresh mechanism needs to be temporarily turned off during the release of the data points accumulated during the deferred determination, so as to prevent excessive refresh from causing cpu upswing and resulting in drawing calton.
The foregoing shows and describes the general principles and broad features of the present invention and advantages thereof. It will be understood by those skilled in the art that the present invention is not limited to the embodiments described above, which are described in the specification and illustrated only to illustrate the principle of the present invention, but that various changes and modifications may be made therein without departing from the spirit and scope of the present invention, which fall within the scope of the invention as claimed. The scope of the invention is defined by the appended claims and equivalents thereof.