Range hood control method and device
Two sets of infrared transceivers generate alternating state signals, and control instructions are generated according to the signal width and timing, which solves the problem of easy mis-triggering of the range hood and improves the accuracy of gesture control.
Patent Information
- Application Number
- CN202510108803.7
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2025-01-23
- Publication Date
- 2025-04-11
- Estimated Expiration
- 2045-01-23
AI Technical Summary
Existing range hood control methods are easily triggered by factors such as human movement or head shaking, resulting in malfunction.
Two sets of infrared transceivers are used to generate alternating signals of the first and second states, and the user's gestures are judged by timing and signal width thresholds to generate control instructions.
The accuracy of user gesture control is improved and the occurrence of false triggering is reduced.
Smart Images

Figure CN119802701A_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the technical field of range hoods, and in particular to a range hood control method and device. Background Art
[0002] With the development of technology, gesture control is widely used, especially in range hoods. However, due to the characteristics of infrared and environmental influences, such as people walking or shaking their heads, it is easy to be triggered by mistake. Summary of the invention
[0003] Based on this, a range hood control method and device are provided to solve at least one of the above technical problems.
[0004] According to a first aspect of the present invention, there is provided a range hood control method, comprising:
[0005] receiving a first signal, the first signal being generated by a first set of infrared transceiver devices, the first signal comprising alternating first and second states;
[0006] Based on the first signal being in the first state, starting the timing of a preset first signal period;
[0007] receiving a second signal, the second signal being generated by a second set of infrared transceiver devices, the second signal comprising alternating first and second states;
[0008] Based on the second signal being in the first state, starting timing of a preset second signal period;
[0009] At least based on the first signal width and the second signal width reaching the first threshold respectively, a control instruction is generated according to the relative positions of the first group of infrared transceiver devices and the second infrared transceiver devices, the first signal width is the duration from the start of the timing of the first signal period to the time when the first signal enters the last second state within the first signal period, and the second signal width is the duration from the start of the timing of the second signal period to the time when the second signal enters the last second state within the second signal period.
[0010] As an optional implementation, the method further includes: starting a preset total signal period timing based on the first signal being in a first state;
[0011] At least based on the first signal width and the second signal width reaching the first threshold respectively, generating a control instruction according to the relative position of the first group of infrared transceiver devices and the second infrared transceiver device, including:
[0012] Based on the first signal width and the second signal width reaching the first threshold respectively, and the second signal period being within the total signal period, a control instruction is generated according to the relative positions of the first group of infrared transceiver devices and the second infrared transceiver device.
[0013] As an optional implementation, at least based on the first signal width and the second signal width reaching the first threshold respectively, generating a control instruction according to the relative position of the first group of infrared transceiver devices and the second infrared transceiver device includes:
[0014] Based on the first signal width and the second signal width reaching the first threshold respectively, and the second signal time period is within the total signal time period, and the number of the first signals in the first state in the first signal time period and the number of the second signals in the first state in the second signal time period are respectively less than the second threshold, a control instruction is generated according to the relative positions of the first group of infrared transceiver devices and the second infrared transceiver device.
[0015] As an optional implementation, at least based on the first signal width and the second signal width reaching the first threshold respectively, generating a control instruction according to the relative position of the first group of infrared transceiver devices and the second infrared transceiver device includes:
[0016] Based on the first signal width and the second signal width reaching the first threshold respectively, and the second signal time period is within the total signal time period, and the duration of the first state of the first signal with the longest duration in the first signal time period and the duration of the first state of the second signal with the longest duration in the second signal time period are respectively greater than the third threshold, a control instruction is generated according to the relative position of the first group of infrared transceiver devices and the second infrared transceiver device.
[0017] As an optional implementation manner, before starting the timing of the first signal period based on the first signal being in the first state, the method further includes:
[0018] If the preset event interval countdown ends and the first signal is in the first state, the timing of the first signal period starts, and the start time of the event interval countdown is the timing start time of the first signal period in the process of generating the previous control instruction.
[0019] As an optional implementation, the first state is a low level, and the second state is a high level.
[0020] According to a second aspect of the present invention, there is provided a range hood control device, comprising:
[0021] A receiving module, configured to receive a first signal, wherein the first signal is generated by a first group of infrared transceiver devices, and the first signal includes an alternating first state and a second state;
[0022] A timing module, configured to start timing of a preset first signal period based on the first signal being in a first state;
[0023] The receiving module is further used to receive a second signal, the second signal is generated by a second group of infrared transceiver devices, and the second signal includes an alternating first state and a second state;
[0024] The timing module is further used to start timing of a preset second signal period based on the second signal being in the first state;
[0025] An instruction module is used to generate a control instruction based on the relative positions of the first group of infrared transceiver devices and the second infrared transceiver device at least based on the first signal width and the second signal width reaching the first threshold respectively, wherein the first signal width is the duration from the start of the timing of the first signal period to the time when the first signal enters the last second state within the first signal period, and the second signal width is the duration from the start of the timing of the second signal period to the time when the second signal enters the last second state within the second signal period.
[0026] According to a third aspect of the present invention, there is provided a range hood, comprising a memory and a processor, wherein the memory stores a computer program executable on the processor, and the processor implements the steps of the method described in any embodiment of the present invention when executing the computer program.
[0027] According to a fourth aspect of the present invention, there is provided a computer-readable storage medium having a computer program stored thereon, wherein when the computer program is executed by a processor, the method steps as described in any embodiment of the present invention are implemented.
[0028] The present invention provides a range hood control method. The technical solution provided by the embodiments of the present invention brings at least the following beneficial effects:
[0029] The range hood control method of the embodiment of the present invention includes: receiving a first signal, the first signal is generated by a first group of infrared transceiver devices, the first signal includes an alternating first state and a second state; based on the first signal being in the first state, starting the timing of a preset first signal time period; receiving a second signal, the second signal is generated by a second group of infrared transceiver devices, the second signal includes an alternating first state and a second state; based on the second signal being in the first state, starting the timing of a preset second signal time period; at least based on the first signal width and the second signal width reaching a first threshold respectively, generating a control instruction according to the relative position of the first group of infrared transceiver devices and the second infrared transceiver devices, the first signal width being the duration from the start of the timing of the first signal time period to the time when the first signal enters the last second state within the first signal time period, and the second signal width being the time from the start of the timing of the second signal time period to the time when the second signal enters the last second state within the second signal time period. The user's control action can cause the first signal and the second signal to be in the first state respectively, the first signal period can enable the user to complete the control action at the first infrared transceiver device, and the second signal period can enable the user to complete the control action at the second infrared transceiver device. When the first signal width reaches the first threshold, it can be determined whether the first state of the first signal is caused by the user's control action. When the second signal width reaches the first threshold, it can be determined whether the first state of the second signal is caused by the user's control action. Control instructions are generated based on this, which can improve the accuracy of identifying user control actions and reduce false triggering.
[0030] It is to be understood that the foregoing general description and the following detailed description are exemplary and explanatory only and are not restrictive of the invention. BRIEF DESCRIPTION OF THE DRAWINGS
[0031] In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings required for use in the embodiments or the description of the prior art will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the present invention. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying creative work.
[0032] Figure 1 A flow chart of a range hood control method provided by an embodiment of the present invention;
[0033] Figure 2 A schematic diagram of the principle of signals generated in a range hood control method provided by an embodiment of the present invention;
[0034] Figure 3 A schematic structural diagram of a range hood control device provided by an embodiment of the present invention;
[0035] Figure 4 A schematic diagram of the structure of a control part of a range hood provided in an embodiment of the present invention. DETAILED DESCRIPTION
[0036] In order to enable those skilled in the art to better understand the present application, the technical solutions in the embodiments of the present application are described clearly and completely below. Obviously, the described embodiments are only part of the embodiments of the present application, not all of the embodiments. Based on the embodiments in the present application, all other embodiments obtained by ordinary technicians in the field without creative work are within the scope of protection of the present application.
[0037] The terms "first", "second", etc. in the specification and claims of this application and the above-mentioned drawings are used to distinguish different objects, rather than to describe a specific order. In addition, the terms "including" and "having" and any variations thereof are intended to cover non-exclusive inclusions. For example, a process, method, system, product or device comprising a series of steps or units is not limited to the listed steps or units, but optionally also includes steps or units that are not listed, or optionally also includes other steps or units inherent to these processes, methods, products or devices.
[0038] Reference to "embodiments" herein means that a particular feature, structure, or characteristic described in conjunction with the embodiments may be included in at least one embodiment of the present application. The appearance of the phrase in various locations in the specification does not necessarily refer to the same embodiment, nor is it an independent or alternative embodiment that is mutually exclusive with other embodiments. It is explicitly and implicitly understood by those skilled in the art that the embodiments described herein may be combined with other embodiments.
[0039] See also Figure 1 and Figure 2 , an embodiment of the present invention provides a range hood control method, comprising:
[0040] S10, receiving a first signal, where the first signal is generated by a first group of infrared transceiver devices, and the first signal includes an alternating first state and a second state;
[0041] S20, starting timing of a preset first signal period based on the first signal being in the first state;
[0042] S30, receiving a second signal, where the second signal is generated by a second group of infrared transceiver devices, and the second signal includes an alternating first state and a second state;
[0043] S40, starting timing of a preset second signal period based on the second signal being in the first state;
[0044] S50, at least based on the first signal width and the second signal width respectively reaching the first threshold, generate a control instruction according to the relative positions of the first group of infrared transceiver devices and the second infrared transceiver devices, the first signal width is the duration from the start of the first signal time period timing to the time when the first signal enters the last second state within the first signal time period, and the second signal width is the duration from the start of the second signal time period timing to the time when the second signal enters the last second state within the second signal time period.
[0045] The range hood control method of the embodiment of the present invention includes: receiving a first signal, the first signal is generated by a first group of infrared transceiver devices, and the first signal includes an alternating first state and a second state; based on the first signal being in the first state, starting the timing of the first signal time period; receiving a second signal, the second signal is generated by a second group of infrared transceiver devices, and the second signal includes an alternating first state and a second state; based on the second signal being in the first state, starting the timing of the second signal time period; at least based on the first signal width and the second signal width reaching a first threshold respectively, generating a control instruction according to the relative position of the first group of infrared transceiver devices and the second infrared transceiver device, the first signal width is the duration from the start of the timing of the first signal time period to the time when the first signal enters the last second state within the first signal time period, and the second signal width is the duration from the start of the timing of the second signal time period to the time when the second signal enters the last second state within the second signal time period. The user's control action can cause the first signal and the second signal to be in the first state respectively, the first signal period can enable the user to complete the control action at the first infrared transceiver device, and the second signal period can enable the user to complete the control action at the second infrared transceiver device. When the first signal width reaches the first threshold, it can be determined whether the first state of the first signal is caused by the user's control action. When the second signal width reaches the first threshold, it can be determined whether the first state of the second signal is caused by the user's control action. Control instructions are generated based on this, which can improve the accuracy of identifying user control actions and reduce false triggering.
[0046] The method of the embodiment of the present invention is used to control a range hood, and at least two sets of infrared transceivers are provided on the range hood, and each set of infrared transceivers includes an infrared transmitter and an infrared receiver. When a user controls the range hood through actions, for example, by moving a hand in front of the infrared transceiver, the infrared rays emitted by the infrared transmitter are reflected and received by the infrared receiver of the same set, thereby changing the signal of the infrared receiver. The corresponding instructions can be generated by combining the two sets of infrared transceivers.
[0047] The user's hand passes through the two groups of infrared transceivers and is sensed successively. According to the relative positions of the two groups of infrared transceivers, the direction of the user's hand movement can be determined. For example, the first group of infrared transceivers and the second group of infrared transceivers sense the user's hand successively. If the first group of infrared transceivers is located on the left side of the second group of infrared transceivers, the direction of the user's hand movement is determined to be from left to right, and a left-to-right event can be generated. If the first group of infrared transceivers is located on the right side of the second group of infrared transceivers, the direction of the user's hand movement is determined to be from right to left, and a right-to-left event can be generated. Different events correspond to different control instructions. For example, the control instruction for the left-to-right event can be to turn on the fan, and the control instruction for the right-to-left event can be to turn off the fan. The correspondence between events and control instructions can also be the opposite of the above examples.
[0048] In some embodiments, the correspondence between events and control instructions can also be combined with the current state of the range hood. For example, when a left-to-right event is generated and the fan is in the off state, the corresponding control instruction can be to turn on the fan; when a left-to-right event is generated and the fan is in the on state, the corresponding control instruction can be to increase the fan output power and increase the wind speed gear until it reaches the maximum wind speed gear. When a right-to-left event is generated and the fan is in the on state, if there is a wind speed gear smaller than the current wind speed gear, the fan output power is reduced and the wind speed gear is lowered. If the current wind speed unit is the smallest wind speed gear, the control instruction can be to turn off the fan.
[0049] In the embodiment of the present invention, the signal generated by the infrared transceiver device includes an alternating first state and a second state. In an exemplary embodiment, when there is no obstacle in front of the infrared transceiver device, such as a user's hand blocking it, the signal generated by the infrared transceiver device is in the second state, and when there is an obstacle blocking it in front of the infrared transceiver device, the signal generated by the infrared transceiver device is in the first state. For example, when the first infrared transceiver device does not sense an obstacle, the signal generated is in the second state, and when an obstacle is sensed, such as a user's hand passing in front of the first infrared transceiver device and being sensed, the signal generated is in the first state.
[0050] In some embodiments, one of the first state and the second state may be a low level and the other may be a high level. When there is an obstacle or no obstacle in front of the infrared transceiver, one of the first state and the second state may be a low level and the other may be a high level.
[0051] In the exemplary embodiment, the first state is a low level and the second state is a high level. For example, when there is no obstacle in front of the infrared transceiver, the infrared rays generated by the infrared transmitter cannot be received by the infrared receiver in the same group, and the infrared receiver outputs a high level. When there is an obstacle in front of the infrared transceiver, the infrared rays emitted by the infrared transmitter are reflected and received by the infrared receiver in the same group, and the infrared receiver outputs a low level. In the embodiment of the present invention, the first state is a low level and the second state is a high level as an example for explanation.
[0052] In the embodiment of the present invention, the user controls the range hood through the infrared transceiver, which can generally be controlled by gestures. The user passes through the first group of infrared transceivers and the second group of infrared transceivers in sequence at a certain speed and direction, and is sensed respectively. Since the hand has a certain width, the embodiment of the present invention sets a certain time period, and the complete process of the user's hand passing through the first group of infrared transceivers and the second group of infrared transceivers can be extracted through the signal within the set time period.
[0053] Wherein, based on the first signal being in the first state, the timing of the first signal period is started. When the first group of infrared transceivers does not sense an obstacle, the first signal is in the second state. When the first signal is in the first state, it means that the first group of infrared transceivers begins to sense an obstacle such as a hand, and the timing of the first signal period is started at this time. The specific duration of the first signal period can be determined based on experience, statistics, and actual conditions, so that the first group of infrared charging devices sense the complete process of the user's control action within the first signal period. In a specific implementation, the specific duration of the first signal period can be pre-set according to the width of the hand and the speed of movement, so that the hand can pass through the first group of infrared transceivers and be sensed by the first group of infrared transceivers within the first signal period, so that the complete process of the user's hand passing through the first group of infrared transceivers can be extracted according to the first signal in the first signal period. Based on this, it can be accurately judged whether it is the user's control gesture or other interference factors. For example, the user's head or oil smoke may interfere with the signal generated by the infrared transceiver.
[0054] Similarly, based on the second signal being in the first state, the timing of the second signal period starts. When the second group of infrared transceivers does not sense an obstacle, the second signal is in the second state. When the second signal is in the first state, it means that the second group of infrared transceivers begins to sense obstacles such as hands, and the timing of the second signal period starts at this time. The specific duration of the first signal period can be determined based on experience, statistics, and actual conditions, so that the first group of infrared charging devices sense the complete process of the user's control action within the first signal period. In a specific implementation, the specific duration of the second signal period can be pre-set based on the width of the hand and the speed of movement, so that the hand can pass through the second group of infrared transceivers and be sensed by the first group of infrared transceivers within the second signal period, so that the complete process of the user's hand passing through the second group of infrared transceivers can be extracted based on the second signal in the second signal period. Improve the accuracy of gesture recognition and reduce false touches.
[0055] In the embodiment of the present invention, the second signal period can be the same as or different from the first signal period. For example, the second signal period and the first signal period can both be 100-200 microns.
[0056] In the embodiment of the present invention, at least based on the first signal width and the second signal width reaching the first threshold respectively, a control instruction is generated according to the relative position of the first group of infrared transceiver devices and the second infrared transceiver devices. The first signal width is the duration from the start of the first signal period timing to the first signal entering the last second state in the first signal period. When the user's hand passes in front of the infrared transceiver, due to the gap between the fingers, the infrared light emitted by the infrared generator may be reflected by the fingers and received by the infrared receiver of the same group, and the state of the first signal changes from a high level to a low level. At this time, the first signal period timing starts, so that the entire process of the hand passing can be extracted. When the infrared light passes through the finger gap, it will pass through the finger gap and will not be received by the infrared receiver of the same group. The state of the first signal changes to a high level. The first signal generated by the complete process of the hand passing through the infrared transceiver is a PWM waveform (Pulse width modulation wave). Entering the last second state in the first signal period indicates that the hand has completely passed, there is no obstacle in front of the first group of infrared transceivers, and the generated first signal remains at a high level. In a specific implementation, the duration from the first falling edge to the last rising edge in the first signal time period is used as the first signal width. If the first signal width reaches the first threshold, it can be determined as a hand passing by, otherwise it is determined as an interference signal.
[0057] Similarly, the second signal width is the duration from the start of the second signal period timing to the second signal entering the last second state in the second signal period. The infrared rays emitted by the infrared generator of the second group of infrared transceivers may be reflected by the fingers and received by the infrared receivers of the same group, and the state of the second signal changes from a high level to a low level. At this time, the second signal period timing starts so that the entire process of the hand passing through can be extracted. When the infrared rays pass through the finger gaps, they will pass through the finger gaps and will not be received by the infrared receivers of the same group. The state of the second signal changes to a high level. The second signal generated by the complete process of the hand passing through the infrared transceiver is a PWM waveform (Pulse width modulation wave). Entering the last second state in the second signal period, such as entering the last high level, indicates that the hand has completely passed, there is no obstacle in front of the second group of infrared transceivers, and the generated second signal remains at a high level. In a specific implementation, the duration from the first falling edge to the last rising edge in the second signal period is used as the second signal width. If the second signal width reaches the first threshold, it can be determined as the hand passing through, otherwise it is determined as an interference signal. Because when the user controls through gestures, the same hand passes through the first group of infrared transceiver devices and the second group of infrared transceiver devices at substantially the same speed, the first signal width and the second signal width are judged by the same first threshold.
[0058] As an optional implementation, see Figure 2 , the method of the embodiment of the present invention further includes: based on the first signal being in the first state, starting a preset total signal period timing. The embodiment of the present invention can pre-set the total signal period so that the complete passage of the user's hand through the first group of infrared transceivers and the second group of infrared transceivers falls within the total signal period, and the total signal period timing starts when the user's hand passes through the first group of infrared transceivers, that is, when the first signal period timing starts, the total signal period timing starts. Reference Figure 2 The total signal period may be from the first signal period to the second signal period, or the end time of the total signal period may be later than the end time of the second signal period.
[0059] At least based on the first signal width and the second signal width reaching the first threshold respectively, a control instruction is generated according to the relative position of the first group of infrared transceivers and the second infrared transceiver, including: based on the first signal width and the second signal width reaching the first threshold respectively, and the second signal period is located within the total signal period, a control instruction is generated according to the relative position of the first group of infrared transceivers and the second infrared transceiver. The second signal period is located within the total signal period, so that the time when the hand passes through the two groups of infrared transceivers is limited by the total signal period, ensuring that the obstacles perceived by the two groups of infrared transceivers are caused by the user's gesture, rather than other interference factors. The first signal width and the second signal width reach the first threshold respectively, and the second signal period is located within the total signal period. The two conditions are simultaneously judged as the user's control gesture, which can improve accuracy and reduce false touches.
[0060] As an optional implementation, at least based on the first signal width and the second signal width reaching the first threshold, generating a control instruction according to the relative position of the first group of infrared transceivers and the second infrared transceivers, including: based on the first signal width and the second signal width reaching the first threshold, and the number of the first signal in the first state in the first signal period and the number of the second signal in the first state in the second signal period are less than the second threshold, generating a control instruction according to the relative position of the first group of infrared transceivers and the second infrared transceivers. The number of the first signal in the first state in the first signal period indicates the number of times the user's hand is reflected by the hand when passing through the first group of infrared transceivers. For example, if the infrared light emitted by the hand passes through the finger gap only once, it is reflected by the hand twice, and the number of the first signal in the first state in the first signal period is 2; if the infrared light emitted by the first group of infrared transceivers passes through the finger gap twice, it is reflected by the hand 3 times, and the number of the first signal in the first state in the first signal period is 3. Of course, it is also possible that the palm passes through the first group of infrared transceivers, and it is reflected by the hand once. The number of first signals in the first state in the first signal period is less than the second threshold, which can reduce the interference of oil smoke and the like. When there is oil smoke interference, the number of first signals in the first state in the first signal period is generally greater than the second threshold. The second threshold can be 3-6, for example.
[0061] Similarly, the number of times the second signal is in the first state during the second signal period indicates the number of times the user's hand is reflected by the hand when passing through the second set of infrared transceivers. For example, if the infrared light emitted by the hand passes through the finger gap only once, it is reflected by the hand twice, and the number of times the second signal is in the first state during the second signal period is 2; if the infrared light emitted by the second set of infrared transceivers passes through the finger gap twice, it is reflected by the hand three times, and the number of times the second signal is in the first state during the second signal period is 3. Of course, it is also possible that the palm passes through the second set of infrared transceivers, and the hand is reflected once. The number of times the second signal is in the first state during the second signal period is less than the second threshold value, which can reduce interference from oil smoke and the like. When there is oil smoke interference, the number of times the second signal is in the first state during the second signal period is generally greater than the second threshold value. By limiting the two conditions of signal width and the number of first states, the accuracy of gesture recognition can be improved and false touches can be reduced.
[0062] At least based on the first signal width and the second signal width reaching the first threshold respectively, generating a control instruction according to the relative position of the first group of infrared transceivers and the second infrared transceivers, including: based on the first signal width and the second signal width reaching the first threshold respectively, and the second signal period is within the total signal period, and the number of first signals in the first state in the first signal period and the number of second signals in the first state in the second signal period are respectively less than the second threshold, generating a control instruction according to the relative position of the first group of infrared transceivers and the second infrared transceivers. By limiting the three conditions of signal width, total signal period and number of first states, the accuracy of gesture recognition can be improved and false touches can be reduced.
[0063] As an optional implementation, at least based on the first signal width and the second signal width reaching the first threshold respectively, generating a control instruction according to the relative position of the first group of infrared transceivers and the second infrared transceivers, including: based on the first signal width and the second signal width reaching the first threshold respectively, and the duration of the first state of the first signal with the longest duration in the first signal period and the duration of the first state of the second signal with the longest duration in the second signal period are respectively greater than the third threshold, generating a control instruction according to the relative position of the first group of infrared transceivers and the second infrared transceivers. In the first signal period, there is a first state generated by hand reflecting infrared rays, for example, a low level, and there may also be other interference sources, such as a first state generated by reflecting infrared rays from a human head, oil smoke, etc. When the duration of the first state with the longest duration in the first signal period is greater than the third threshold, it can be considered that it is caused by the hand passing through the first group of infrared transceivers, otherwise it may be caused by interference sources. Similarly, in the second signal period, there is a first state generated by hand reflecting infrared rays, for example, a low level, and there may also be other interference sources, such as a first state generated by reflecting infrared rays from a human head, oil smoke, etc. When the longest duration of the first state in the second signal period is greater than the third threshold, it can be considered that the hand passes through the second set of infrared transceiver devices, otherwise it may be caused by interference. By limiting the signal width and the duration of a single first state, the accuracy of gesture recognition can be improved and false touches can be reduced.
[0064] As an optional implementation, at least based on the first signal width and the second signal width reaching the first threshold respectively, a control instruction is generated according to the relative position of the first group of infrared transceivers and the second infrared transceivers, including: based on the first signal width and the second signal width reaching the first threshold respectively, and the second signal period is within the total signal period, and the duration of the first state of the first signal with the longest duration in the first signal period and the duration of the first state of the second signal with the longest duration in the second signal period are respectively greater than the third threshold, and the control instruction is generated according to the relative position of the first group of infrared transceivers and the second infrared transceivers. By limiting the signal width, the total signal period and the duration of a single first state, the accuracy of gesture recognition can be improved and false touches can be reduced.
[0065] In some embodiments, the two conditions of the number of first states and the duration of a single first state may be selected and combined with other conditions to determine whether there is interference.
[0066] As an optional implementation, before starting the timing of the first signal time period based on the first signal being in the first state, it also includes: if the preset event interval countdown ends and the first signal is in the first state, starting the timing of the first signal time period, and the start time of the event interval countdown is the start time of the timing of the first signal time period in the process of generating the previous control instruction.
[0067] The two events are separated by a preset event interval to avoid misoperation caused by too short an interval between two user actions. For example, when a user waves his hand from left to right, a left-to-right event is generated. If the first signal received changes from a high level to a low level before the countdown of the event interval ends, the timing of the first signal period will not start, that is, a new gesture recognition will not start. If the first signal received changes from a high level to a low level after the countdown of the event interval ends, the timing of the first signal period will start, that is, a new gesture recognition will start.
[0068] In a specific implementation, it can be determined whether the event interval countdown has ended. If the event interval countdown has ended, it is determined whether the first signal is in the first state, otherwise the state change of the first signal is ignored. For example, if the event interval countdown has not ended, even if the first signal is converted from the second state to the first state, the timing of the first signal period will not be started, that is, the recognition of the new control instruction will not be started.
[0069] If the first signal is in the first state, the timing of the first signal period starts. When it is determined that the event interval countdown ends and it is further determined that the first signal is in the first state, the timing of the first signal period starts.
[0070] In some embodiments, the method of the embodiment of the present invention further includes: starting an event interval countdown based on the first signal being in the first state. When the first signal is in the first state, the event interval countdown is started at the same time as the timing of the first signal period is started, so that a certain interval is formed between the next control instruction and the current control instruction, thereby reducing erroneous operations.
[0071] See also Figure 3 The embodiment of the present invention provides a range hood control device, including a receiving module, a timing module and an instruction module, wherein the receiving module is used to receive a first signal, the first signal is generated by a first group of infrared transceiver devices, and the first signal includes an alternating first state and a second state; the timing module is used to start timing of a preset first signal period based on the first signal being in the first state; the receiving module is also used to receive a second signal, the second signal is generated by a second group of infrared transceiver devices, and the second signal includes an alternating first state and a second state; the timing module is also used to start timing of a preset second signal period based on the second signal being in the first state; the instruction module is used to generate a control instruction according to the relative positions of the first group of infrared transceiver devices and the second infrared transceiver devices based on at least the first signal width and the second signal width reaching a first threshold respectively, the first signal width being the duration from the start of the first signal period timing to the first signal entering the last second state within the first signal period, and the second signal width being the duration from the start of the second signal period timing to the second signal entering the last second state within the second signal period.
[0072] The range hood control device of the embodiment of the present invention can implement the methods of the above embodiments, and the description of the above method embodiments can be used to understand and explain the device of the embodiment of the present invention. For the purpose of brevity and saving space, it will not be repeated here.
[0073] According to an embodiment of the present invention, the present invention further provides a range hood and a readable storage medium.
[0074] An embodiment of the present invention provides a range hood, comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the processor implements any one of the above methods when executing the computer program.
[0075] See also Figure 4 , which is a schematic diagram of the structure of a range hood according to an embodiment of the present invention. Figure 4 As shown, the terminal 600 may include: at least one processor 601 , at least one network interface 604 , a user interface 603 , a memory 605 , and at least one communication bus 602 .
[0076] The communication bus 602 is used to realize the connection and communication between these components.
[0077] The user interface 603 may include a display screen (Display) and a camera (Camera), and the optional user interface 603 may also include a standard wired interface and a wireless interface.
[0078] The network interface 604 may optionally include a standard wired interface or a wireless interface (such as a WI-FI interface).
[0079] Among them, the processor 601 may include one or more processing cores. The processor 601 uses various interfaces and lines to connect various parts in the entire terminal 600, and executes various functions and processes data of the terminal 600 by running or executing instructions, programs, code sets or instruction sets stored in the memory 605, and calling data stored in the memory 605. Optionally, the processor 601 can be implemented in at least one hardware form of digital signal processing (Digital Signal Processing, DSP), field programmable gate array (Field-Programmable Gate Array, FPGA), and programmable logic array (Programmable Logic Array, PLA). The processor 601 can integrate one or a combination of a central processing unit (Central Processing Unit, CPU), a graphics processing unit (Graphics Processing Unit, GPU) and a modem. Among them, the CPU mainly processes the operating system, user interface and application programs; the GPU is responsible for rendering and drawing the content to be displayed on the display screen; the modem is used to process wireless communications. It can be understood that the above-mentioned modem may not be integrated into the processor 601, and it can be implemented separately through a chip.
[0080] Among them, the memory 605 may include a random access memory (Random Access Memory, RAM) and may also include a read-only memory (Read-Only Memory). Optionally, the memory 605 includes a non-transitory computer-readable storage medium. The memory 605 can be used to store instructions, programs, codes, code sets or instruction sets. The memory 605 may include a program storage area and a data storage area, wherein the program storage area may store instructions for implementing an operating system, instructions for at least one function (such as a touch function, a sound playback function, an image playback function, etc.), instructions for implementing the above-mentioned method embodiments, etc.; the data storage area may store data involved in the above-mentioned method embodiments, etc. The memory 605 may optionally be at least one storage device located away from the aforementioned processor 601. As Figure 4 As shown, the memory 605 as a computer storage medium may include an operating system, a network communication module, a user interface module, and an application program.
[0081] exist Figure 4In the illustrated range hood 600, the user interface 603 is mainly used to provide an input interface for the user and obtain data input by the user; and the processor 601 can be used to call the application stored in the memory 605 and specifically perform the operations of any of the above method embodiments.
[0082] The present invention also provides a computer-readable storage medium having a computer program stored thereon, which implements the steps of the above method when executed by a processor. The computer-readable storage medium may include, but is not limited to, any type of disk, including a floppy disk, an optical disk, a DVD, a CD-ROM, a micro drive, and a magneto-optical disk, a ROM, a RAM, an EPROM, an EEPROM, a DRAM, a VRAM, a flash memory device, a magnetic card or an optical card, a nanosystem (including a molecular memory IC), or any type of medium or device suitable for storing instructions and / or data.
[0083] An embodiment of the present invention also provides a computer program product, which includes a non-transitory computer-readable storage medium storing a computer program, and the computer program is operable to cause a computer to execute part or all of the steps of any method recorded in the above method embodiments.
[0084] Those skilled in the art can clearly understand that the technical solution of the present invention can be implemented with the help of software and / or hardware. "Unit" and "module" in this specification refer to software and / or hardware that can independently complete or cooperate with other components to complete specific functions, where the hardware can be, for example, a field programmable gate array (FPGA), an integrated circuit (IC), etc.
[0085] It should be noted that, for the above-mentioned method embodiments, for the sake of simplicity, they are all described as a series of action combinations, but those skilled in the art should know that the present invention is not limited by the described action sequence, because according to the present invention, certain steps can be performed in other sequences or simultaneously. Secondly, those skilled in the art should also know that the embodiments described in the specification are all preferred embodiments, and the actions and modules involved are not necessarily required by the present invention.
[0086] In the above embodiments, the description of each embodiment has its own emphasis. For parts that are not described in detail in a certain embodiment, reference can be made to the relevant descriptions of other embodiments.
[0087] In the several embodiments provided by the present invention, it should be understood that the disclosed devices can be implemented in other ways. For example, the device embodiments described above are only schematic, such as the division of units, which is only a logical function division. There may be other division methods in actual implementation, such as multiple units or components can be combined or integrated into another system, or some features can be ignored or not executed. Another point is that the mutual coupling or direct coupling or communication connection shown or discussed can be through some interfaces, and the indirect coupling or communication connection of devices or units can be electrical or other forms.
[0088] The units described as separate components may or may not be physically separated, and the components shown as units may or may not be physical units, that is, they may be located in one place or distributed on multiple network units. Some or all of the units may be selected according to actual needs to achieve the purpose of the solution of this embodiment.
[0089] In addition, each functional unit in each embodiment of the present invention may be integrated into one processing unit, or each unit may exist physically separately, or two or more units may be integrated into one unit. The above-mentioned integrated unit may be implemented in the form of hardware or in the form of software functional units.
[0090] If the integrated unit is implemented in the form of a software functional unit and sold or used as an independent product, it can be stored in a computer-readable memory. Based on this understanding, the technical solution of the present invention, in essence, or the part that contributes to the prior art, or all or part of the technical solution can be embodied in the form of a software product. The computer software product is stored in a memory, including several instructions for a computer device (which can be a personal computer, server or network device, etc.) to perform all or part of the steps of the methods of each embodiment of the present invention. The aforementioned memory includes: U disk, read-only memory (ROM), random access memory (RAM), mobile hard disk, magnetic disk or optical disk, etc., various media that can store program codes.
[0091] A person of ordinary skill in the art can understand that all or part of the steps in the various methods of the above embodiments can be completed by instructing related hardware through a program, and the program can be stored in a computer-readable memory, which can include: a flash drive, a read-only memory (ROM), a random access memory (RAM), a magnetic disk or an optical disk, etc.
[0092] The above is only an exemplary embodiment of the present invention and cannot be used to limit the scope of the present invention. That is, any equivalent changes and modifications made according to the teachings of the present invention are still within the scope of the present invention. After considering the specification and practicing the disclosure here, those skilled in the art will easily think of other embodiments of the present invention. The present invention is intended to cover any variation, use or adaptive change of the present invention, which follows the general principles of the present invention and includes common knowledge or customary technical means in the art that are not recorded in the present invention. The description and examples are only regarded as exemplary, and the scope and spirit of the present invention are defined by the claims.
Claims
1. A range hood control method, characterized in that: include: receiving a first signal, the first signal being generated by a first set of infrared transceiver devices, the first signal comprising alternating first and second states; Based on the first signal being in the first state, starting the timing of a preset first signal period; receiving a second signal, the second signal being generated by a second set of infrared transceiver devices, the second signal comprising alternating first and second states; Based on the second signal being in the first state, starting timing of a preset second signal period; At least based on the first signal width and the second signal width reaching the first threshold respectively, a control instruction is generated according to the relative positions of the first group of infrared transceiver devices and the second infrared transceiver devices, the first signal width is the duration from the start of the timing of the first signal period to the time when the first signal enters the last second state within the first signal period, and the second signal width is the duration from the start of the timing of the second signal period to the time when the second signal enters the last second state within the second signal period.
2. The method according to claim 1, characterized in that Also includes: Based on the first signal being in the first state, starting a preset total signal period timing; At least based on the first signal width and the second signal width reaching the first threshold respectively, generating a control instruction according to the relative position of the first group of infrared transceiver devices and the second infrared transceiver device, including: Based on the first signal width and the second signal width reaching the first threshold respectively, and the second signal period being within the total signal period, a control instruction is generated according to the relative positions of the first group of infrared transceiver devices and the second infrared transceiver device.
3. The method according to claim 2, characterized in that At least based on the first signal width and the second signal width reaching the first threshold respectively, generating a control instruction according to the relative position of the first group of infrared transceiver devices and the second infrared transceiver device, including: Based on the first signal width and the second signal width reaching the first threshold respectively, and the second signal time period is within the total signal time period, and the number of the first signals in the first state in the first signal time period and the number of the second signals in the first state in the second signal time period are respectively less than the second threshold, a control instruction is generated according to the relative positions of the first group of infrared transceiver devices and the second infrared transceiver device.
4. The method according to claim 2, characterized in that: At least based on the first signal width and the second signal width reaching the first threshold respectively, generating a control instruction according to the relative position of the first group of infrared transceiver devices and the second infrared transceiver device, including: Based on the first signal width and the second signal width reaching the first threshold respectively, and the second signal time period is within the total signal time period, and the duration of the first state of the first signal with the longest duration in the first signal time period and the duration of the first state of the second signal with the longest duration in the second signal time period are respectively greater than the third threshold, a control instruction is generated according to the relative position of the first group of infrared transceiver devices and the second infrared transceiver device.
5. The method according to claim 1, characterized in that Before starting the timing of the first signal period based on the first signal being in the first state, the method further includes: If the preset event interval countdown ends and the first signal is in the first state, the timing of the first signal period starts, and the start time of the event interval countdown is the timing start time of the first signal period in the process of generating the previous control instruction.
6. The method according to claim 1, characterized in that The first state is a low level, and the second state is a high level.
7. A range hood control device, characterized in that: include: A receiving module, configured to receive a first signal, wherein the first signal is generated by a first group of infrared transceiver devices, and the first signal includes an alternating first state and a second state; A timing module, configured to start timing of a preset first signal period based on the first signal being in a first state; The receiving module is further used to receive a second signal, the second signal is generated by a second group of infrared transceiver devices, and the second signal includes an alternating first state and a second state; The timing module is further used to start timing of a preset second signal period based on the second signal being in the first state; An instruction module is used to generate a control instruction according to the relative positions of the first group of infrared transceiver devices and the second infrared transceiver device based on at least a first signal width and a second signal width reaching a first threshold respectively, wherein the first signal width is the duration from the start of the timing of the first signal period to the time when the first signal enters the last second state within the first signal period, and the second signal width is the duration from the start of the timing of the second signal period to the time when the second signal enters the last second state within the second signal period.
8. A range hood, comprising a memory and a processor, wherein the memory stores a computer program that can be run on the processor, wherein: When the processor executes the computer program, the steps of the method according to any one of claims 1 to 6 are implemented.
9. A computer-readable storage medium having a computer program stored thereon, characterized in that: When the computer program is executed by a processor, the steps of the method according to any one of claims 1 to 6 are implemented.
Citation Information
Patent Citations
Non-contact control method and control system for extractor hood based on infrared rays
CN111752369A
Non-contact-type extractor hood self-adaptive controlling method
CN111981537A
Gesture control method and device of control panel, control panel and range hood
CN116841388A