A non-contact gesture control method capable of continuous sliding operation
By collecting and judging the validity of gesture information, and combining the round-trip gesture information to determine whether to reset the screen sliding direction, the problem of accidental touches in non-contact sliding selection is solved, continuous sliding control is achieved, and the user experience is improved.
Patent Information
- Application Number
- CN202111171464.5
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2021-10-08
- Publication Date
- 2024-10-29
- Estimated Expiration
- 2041-10-08
AI Technical Summary
In the existing non-contact sliding selection operation, the problem of accidentally touching the left and right selections is prone to occur. The user needs to leave the detection area with his hand and make another swipe. The operation is not smooth and affects the user experience.
By collecting and judging the starting point and ending point of the gesture information, the validity is calculated. If the length reaches 3/4, it is judged as a valid gesture. Combined with the round-trip gesture information, it is judged whether to reset the screen sliding direction to achieve continuous sliding control and reduce accidental touches. .
It reduces the rate of false touches and improves the accuracy of gesture control and user experience. Users can slide the screen in multiple directions through continuous sliding, making the operation smoother.
Smart Images

Figure CN114115522B_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the field of control technology, and in particular to a non-contact gesture control method capable of continuous sliding operation. Background Art
[0002] Among the current gesture selection operations, there is a contactless operation, that is, people do not need to touch the screen with their hands, but only need to slide on the top of the screen to select relevant information. This is a technology that is increasingly accepted by the public, especially in the context of the new crown, when people are reluctant to touch public screens. However, there is a problem with sliding selection, which is how to solve the problem of accidental touches of left and right selections. For example, in a certain scene, when your hand slides from the right to the left, the screen slides to the left, and you want to swipe from right to left again. Your hand naturally returns from the left to the right. At this time, the detection device thinks that you are sliding from left to right and then sliding to the right, and an accidental touch occurs. The existing technology is to leave the detection area after the first right-to-left is completed, and then swipe from right to left again. The operation is very unsmooth, affecting the user experience. Summary of the invention
[0003] The purpose of the present invention is to provide a non-contact gesture control method capable of continuous sliding operation to solve the problems raised in the above background technology. To achieve the above purpose, the first aspect of the present invention provides the following technical solution: a non-contact gesture control method capable of continuous sliding operation, comprising the following steps:
[0004] S101, collecting first gesture information, and recording the starting point and ending point information of the first gesture information;
[0005] S102, judging the validity of the first gesture information, if it is judged to be valid, proceeding to step S103, otherwise returning to step S101;
[0006] S103: Using the moving direction of the first gesture information as the sliding direction of the screen;
[0007] S104, collecting round-trip gesture information;
[0008] S105, judging the validity of the round-trip gesture information and whether to reset the screen sliding direction, and if the round-trip gesture information is judged to be valid and does not reset the screen sliding direction, the process proceeds to step S106;
[0009] S106, performing screen sliding control according to the round-trip gesture information;
[0010] The round-trip gesture information includes second gesture information and third gesture information. The gesture moving direction of the second gesture information is opposite to the gesture moving direction of the first gesture information. The gesture moving direction of the third gesture information is the same as the gesture moving direction of the first gesture information.
[0011] A further improvement is that the validity judgment specifically includes: collecting the starting point information and the ending point information of the gesture information, calculating the length distance L of the starting point information and the ending point information, if the length distance L is not less than 3 / 4 of the length of the detection area, then the gesture information is determined to be valid, otherwise the gesture information is determined to be invalid.
[0012] A further improvement is that the display screen can slide under the control of the first gesture information.
[0013] A further improvement is that the step S105 specifically includes:
[0014] S201, collecting second gesture information, and recording starting point information and ending point information of the second gesture information;
[0015] S202, judging the validity of the second gesture information. If the distance between the starting point and the end point of the second gesture information is greater than 3 / 4 of the length of the detection area, it is judged to be valid and the process goes to step S204. Otherwise, the process returns to step S203.
[0016] S203, determining whether to reset the screen sliding direction for the second gesture information, if the dwell time t1 of the starting point of the second gesture information is greater than T1max+Y, it is determined that the screen sliding direction is reset, and the process returns to step S101; otherwise, the process returns to step S201;
[0017] S204, determining whether to reset the screen sliding direction for the second gesture information. If the time t1 consumed from the starting point to the end point of the second gesture information is greater than T1max+Y, it is determined that the screen sliding direction is reset, and the process returns to step S101; otherwise, the process proceeds to step S205;
[0018] S205, collecting third gesture information, and recording the starting point and ending point information of the third gesture information;
[0019] S206, judging the validity of the third gesture information. If the distance between the starting point and the end point of the third gesture information is greater than 3 / 4 of the length of the detection area, it is judged to be valid and the process goes to step S208. Otherwise, the process returns to step S207.
[0020] S207, determining whether to reset the screen sliding direction for the third gesture information, if the dwell time t2 of the starting point of the third gesture information is greater than T2max+Y, it is determined that the screen sliding direction is reset, and the process returns to step S101; otherwise, the process returns to step S205;
[0021] S208, determining whether to reset the screen sliding direction for the third gesture information, if the time t2 consumed from the starting point to the end point of the third gesture information is greater than T2max+Y, it is determined that the screen sliding direction is reset, and the process returns to step S101, otherwise, the process proceeds to step S209;
[0022] S209: Perform screen sliding control according to the third gesture information.
[0023] A further improvement is that t1 is the dwell time of the starting point of the second gesture information or the time taken from the starting point to the ending point of the second gesture information, T1max is the maximum value of all the t1 values, and Y is a preset waiting threshold;
[0024] The t2 is the dwell time of the starting point of the third gesture information or the time taken from the starting point to the ending point of the third gesture information, the T2max is the maximum value of all the t2 values, and the Y is a preset waiting threshold.
[0025] A further improvement is that the step S105 specifically includes:
[0026] S301, collecting round-trip gesture information, and recording the starting point information and the ending point information of the second gesture information, and the starting point information and the ending point information of the third gesture information;
[0027] S302, respectively judging the validity of the second gesture information and the third gesture information. If the distance between the starting point and the ending point of the second gesture information and the third gesture information is greater than 3 / 4 of the length of the detection area, it is judged to be valid and the process goes to step S303. Otherwise, the process returns to step S301.
[0028] S303, determining whether to reset the screen sliding direction for the round-trip gesture information, if the time t consumed from the starting point of the second gesture information to the ending point of the third gesture information is greater than kTmax, it is determined that the screen sliding direction is reset, and the process returns to step S101, otherwise, the process proceeds to step 304;
[0029] S304: Perform screen sliding control according to the third gesture information.
[0030] A further improvement is that t is the time taken from the starting point of the first gesture information to the ending point of the third gesture information, Tmax is the maximum value of all the t values, and k is a preset waiting coefficient.
[0031] The second aspect of the present invention provides another technical solution: a non-contact gesture control method capable of continuous sliding operation, comprising the following steps:
[0032] S101, collecting gesture information in the detection area and judging its validity. If the gesture information shows that the palm and the screen are in a horizontal and parallel state, it is judged to be valid and the next step is entered; if the gesture information shows that the palm and the screen are in a vertical state or other angle state, it is judged to be invalid and the gesture information is collected again;
[0033] S102: Slide the screen using the valid gesture movement direction in the gesture information as the sliding direction of the screen.
[0034] The third aspect of the present invention provides another technical solution: a non-contact gesture control method capable of continuous sliding operation, comprising the following steps:
[0035] S101, collecting gesture information in the detection area and judging the validity. If the gesture information shows that the palm is in an extended state, it is judged to be valid and the next step is entered; if the gesture information shows that the palm is in a curled state or other state, it is judged to be invalid and the gesture information is collected again;
[0036] S102: Slide the screen using the valid gesture movement direction in the gesture information as the sliding direction of the screen.
[0037] Compared with the prior art, the present invention has the following beneficial effects:
[0038] The present invention solves the problems that most screens in the prior art use non-contact operations, such as unchanged operations, complex gesture control, and easy accidental touches. Specific gesture instructions are used to reduce accidental touches, and continuous sliding of the screen can be achieved by sliding the hand left and right, providing a good user experience. BRIEF DESCRIPTION OF THE DRAWINGS
[0039] Figure 1 It is a schematic diagram of the overall process of one embodiment of the present invention;
[0040] Figure 2 It is a schematic diagram of the overall process of determining whether to reset an implementation mode of the present invention;
[0041] Figure 3 It is a schematic diagram of the overall flow of another implementation method of the present invention for determining whether to reset;
[0042] Figure 4 This is a schematic diagram of gesture information according to an embodiment of the present invention. DETAILED DESCRIPTION
[0043] The following will be combined with the drawings in the embodiments of the present invention to clearly and completely describe the technical solutions in the embodiments of the present invention. Obviously, the described embodiments are only part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present invention.
[0044] Embodiment 1:
[0045] Reference Figure 1 , a non-contact gesture control method capable of continuous sliding operation, comprising the following steps:
[0046] S101, collecting first gesture information, and recording the starting point and ending point information of the first gesture information;
[0047] S102, judging the validity of the first gesture information, if it is judged to be valid, proceeding to step S103, otherwise returning to step S101;
[0048] S103: Using the moving direction of the first gesture information as the sliding direction of the screen;
[0049] S104, collecting round-trip gesture information;
[0050] S105, judging the validity of the round-trip gesture information and whether to reset the screen sliding direction, and if the round-trip gesture information is judged to be valid and does not reset the screen sliding direction, the process proceeds to step S106;
[0051] S106, performing screen sliding control according to the round-trip gesture information;
[0052] The round-trip gesture information includes second gesture information and third gesture information. The gesture moving direction of the second gesture information is opposite to the gesture moving direction of the first gesture information. The gesture moving direction of the third gesture information is the same as the gesture moving direction of the first gesture information.
[0053] As a preferred embodiment of the present invention, the validity judgment specifically includes: collecting the starting point information and the ending point information of the gesture information, calculating the length distance L between the starting point information and the ending point information, if the length distance L is not less than 3 / 4 of the length of the detection area, then the gesture information is determined to be valid, otherwise the gesture information is determined to be invalid.
[0054] As a preferred embodiment of the present invention, the display screen can slide under the control of the first gesture information.
[0055] Reference Figure 4It can be understood that in the embodiment of the present invention, the first gesture information is used to determine the screen sliding direction, the second gesture information realizes continuous control without the user's hand leaving the detection area, and the third gesture information formally controls the screen sliding. In some embodiments, the first gesture information can also control the screen sliding. Therefore, the gesture movement direction of the first gesture information and the third gesture information should be the same, and the second gesture information as a buffer gesture is bound to be opposite to the gesture movement direction of the first and third gesture information. The validity judgment of gesture information is used to eliminate false touches caused by small gestures of the user, improve the accuracy and intelligence level of gesture control, and the judgment of whether to reset the screen sliding direction is used to reset the first gesture information to achieve flexible control of multi-directional sliding of the screen.
[0056] More specifically, the implementation of the gesture control method of the present invention depends on the corresponding gesture control system, which includes a gesture acquisition module, a processor and a storage medium. The gesture acquisition module includes a camera, which is used to collect all gesture information within a fixed area (i.e., the detection area) and pass the gesture information to the processor in sequence for processing. The processor is used to issue various instructions, and the storage medium is used to store multiple instructions, including validity judgment instructions, instructions on whether to reset the screen sliding direction, determining the screen sliding direction and controlling the screen sliding, etc. At the same time, the present invention can take the form of a computer program product implemented on one or more computer-usable storage media (including but not limited to disk storage, CD-ROM, optical storage, etc.) containing computer-usable program codes.
[0057] Reference Figure 2 As a preferred embodiment of the present invention, step S105 specifically includes:
[0058] S201, collecting second gesture information, and recording starting point information and ending point information of the second gesture information;
[0059] S202, judging the validity of the second gesture information. If the distance between the starting point and the end point of the second gesture information is greater than 3 / 4 of the length of the detection area, it is judged to be valid and the process goes to step S204. Otherwise, the process returns to step S203.
[0060] S203, determining whether to reset the screen sliding direction for the second gesture information, if the dwell time t1 of the starting point of the second gesture information is greater than T1max+Y, it is determined that the screen sliding direction is reset, and the process returns to step S101; otherwise, the process returns to step S201;
[0061] S204, determining whether to reset the screen sliding direction for the second gesture information. If the time t1 consumed from the starting point to the end point of the second gesture information is greater than T1max+Y, it is determined that the screen sliding direction is reset, and the process returns to step S101; otherwise, the process proceeds to step S205;
[0062] S205, collecting third gesture information, and recording the starting point and ending point information of the third gesture information;
[0063] S206, judging the validity of the third gesture information. If the distance between the starting point and the end point of the third gesture information is greater than 3 / 4 of the length of the detection area, it is judged to be valid and the process goes to step S208. Otherwise, the process returns to step S207.
[0064] S207, determining whether to reset the screen sliding direction for the third gesture information, if the dwell time t2 of the starting point of the third gesture information is greater than T2max+Y, it is determined that the screen sliding direction is reset, and the process returns to step S101; otherwise, the process returns to step S205;
[0065] S208, determining whether to reset the screen sliding direction for the third gesture information, if the time t2 consumed from the starting point to the end point of the third gesture information is greater than T2max+Y, it is determined that the screen sliding direction is reset, and the process returns to step S101, otherwise, the process proceeds to step S209;
[0066] S209: Perform screen sliding control according to the third gesture information.
[0067] Specifically, t1 is the dwell time of the starting point of the second gesture information or the time taken from the starting point to the ending point of the second gesture information, T1max is the maximum value of all the t1 values, and Y is a preset waiting threshold;
[0068] The t2 is the dwell time of the starting point of the third gesture information or the time taken from the starting point to the ending point of the third gesture information, the T2max is the maximum value of all the t2 values, and the Y is a preset waiting threshold.
[0069] Reference Figure 2 and Figure 4It can be understood that in the embodiment of the present invention, a waiting threshold value Y is preset, and then the maximum value of the dwell time of the starting point (i.e., point A, point A1, point A2...point An) of the second gesture information in all valid round-trip gesture information or the time t consumed from the starting point (i.e., point A, point A1, point A2...point An) to the ending point (i.e., point B, point B1, point B2...point Bn) of the second gesture information is taken as the T1max value, so the T1max value is a variable value, the Y value is a fixed value, and it is set that if the t value is greater than T1max+Y, the screen sliding direction is automatically reset, and the process returns to step S101 to re-collect the first gesture information. The setting of the third gesture information is similar, and it will not be elaborated here. By setting thresholds such as T1max+Y and T2max+Y, it is possible to flexibly and intelligently determine whether to reset the screen sliding direction according to the usage of the on-site users, so that the user experience is good and the gesture control is more intelligent. At the same time, it is worth noting that the round-trip gesture information in the embodiment of the present invention does not need to be fully valid in order to determine whether to reset the screen sliding direction. If the second gesture information / third gesture information collection is invalid, a reset judgment must also be made to avoid the system still being unable to automatically reset the screen sliding direction after the operation times out.
[0070] Reference Figure 3 As a preferred embodiment of the present invention, step S105 specifically includes:
[0071] S301, collecting round-trip gesture information, and recording the starting point information and the ending point information of the second gesture information, and the starting point information and the ending point information of the third gesture information;
[0072] S302, respectively judging the validity of the second gesture information and the third gesture information. If the distance between the starting point and the ending point of the second gesture information and the third gesture information is greater than 3 / 4 of the length of the detection area, it is judged to be valid and the process goes to step S303. Otherwise, the process returns to step S301.
[0073] S303, determining whether to reset the screen sliding direction for the round-trip gesture information, if the time t consumed from the starting point of the second gesture information to the ending point of the third gesture information is greater than kTmax, it is determined that the screen sliding direction is reset, and the process returns to step S101, otherwise, the process proceeds to step 304;
[0074] S304: Perform screen sliding control according to the third gesture information.
[0075] Specifically, t is the time taken from the starting point of the first gesture information to the ending point of the third gesture information, Tmax is the maximum value of all the t values, and k is a preset waiting coefficient.
[0076] Reference Figure 3 and Figure 4It can be understood that in the embodiment of the present invention, the waiting coefficient k is preset, and then the maximum value of the time t spent from the starting point of the second gesture information (i.e. point A, point A1, point A2...point An) to the end point of the third gesture information (i.e. point D, point D1, point D2...point Dn) in the previous valid round-trip gesture information is taken as the Tmax value, so the T1max value is a variable value, and k is a fixed value, and it is set that if the t value is greater than kTmax, the screen sliding direction is automatically reset, and the step S101 is returned to re-collect the first gesture information. By setting a threshold such as kTmax, it can be flexibly determined whether to reset the screen sliding direction according to the use of the on-site user, and the user experience is good, and the gesture control is more intelligent. At the same time, it is worth noting that the round-trip gesture information in the embodiment of the present invention must be all valid before the judgment of whether to reset the screen sliding direction can be made.
[0077] Embodiment 2:
[0078] A non-contact gesture control method capable of continuous sliding operation comprises the following steps:
[0079] S101, collecting gesture information in the detection area and judging its validity. If the gesture information shows that the palm and the screen are in a horizontal and parallel state, it is judged to be valid and the next step is entered; if the gesture information shows that the palm and the screen are in a vertical state or other angle state, it is judged to be invalid and the gesture information is collected again;
[0080] S102: Slide the screen using the valid gesture movement direction in the gesture information as the sliding direction of the screen.
[0081] The implementation of the gesture control method of the present invention depends on the corresponding gesture control system, which includes a gesture collection module, a processor and a storage medium. The gesture collection module includes a camera and an infrared sensor. The camera and the infrared sensor are used to collect all gesture information within a fixed area (i.e., the detection area) and transmit the gesture information to the processor in sequence for processing. The processor is used to issue various instructions, and the storage medium is used to store multiple instructions, including validity judgment instructions, instructions on whether to reset the screen sliding direction, determining the screen sliding direction and controlling the screen sliding, etc. At the same time, the present invention can take the form of a computer program product implemented on one or more computer-usable storage media (including but not limited to disk storage, CD-ROM, optical storage, etc.) containing computer-usable program codes.
[0082] Embodiment 3:
[0083] A non-contact gesture control method capable of continuous sliding operation comprises the following steps:
[0084] S101, collecting gesture information in the detection area and judging the validity. If the gesture information shows that the palm is in an extended state, it is judged to be valid and the next step is entered; if the gesture information shows that the palm is in a curled state or other state, it is judged to be invalid and the gesture information is collected again;
[0085] S102: Slide the screen using the valid gesture movement direction in the gesture information as the sliding direction of the screen.
[0086] The implementation of the gesture control method of the present invention depends on the corresponding gesture control system, which includes a gesture collection module, a processor and a storage medium. The gesture collection module includes a camera, which is used to collect all gesture information within a fixed area (i.e., the detection area) and transmit the gesture information to the processor in sequence for processing. The processor is used to issue various instructions, and the storage medium is used to store multiple instructions, including validity judgment instructions, instructions on whether to reset the screen sliding direction, determining the screen sliding direction and controlling the screen sliding, etc. At the same time, the present invention can take the form of a computer program product implemented on one or more computer-usable storage media (including but not limited to disk storage, CD-ROM, optical storage, etc.) containing computer-usable program codes.
Claims
1. A non-contact gesture control method capable of continuous sliding operation, characterized in that: The following steps are involved: S101, collecting first gesture information, and recording the starting point and ending point information of the first gesture information; S102, judging the validity of the first gesture information, if it is judged to be valid, proceeding to step S103, otherwise returning to step S101; S103: Using the moving direction of the first gesture information as the sliding direction of the screen; S104, collecting round-trip gesture information; S105, judging the validity of the round-trip gesture information and whether to reset the screen sliding direction, and if the round-trip gesture information is judged to be valid and does not reset the screen sliding direction, the process proceeds to step S106; S106, performing screen sliding control according to the round-trip gesture information; The round-trip gesture information includes second gesture information and third gesture information, the gesture moving direction of the second gesture information is opposite to the gesture moving direction of the first gesture information, and the gesture moving direction of the third gesture information is the same as the gesture moving direction of the first gesture information; The validity judgment specifically includes: collecting the starting point information and the ending point information of the gesture information, calculating the length distance L between the starting point information and the ending point information, and if the length distance L is not less than 3 / 4 of the length of the detection area, then the gesture information is determined to be valid, otherwise the gesture information is determined to be invalid; The step S105 specifically includes: S201, collecting second gesture information, and recording starting point information and ending point information of the second gesture information; S202, judging the validity of the second gesture information. If the distance between the starting point and the end point of the second gesture information is greater than 3 / 4 of the length of the detection area, it is judged to be valid and the process goes to step S204. Otherwise, the process returns to step S203. S203, determining whether to reset the screen sliding direction for the second gesture information, if the dwell time t1 of the starting point of the second gesture information is greater than T1max+Y, it is determined that the screen sliding direction is reset, and the process returns to step S101; otherwise, the process returns to step S201; the T1max is the maximum value of the t1 values in all the previous times; S204, determining whether to reset the screen sliding direction for the second gesture information, if the time t1 consumed from the starting point to the end point of the second gesture information is greater than T1max+Y, it is determined that the screen sliding direction is reset, and the process returns to step S101, otherwise, the process proceeds to step S205; Y is a preset waiting threshold; S205, collecting third gesture information, and recording the starting point and ending point information of the third gesture information; S206, judging the validity of the third gesture information. If the distance between the starting point and the end point of the third gesture information is greater than 3 / 4 of the length of the detection area, it is judged to be valid and the process goes to step S208. Otherwise, the process returns to step S207. S207, determining whether to reset the screen sliding direction for the third gesture information, if the dwell time t2 of the starting point of the third gesture information is greater than T2max+Y, it is determined that the screen sliding direction is reset, and the process returns to step S101; otherwise, the process returns to step S205; T2max is the maximum value of all the t2 values, and Y is a preset waiting threshold; S208, determining whether to reset the screen sliding direction for the third gesture information, if the time t2 consumed from the starting point to the end point of the third gesture information is greater than T2max+Y, it is determined that the screen sliding direction is reset, and the process returns to step S101, otherwise, the process proceeds to step S209; S209, performing screen sliding control according to the third gesture information; Alternatively, the step S105 specifically includes: S301, collecting round-trip gesture information, and recording the starting point information and the ending point information of the second gesture information, and the starting point information and the ending point information of the third gesture information; S302, respectively judging the validity of the second gesture information and the third gesture information. If the distance between the starting point and the ending point of the second gesture information and the third gesture information is greater than 3 / 4 of the length of the detection area, it is judged to be valid and the process goes to step S303. Otherwise, the process returns to step S301. S303, determining whether to reset the sliding screen direction for the round-trip gesture information, if the time t consumed from the starting point of the second gesture information to the ending point of the third gesture information is greater than kTmax, it is determined that the screen sliding direction is reset, and the process returns to step S101, otherwise, the process proceeds to step 304; Tmax is the maximum value of the t values, and k is a preset waiting coefficient; S304: Perform screen sliding control according to the third gesture information.
2. A non-contact gesture control method capable of continuous sliding operation according to claim 1, characterized in that: The display screen slides under the control of the first gesture information.
Citation Information
Patent Citations
System and method for controlling non-contact touch screen
CN105045503A
