An anti-interference gesture control method
By acquiring signal differences and analyzing waveforms multiple times, the problem of low detection accuracy of gesture switches in public places was solved, enabling accurate recognition of gesture signals and effective elimination of interference, thus improving the practicality of gesture control.
Patent Information
- Application Number
- CN202310006200.7
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2023-01-03
- Publication Date
- 2026-02-06
- Estimated Expiration
- 2043-01-03
AI Technical Summary
Existing gesture switches have low detection accuracy in public places with high traffic, and cannot effectively distinguish between gesture signals and interference.
By acquiring signal differences multiple times and analyzing the changes in these differences, combined with the judgment of sinusoidal waveforms, the integrity of the gesture signal is verified, the influence of interference is eliminated, and the accuracy of the gesture signal is judged by averaging the detected values at high and low levels using photoelectric sensors.
This improves the detection accuracy of gesture control methods in public places, effectively eliminates the influence of interference, and ensures the accuracy and practicality of signal feedback.
Abstract
Description
TECHNICAL FIELD
[0001] The present application relates to the field of digital processing, in particular to a gesture control method with anti-interference. BACKGROUND
[0002] Gesture switch is a device that can control some lighting facilities, household appliances and other electronic products to perform corresponding functions by gestures without touching the switch. Compared with traditional key or touch switch, it has no risk of electric shock and can cut off the way of germ transmission, and can be widely used in home kitchen, bathroom, hospital, library, office building and other public places. However, in these places, there are often obstacles in the sensing area, which causes the switch to be unable to control.
[0003] In the application No. CN201510947347.1, entitled "a non-contact switch", it is recorded that the "judgment logic" is used to obtain the corresponding signal to control the light intensity. Specifically, the judgment logic is suitable for comparing the current received reflection signal and the previous received reflection signal intensity, and if the difference between the current received reflection signal and the previous received reflection signal intensity is greater than the first light intensity threshold, it is determined that there is an obstacle in the sensing area of the switch. The judgment logic is also suitable for determining that there is an obstacle in the sensing area of the switch, and if the intensity of the subsequently received reflection signal decreases to the second light intensity threshold, it is determined that the obstacle moves out of the sensing area of the switch. However, when there is an interference in the sensing area, the interference cannot be determined, and the corresponding accurate information cannot be obtained. SUMMARY
[0004] The purpose of the present application is to provide a gesture control method with anti-interference, which aims to improve the problem of low detection accuracy of existing gesture switch in public places with high traffic.
[0005] To achieve the above purpose, the present application adopts the following technical scheme: a gesture control method with anti-interference, comprising the following steps:
[0006] The photoelectric sensor is used to obtain multiple signal differences, and the signal difference is N, the first obtained signal difference is N1, the second obtained signal difference is N2, and so on, and the xth obtained signal difference is Nx;
[0007] In the process of continuously obtaining gesture signals:
[0008] When N < 300, it is determined that there is no gesture signal or interference in the sensing area;
[0009] When 300 ≤ N, and the detection time t < 3 seconds, it is determined that the gesture signal is directly detected in the sensing area, and the signal feedback of the gesture signal is performed;
[0010] When the detection time t is greater than 3 seconds, it is determined that an obstruction is detected in the sensing area;
[0011] After determining that a gesture signal is detected in the sensing area, a verification detection is performed;
[0012] The current signal difference value is subtracted from the previous signal difference value to obtain a difference change value, and the difference change value is denoted as ΔN;
[0013] ΔN = Nx - Nx-1;
[0014] When 200 ≤ ΔN ≤ 1778, a change in the difference change value is obtained, and a count is performed once;
[0015] If at least three changes in the difference change value are counted in fifteen consecutive difference change values, it is determined that the gesture signal obtained in the sensing area is correct, and the original action is maintained. Otherwise, it is determined that the gesture signal detected in the previous sensing area is an interference, the action performed in response to the previous signal is cancelled, and the gesture signal judgment is ended;
[0016] When at least seven signal difference values are reacquired and are all greater than 300, the above judgment steps are repeated.
[0017] Preferably, the signal difference value is the difference between a first detection value obtained at a high level and a second detection value obtained at a low level of the photoelectric sensor.
[0018] Preferably, the first detection value is an average of at least three or more values obtained at a high level of the photoelectric sensor, and the second detection value is an average of at least three or more values obtained at a low level of the photoelectric sensor.
[0019] Preferably, the farther the signal difference value is from the photoelectric sensor in the detection area, the larger the signal difference value is; otherwise, the smaller the signal difference value is.
[0020] Preferably, the waveform of the gesture signal is a sinusoidal waveform.
[0021] Preferably, a plurality of difference change values are obtained, when at least three difference change values have positive values and the same value, a falling section of a sinusoidal waveform is determined to be obtained; when at least three difference change values have negative values and the same value, a rising section of a sinusoidal waveform is determined to be obtained.
[0022] When the rising section and the falling section are obtained in sequence, a complete sinusoidal waveform is determined to be obtained, and a complete gesture signal is confirmed to be obtained.
[0023] Preferably, when the value of the difference variation changes within a certain time and during the process of judging the falling wave band, the acquired data is reset, cleared or zeroed, and the result is that the gesture signal detected in the sensing area is an interference, and the action of the last signal feedback is cancelled.
[0024] Preferably, the certain time is 1.5 seconds.
[0025] Compared with the background art, the present application has the following advantages after the above technical solution is adopted:
[0026] 1. The gesture signal in the sensing area is accurately judged by the signal difference values acquired multiple times. When the gesture signal is acquired, a verification process is further implemented to exclude the influence of the interference, and thus accurate gesture information is obtained once, and the detection accuracy is improved. Meanwhile, the anti-interference gesture control method can be applied in public scenes, and the practicability is improved. DETAILED DESCRIPTION
[0027] In order to make the purpose, technical scheme and advantages of the present application more clear, the present application is further described in detail below with examples. It should be understood that the specific examples described herein are only used to explain the present application, and are not used to limit the present application. In addition, it should be noted that:
[0028] When an element is referred to as being "fixed to" or "set to" or "provided on" another element, it can be directly on the other element or indirectly on the other element. When an element is referred to as being "connected to" another element, it can be directly connected to the other element or indirectly connected to the other element.
[0029] Unless otherwise clearly defined and limited, the terms "mounting", "connecting", "connecting" should be understood in a broad sense, for example, it can be fixedly connected, or it can be detachably connected, or it can be integrally connected; it can be mechanically connected, or it can be electrically connected; it can be directly connected, or it can be indirectly connected through an intermediate medium; it can be the internal communication of two elements or the interaction relationship between two elements. For those skilled in the art, the specific meaning of the above terms in the present application can be understood according to the specific circumstances.
[0030] EMBODIMENT
[0031] The present embodiment provides an anti-interference gesture control method, which comprises the following steps: acquiring at least seven signal difference values by using a photoelectric sensor, setting the signal difference value as N, and setting the first acquired signal difference value as N1, the second acquired signal difference value as N2, and so on, and setting the xth acquired signal difference value as Nx.
[0032] In the process of continuously acquiring gesture signals, when N < 300, it is determined that there is no gesture signal or interference in the sensing area; when 300 ≤ N and the detection time t < 3 seconds, it is determined that the gesture signal is directly detected in the sensing area, and the signal feedback of the gesture signal is performed; and when the detection time t > 3 seconds, it is determined that the shielding object is detected in the sensing area.
[0033] After it is determined that the gesture signal is detected in the sensing area, the verification detection is performed; the current signal difference value is subtracted from the last signal difference value to obtain the difference change amount, and the difference change amount is set as ΔN.
[0034] ΔN = Nx-Nx-1;
[0035] When 200 ≤ ΔN, the change of the difference change amount is obtained, and the count is performed once; if there are at least three times of change of the difference change amount in fifteen continuous difference change amounts, it is determined that the gesture signal acquired in the sensing area is correct, and the original action is maintained; otherwise, it is determined that the gesture signal detected in the last sensing area is an interference, the action of the last signal feedback is cancelled, and the gesture signal judgment is ended; when the signal difference value is greater than 300 for at least seven times, the above judgment steps are repeated.
[0036] In the embodiment, the signal difference value is the difference between the first detection value acquired at the high level and the second detection value acquired at the low level of the photoelectric sensor. The first detection value is the average of at least three or more values acquired at the high level of the photoelectric sensor; and the second detection value is the average of at least three or more values acquired at the low level of the photoelectric sensor.
[0037] Specifically, the emitter tube of the photoelectric sensor emits the high level for 4 ms, and the detection of the ADC is started. The ADC detects once every 1 ms, and the average of four detections is obtained, so as to obtain the AD value of the infrared reflection signal converted by the receiving tube when receiving the high level, i.e. the first detection value. Similarly, the emitter tube of the photoelectric sensor emits the low level for 4 ms, and the detection of the ADC is started. The ADC detects once every 1 ms, and the average of four detections is obtained, so as to obtain the AD value of the infrared reflection signal converted by the receiving tube when receiving the low level, i.e. the second detection value. The first detection value is subtracted from the second detection value, and the signal difference value is obtained.
[0038] When there is no shielding object or gesture signal in the sensing area, the infrared light emitted at the high level is not reflected, and the receiving tube does not receive the infrared signal. At this time, the signal difference value tends to be 0.
[0039] When the sensing area is blocked or a gesture signal is present, the infrared light emitted at a high level is reflected, and the receiving tube receives the infrared signal. At this time, the signal difference is determined by the distance of the block and the intensity of the infrared light in the environment. Therefore, the farther the signal difference is from the photoelectric sensor in the detection area, the greater the value of the signal difference; otherwise, the smaller. In this way, it can be analyzed whether it is a passing pedestrian to eliminate or exclude the interference or influence.
[0040] In this embodiment, the waveform of the gesture signal is a sine-like waveform. Therefore, the intensity of the infrared light in the environment can be excluded by the difference change. Specifically, when the value is kept at 200≤ΔN, it can prevent the slight change caused by environmental light interference or the shadow of a passing person; at the same time, when the value is ΔN≤W, it can prevent the interference caused by sudden changes in strong light at close range. In this way, the influence of external light and light can be effectively excluded, and the detection accuracy can be improved.
[0041] In this embodiment, a plurality of difference change values are obtained. When the values of at least three difference change values are positive and the values are the same, a falling section of a sine-like waveform is obtained; when the values of at least three difference change values are negative and the values are the same, a rising section of a sine-like waveform is obtained; when the rising section and the falling section are obtained in turn, a complete sine-like waveform is obtained, and a complete gesture signal is confirmed.
[0042] In this embodiment, within a certain time, i.e. within 1.5 seconds, and in the process of judging the falling section, when the value of the difference change value changes, the obtained data is reset, cleared or zeroed, and the result is that the gesture signal detected in the sensing area is an interference, and the last signal feedback action is cancelled. In this way, the interference of light fading in the environment light can be processed, and the detection accuracy can be improved.
[0043] The above is only a preferred specific embodiment of the present application, but the protection scope of the present application is not limited thereto. Any changes or replacements within the technical scope disclosed by the present application can be easily thought of by those skilled in the art, and should be covered within the protection scope of the present application. Therefore, the protection scope of the present application should be subject to the protection scope of the claims.
Claims
1. An interference-resistant gesture control method, characterized in that, Includes the following steps: The signal difference is obtained multiple times using a photoelectric sensor, and the signal difference is set to N. The signal difference obtained for the first time is N1, the signal difference obtained for the second time is N2, and so on, with the signal difference obtained for the xth time being Nx. During the continuous acquisition of gesture signals: when N < 300, it is determined that there are no gesture signals or interference in the sensing area; When 300≤N and the detection time t<3 seconds, it is determined that a gesture signal is directly detected in the sensing area, and the gesture signal is fed back. When the detection time t > 3 seconds, it is determined that an obstruction has been detected in the sensing area; Once a gesture signal is detected within the sensing area, a verification test will be performed. The change in signal difference is obtained by subtracting the previous signal difference from the current signal difference, and the change in signal difference is denoted as ΔN. ΔN = Nx - Nx - 1; When 200≤ΔN≤1778, a change in the difference is obtained and a count is performed. If, in a series of consecutive differences, the difference changes at least three times, then the gesture signal acquired within the sensing area is considered correct, and the original action remains unchanged. Otherwise, if the gesture signal detected in the sensing area last time is determined to be an interference, the action of the previous signal feedback is canceled and the judgment of the current gesture signal ends; If the difference between the signals acquired multiple times is greater than 300, repeat the above judgment steps. The signal difference is the difference between the first detection value acquired by the photoelectric sensor at a high level and the second detection value acquired at a low level.
2. The anti-interference gesture control method according to claim 1, characterized in that: The first detection value is the average of at least three values acquired by the photoelectric sensor at a high level; the second detection value is the average of at least three values acquired by the photoelectric sensor at a low level.
3. The anti-interference gesture control method according to claim 1, characterized in that: The further away the signal difference is from the photoelectric sensor within the detection area, the larger the signal difference value; conversely, the closer it is to the sensor, the smaller the signal difference value.
4. The anti-interference gesture control method according to claim 1, characterized in that: The waveform of the gesture signal is a sine-like waveform.
5. The anti-interference gesture control method according to claim 4, characterized in that: Multiple difference changes are obtained. When at least three of the difference changes are positive and the values are the same, it is determined that a falling band of a sinusoidal waveform is obtained. When at least three of the difference changes are negative and the values are the same, it is determined that a rising band of a sinusoidal waveform is obtained. When the rising band and the falling band are obtained in sequence, it is determined that a complete sinusoidal waveform is obtained, and a complete gesture signal is confirmed to be obtained.
6. The anti-interference gesture control method according to claim 5, characterized in that: If, within a certain time period and during the process of determining the falling wave band, the value of the difference change changes, the acquired data is reset, cleared, or set to zero. If the result is determined to be that the gesture signal detected in the sensing area is an interference, the action of the previous signal feedback is canceled.
7. The anti-interference gesture control method according to claim 6, characterized in that: The specified time is 1.5 seconds.
Citation Information
Patent Citations
Non-contact type switch
CN105376915A
Method for detecting gestures using a multi-segment photodiode and one or fewer illumination sources
CN102981608A
Gesture recognition control method and control device and air-conditioner
CN106839290A