Range hood control method, range hood, and computer-readable storage medium
By controlling the motor by detecting the zero-crossing point of the voltage and current of the range hood, the problem of unstable relay control is solved, and the safety and control accuracy of the range hood are improved.
Patent Information
- Application Number
- CN202011056702.3
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2020-09-29
- Publication Date
- 2025-10-17
- Estimated Expiration
- 2040-09-29
AI Technical Summary
The load control of existing range hoods mainly relies on relays, which poses safety and life risks, especially in high temperature, high humidity, and heavy oil environments where the control is unstable.
By acquiring the motor control commands from the range hood, the system detects whether the motor's operating voltage and current have reached the zero-crossing point, and performs control measures when the zero-crossing point is reached, including motor start-up, stopping, and speed adjustment.
It improves the operational safety and control accuracy of the smoke machine, and enhances its stability and reliability in harsh environments.
Smart Images

Figure CN114322009B_ABST
Abstract
Description
TECHNICAL FIELD
[0001] The present application relates to the technical field of range hood, and particularly relates to a range hood control method, a range hood and a computer readable storage medium. BACKGROUND
[0002] With the development of the times, household appliances in life are also more and more, which greatly improves the quality of people's life. At present, in the load control of the range hood, most of them are controlled by the relay to the alternating current load, and the running and stopping functions of the alternating current load in the range hood are controlled by the on-off of the relay. However, since the relay belongs to mechanical contact, there is a limit to the electrical life, and the relay belongs to open-loop control technology, which has hidden dangers of use safety and service life. Moreover, the range hood is used in a harsh environment of high temperature, high humidity and heavy oil, which further leads to unstable control of the range hood and safety problems. Therefore, how to intelligently control the range hood and improve the safety and service life of the range hood operation is a problem to be solved at present. SUMMARY
[0003] The main purpose of the present application is to provide a range hood control method, a range hood and a computer readable storage medium, which aims to improve the safety and control accuracy of the range hood operation.
[0004] In a first aspect, the present application provides a range hood control method, comprising:
[0005] obtaining a motor control instruction of the range hood, wherein the motor control instruction comprises any one of a motor start instruction, a motor stop instruction and a motor speed adjustment instruction;
[0006] detecting whether the running voltage of the motor of the range hood reaches a voltage zero-crossing point and whether the running current of the motor reaches a current zero-crossing point;
[0007] when it is detected that the running voltage of the motor reaches the voltage zero-crossing point and the running current of the motor reaches the current zero-crossing point, controlling the motor according to the motor control instruction.
[0008] In a second aspect, the present application further provides a range hood, which comprises a processor, a memory and a computer program stored in the memory and executable by the processor, wherein when the computer program is executed by the processor, the steps of the range hood control method described above are realized.
[0009] In a third aspect, the present application further provides a computer readable storage medium, which stores a computer program, wherein when the computer program is executed by a processor, the steps of the range hood control method described above are realized.
[0010] The application provides a range hood control method, a range hood and a computer readable storage medium. The application obtains a motor control instruction of the range hood, wherein the motor control instruction comprises any one of a motor start instruction, a motor stop instruction and a motor rotating speed adjustment instruction; then, whether the running voltage of the motor of the range hood reaches a voltage zero-crossing point and whether the running current of the motor reaches a current zero-crossing point are detected; when it is detected that the running voltage of the motor reaches the voltage zero-crossing point and the running current of the motor reaches the current zero-crossing point, the motor is controlled according to the motor control instruction. When the motor control instruction of the range hood is obtained, the motor is controlled according to the motor control instruction when it is detected that the running voltage of the motor reaches the voltage zero-crossing point and the running current of the motor reaches the current zero-crossing point, so that the safety of the operation of the range hood and the accuracy of the control are greatly improved. BRIEF DESCRIPTION OF DRAWINGS
[0011] In order to more clearly illustrate the technical solutions of the embodiments of the application, the drawings needed to be used in the embodiment description will be briefly introduced. Obviously, the drawings in the following description are some embodiments of the application, and other drawings can be obtained by those skilled in the art without creative effort on the basis of these drawings.
[0012] Figure 1 A step flowchart of a range hood control method provided by the embodiments of the application is shown in the figure.
[0013] Figure 2 A sub-step flowchart of the range hood control method in the figure is shown in the figure. Figure 1
[0014] Figure 3 Another sub-step flowchart of the range hood control method in the figure is shown in the figure. Figure 1
[0015] A circuit schematic diagram of a motor running current and motor running voltage detection circuit provided by the embodiments of the application is shown in the figure. Figure 4
[0016] A structural schematic block diagram of a range hood provided by the embodiments of the application is shown in the figure. Figure 5 The implementation, functional features and advantages of the application will be further described with reference to the embodiments and the drawings.
[0017] DETAILED DESCRIPTION
[0018] With reference to the drawings of the embodiments of the present application, the technical solutions in the embodiments of the present application will be clearly and completely described. Obviously, the described embodiments are some of the embodiments of the present application, but not all of the embodiments of the present application. Based on the embodiments of the present application, all other embodiments obtained by those of ordinary skill in the art without creative efforts should fall within the scope of the present application.
[0019] The flowcharts shown in the drawings are only illustrative, and do not necessarily include all contents and operations / steps, nor are they necessarily executed in the described order. For example, some operations / steps can be further decomposed, combined or partially merged, so that the actual execution order can be changed according to actual situations.
[0020] The embodiments of the present application provide a range hood control method, a range hood and a computer readable storage medium. The range hood control method can be applied to a range hood, which can be a down-draft range hood, a Chinese-style range hood, a European-style range hood, a side-draft range hood, a water curtain type new range hood, etc.
[0021] Some embodiments of the present application will be described in detail below with reference to the accompanying drawings. In the case of no conflict, the embodiments described below and the features in the embodiments can be combined with each other.
[0022] Please refer to Figure 1 , Figure 1 A step flowchart of a range hood control method provided by the embodiments of the present application is shown.
[0023] As shown in Figure 1 , the range hood control method includes steps S101 to S103.
[0024] In step S101, a motor control instruction of the range hood is acquired, wherein the motor control instruction includes any one of a motor start instruction, a motor stop instruction and a motor speed adjustment instruction.
[0025] The range hood includes a motor, for example, an alternating current motor, and the motor control instruction includes the motor start instruction, the motor stop instruction and the motor speed adjustment instruction. The motor start instruction is used to control the start of the motor of the range hood, the motor stop instruction is used to control the stop of the motor of the range hood, and the motor speed adjustment instruction is used to control the rotation speed of the motor of the range hood.
[0026] In one embodiment, the range hood includes control buttons, including a start button, a stop button, a range hood gear increase button, and a range hood gear decrease button. A user presses the start button to start the range hood, presses the stop button to stop the range hood, increases the range hood motor speed by pressing the range hood gear increase button, and decreases the range hood motor speed by pressing the range hood gear decrease button. User operations on the control buttons are obtained to obtain motor control instructions for the range hood. The control buttons can be physical buttons or touch buttons. The location of the control buttons can be determined based on actual circumstances and is not specifically limited in this application. The control buttons can be used to quickly obtain user control instructions.
[0027] In one embodiment, if Figure 2 As shown, step S101 includes sub-steps S1011 to S1013.
[0028] Sub-step S1011: collecting an image within the oil fume suction range of the range hood through the camera, and extracting the oil fume movement area in the image.
[0029] Among them, the range hood includes a camera, which is used to collect images within the range of the range hood's oil smoke suction range. The camera can be selected according to actual conditions, and this application does not make specific restrictions on this. For example, the camera can be any one of a monocular camera, a binocular camera or a wide-angle camera. The installation position of the camera can be determined according to actual conditions, and this application does not make specific restrictions on this. For example, the installation position of the camera is at a corner of the range hood.
[0030] In one embodiment, the method for extracting the oil smoke motion region in the image can be: performing a frame difference operation on the previous and next frames of the image to obtain a dynamic region image after the frame difference; performing an opening operation on the dynamic region image to remove noise in the dynamic region image; and using a wavelet transform algorithm, detecting and marking the edges of the highlighted areas in the frame difference image after the noise is removed, and determining the marked areas as the oil smoke motion region. By processing the image within the oil smoke absorption range, the oil smoke motion region can be accurately determined.
[0031] In one embodiment, a frame difference calculation is performed on the preceding and following frames of an image to obtain a dynamic region image after the frame difference. The following method may be used: grayscale processing is performed on the image to obtain grayscale images, and the grayscale images are sorted by timestamp to obtain a grayscale image queue; and the grayscale image with the later timestamp in the grayscale image queue is subtracted from the grayscale image with the earlier timestamp to obtain a dynamic region image with highlighted dynamic regions. The static regions in the preceding and following frames remain unchanged, while the dynamic regions change. Therefore, after the frame difference, the static regions appear black, while the dynamic regions appear highlighted with blurred edges.
[0032] In an embodiment, the open operation on the dynamic region image can be performed in such a manner that the dynamic region image is eroded to eliminate the noise points and small spikes in the dynamic region image and disconnect narrow connections, and then the dynamic region image after the erosion is dilated to restore the features on the original dynamic region image. The open operation can eliminate the image noise, separate the objects from the fine points, and smooth the boundaries of the larger objects, while ensuring that the area of the highlight region in the original dynamic region image is substantially unchanged, thereby ensuring the accuracy of the image processing.
[0033] In an embodiment, according to the wavelet transform algorithm, the edges of the highlight region of the frame difference image after the noise points are removed are detected and marked, and the marked region is determined as the cooking fume movement region in such a manner that a 3*3 filter is set according to the features of the edges, the filter is used to traverse the dynamic region image, the gray values of each position center pixel point and eight pixel points in the field are calculated, the gray values are multiplied by the corresponding values in the filter, and the sum is taken as the edge detection value of the center pixel point; if the edge detection value is greatly different from the gray values of more than half of the pixel points in the field, the pixel point is determined as an edge point, and the pixel point is marked as an edge point; the dynamic region image is traversed, all the edges of the highlight region in the dynamic region image are marked, a dynamic region image with the highlight region marked is obtained, and the cooking fume movement region is determined according to the dynamic region image with the highlight region marked.
[0034] In an embodiment, the cooking fume movement region is determined according to the dynamic region image with the highlight region marked in such a manner that the gray value and the smoothness of each highlight region of the dynamic region image are determined, it is determined whether the gray value of the highlight region is less than a preset gray threshold value and the smoothness of the highlight region is less than a preset smoothness, when it is determined that the gray value of the highlight region is less than the preset gray threshold value and the smoothness of the highlight region is less than the preset smoothness, the highlight region is determined as a cooking fume region, all the highlight regions that are the cooking fume regions are counted, and the cooking fume movement region is obtained. The smoothness is the variance of the gray value, and the preset gray threshold value and the preset smoothness can be determined according to the actual situation, which is not limited in the present application.
[0035] The sub-step S1012 comprises determining the cooking fume concentration according to the cooking fume movement region, and determining the target cooking fume suction gear of the range hood according to the cooking fume concentration.
[0036] According to the oil fume movement region, the area of the oil fume movement region is determined, a mapping relationship table between the area of the oil fume movement region and the oil fume concentration is obtained, and the oil fume concentration is determined according to the area of the oil fume movement region and the mapping relationship table. The mapping relationship table between the area of the oil fume movement region and the oil fume concentration is a mapping relationship table established in advance, and the establishment of the mapping relationship table can be performed according to actual conditions, which is not limited in the present application.
[0037] In an embodiment, the specific manner of determining the area of the oil fume movement region according to the oil fume movement region can be: obtaining the number of pixel points of the oil fume movement region in the image, and determining the area of the oil fume movement region according to the number of pixel points.
[0038] In an embodiment, a mapping relationship table between the preset oil fume concentration and the oil fume extraction gear is obtained, and the target oil fume extraction gear is determined according to the oil fume concentration and the mapping relationship table. The mapping relationship table is a mapping relationship table established in advance according to the oil fume concentration and the target oil fume extraction gear, and the establishment of the mapping relationship table can be performed according to actual conditions, which is not limited in the present application.
[0039] For example, the oil fume extraction gears include oil fume extraction gear 1, oil fume extraction gear 2 and oil fume extraction gear 3, and the larger the oil fume extraction gear is, the faster the motor speed is. When it is determined that the current oil fume concentration is 20 mg / m 3 , the current oil fume concentration is 20 mg / m 3 , the mapping relationship table between the preset oil fume concentration and the target oil fume extraction gear is queried, and the target oil fume extraction gear is obtained as oil fume extraction gear 2.
[0040] In an embodiment, a mapping relationship table between the preset oil fume movement area and the oil fume extraction gear is obtained, and the target oil fume extraction gear is determined according to the oil fume movement area and the mapping relationship table. The mapping relationship table is a mapping relationship table established in advance according to the oil fume movement area and the oil fume extraction gear, and the establishment of the mapping relationship table can be performed according to actual conditions, which is not limited in the present application.
[0041] Sub-step S1013: generating the motor control instruction of the range hood according to the target oil fume extraction gear.
[0042] After the target oil fume extraction gear is determined, the motor control instruction of the range hood is generated according to the target oil fume extraction gear. For example, the oil fume extraction gears include oil fume extraction gear 1, oil fume extraction gear 2 and oil fume extraction gear 3, and the larger the oil fume extraction gear is, the faster the motor speed is, and the better the oil fume extraction effect is. That is, the motor speed of oil fume extraction gear 3 is the fastest, the motor speed of oil fume extraction gear 2 is the second fastest, and the motor speed of oil fume extraction gear 1 is the slowest. The motor control instruction can be quickly generated according to the target oil fume extraction gear, and the control efficiency of the range hood is improved.
[0043] In an embodiment, a current oil fume suction level is acquired, it is determined whether the target oil fume suction level is the same as the current oil fume suction level, if the target oil fume suction level is the same as the current oil fume suction level, no motor control instruction is generated, and if the target oil fume suction level is not the same as the current oil fume suction level, a motor control instruction is generated.
[0044] In an embodiment, as shown in FIG. 1, step S101 includes sub-step S1014 to sub-step S1016. Figure 3
[0045] In sub-step S1014, the camera is used to capture an image in a preset range of the range hood, and a gesture action in the image is recognized.
[0046] The skin color image region is segmented from the image according to a preset skin color color space; the skin color image region is binarized, and a plurality of connected regions in the skin color image region after the binarization are determined; the plurality of connected regions are screened to obtain a plurality of candidate connected regions, and an aspect ratio of a circumscribed rectangle of each candidate connected region is determined; a target connected region is determined according to a preset rectangular aspect ratio threshold and the aspect ratio of the circumscribed rectangle of each candidate connected region, and a gesture action in the target connected region is extracted.
[0047] In an embodiment, the image is smoothed; and the skin color image region is segmented from the image after the smoothing according to a preset skin color color space. Specifically, the captured image is subjected to low-pass filtering to remove sawtooth edges in the gesture action, so that the obtained image is smoother. Of course, other processing methods can also be used, such as balanced field method, median filtering method, Gaussian smoothing method, and convolution filtering method.
[0048] Specifically, the skin color image region is segmented from the image by judging whether a pixel color in the image is located in a preset skin color color space, and screening out a region in which the pixel color is located in the preset skin color color space to obtain the skin color image region. The preset skin color color space is obtained by pre-acquiring a large number of skin color samples, and according to the distribution of the skin color samples in the RGB space and the YCbCr space.
[0049] Specifically, the skin color image region is binarized, and a plurality of connected regions in the skin color image region after the binarization are determined by setting a gray value of a pixel point on the skin color image region to 0 or 255, wherein all points with a gray value greater than or equal to a threshold value are skin color image regions, and the gray value is represented by 255; points with a gray value less than the threshold value are background regions or other object regions, and the gray value is represented by 0. Then, a plurality of connected regions are obtained according to the skin color image after the binarization.
[0050] The specific manner of screening the plurality of connected regions to obtain a plurality of candidate connected regions and determining the aspect ratio of the circumscribed rectangle of each candidate connected region is: according to the connected region discrimination algorithm, each connected region in the plurality of connected regions is scanned in order from left to right and from top to bottom, pixel by pixel, if a pixel value of a certain pixel point is 0, then the pixel values of the four points of the right upper, the upper, the left upper and the left front of the pixel point are detected in turn, then each pixel is labeled according to the connected region discrimination algorithm, and then the total sum of the pixels of each labeled connected region is counted, the connected regions whose total sum of pixels is greater than a preset threshold are screened out, a plurality of candidate connected regions are obtained, and the aspect ratio of the circumscribed rectangle of each candidate connected region is determined. Wherein, the preset threshold is set according to the pixel area of the user gesture action.
[0051] According to the preset rectangle aspect ratio threshold and the aspect ratio of the circumscribed rectangle of each candidate connected region, the target connected region is determined, and the specific manner of extracting the gesture action in the target connected region is: comparing the aspect ratio of the circumscribed rectangle of each candidate connected region with the preset rectangle aspect ratio threshold, if the aspect ratio of the circumscribed rectangle of the candidate connected region is the same as the preset rectangle aspect ratio threshold, then the candidate connected region is the target connected region. The points in the target connected region whose gray scale is greater than or equal to the threshold value are extracted to obtain the gesture action of the user. Wherein, the preset rectangle aspect ratio threshold is adjusted according to the length and width of the user gesture, for example, the length of a certain user's palm is 0.2 meters and the width is 0.15 meters, then the preset rectangle aspect ratio threshold can be set to 4:3.
[0052] In an embodiment, the specific manner of recognizing the gesture action in the image can also be: inputting the image into a pre-trained gesture recognition model to recognize the gesture action, thereby obtaining the gesture action. Wherein, the preset gesture recognition model is a pre-trained neural network model, that is, sample gesture action images are obtained, the sample gesture images are labeled according to the class identifier corresponding to the gesture class, to construct sample data; based on the sample data, the neural network model is iteratively trained until the neural network model converges, thereby obtaining the gesture recognition model. It can be understood that the above neural network model includes a convolutional neural network model, a recurrent neural network model and a recurrent convolutional neural network model, of course, other network models can also be used to train the gesture recognition model, which is not limited in the present application.
[0053] Wherein, the sample gesture action image is an image collected from a plurality of gesture actions. The sample gesture action image can be a gesture action image collected from different angles. A plurality of different gesture actions are selected, and the gesture actions are collected from different angles, and the collected images are used as sample gesture action images, which constitute a sample gesture action image set for training the gesture recognition model.
[0054] Sub-step S1015, determining a target range hood range of the range hood according to the gesture action.
[0055] It is judged whether the gesture action of the user extracted from the image is located in the preset gesture action library. If the gesture action is located in the preset gesture action library, it is determined that the gesture action is a valid gesture action. If the extracted gesture action is a valid gesture action, a mapping relationship table between a pre-stored gesture action and a target range hood range is obtained. According to the gesture action and the mapping relationship table, the target range hood range is determined. The preset gesture action library is a set of gesture actions set by the user in advance. The user pre-designs a gesture action corresponding to the motor range hood range of the range hood that needs to be adjusted, and stores the gesture action in the preset gesture action library. The mapping relationship table is a mapping relationship table established in advance according to the gesture action and the target range hood range. The establishment of the mapping relationship table can be established according to the actual situation, which is not limited in the present application.
[0056] Sub-step S1016, generating a motor control instruction of the range hood according to the target range hood range.
[0057] After determining the target range hood range, a motor control instruction of the range hood is generated according to the target range hood range. For example, the range hood range includes a first range hood range, a second range hood range, and a third range hood range. The larger the range hood range, the faster the motor speed, that is, the motor speed of the third range hood range is the fastest, the motor speed of the second range hood range is the second fastest, and the motor speed of the first range hood range is the slowest. The motor control instruction can be quickly generated according to the target range hood range, and the control efficiency of the range hood is improved.
[0058] In an embodiment, the current range hood range is obtained, and it is determined whether the target range hood range is the same as the current range hood range. If the target range hood range is the same as the current range hood range, the motor control instruction is not generated. If the target range hood range is not the same as the current range hood range, the motor control instruction is generated.
[0059] In an embodiment, when the stove is detected to be started, the motor control instruction of the range hood is generated. The stove can be an electromagnetic stove or the like. The range hood is in communication connection with the stove. When the stove is started, the starting state information sent by the stove is received, so that the range hood knows that the stove is started. The communication connection between the range hood and the stove can be determined according to the actual situation, which is not limited in the present application. For example, the communication connection can be a Bluetooth connection and a wireless local area network connection.
[0060] In an embodiment, the way of detecting the starting of the cooking appliance can be specifically that the hood comprises a temperature sensor, and the temperature around the hood is collected through the temperature sensor, and when it is determined that the temperature is obviously increased, it is determined that the cooking appliance is started.
[0061] In step S102, whether the running voltage of the motor of the hood reaches the voltage zero-crossing point and whether the running current of the motor reaches the current zero-crossing point are detected.
[0062] In the embodiment, the hood comprises a motor and a controller, for example, the motor is an alternating current motor, and the controller is a micro control unit (MCU), a programmable logic gate array (PFGA), a programmable logic controller (PLC), a central processing unit (CPU) or other devices with signal processing and signal control capabilities. When the motor is running, the current of the motor is collected in real time to obtain the running current, and the plurality of running currents are sent and recorded in the controller for the controller to determine whether the running current reaches the current zero-crossing point.
[0063] In an embodiment, as shown in Figure 4 The hood comprises a voltage sampling circuit 10, a current sampling circuit 20, a silicon controlled rectifier control circuit 30, a controller 40 and a motor 50. The voltage sampling circuit 10 is used to collect the voltage of the live line L and send the collected voltage to the controller 40, the current sampling circuit 20 collects the running current of the motor 50 of the live line L and sends the collected current to the controller 40, and the silicon controlled rectifier control circuit 30 is used to receive the control instruction of the controller 40 and control the motor 50 according to the control instruction.
[0064] In an embodiment, the voltage sampling circuit 10 comprises a voltage transformer T1, resistors R1, R2, R3, R4, capacitors C1 and C2, the voltage on the live line L can be coupled to the controller through the voltage transformer T1, and the resistors R1, R2, R3, R4, capacitors C1 and C2 are used to protect the voltage transformer T1. The current sampling circuit 20 comprises a current transformer T2 and a resistor R5, the running current of the motor 50 of the live line L is collected through the current sampling circuit 20, and the collected current is sent to the controller 40. The silicon controlled rectifier control circuit 30 comprises a silicon controlled rectifier SCR1, resistors R7, R8, a capacitor C3, a controller U2, a resistor R6, a transistor Q1, resistors R9, R10 and R11, the silicon controlled rectifier control circuit 30 receives the control instruction of the controller 40 and controls the motor 50 to run according to the control instruction.
[0065] In an embodiment, the running voltage of the motor is collected through the voltage sampling circuit and the running current of the motor is collected through the current sampling circuit, the running voltage and the running current of the motor are obtained, and whether the running voltage of the motor reaches the voltage zero-crossing point and whether the running current of the motor reaches the current zero-crossing point are determined.
[0066] Step S103, when detecting that the operating voltage of the motor reaches the voltage zero-crossing point and the operating current of the motor reaches the current zero-crossing point, controlling the motor according to the motor control instruction.
[0067] When detecting that the operating voltage of the motor reaches the voltage zero-crossing point and the operating current of the motor reaches the current zero-crossing point, controlling the motor according to the motor control instruction. The safety of the operation of the smoke machine and the accuracy of the control are greatly improved.
[0068] For example, the motor control instruction is a motor start instruction, when detecting that the operating voltage of the motor reaches the voltage zero-crossing point and the operating current of the motor reaches the current zero-crossing point, controlling the motor of the smoke machine to start operating according to the motor start instruction, improving the stability of the control.
[0069] For example, the motor control instruction is a motor stop instruction, when detecting that the operating voltage of the motor reaches the voltage zero-crossing point and the operating current of the motor reaches the current zero-crossing point, controlling the motor of the smoke machine to stop operating according to the motor stop instruction, improving the stability of the control.
[0070] For example, the motor control instruction is a motor speed adjustment instruction, when detecting that the operating voltage of the motor reaches the voltage zero-crossing point and the operating current of the motor reaches the current zero-crossing point, adjusting the motor speed according to the motor speed adjustment instruction, improving the smoking effect.
[0071] The smoke machine control method provided by the above embodiment, by obtaining a motor control instruction of a smoke machine, wherein the motor control instruction includes any one of a motor start instruction, a motor stop instruction and a motor speed adjustment instruction; then detecting whether the operating voltage of the motor of the smoke machine reaches the voltage zero-crossing point and whether the operating current of the motor reaches the current zero-crossing point; when detecting that the operating voltage of the motor reaches the voltage zero-crossing point and the operating current of the motor reaches the current zero-crossing point, controlling the motor according to the motor control instruction. The scheme when obtaining the motor control instruction of the smoke machine, when detecting that the operating voltage of the motor reaches the voltage zero-crossing point and the operating current of the motor reaches the current zero-crossing point, controlling the motor according to the motor control instruction, greatly improving the safety of the operation of the smoke machine and the accuracy of the control.
[0072] Please refer to Figure 5 , Figure 5 A structural schematic block diagram of a smoke machine provided by the embodiment of the present application.
[0073] As Figure 5 shown, the smoke machine 200 includes a processor 202 and a memory 203 connected through a system bus 201, wherein the memory 203 can include a non-volatile storage medium and an internal memory.
[0074] The non-volatile storage medium can store a computer program. The computer program includes program instructions which, when executed, can cause the processor to perform any one of the range hood control methods.
[0075] The processor 202 is configured to provide computing and control capabilities to support the operation of the entire range hood.
[0076] The internal memory provides an environment for the execution of the computer program in the non-volatile storage medium, which, when executed by the processor, can cause the processor to perform any one of the range hood control methods.
[0077] Those skilled in the art can understand that, Figure 5 The structure shown in the figure is only a block diagram of part of the structure related to the scheme of the present application, and does not constitute a limitation on the range hood to which the scheme of the present application is applied. A specific range hood can include more or fewer components than those shown in the figure, or combine certain components, or have a different arrangement of components.
[0078] It should be understood that the bus 201 is, for example, an I2C (Inter-integrated Circuit) bus, the memory 203 can be a Flash chip, a Read-Only Memory (ROM) disk, an optical disk, a U disk, or a mobile hard disk, etc., and the processor 202 can be a Central Processing Unit (CPU). The processor can also be other general-purpose processors, Digital Signal Processors (DSPs), Application Specific Integrated Circuits (ASICs), Field-Programmable Gate Arrays (FPGAs) or other programmable logic devices, discrete gates or transistor logic devices, discrete hardware components, etc. Among them, the general-purpose processor can be a microprocessor or the processor can also be any conventional processor, etc.
[0079] In one embodiment, the processor is configured to execute a computer program stored in the memory to implement the following steps:
[0080] Obtaining a motor control instruction of the range hood, wherein the motor control instruction includes any one of a motor start instruction, a motor stop instruction, and a motor speed adjustment instruction;
[0081] Detecting whether the operating voltage of the motor of the range hood reaches a voltage zero-crossing point and whether the operating current of the motor reaches a current zero-crossing point;
[0082] When it is detected that the operating voltage of the motor reaches a voltage zero-crossing point and the operating current of the motor reaches a current zero-crossing point, the motor is controlled according to the motor control instruction.
[0083] In one embodiment, the processor, when implementing the extractor hood, comprises a camera; and when acquiring the motor control instruction of the extractor hood, is configured to:
[0084] capture an image in an oil fume suction range of the extractor hood through the camera, and extract an oil fume motion region in the image;
[0085] determine an oil fume concentration according to the oil fume motion region, and determine a target oil fume suction gear of the extractor hood according to the oil fume concentration;
[0086] generate the motor control instruction of the extractor hood according to the target oil fume suction gear.
[0087] In one embodiment, the processor, when implementing the extraction of the oil fume motion region in the image, is configured to:
[0088] perform frame difference operation on front and back frame images of the image to obtain a dynamic region image after frame difference;
[0089] perform open operation on the dynamic region image to remove noise points in the dynamic region image;
[0090] detect edges of a highlighted region of the frame difference image after noise point removal according to a wavelet transform algorithm and mark the edges, and determine the marked region as the oil fume motion region.
[0091] In one embodiment, the processor, when implementing the determination of the target oil fume suction gear of the extractor hood according to the oil fume concentration, is configured to:
[0092] acquire a mapping relationship table between a preset oil fume concentration and a target oil fume suction gear;
[0093] determine the target oil fume suction gear according to the oil fume concentration and the mapping relationship table.
[0094] In one embodiment, the processor, when implementing the extractor hood, comprises a camera; and when acquiring the motor control instruction of the extractor hood, is configured to:
[0095] capture an image in a preset range of the extractor hood through the camera, and identify a gesture action in the image;
[0096] determine a target oil fume suction gear of the extractor hood according to the gesture action;
[0097] generate the motor control instruction of the extractor hood according to the target oil fume suction gear.
[0098] In one embodiment, the processor, when implementing the identifying the gesture action in the image, is configured to implement:
[0099] segmenting a skin color image region from the image according to a preset skin color color space;
[0100] binarizing the skin color image region, and determining a plurality of connected regions in the skin color image region after the binarization;
[0101] screening the plurality of connected regions to obtain a plurality of candidate connected regions, and determining an aspect ratio of a circumscribed rectangle of each of the candidate connected regions;
[0102] determining a target connected region according to a preset rectangle aspect ratio threshold and the aspect ratio of the circumscribed rectangle of each of the candidate connected regions, and extracting a gesture action in the target connected region.
[0103] In one embodiment, the processor, when implementing the segmenting a skin color image region from the image according to a preset skin color color space, is configured to implement:
[0104] smoothing the image;
[0105] segmenting a skin color image region from the image after the smoothing according to a preset skin color color space.
[0106] In one embodiment, the processor, when implementing the obtaining the motor control instruction of the range hood, is configured to implement:
[0107] generating the motor control instruction of the range hood when detecting that the cooktop is started.
[0108] It should be noted that, for the convenience and brevity of description, the above description of the specific working process of the range hood can refer to the corresponding process in the foregoing embodiment of the range hood control method, and will not be described herein.
[0109] The embodiments of the present application also provide a computer readable storage medium, the computer readable storage medium stores a computer program, the computer program includes program instructions, and the method implemented by the program instructions when executed can refer to each embodiment of the range hood control method of the present application.
[0110] The computer readable storage medium can be an internal storage unit of the range hood, such as a hard disk or a memory of the range hood. The computer readable storage medium can also be an external storage device of the range hood, such as a plug-in hard disk, a smart media card (SMC), a secure digital (SD) card, a flash card, and the like.
[0111] It should be understood that the terms used herein are merely for the purpose of describing particular embodiments and are not intended to limit the present application. As used in the specification and the appended claims, the singular forms "a," "an" and "the" are intended to include plural forms as well, unless the context clearly indicates otherwise.
[0112] It should also be understood that the term "and / or" as used herein refers to any combination of associated terms, as well as all possible combinations, and includes these combinations. It should be noted that the terms "comprise", "comprising", or any other variant thereof are intended to encompass non-exclusive inclusion, so that processes, methods, articles or systems including a series of elements include not only those elements, but also other elements not explicitly listed, or other elements inherent to such processes, methods, articles or systems. Without more limitations, the element defined by the phrase "comprising a" does not exclude the presence of additional identical elements in the process, method, article or system including the element.
[0113] The above-mentioned sequence numbers of the embodiments of the present application are only for description, and do not represent the advantages or disadvantages of the embodiments. The above description is merely a specific implementation of the present application, but the protection scope of the present application is not limited thereto. Any person skilled in the art can easily think of various equivalent modifications or replacements within the technical scope disclosed by the present application, and these modifications or replacements should be included in the protection scope of the present application. Therefore, the protection scope of the present application should be subject to the protection scope of the claims.
Claims
1. A range hood control method, characterized in that: include: Obtaining a motor control instruction for the range hood, wherein the motor control instruction includes any one of a motor start instruction, a motor stop instruction, and a motor speed adjustment instruction, and the motor control instruction is triggered by any one of oil smoke concentration, a user gesture, and stove startup; Collecting the operating voltage of the motor through a voltage sampling circuit and collecting the operating current of the motor through a current sampling circuit, and determining whether the operating voltage of the motor reaches a voltage zero-crossing point and whether the operating current of the motor reaches a current zero-crossing point; When it is detected that the operating voltage of the motor reaches a voltage zero-crossing point and the operating current of the motor reaches a current zero-crossing point, the motor is controlled according to the motor control instruction.
2. The range hood control method according to claim 1, wherein: The range hood includes a camera; and obtaining a motor control instruction for the range hood includes: The camera collects an image within the oil smoke suction range of the range hood, and extracts the oil smoke movement area in the image; Determining the oil fume concentration according to the oil fume movement area, and determining the target oil fume suction gear of the range hood according to the oil fume concentration; A motor control instruction for the range hood is generated according to the target range fume extraction level.
3. The range hood control method according to claim 2, wherein: The extracting of the oil smoke motion area in the image includes: Performing a frame difference operation on the preceding and following frame images of the image to obtain a dynamic area image after the frame difference; performing an opening operation on the dynamic region image to remove noise in the dynamic region image; According to the wavelet transform algorithm, the edges of the highlight areas of the frame difference image after denoising are detected and marked, and the marked areas are determined as the oil smoke movement areas.
4. The range hood control method according to claim 2, wherein: The step of determining a target oil fume extraction level of the range hood according to the oil fume concentration includes: Obtaining a mapping relationship table between preset oil fume concentrations and target oil fume extraction gears; The target oil fume extraction gear is determined according to the oil fume concentration and the mapping relationship table.
5. The range hood control method according to claim 1, wherein: The range hood includes a camera; and obtaining a motor control instruction for the range hood includes: Capturing an image within a preset range of the range hood through the camera and identifying gestures in the image; Determining a target range hood fume extraction level according to the gesture; A motor control instruction for the range hood is generated according to the target range fume extraction level.
6. The range hood control method according to claim 5, wherein: The identifying the gesture action in the image includes: Segmenting the image to obtain a skin color image region according to a preset skin color space; performing a binarization process on the skin color image region, and determining a plurality of connected regions in the skin color image region after the binarization process; Screening the multiple connected regions to obtain multiple candidate connected regions, and determining the aspect ratio of the circumscribed rectangle of each candidate connected region; According to a preset rectangle aspect ratio threshold and the aspect ratio of the circumscribed rectangle of each candidate connected region, a target connected region is determined, and gesture actions in the target connected region are extracted.
7. The range hood control method according to claim 6, wherein: The step of segmenting the image to obtain a skin color image region according to a preset skin color space includes: performing smoothing processing on the image; According to a preset skin color space, a skin color image area is obtained by segmenting the smoothed image.
8. The range hood control method according to any one of claims 1 to 7, characterized in that: The obtaining of the motor control instruction of the range hood includes: When it is detected that the cooker is started, a motor control instruction for the range hood is generated.
9. A range hood, characterized in that: The range hood includes a processor, a memory, and a computer program stored in the memory and executable by the processor, wherein when the computer program is executed by the processor, the steps of the range hood control method according to any one of claims 1 to 8 are implemented.
10. A computer-readable storage medium, characterized in that The computer-readable storage medium stores a computer program, wherein when the computer program is executed by a processor, the steps of the range hood control method according to any one of claims 1 to 8 are implemented.
Citation Information
Patent Citations
Device capable of reducing stop abnormal sound of range hood
CN104406211A
Range hood with gesture control visual detection function and fume concentration detection method
CN109028223A
A monocular static gesture recognition method based on multi-feature fusion
CN109190496A