Gesture recognition device and method for range hood, medium and electronic equipment
By using two optoelectronic modules and a processing module in the range hood to analyze the optical pulse signals and return signals, the problem of excessive discreteness in the effective detection distance of the gesture recognition device was solved, achieving more efficient and accurate gesture recognition.
Patent Information
- Application Number
- CN202510086393.0
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2025-01-20
- Publication Date
- 2025-06-13
AI Technical Summary
The existing gesture recognition device of the range hood has a problem that the effective detection distance is too discrete, which affects the effectiveness of the detection.
Two optoelectronic modules and a processing module are used. The optoelectronic module periodically transmits and receives light pulse signals and performs gesture recognition by generating a signal time curve. The processing module determines the gesture signal based on the light pulse signal and the return signal, and improves recognition accuracy through preprocessing and trend analysis.
The calculation time of distance and speed values is reduced, the data processing efficiency and the response time of the range hood are improved, and the accuracy and sensitivity of gesture recognition are enhanced.
Smart Images

Figure CN120143965A_ABST
Abstract
Description
Technical Field
[0001] This application relates to the technical field of kitchen appliances, and more particularly, to a gesture recognition device, method, medium, and electronic device for a range hood. Background Art
[0002] Most household range hoods are equipped with an infrared sensing device to detect the action of a user waving a hand for control, such as starting or stopping the range hood or performing other operations.
[0003] Most current technical solutions use an infrared signal with a 38KHz carrier frequency to emit infrared light through an infrared emitting LED. After being reflected by a reflector (such as a palm), the reflected signal is received by an integrated infrared receiving module and demodulated, and the original signal is output to a microprocessor for recognition and processing.
[0004] However, in the existing technical solutions, the discreteness of the effective detection distance is too large, which affects the effectiveness of detection.
[0005] Therefore, this application provides a gesture recognition device for a range hood to solve the above technical problems. Summary of the Invention
[0006] The purpose of this application is to provide a gesture recognition device, method, medium, and electronic device for a range hood, which can solve at least one of the above-mentioned technical problems. The specific solutions are as follows:
[0007] According to a specific embodiment of this application, in a first aspect, this application provides a gesture recognition device for a range hood, including: two optoelectronic modules and a processing module.
[0008] The two optoelectronic modules are configured to: periodically emit optical pulse signals based on a preset emission angle, and receive the return signals of the optical pulse signals after encountering an obstacle based on a preset reception angle;
[0009] The processing module is communicatively connected to the two optoelectronic modules respectively, and is configured to determine a gesture signal based on the optical pulse signals and return signals of the two optoelectronic modules.
[0010] Optionally, the processing module is configured to determine the gesture signal based on the optical pulse signals and return signals of the two optoelectronic modules, including:
[0011] When any one of the optoelectronic modules receives the first return signal of the optical pulse signal, start recording the emission time points of each optical pulse signal of the two optoelectronic modules and the return time points of the corresponding return signals of the optical pulse signals;
[0012] Generate signal time curves corresponding to each of the two optoelectronic modules in a preset two-dimensional coordinate system based on the emission time points of each optical pulse signal of the two optoelectronic modules and the return time points of the return signals corresponding to the optical pulse signals, respectively, where the first coordinate axis of the preset two-dimensional coordinate system is the emission time point and the second coordinate axis is the return time point;
[0013] Determine the gesture signal based on the signal time curves of the two optoelectronic modules respectively.
[0014] Optionally, the processing module is configured to determine the gesture signal based on the signal time curves of the two optoelectronic modules respectively, including:
[0015] Preprocess the signal time curves of the two optoelectronic modules respectively to obtain the effective curve segments of the two optoelectronic modules respectively, where the absolute value of the return deviation value of each return time point in the effective curve segment is less than or equal to a preset deviation threshold;
[0016] When the detection durations of each effective curve segment mapped to the second coordinate axis are within a preset detection duration range, calculate the duration difference value of the detection durations of the two effective curve segments;
[0017] When the duration difference value is less than or equal to a preset duration difference threshold, perform trend analysis on the two effective curve segments to obtain a trend analysis result;
[0018] When the trend analysis result is trend consistent information, determine the gesture signal based on the two effective curve segments.
[0019] Optionally, the processing module is configured to determine the gesture signal based on the two effective curve segments, including:
[0020] Determine the minimum return time point based on the two effective curve segments;
[0021] Determine the effective curve segment where the minimum return time point is located as the starting effective curve segment;
[0022] Determine gesture direction information based on the optoelectronic module corresponding to the starting effective curve segment and the preset position relationship information of the two optoelectronic modules;
[0023] Determine the gesture signal based on the gesture direction information.
[0024] Optionally, the processing module is configured to preprocess the signal time curves of the two optoelectronic modules respectively to obtain the effective curve segments of the two optoelectronic modules respectively, including:
[0025] Determine the minimum return time point in the two signal time curves;
[0026] Calculate the return duration corresponding to each return time point by obtaining each return time point and the corresponding emission time point in each signal time curve;
[0027] Calculate the difference between the return duration of each return time point in each signal time curve and the return duration of the minimum return time point to obtain the return deviation value corresponding to the return time point;
[0028] Delete the return time points in each signal time curve where the absolute value of the return deviation value is greater than the preset deviation threshold to obtain the effective curve segment corresponding to the signal time curve.
[0029] Optionally, the processing module is configured to perform trend analysis on the two effective curve segments to obtain a trend analysis result, including:
[0030] Calculate the periodic slope value of each emission time point in each effective curve segment;
[0031] Add the periodic slope values of each emission time point in each effective curve segment to the queue corresponding to the effective curve segment respectively based on the preset arrangement order;
[0032] Calculate the periodic slope deviation value of the two periodic slope values corresponding to the same ranking in the two queues;
[0033] When the periodic slope deviation value of each ranking is less than or equal to the preset periodic slope deviation threshold, determine that the trend analysis result is the trend consistency information.
[0034] Optionally, the horizontal distance and / or vertical distance between the two optoelectronic modules is between 12 cm and 15 cm.
[0035] According to the specific implementation manner of the present application, in a second aspect, the present application provides a gesture recognition method for a range hood, including:
[0036] Obtain the optical pulse signals and return signals of the two optoelectronic modules respectively, where the optical pulse signals are periodically emitted by the optoelectronic modules based on a preset emission angle, and the return signals are signals returned by the optoelectronic modules based on a preset reception angle after the optical pulse signals encounter an obstacle;
[0037] Determine a gesture signal based on the optical pulse signals and return signals of the two optoelectronic modules.
[0038] Optionally, the processing module is configured to determine a gesture signal based on the optical pulse signals and return signals of the two optoelectronic modules, including:
[0039] When any one of the optoelectronic modules receives the first return signal of the optical pulse signal, start recording the emission time points of each optical pulse signal of the two optoelectronic modules and the return time points of the return signals of the corresponding optical pulse signals;
[0040] Based on the emission time points of each optical pulse signal of the two optoelectronic modules and the return time points of the return signals of the corresponding optical pulse signals, generate signal time curves of the corresponding optoelectronic modules in a preset two-dimensional coordinate system respectively, wherein the first coordinate axis of the preset two-dimensional coordinate system is the emission time point, and the second coordinate axis is the return time point;
[0041] Determine the gesture signal based on the signal time curves of the two optoelectronic modules respectively.
[0042] Optionally, the processing module is configured to determine the gesture signal based on the signal time curves of the two optoelectronic modules, including:
[0043] Preprocess the signal time curves of the two optoelectronic modules respectively to obtain the effective curve segments of the two optoelectronic modules respectively, wherein the absolute value of the return deviation value of each return time point in the effective curve segment is less than or equal to a preset deviation threshold;
[0044] When the detection duration of each effective curve segment mapped to the second coordinate axis is within a preset detection duration range, calculate the duration difference value of the detection durations of the two effective curve segments;
[0045] When the duration difference value is less than or equal to a preset duration difference threshold, perform trend analysis on the two effective curve segments to obtain a trend analysis result;
[0046] When the trend analysis result is trend consistent information, determine the gesture signal based on the two effective curve segments.
[0047] Optionally, the processing module is configured to determine the gesture signal based on the two effective curve segments, including:
[0048] Determine the minimum return time point based on the two effective curve segments;
[0049] Determine the effective curve segment where the minimum return time point is located as the starting effective curve segment;
[0050] Determine the gesture direction information based on the optoelectronic module corresponding to the starting effective curve segment and the preset position relationship information of the two optoelectronic modules;
[0051] Determine the gesture signal based on the gesture direction information.
[0052] Optionally, the processing module is configured to preprocess the signal time curves of the two optoelectronic modules respectively to obtain the effective curve segments of the two optoelectronic modules, including:
[0053] Determine the minimum return time point in the two signal time curves;
[0054] Calculate the return duration of each return time point in each signal time curve by obtaining the emission time point corresponding to the return time point;
[0055] Calculate the difference between the return duration of each return time point in each signal time curve and the return duration of the minimum return time point to obtain the return deviation value corresponding to the return time point;
[0056] Delete the return time points in each signal time curve whose absolute value of the return deviation value is greater than the preset deviation threshold to obtain the effective curve segment of the corresponding signal time curve.
[0057] Optionally, the processing module is configured to perform trend analysis on the two effective curve segments to obtain a trend analysis result, including:
[0058] Calculate the period slope value of each emission time point in each effective curve segment;
[0059] Add the period slope values of each emission time point in each effective curve segment to the queue of the corresponding effective curve segment based on the preset arrangement order;
[0060] Calculate the period slope deviation value of the two period slope values corresponding to the same ranking in the two queues;
[0061] When the period slope deviation value of each ranking is less than or equal to the preset period slope deviation threshold, determine that the trend analysis result is the trend consistency information.
[0062] Optionally, the horizontal distance and / or vertical distance between the two optoelectronic modules is between 12 cm and 15 cm.
[0063] According to the specific embodiments of the present application, in a third aspect, the present application provides a computer-readable storage medium, on which a computer program is stored, and when the program is executed by a processor, the gesture recognition device of the range hood as described in any one of the above is implemented.
[0064] According to the specific embodiments of the present application, in a fourth aspect, the present application provides an electronic device, including: one or more processors; a storage device for storing one or more programs, and when the one or more programs are executed by the one or more processors, the one or more processors implement the gesture recognition device of the range hood as described in any one of the above.
[0065] The above solution of the embodiment of the present application has at least the following beneficial effects compared with the prior art:
[0066] The present application provides a gesture recognition device, method, medium and electronic device for a range hood. The gesture recognition device of the present application includes two photoelectric modules and a processing module. The two photoelectric modules can emit optical pulse signals with parallel trajectories, and the processing module can determine gesture signals based on the optical pulse signals and return signals of the two photoelectric modules. By analyzing gestures through the original optical pulse signals and return signals, the calculation time of distance values and speed values is reduced, and the data processing efficiency and the response time of the range hood are improved. Description of the Drawings
[0067] Figure 1 Shows a flowchart of a gesture recognition device for a range hood according to an embodiment of the present application;
[0068] Figure 2 Shows a block diagram of units of a gesture recognition method for a range hood according to an embodiment of the present application. Detailed Embodiments
[0069] In order to make the objectives, technical solutions and advantages of the present application clearer, the present application will be further described in detail below with reference to the accompanying drawings. Obviously, the described embodiments are only a part of the embodiments of the present application, rather than all of the embodiments. All other embodiments obtained by those of ordinary skill in the art based on the embodiments in the present application without creative efforts shall fall within the scope of protection of the present application.
[0070] The terms used in the embodiments of the present application are only for the purpose of describing specific embodiments, and are not intended to limit the present application. The singular forms "a", "the" and "said" used in the embodiments of the present application and the appended claims are also intended to include the plural forms, unless the context clearly indicates otherwise. "Plural" generally includes at least two.
[0071] It should be understood that the term " / and / " used herein is only a description of the associated relationship of the associated objects, indicating that there can be three relationships. For example, A and / or B can represent: A exists alone, A and B exist simultaneously, and B exists alone. In addition, the character " / " herein generally represents an "or" relationship between the associated objects before and after.
[0072] It should be understood that although the terms first, second, third, etc. may be used in the embodiments of the present application to describe, these descriptions should not be limited to these terms. These terms are only used to distinguish the descriptions. For example, without departing from the scope of the embodiments of the present application, the first can also be called the second, and similarly, the second can also be called the first.
[0073] Depending on the context, as used herein, the terms "if" and "when" may be interpreted as "when", "while", "in response to determining", or "in response to detecting". Similarly, depending on the context, the phrases "if determined" or "if detecting (stated condition or event)" may be interpreted as "when determined", "in response to determining", "when detecting (stated condition or event)", or "in response to detecting (stated condition or event)".
[0074] It should also be noted that the term "comprising", "including" or any other variation thereof is intended to cover non-exclusive inclusion, such that a commodity or device comprising a series of elements includes not only those elements but also other elements not expressly listed, or elements inherent to such commodity or device. Without further limitation, an element defined by the statement "comprising an..." does not exclude the presence of additional identical elements in the commodity or device comprising said element.
[0075] It should be particularly noted that symbols and / or numbers present in the specification that are not marked in the accompanying drawings are not reference numerals.
[0076] The optional embodiments of the present application will be described in detail below with reference to the accompanying drawings.
[0077] An embodiment of the present application is provided, namely an embodiment of a gesture recognition device for a range hood.
[0078] The following will be combined with Figure 1 The embodiments of the present application will be described in detail.
[0079] The present application provides a gesture recognition device for a range hood, comprising: two optoelectronic modules and a processing module.
[0080] The two optoelectronic modules are configured to: periodically emit optical pulse signals based on a preset emission angle, and receive return signals of the optical pulse signals after encountering an obstacle based on a preset reception angle. For example, as Figure 1 shown, a first optoelectronic module and a second optoelectronic module.
[0081] The optoelectronic module includes a transmitting unit and a receiving unit.
[0082] The transmitting unit is configured to emit optical pulse signals. Under the control of the processing module, it periodically emits optical pulse signals to the surrounding in real time to detect whether gesture information appears around the range hood through the optical pulse signals. The optical pulse signals include infrared light signals or laser signals.
[0083] The optical pulse signal is a discrete signal with various shapes. Compared with ordinary analog signals (such as sine waves), the waveforms are discontinuous on the time axis (there is an obvious interval between waveforms) but have a certain periodicity. In this embodiment, the available optical pulse signals include: rectangular waves, sawtooth waves, triangular waves, differential waves, etc. For example, optical signals can all be used to achieve optical pulse signals by means of alternating on and off.
[0084] The receiving unit is used to receive the return signal after the optical pulse signal encounters an obstacle. The emitted optical pulse signal usually has a reflection when it encounters an obstacle. For different obstacles, the reflectivity of the optical pulse signal is different. For example, for rough and irregular obstacles, the reflectivity is usually low, and for smooth obstacles, the reflectivity is high. For optical signals with continuous pulse emission, the probability of receiving the reflected optical pulse signal will be greatly increased.
[0085] The emission units of the two optoelectronic modules each emit according to a preset emission angle, and the emitted optical pulse signals have the same emission angle, so that the optical pulse signals emitted by the two optoelectronic modules each have parallel trajectories. Similarly, the receiving units of the two optoelectronic modules each receive according to a preset receiving angle, and the received return signals have the same receiving angle.
[0086] In some specific embodiments, the horizontal distance and / or vertical distance between the two optoelectronic modules is between 12 cm and 15 cm.
[0087] For most people, the maximum width of the palm or forearm is less than 12 cm. When the horizontal distance or vertical distance between the two optoelectronic modules is set between 12 cm and 15 cm, when used for gesture recognition, it can effectively exclude the interference of objects wider than the palm width or forearm width on gesture recognition, thereby improving the recognition accuracy. If the horizontal distance or vertical distance between the two optoelectronic modules is too large, it will affect the recognition efficiency and the sensitivity of controlling the range hood. Setting the horizontal distance or vertical distance between the two optoelectronic modules between 12 cm and 15 cm can both improve the accuracy of gesture recognition and ensure the sensitivity of controlling the range hood.
[0088] When the horizontal distance between the two optoelectronic modules is between 12 cm and 15 cm, gesture information is recognized by a left-right sliding gesture; when the vertical distance between the two optoelectronic modules is between 12 cm and 15 cm, gesture information is recognized by an up-down sliding gesture; when both the horizontal distance and vertical distance between the two optoelectronic modules are between 12 cm and 15 cm, gesture information can be recognized by either a left-right sliding gesture or an up-down sliding gesture.
[0089] A processing module, communicatively connected to the two optoelectronic modules respectively, is configured to determine a gesture signal based on the optical pulse signals and return signals of the two optoelectronic modules.
[0090] In some specific embodiments, the processing module is configured to determine the gesture signal based on the optical pulse signals and return signals of the two optoelectronic modules, including: when any one of the optoelectronic modules receives the first return signal of the optical pulse signal, start recording the emission time points of each optical pulse signal of the two optoelectronic modules respectively and the return time points of the return signals corresponding to the optical pulse signals; generate signal time curves corresponding to the optoelectronic modules in a preset two-dimensional coordinate system based on the emission time points of each optical pulse signal of the two optoelectronic modules respectively and the return time points of the return signals corresponding to the optical pulse signals, wherein the first coordinate axis of the preset two-dimensional coordinate system is the emission time point and the second coordinate axis is the return time point; determine the gesture signal based on the signal time curves of the two optoelectronic modules respectively.
[0091] When any one of the optoelectronic modules receives the first return signal of the optical pulse signal, it indicates that an obstacle has passed in front of the optoelectronic module. However, at this time, it is still impossible to determine whether the obstacle is a hand or a forearm or an object with the width of a palm or an object with the width of a forearm. Only the gesture system is triggered by the first return signal. Signal time curves corresponding to the optoelectronic modules are generated by the emission time points and return time points of a series of optical pulse signals of each optoelectronic module.
[0092] In this specific embodiment, gesture recognition is performed through the signal time curves generated by the emission time points and return time points in the preset two-dimensional coordinate system. By analyzing the original time points, the calculation time of distance values and speed values is reduced, and the data processing efficiency and the response time of the range hood are improved. By analyzing the continuous data on the signal time curve, the interference of discrete data can be effectively excluded, and the effectiveness and accuracy of recognition are improved.
[0093] In some specific embodiments, the processing module is configured to determine the gesture signal based on the signal time curves of the two optoelectronic modules respectively, including: preprocessing the signal time curves of the two optoelectronic modules respectively to obtain effective curve segments of the two optoelectronic modules respectively, wherein the absolute value of the return deviation value of each return time point in the effective curve segment is less than or equal to a preset deviation threshold; when the detection durations of each effective curve segment mapped to the second coordinate axis are within a preset detection duration range, calculate the duration difference value of the detection durations of the two effective curve segments; when the duration difference value is less than or equal to a preset duration difference threshold, perform trend analysis on the two effective curve segments to obtain a trend analysis result; when the trend analysis result is trend consistent information, determine the gesture signal based on the two effective curve segments.
[0094] In this specific embodiment, invalid information unrelated to recognition in the signal time curves of the two optoelectronic modules is deleted, and the valid curve segments in each signal time curve are retained.
[0095] In some specific embodiments, the processing module is configured to preprocess the signal time curves of the two optoelectronic modules respectively to obtain the valid curve segments of the two optoelectronic modules respectively, including: determining the minimum return time point in the two signal time curves; calculating the return duration of each return time point in each signal time curve by obtaining the emission time point corresponding to the return time point; calculating the difference between the return duration of each return time point in each signal time curve and the return duration of the minimum return time point to obtain the return deviation value corresponding to the return time point; deleting the return time points in each signal time curve whose absolute value of the return deviation value is greater than the preset deviation threshold to obtain the valid curve segment of the corresponding signal time curve.
[0096] The return duration of each return time point, that is, the duration from the time point of emitting the optical pulse signal to the time point of receiving the corresponding return signal.
[0097] In this specific embodiment, the minimum return time point is the time point of receiving the first return signal, that is, the earliest time point of the return signal. Since it is determined that an obstacle has passed at the minimum return time point, the return deviation value of the return duration of each return time point is determined based on the return duration of the minimum return time point, so as to determine whether the obstacle measured by each return time point is at an abnormal distance. The data with abnormal distance in the signal time curve is deleted, and the valid return time points are left, and the valid curve segment is generated based on the valid return time points. For example, data with only the emission time point and no return time point, such as when an obstacle passes in front of or after an optoelectronic module; or data affected by short-term interference.
[0098] Determining the gesture signal through the two valid curve segments reduces the complexity of recognition and improves the reliability of recognition.
[0099] In this specific embodiment, each valid curve segment is mapped to the detection duration on the second coordinate axis, indicating the duration for the obstacle to pass through the optoelectronic module.
[0100] If the duration of the obstacle passing through the optoelectronic module exceeds the preset detection duration range, it is determined as invalid data, that is, the gesture recognition fails. If the duration of the obstacle passing through the optoelectronic module is within the preset detection duration range regardless of its speed, the duration difference value between two valid curve segments can be detected; if the duration difference value between the two valid curve segments is too large, it indicates that the data is incomplete and is determined as invalid data, that is, the gesture recognition fails. If the duration difference value between the two valid curve segments is valid, it is detected whether the movement of the obstacle in front of the two optoelectronic modules is consistent.
[0101] In some specific embodiments, the processing module is configured to perform trend analysis on the two valid curve segments to obtain a trend analysis result, including: calculating the period slope value of each emission time point in each valid curve segment; adding the period slope values of each emission time point in each valid curve segment to the queue corresponding to the valid curve segment respectively based on the preset arrangement order; calculating the period slope deviation value of the two period slope values corresponding to the same position in the two queues; when the period slope deviation value of each position is less than or equal to the preset period slope deviation threshold, determining that the trend analysis result is the trend consistency information.
[0102] In this specific embodiment, the period slope value of each emission time point, that is, the slope value calculated based on the current coordinate value of the emission time point of the current emission period on the valid curve segment and the subsequent coordinate value of the emission time point of the next emission period adjacent to the current emission period on the valid curve segment.
[0103] The preset arrangement order includes: the order of the emission time points, or the reverse order of the order of the emission time points.
[0104] In this specific embodiment, the period slope values of each emission time point in the two valid curve segments are respectively arranged in two queues according to the preset arrangement order. For example, the period slope values of each emission time point in the first valid curve segment are arranged in the first queue in the order of the emission time points; the period slope values of each emission time point in the second valid curve segment are arranged in the second queue in the order of the emission time points. Trend analysis is performed by means of pairwise comparison. When the period slope deviation value of each position is less than or equal to the preset period slope deviation threshold, it is determined that the trend analysis result is the trend consistency information.
[0105] This specific embodiment determines whether the movement of the obstacle is consistent through trend analysis. If the trend analysis result is the trend inconsistency information, it indicates that the movement of the obstacle is inconsistent and may not be the same obstacle, and it is determined to be invalid data, that is, gesture recognition fails; if the trend analysis result is the trend consistency information, it indicates that the movement of the obstacle is consistent and is determined to be the same obstacle, and the determined data is valid, so it can be determined that the obstacle is a hand or a forearm or an obstacle of the width of a hand or an obstacle of the width of a forearm, and a complete gesture is made, so the gesture signal can be determined based on the two valid curve segments.
[0106] In some specific embodiments, when the trend analysis result is trend consistency information, the processing module is configured to determine the gesture signal based on the two valid curve segments, including: determining the minimum return time point based on the two valid curve segments; determining the valid curve segment where the minimum return time point is located as the starting valid curve segment; determining gesture direction information based on the photoelectric module corresponding to the starting valid curve segment and the preset position relationship information of the two photoelectric modules; and determining the gesture signal based on the gesture direction information.
[0107] In this specific embodiment, the starting effective curve segment is determined by the minimum return time point, thereby being able to identify the movement direction of the gesture, and thus being able to determine the gesture signal.
[0108] The gesture recognition device of the embodiment of the present application includes two photoelectric modules and a processing module. The two photoelectric modules can emit light pulse signals with parallel trajectories, and the processing module can determine the gesture signal based on the light pulse signals and return signals of the two photoelectric modules. The gesture analysis is performed by the original light pulse signals and return signals, which reduces the calculation time of the distance value and the speed value, and improves the data processing efficiency and the response time of the range hood.
[0109] The present application also provides a method embodiment that is based on the above embodiment. The explanation based on the same name meaning is the same as that of the above embodiment, and has the same technical effect as the above embodiment, which will not be repeated here.
[0110] like Figure 2 As shown, the present application provides a gesture recognition method for a range hood, comprising:
[0111] Step S201, obtaining the optical pulse signal and return signal of each of the two optoelectronic modules, wherein the optical pulse signal is periodically emitted by the optoelectronic module based on a preset emission angle, and the return signal is a signal returned by the optoelectronic module after the optical pulse signal encounters an obstacle based on a preset receiving angle;
[0112] Step S202: determining a gesture signal based on the optical pulse signals and return signals of the two optoelectronic modules.
[0113] Optionally, the processing module is configured to determine a gesture signal based on the optical pulse signals and return signals of the two optoelectronic modules, including:
[0114] When any one of the optoelectronic modules receives the first return signal of the optical pulse signal, start recording the emission time points of each optical pulse signal of the two optoelectronic modules and the return time points of the return signals of the corresponding optical pulse signals;
[0115] Based on the emission time points of each optical pulse signal of the two optoelectronic modules and the return time points of the return signals of the corresponding optical pulse signals, generate signal time curves of the corresponding optoelectronic modules in a preset two-dimensional coordinate system, where the first coordinate axis of the preset two-dimensional coordinate system is the emission time point and the second coordinate axis is the return time point;
[0116] Determine the gesture signal based on the signal time curves of the two optoelectronic modules.
[0117] Optionally, the processing module is configured to determine the gesture signal based on the signal time curves of the two optoelectronic modules, including:
[0118] Preprocess the signal time curves of the two optoelectronic modules respectively to obtain the effective curve segments of the two optoelectronic modules, where the absolute value of the return deviation value of each return time point in the effective curve segment is less than or equal to a preset deviation threshold;
[0119] When the detection duration of each effective curve segment mapped to the second coordinate axis is within a preset detection duration range, calculate the duration difference value of the detection durations of the two effective curve segments;
[0120] When the duration difference value is less than or equal to a preset duration difference threshold, perform trend analysis on the two effective curve segments to obtain a trend analysis result;
[0121] When the trend analysis result is trend consistency information, determine the gesture signal based on the two effective curve segments.
[0122] Optionally, the processing module is configured to determine the gesture signal based on the two effective curve segments, including:
[0123] Determine the minimum return time point based on the two effective curve segments;
[0124] Determine the effective curve segment where the minimum return time point is located as the starting effective curve segment;
[0125] Determine the gesture direction information based on the optoelectronic module corresponding to the starting valid curve segment and the preset positional relationship information of the two optoelectronic modules;
[0126] Determine the gesture signal based on the gesture direction information.
[0127] Optionally, the processing module is configured to preprocess the signal time curves of the two optoelectronic modules respectively to obtain the valid curve segments of the two optoelectronic modules, including:
[0128] Determine the minimum return time point in the two signal time curves;
[0129] Calculate the return duration of each return time point in each signal time curve by obtaining the difference between the return time point and the emission time point corresponding to the return time point;
[0130] Calculate the difference between the return duration of each return time point in each signal time curve and the return duration of the minimum return time point to obtain the return deviation value corresponding to the return time point;
[0131] Delete the return time points in each signal time curve whose absolute value of the return deviation value is greater than the preset deviation threshold to obtain the valid curve segment of the corresponding signal time curve.
[0132] Optionally, the processing module is configured to perform trend analysis on the two valid curve segments to obtain a trend analysis result, including:
[0133] Calculate the period slope value of each emission time point in each valid curve segment;
[0134] Add the period slope values of each emission time point in each valid curve segment to the queue corresponding to the valid curve segment respectively based on the preset arrangement order;
[0135] Calculate the period slope deviation value of the two period slope values corresponding to the same ranking in the two queues;
[0136] When the period slope deviation value of each ranking is less than or equal to the preset period slope deviation threshold, determine that the trend analysis result is the trend consistency information.
[0137] Optionally, the horizontal distance and / or vertical distance between the two optoelectronic modules is between 12 cm and 15 cm.
[0138] The gesture recognition method according to the embodiment of the present application includes: obtaining the optical pulse signals and return signals of two optoelectronic modules respectively, where the optical pulse signals are periodically emitted by the optoelectronic modules based on a preset emission angle, and the return signals are the signals returned by the optoelectronic modules based on a preset reception angle after the optical pulse signals encounter an obstacle; determining a gesture signal based on the optical pulse signals and return signals of the two optoelectronic modules. By performing gesture analysis through the original optical pulse signals and return signals, the calculation time of distance values and speed values is reduced, and the data processing efficiency and the response time of the range hood are improved.
[0139] Embodiment 3
[0140] This embodiment provides an electronic device, which includes: at least one processor; and a memory communicatively connected to the at least one processor; wherein, the memory stores instructions executable by the one processor, and the instructions are executed by the at least one processor so that the at least one processor can execute the method steps described in the above embodiment.
[0141] Embodiment 4
[0142] The embodiment of the present application provides a non-volatile computer storage medium, and the computer storage medium stores computer-executable instructions, and the computer-executable instructions can execute the method steps described in the above embodiment.
[0143] Finally, it should be noted that the various embodiments in this specification are described in a progressive manner, and the key point of each embodiment is to illustrate the differences from other embodiments. The same or similar parts among the various embodiments can be referred to each other.
[0144] The above embodiments are only used to illustrate the technical solutions of the present application, rather than to limit them; although the present application has been described in detail with reference to the foregoing embodiments, those of ordinary skill in the art should understand that they can still modify the technical solutions described in the foregoing embodiments, or perform equivalent replacements on some of the technical features; and these modifications or replacements do not make the essence of the corresponding technical solutions deviate from the spirit and scope of the technical solutions of the various embodiments of the present application.
Claims
1. A gesture recognition device for a range hood, characterized in that: include: Two optoelectronic modules, wherein the optoelectronic modules are configured to: periodically emit optical pulse signals based on a preset emission angle, and receive return signals of the optical pulse signals after encountering obstacles based on a preset receiving angle; The processing module is respectively connected to the two optoelectronic modules for communication, and is configured to determine a gesture signal based on the optical pulse signals and return signals of the two optoelectronic modules.
2. The device according to claim 1, characterized in that The processing module is configured to determine the gesture signal based on the optical pulse signal and the return signal of the two optoelectronic modules, including: When any photoelectric module receives the first return signal of the optical pulse signal, start recording the emission time point of each optical pulse signal of the two photoelectric modules and the return time point of the return signal corresponding to the optical pulse signal; Based on the emission time point of each optical pulse signal of the two optical modules and the return time point of the return signal of the corresponding optical pulse signal, a signal time curve of the corresponding optical module is generated in a preset two-dimensional coordinate system, wherein the first coordinate axis of the preset two-dimensional coordinate system is the emission time point, and the second coordinate axis is the return time point; The gesture signal is determined based on respective signal time curves of the two optoelectronic modules.
3. The device according to claim 2, characterized in that The processing module is configured to determine the gesture signal based on the respective signal time curves of the two optoelectronic modules, including: Preprocessing the respective signal time curves of the two optoelectronic modules respectively to obtain respective effective curve segments of the two optoelectronic modules, wherein the absolute value of the return deviation value at each return time point in the effective curve segment is less than or equal to a preset deviation threshold; When the detection duration of each valid curve segment mapped to the second coordinate axis is within a preset detection duration range, calculating a duration difference value of the detection durations of two valid curve segments; When the duration difference value is less than or equal to a preset duration difference threshold, performing trend analysis on the two valid curve segments to obtain a trend analysis result; When the trend analysis result is trend consistency information, the gesture signal is determined based on the two valid curve segments.
4. The device according to claim 3, characterized in that The processing module is configured to determine the gesture signal based on the two valid curve segments, including: Determining a minimum return time point based on the two valid curve segments; Determine the effective curve segment where the minimum return time point is located as the starting effective curve segment; Determining gesture direction information based on the photoelectric module corresponding to the starting effective curve segment and preset position relationship information of the two photoelectric modules; The gesture signal is determined based on the gesture direction information.
5. The device according to claim 3, characterized in that The processing module is configured to pre-process the respective signal time curves of the two optoelectronic modules to obtain respective effective curve segments of the two optoelectronic modules, including: Determining a minimum return time point in the two signal time curves; Calculate each return time point in each signal time curve and the emission time point corresponding to the return time point to obtain the return duration of the corresponding return time point; Calculate the difference between the return time of each return time point in each signal time curve and the return time of the minimum return time point to obtain the return deviation value of the corresponding return time point; The return time points whose absolute values of the return deviation values in each signal time curve are greater than a preset deviation threshold are deleted to obtain a valid curve segment of the corresponding signal time curve.
6. The device according to claim 3, characterized in that The processing module is configured to perform trend analysis on the two valid curve segments to obtain trend analysis results, including: Calculate the periodic slope value at each emission time point in each valid curve segment; Adding the periodic slope value of each emission time point in each valid curve segment to the queue of the corresponding valid curve segment based on a preset arrangement order; Calculate the cycle slope deviation value of two cycle slope values of corresponding ranks in two queues; When the period slope deviation value of each ranking is less than or equal to the preset period slope deviation threshold, the trend analysis result is determined to be the trend consistency information.
7. The device according to claim 1, characterized in that The horizontal distance and / or vertical distance between the two photoelectric modules is between 12 cm and 15 cm.
8. A method for gesture recognition of a range hood, characterized in that: include: Obtaining the optical pulse signal and return signal of each of the two optoelectronic modules, wherein the optical pulse signal is periodically emitted by the optoelectronic module based on a preset emission angle, and the return signal is a signal returned by the optoelectronic module after the optical pulse signal encounters an obstacle based on a preset receiving angle; The gesture signal is determined based on the optical pulse signals and the return signals of the two optoelectronic modules.
9. A computer-readable storage medium having a computer program stored thereon, characterized in that: When the program is executed by a processor, the method according to claim 8 is implemented.
10. An electronic device, characterized in that: include: one or more processors; a storage device for storing one or more programs, When the one or more programs are executed by the one or more processors, the one or more processors implement the method as claimed in claim 8.