Control panel control method of cooking device and cooking device
The camera measures the distance between the user's head and the control panel and adjusts the flip angle in real time, solving the problem of poor user experience caused by fixed angles in the existing technology and enabling more flexible and convenient control panel operations.
Patent Information
- Application Number
- CN202411036331.0
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2024-07-31
- Publication Date
- 2024-10-25
- Estimated Expiration
- 2044-07-31
AI Technical Summary
The control panel of existing cooking equipment has a fixed flip angle and cannot be adjusted adaptively, resulting in poor user experience at different heights and distances.
The camera measures the distance between the user's head and the control panel, and adjusts the flip angle in real time to ensure that the panel is within the user's most convenient field of view.
Improved the flexibility and user experience of the control panel, ensuring that the panel is always at the most suitable angle for the user, improving operational convenience.
Smart Images

Figure CN118557016B_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the technical field of smart home appliances, and in particular to a control panel control method of a cooking device and a cooking device. Background Art
[0002] All-in-one cooking machines are usually installed in a cabinet in an embedded manner. Users need to bend over or squat to see the control panel clearly and operate it. By setting the control panel to be flippable, the convenience of user operation can be greatly improved.
[0003] At present, the existing flip control method of the control panel usually sets a fixed flip angle, and when the user's demand is detected, the control panel is driven to flip according to the fixed flip angle. However, in actual scenarios, parameters such as the user's height and the distance between the user and the cooking machine are constantly changing. The fixed flip angle can easily cause the flipped control panel to be at an angle that is inconvenient for the user to look directly at, resulting in a poor user experience. Summary of the invention
[0004] The present invention provides a control panel control method for a cooking device and a cooking device, which can realize adaptive adjustment of the flip angle of the control panel according to task requirements, improve the flexibility of the control panel control of the cooking device, and improve the user experience.
[0005] According to one aspect of the present invention, a control panel control method for a cooking device is provided, comprising:
[0006] While ensuring that the user is standing within the appropriate range, obtaining a measured distance between a camera on a control panel of the cooking device and the user's head;
[0007] The flip angle of the control panel is determined according to the measured distance between the camera and the user's head.
[0008] According to another aspect of the present invention, there is provided a control panel control device for a cooking device, comprising:
[0009] A measurement distance acquisition module, used to obtain the measurement distance between the camera on the control panel of the cooking device and the user's head while ensuring that the user's standing position is within a suitable range;
[0010] The flip angle determination module is used to determine the flip angle of the control panel according to the measured distance between the camera and the user's head.
[0011] According to another aspect of the present invention, there is provided a cooking device, the cooking device comprising:
[0012] The camera is communicatively connected to at least one processor, and is used to collect a user image, send the user image to the at least one processor, and rotate according to a control command of the at least one processor;
[0013] at least one processor; and
[0014] a memory communicatively connected to the at least one processor; wherein,
[0015] The memory stores a computer program that can be executed by the at least one processor, and the computer program is executed by the at least one processor so that the at least one processor can execute the control panel control method of the cooking device described in any embodiment of the present invention.
[0016] According to another aspect of the present invention, a computer-readable storage medium is provided, wherein the computer-readable storage medium stores a computer program, and the computer program is used to enable a processor to implement the control panel control method of a cooking device according to any embodiment of the present invention when executed.
[0017] The technical solution of the embodiment of the present invention obtains the measured distance between the camera on the control panel of the cooking device and the user's head while ensuring that the user's standing position is within the appropriate range; determines the flip angle of the control panel based on the measured distance between the camera and the user's head; and adaptively adjusts the flip angle of the control panel by pre-judging whether the user's standing position is within the appropriate range and detecting the measured distance between the camera and the user's head in real time, thereby improving the flexibility of the control panel control of the cooking device and improving the user experience.
[0018] It should be understood that the contents described in this section are not intended to identify the key or important features of the embodiments of the present invention, nor are they intended to limit the scope of the present invention. Other features of the present invention will become easily understood through the following description. BRIEF DESCRIPTION OF THE DRAWINGS
[0019] In order to more clearly illustrate the technical solutions in the embodiments of the present invention, the following briefly introduces the drawings required for use in the description of the embodiments. 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 creative work.
[0020] Figure 1 is a flow chart of a control panel control method of a cooking device provided according to Embodiment 1 of the present invention;
[0021] Figure 2 is a schematic diagram of detecting the distance between a camera and a user's head according to the first embodiment of the present invention;
[0022] Figure 3 is a schematic diagram of a control panel flip result provided in Embodiment 1 of the present invention;
[0023] Figure 4 is a schematic diagram of determining whether a user's position is within a suitable range according to Embodiment 1 of the present invention;
[0024] Figure 5 is a flow chart of a control panel control method of a cooking device provided in accordance with a second embodiment of the present invention;
[0025] Figure 6 is a structural schematic diagram of a control panel control device of a cooking device provided according to Embodiment 3 of the present invention;
[0026] Figure 7 It is a structural schematic diagram of a cooking device for implementing a control panel control method of a cooking device according to an embodiment of the present invention. DETAILED DESCRIPTION
[0027] In order to enable those skilled in the art to better understand the scheme of the present invention, the technical scheme in the embodiments of the present invention will be clearly and completely described below in conjunction with the drawings in the embodiments of the present invention. Obviously, the described embodiments are only part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work should fall within the scope of protection of the present invention.
[0028] It should be noted that the terms "first", "second", "target", etc. in the specification and claims of the present invention and the above-mentioned drawings are used to distinguish similar objects, and are not necessarily used to describe a specific order or sequence. It should be understood that the data used in this way can be interchanged where appropriate, so that the embodiments of the present invention described herein can be implemented in an order other than those illustrated or described herein. 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 that includes a series of steps or units is not necessarily limited to those steps or units clearly listed, but may include other steps or units that are not clearly listed or inherent to these processes, methods, products or devices.
[0029] Embodiment 1
[0030] Figure 1A flowchart of a control panel control method for a cooking device is provided for the first embodiment of the present invention. This embodiment is applicable to the case where the control panel is flipped according to the actual scene. The method can be executed by a control panel control device for the cooking device. The control panel control device for the cooking device can be implemented in the form of hardware and / or software. Typically, the control panel control device for the cooking device can be configured in the cooking device. Figure 1 As shown, the method includes:
[0031] S110. When ensuring that the user's standing position is within an appropriate range, obtain a measured distance between a camera on a control panel of the cooking device and the user's head.
[0032] The suitable range may be an ideal detection range of the camera on the control panel; for example, it may be a horizontal angle range divided at different distances in front of the control panel with the camera as the origin. It should be noted that for the same user, the standing position usually does not deviate too much, but it is unlikely to maintain the same standing position every time. This embodiment only requires the user to stand in a suitable range, not a specific position.
[0033] In this embodiment, after the cooking device is turned on, it can detect the user's position through the camera and determine whether the user's position is within the appropriate range. If so, the measurement distance between the camera and the user's head can be detected; if not, the user can be prompted to move to the center of the cooking device, and after the user moves, the judgment of whether the user's position is within the appropriate range is re-performed until it is successfully detected that the user's position is within the appropriate range.
[0034] Specifically, the straight-line distance between the camera and the highest point of the user's head can be detected as the measured distance between the camera and the user's head. For example, the camera can be controlled to rotate in the vertical direction starting from the initial position, and the direction of the user's head and the measured distance between the camera and the user's head can be determined by judging whether the measured distance of the adjacent detection has a sudden change. For another example, based on the historical flip angle, the current vertical distance between the user and the control panel plane and the historical vertical distance can be judged to determine which direction to rotate first, and then the camera can be controlled to rotate in the vertical direction according to the determined rotation direction, thereby determining the measured distance between the camera and the user's head.
[0035] Optionally, obtaining the measured distance between a camera on a control panel of the cooking device and a user's head may include:
[0036] Controlling the camera to rotate in a first rotation direction by a first preset angle each time, and obtaining a first measurement distance after each rotation;
[0037] If it is detected that the difference between the adjacent first measurement distances is greater than a first set threshold, control the camera to rotate in a second rotation direction by a second preset angle each time, and obtain a second measurement distance after each rotation;
[0038] If it is detected that the difference between the adjacent second measured distances is greater than the second set threshold, the camera is controlled to stop rotating, and the current second measured distance is used as the measured distance between the camera and the user's head.
[0039] The second preset angle may be smaller than the first preset angle, for example, the first preset angle may be 5 degrees, and the second preset angle may be 1 degree. In this embodiment, the camera may be roughly adjusted based on the first preset angle with a larger value, and then fine-tuned based on the second preset angle with a smaller value, until the camera is adjusted to face the user's head. Typically, the first rotation direction may be an upward direction, and the second rotation direction may be a downward direction. The first set threshold and the second set threshold may be equal or different.
[0040] In this embodiment, each time the cooking device is started, the camera can be used to perform real-time distance measurement detection without relying on any historical detection results. In a specific example, taking the side view as an example, the distance measurement detection between the camera and the user's head can be as follows: Figure 2 The camera rotates upward from the initial position, measures the distance every 5 degrees, and records each first measured distance y i ; During the upward rotation process, the first measured distance y obtained adjacently i+1 With y i Perform numerical comparison, if y is detected i+1 >3y i , that is, the first measurement distance currently obtained is much greater than the first measurement distance previously obtained. It can be considered that the distance measurement direction has exceeded the range of the human body. The current measurement distance may be the distance between the camera and the ceiling or wall.
[0041] Currently, the camera can be controlled to stop rotating upward and start rotating downward, measuring the distance every 1 degree and recording each second measured distance y j During the downward rotation, the second measured distance y obtained adjacently can be j+1 With y j Perform numerical comparison, if y is detected j+1 <y j / 3, that is, the second measured distance currently obtained is much smaller than the second measured distance previously obtained, and it can be considered that the distance measurement direction begins to return to the human body range. At this time, the camera can be controlled to stop rotating and the second measured distance currently obtained y j+1, as the measured distance between the camera and the user's head. This embodiment does not specifically limit the distance measurement method.
[0042] S120: Determine a flip angle of the control panel according to a measured distance between the camera and the user's head.
[0043] In this embodiment, the camera and the control panel can rotate synchronously or independently. When the camera and the control panel rotate synchronously, after the camera is controlled to rotate up and down to detect the measured distance between the camera and the user's head, the control panel is synchronously rotated to face the user's head. At this time, the rotation angle of the camera is the flip angle of the control panel.
[0044] When the camera and the control panel rotate independently, the vertical plane of the camera perpendicular to the control panel plane can be determined first, and the measured distance y between the camera and the user's head can be j+1 Project it onto the vertical plane where the camera is located to obtain the projection distance M; then, the flip angle θ of the control panel can be calculated according to the formula θ=arccos(L / M), where L represents the vertical distance between the user and the plane of the control panel. Alternatively, the difference between the total angle value rotated in the first rotation direction and the total angle value rotated in the second rotation direction can be calculated, and the difference can be used as the flip angle of the control panel. Finally, the control panel can be driven by a motor to rotate the flip angle. The flip result of the control panel can be as follows Figure 3 shown.
[0045] The technical solution of the embodiment of the present invention obtains the measured distance between the camera on the control panel of the cooking device and the user's head while ensuring that the user's standing position is within the appropriate range; determines the flip angle of the control panel based on the measured distance between the camera and the user's head; and adaptively adjusts the flip angle of the control panel by pre-judging whether the user's standing position is within the appropriate range and detecting the measured distance between the camera and the user's head in real time, thereby improving the flexibility of the control panel control of the cooking device and improving the user experience.
[0046] In an optional implementation of this embodiment, determining the flip angle of the control panel according to the measured distance between the camera and the user's head may include:
[0047] Determining a rotation angle in a first rotation direction and a rotation angle in a second rotation direction according to a measured distance between the camera and the user's head;
[0048] The actual rotation angle is determined according to the rotation angle in the first rotation direction and the rotation angle in the second rotation direction, and the flip angle of the control panel is determined according to the actual rotation angle.
[0049] In this embodiment, after successfully detecting the measured distance between the camera and the user's head, the total rotation angle in the first rotation direction and the total rotation angle in the second rotation direction can be respectively obtained by statistics. Then, when the camera and the control panel rotate independently, the difference between the total rotation angle in the first rotation direction and the total rotation angle in the second rotation direction can be calculated to obtain the actual rotation angle, and the actual rotation angle is directly used as the flip angle of the control panel. Alternatively, when the camera and the control panel rotate synchronously, the sum of the rotation angle in the first rotation direction and the rotation angle in the second rotation direction can be calculated to obtain the actual rotation angle of the camera, that is, the flip angle of the control panel.
[0050] Among them, when the camera starts to rotate from the initial position, the rotation angle to the first rotation direction can be the sum of the angles of each rotation to the first rotation direction; and when the camera starts to rotate from the historical flip angle, the rotation angle to the first rotation direction can be the sum of the historical flip angle and the angles of each rotation to the first rotation direction.
[0051] In another optional implementation of this embodiment, ensuring that the user's station position is within a suitable range may include:
[0052] According to the current vertical distance between the user and the control panel plane, the maximum allowable deviation angle in the horizontal direction is calculated;
[0053] Calculate the horizontal offset angle between the camera and the user;
[0054] Determine whether the absolute value of the offset angle is less than or equal to the absolute value of the maximum allowable offset angle, and if so, determine that the user's position is within a suitable range;
[0055] If not, the user is prompted to move to the middle position of the cooking equipment. After the user moves, the maximum allowable offset angle in the horizontal direction is recalculated based on the current vertical distance between the user and the plane of the control panel, and the offset angle between the camera and the user in the horizontal direction is recalculated until it is detected that the absolute value of the offset angle is less than or equal to the absolute value of the maximum allowable offset angle, determining that the user's position is within the appropriate range.
[0056] Among them, judging whether the user's position is in a suitable range can be as follows: Figure 4As shown. After the user stands, the appropriate range can be an isosceles triangle with the camera as the vertex, the width of the control panel as the base, and the vertical distance between the user and the plane of the control panel as the height. At this time, the maximum allowable offset angle in the horizontal direction is half of the vertex angle of the isosceles triangle, that is, α. If the offset angle β between the camera and the user in the horizontal direction is less than or equal to α, it can be determined that the user's standing position is within the appropriate range; if β is greater than α, it can be determined that the user's standing position is outside the appropriate range, and the user can be prompted by voice or other means to move to the middle position of the cooking equipment, that is, close to the vertical plane where the camera is located, until it is detected that β is less than or equal to α, and it is determined that the user's standing position is within the appropriate range.
[0057] Optionally, the technical solution of this embodiment may further include:
[0058] Determine the key parts of the user's body and the actual height differences between the key parts of the body;
[0059] Acquire a user image, and acquire pixel coordinates of the key human body parts in the user image;
[0060] Calculate the pixel height difference between the key parts of the human body according to the pixel coordinates of the key parts of the human body in the user image;
[0061] The current vertical distance between the user and the control panel plane is calculated based on the actual height difference and pixel height difference between the key parts of the human body and the focal length of the camera.
[0062] In this embodiment, before calculating the maximum allowable offset angle in the horizontal direction based on the current vertical distance between the user and the plane of the control panel, the current vertical distance between the user and the plane of the control panel can be pre-calculated based on the principle of visual imaging. Specifically, the user pre-specifies key parts of the human body, such as ankles, knees, waist, shoulders, etc., and the user can input the actual height difference between the key parts of the human body, for example, the actual height difference between the shoulder and the ankle is H. Then, a video frame image is obtained by shooting with a camera, and dynamic objects and static backgrounds are separated from the video frame image based on a foreground segmentation model to obtain a user image. Afterwards, the key parts of the human body can be identified from the user image based on the human posture model algorithm, and the pixel coordinates of the key parts of the human body in the user image can be recorded and stored. For example, the coordinates of the ankle are (a 1 ,b 1 ), the shoulder coordinates are (a 2 ,b 2 ).
[0063] Furthermore, the difference between the vertical coordinates of the key parts of the human body can be calculated to obtain the pixel height difference between the key parts of the human body. For example, the pixel height difference h=b2 -b 1 Finally, the current vertical distance between the user and the control panel plane can be calculated according to the formula L=f×H / h, where f represents the focal length of the camera, which can be obtained by performing a preliminary calibration on the camera when the cooking device is used for the first time. In this embodiment, after the focal length of the camera is obtained, it can be persistently stored for later use without the need for further calibration.
[0064] In this embodiment, when installing the cooking device, the installer can initialize the cooking device and determine that the origin of the pixel coordinate system is at the center of the image. After completing the installation, the installer can also measure the cooking device parameters such as the width of the control panel and store the parameters in the permanent storage area of the cooking device for a long time.
[0065] Optionally, calculating the maximum allowable offset angle in the horizontal direction according to the current vertical distance between the user and the control panel plane may include:
[0066] The width of the control panel is obtained, and the maximum allowable offset angle in the horizontal direction is calculated according to the ratio of the width to the current vertical distance.
[0067] Specifically, the maximum allowable deviation angle α in the horizontal direction can be calculated according to the formula α=arctan(D / 2L), where D represents the width of the control panel.
[0068] Optionally, calculating the offset angle between the camera and the user in the horizontal direction may include:
[0069] Acquire a user image, and acquire the horizontal coordinates of key facial parts of the user in the user image;
[0070] The offset angle between the camera and the user in the horizontal direction is calculated according to the ratio of the horizontal coordinate to the focal length of the camera.
[0071] Specifically, the facial feature extraction model based on the convolutional neural network can be used to detect key facial parts, such as the nose, from the user image, and obtain the horizontal coordinates of the key facial parts in the user image, for example, the nose coordinates are (c, d), and the horizontal coordinate is c. Then, the horizontal offset angle β between the camera and the user can be calculated according to the formula β=arctan(c / f).
[0072] In this embodiment, after obtaining the horizontal offset angle β between the camera and the user, and the maximum allowable horizontal offset angle α, the sizes of |α| and |β| can be compared; if |α| is greater than or equal to |β|, it is determined that the user's standing position is within the appropriate range; if |α| is less than |β|, the user is prompted to move to the middle of the cooking equipment and re-detection is performed until |α| is greater than or equal to |β|.
[0073] Embodiment 2
[0074] Figure 5 This is a flowchart of another control method for a cooking device control panel provided in Embodiment 2 of the present invention. This embodiment is a further refinement of the above technical solution. The technical solution in this embodiment can be combined with one or more of the above implementations. Figure 5 As shown, the method includes:
[0075] S210. When ensuring that the user's standing position is within an appropriate range, if it is determined that there is a historical flip angle of the control panel, obtain the current vertical distance and the historical vertical distance between the user and the control panel plane, and control the camera to rotate the historical flip angle.
[0076] The historical flip angle may be the flip angle of the control panel at the last startup, or any flip angle of the control panel saved by the user, or a fixed flip angle set by the user. The historical vertical distance may be the vertical distance between the user and the control panel plane corresponding to the historical flip angle.
[0077] In this embodiment, when the distance between the camera and the user's head is detected, the camera can be controlled to rotate up and down based on the historical flip angle. Specifically, if the historical flip angle is detected, the pre-calculated current vertical distance between the user and the control panel plane and the stored historical vertical distance are read. Considering that the user's face height is generally higher than the control panel height, the control panel can be set to be able to rotate only upward in the initial position, so the camera can be controlled to directly rotate upward by the historical flip angle.
[0078] S220: If it is detected that the current vertical distance is smaller than the historical vertical distance, control the camera to rotate in a first rotation direction by a first preset angle each time starting from a historical flip angle, and obtain a first measured distance after each rotation.
[0079] In this embodiment, the direction of further rotation based on the historical flip angle can be determined by comparing the current vertical distance with the historical vertical distance. Typically, if the current vertical distance is smaller than the historical vertical distance, it means that the user is standing closer to the cooking device, and the camera needs to be further flipped upward based on the historical flip angle in order to aim at the user's face, so the further rotation direction is upward. If the current vertical distance is larger than the historical vertical distance, it means that the user is standing farther from the cooking device, and the camera needs to be further flipped downward based on the historical flip angle in order to aim at the user's face, so the further rotation direction is downward. In addition, if the current vertical distance is equal to the historical vertical distance, the camera can stop rotating directly after rotating the historical flip angle, and the camera can be facing the user's face.
[0080] Specifically, if it is detected that the current vertical distance is less than the historical vertical distance and it is determined that further upward flipping is required based on the historical flipping angle, the camera can be controlled to rotate upward by a first preset angle each time and a distance measurement recognition is performed after each rotation.
[0081] S230: If it is detected that the difference between adjacent first measurement distances is greater than a first set threshold, control the camera to rotate in a second rotation direction by a second preset angle each time, and obtain a second measurement distance after each rotation.
[0082] Specifically, if it is detected that the currently acquired first measurement distance has a sudden increase compared with the previously acquired first measurement distance, the camera is controlled to rotate downward by a second preset angle each time, and a measurement distance is identified after each rotation.
[0083] S240: If it is detected that the difference between the adjacent second measurement distances is greater than the second set threshold, the camera is controlled to stop rotating, and the current second measurement distance is used as the measurement distance between the camera and the user's head.
[0084] Specifically, if it is detected that the currently acquired second measurement distance has suddenly decreased compared with the previously acquired second measurement distance, the camera is controlled to stop rotating, and the currently acquired second measurement distance can be used as the measurement distance between the camera and the user's head.
[0085] It should be noted that in some special scenarios, for example, when the user changes and the corresponding user height changes significantly, the camera may not be able to detect a sudden change in the measured distance when the camera is controlled to rotate based on the historical flip angle. In response to the above problem, in this embodiment, after the camera is controlled to rotate from the historical flip angle, if the number of rotations is greater than the set number threshold, or the rotation time is greater than the set time threshold, and a sudden change in the measured distance is still not detected, the camera can be controlled to return to the initial position, and the camera can be controlled to rotate from the initial position again.
[0086] S250: Determine a flip angle of the control panel according to a measured distance between the camera and the user's head.
[0087] The technical solution of the embodiment of the present invention ensures that the user's standing position is within an appropriate range. If it is determined that there is a historical flip angle of the control panel, the current vertical distance and the historical vertical distance between the user and the plane of the control panel are obtained, and the camera is controlled to rotate to the historical flip angle; if it is detected that the current vertical distance is less than the historical vertical distance, the camera is controlled to rotate by a first preset angle in a first rotation direction each time starting from the historical flip angle, and a first measured distance is obtained after each rotation; if it is detected that the difference between adjacent first measured distances obtained is greater than a first set threshold, the camera is controlled to rotate by a second preset angle in a second rotation direction each time, and a second measured distance is obtained after each rotation; if it is detected that the difference between adjacent second measured distances obtained is greater than a second set threshold, the camera is controlled to stop rotating, and the current second measured distance is used as the measured distance between the camera and the user's head; by controlling the camera to start rotating based on the historical flip angle, the number of rotations of the camera can be reduced, the time spent on obtaining the measured distance between the camera and the user's head can be shortened, and the flip control efficiency of the control panel can be improved.
[0088] In an optional implementation of this embodiment, obtaining the measured distance between the camera on the control panel of the cooking device and the user's head may include:
[0089] If it is determined that there is a historical flip angle of the control panel, obtaining the current vertical distance and the historical vertical distance between the user and the plane of the control panel, and controlling the camera to rotate by the historical flip angle;
[0090] If it is detected that the current vertical distance is greater than the historical vertical distance, control the camera to rotate by a first preset angle in a second rotation direction each time starting from the historical flip angle, and obtain a first measured distance after each rotation;
[0091] If it is detected that the difference between the adjacent first measurement distances is greater than a first set threshold, control the camera to rotate by a second preset angle in the first rotation direction each time, and obtain a second measurement distance after each rotation;
[0092] If it is detected that the difference between the adjacent second measurement distances is greater than the second set threshold, the camera is controlled to stop rotating, and the second measurement distance obtained last time is used as the measurement distance between the camera and the user's head.
[0093] In another case, if the current vertical distance is greater than the historical vertical distance, the camera needs to be controlled to flip downward first based on the historical flip angle. Specifically, the camera is controlled to rotate downward by a first preset angle with a larger value each time starting from the historical flip angle, and when it is detected that the currently acquired first measurement distance has a sudden decrease compared to the previously acquired first measurement distance (indicating that the camera detection direction has entered the human body area), the camera is controlled to start rotating upward by a second preset angle with a smaller value each time. Then, if it is detected that the currently acquired second measurement distance has a sudden increase compared to the previously acquired second measurement distance (indicating that the camera detection direction has begun to leave the human body area), the previously acquired second measurement distance can be used as the measurement distance between the camera and the user's head.
[0094] Embodiment 3
[0095] Figure 6 This is a schematic diagram of the structure of a control panel control device of a cooking device provided in Embodiment 3 of the present invention. Figure 6 As shown, the device includes: a measurement distance acquisition module 310 and a flip angle determination module 320; wherein,
[0096] The measurement distance acquisition module 310 is used to obtain the measurement distance between the camera on the control panel of the cooking device and the user's head when ensuring that the user's standing position is within a suitable range;
[0097] The flip angle determination module 320 is used to determine the flip angle of the control panel according to the measured distance between the camera and the user's head.
[0098] The technical solution of the embodiment of the present invention obtains the measured distance between the camera on the control panel of the cooking device and the user's head while ensuring that the user's standing position is within the appropriate range; determines the flip angle of the control panel based on the measured distance between the camera and the user's head; and adaptively adjusts the flip angle of the control panel by pre-judging whether the user's standing position is within the appropriate range and detecting the measured distance between the camera and the user's head in real time, thereby improving the flexibility of the control panel control of the cooking device and improving the user experience.
[0099] Optionally, the measurement distance acquisition module 310 is specifically used to control the camera to rotate in a first rotation direction by a first preset angle each time, and acquire a first measurement distance after each rotation;
[0100] If it is detected that the difference between the adjacent first measurement distances is greater than a first set threshold, control the camera to rotate in a second rotation direction by a second preset angle each time, and obtain a second measurement distance after each rotation;
[0101] If it is detected that the difference between the adjacent second measured distances is greater than the second set threshold, the camera is controlled to stop rotating, and the current second measured distance is used as the measured distance between the camera and the user's head.
[0102] Optionally, a distance measurement acquisition module 310 is specifically configured to acquire a current vertical distance and a historical vertical distance between the user and the plane of the control panel if it is determined that there is a historical flip angle of the control panel, and control the camera to rotate by the historical flip angle;
[0103] If it is detected that the current vertical distance is less than the historical vertical distance, control the camera to rotate by a first preset angle in a first rotation direction each time starting from the historical flip angle, and obtain a first measured distance after each rotation;
[0104] If it is detected that the difference between the adjacent first measurement distances is greater than a first set threshold, control the camera to rotate in a second rotation direction by a second preset angle each time, and obtain a second measurement distance after each rotation;
[0105] If it is detected that the difference between the adjacent second measured distances is greater than the second set threshold, the camera is controlled to stop rotating, and the current second measured distance is used as the measured distance between the camera and the user's head.
[0106] Optionally, a distance measurement acquisition module 310 is specifically configured to acquire a current vertical distance and a historical vertical distance between the user and the plane of the control panel if it is determined that there is a historical flip angle of the control panel, and control the camera to rotate by the historical flip angle;
[0107] If it is detected that the current vertical distance is greater than the historical vertical distance, control the camera to rotate by a first preset angle in a second rotation direction each time starting from the historical flip angle, and obtain a first measured distance after each rotation;
[0108] If it is detected that the difference between the adjacent first measurement distances is greater than a first set threshold, control the camera to rotate by a second preset angle in the first rotation direction each time, and obtain a second measurement distance after each rotation;
[0109] If it is detected that the difference between the adjacent second measurement distances is greater than the second set threshold, the camera is controlled to stop rotating, and the second measurement distance obtained last time is used as the measurement distance between the camera and the user's head.
[0110] Optionally, the second preset angle is smaller than the first preset angle.
[0111] Optionally, the flip angle determination module 320 is specifically used to determine the rotation angle in the first rotation direction and the rotation angle in the second rotation direction according to the measured distance between the camera and the user's head;
[0112] The actual rotation angle is determined according to the rotation angle in the first rotation direction and the rotation angle in the second rotation direction, and the flip angle of the control panel is determined according to the actual rotation angle.
[0113] Optionally, the measurement distance acquisition module 310 is specifically used to calculate the maximum allowable deviation angle in the horizontal direction according to the current vertical distance between the user and the control panel plane;
[0114] Calculate the horizontal offset angle between the camera and the user;
[0115] Determine whether the absolute value of the offset angle is less than or equal to the absolute value of the maximum allowable offset angle, and if so, determine that the user's position is within a suitable range;
[0116] If not, the user is prompted to move to the middle position of the cooking equipment. After the user moves, the maximum allowable offset angle in the horizontal direction is recalculated based on the current vertical distance between the user and the plane of the control panel, and the offset angle between the camera and the user in the horizontal direction is recalculated until it is detected that the absolute value of the offset angle is less than or equal to the absolute value of the maximum allowable offset angle, determining that the user's position is within the appropriate range.
[0117] Optionally, the distance measurement acquisition module 310 is further used to determine the key parts of the user's body and the actual height difference between the key parts of the body;
[0118] Acquire a user image, and acquire pixel coordinates of the key human body parts in the user image;
[0119] Calculate the pixel height difference between the key parts of the human body according to the pixel coordinates of the key parts of the human body in the user image;
[0120] The current vertical distance between the user and the control panel plane is calculated based on the actual height difference and pixel height difference between the key parts of the human body and the focal length of the camera.
[0121] Optionally, the measurement distance acquisition module 310 is specifically used to acquire the width of the control panel, and calculate the maximum allowable offset angle in the horizontal direction according to the ratio of the width to the current vertical distance.
[0122] Optionally, the measurement distance acquisition module 310 is specifically used to acquire a user image and acquire the horizontal coordinates of the key facial parts of the user in the user image;
[0123] The offset angle between the camera and the user in the horizontal direction is calculated according to the ratio of the horizontal coordinate to the focal length of the camera.
[0124] The control panel control device for cooking equipment provided in the embodiment of the present invention can execute the control panel control method for cooking equipment provided in any embodiment of the present invention, and has the corresponding functional modules and beneficial effects of the execution method.
[0125] In the technical solution of the present disclosure, the collection, storage, use, processing, transmission, provision and disclosure of user personal information involved are in compliance with the provisions of relevant laws and regulations and do not violate public order and good morals.
[0126] Embodiment 4
[0127] Figure 7 A schematic diagram of a cooking device 40 that can be used to implement an embodiment of the present invention is shown. The components shown herein, their connections and relationships, and their functions are merely exemplary and are not intended to limit implementations of the present invention described and / or claimed herein.
[0128] like Figure 7 As shown, the cooking device 40 may include a camera 41 communicatively connected to at least one processor 42, for capturing user images, sending the user images to the at least one processor 42, and rotating according to a control command of the at least one processor 42; at least one processor 42; and a memory 43 communicatively connected to the at least one processor 42.
[0129] The memory 43 stores a computer program that can be executed by the at least one processor 42, and the computer program is executed by the at least one processor 42 so that the at least one processor 42 can execute the control panel control method of the cooking device described in any embodiment of the present invention.
[0130] Among them, the camera 41 can be embedded in the control panel, and the camera 41 and the control panel can rotate under the drive of the rotating structure. The rotating structure may not be specifically limited in this embodiment. The memory 43 can be a read-only memory (ROM), a random access memory (RAM), etc. In this embodiment, the processor 42 can perform various appropriate actions and processes according to a computer program stored in the read-only memory or a computer program loaded from a storage unit to the random access memory. In the RAM, various programs and data required for the operation of the cooking device 40 can also be stored. The processor 42, ROM and RAM can be connected to each other through a bus. The input / output (I / O) interface is also connected to the bus.
[0131] Optionally, multiple components in the cooking device 40 can be connected to the I / O interface, including: an input unit, such as a key, etc.; an output unit, such as various types of displays, speakers, etc.; and a communication unit, such as a network card, a modem, a wireless communication transceiver, etc. The communication unit allows the cooking device 40 to exchange information / data with other devices through a computer network such as the Internet and / or various telecommunication networks.
[0132] The processor 42 may be a variety of general and / or dedicated processing components with processing and computing capabilities. Some examples of the processor 42 include, but are not limited to, a central processing unit, a graphics processing unit, various dedicated artificial intelligence computing chips, various processors running machine learning model algorithms, digital signal processors, and any appropriate controllers, microcontrollers, etc. The processor 42 performs the various methods and processes described above, such as a control panel control method for a cooking device.
[0133] In some embodiments, the control panel control method of the cooking device can be implemented as a computer program, which is tangibly contained in a computer-readable storage medium, such as memory 43. In some embodiments, part or all of the computer program can be loaded and / or installed on the cooking device 40 via ROM and / or a communication unit. When the computer program is loaded into RAM and executed by the processor 42, one or more steps of the control panel control method of the cooking device described above can be performed. Alternatively, in other embodiments, the processor 42 can be configured to execute the control panel control method of the cooking device in any other appropriate manner (for example, by means of firmware).
[0134] Various implementations of the systems and techniques described above herein can be implemented in digital electronic circuit systems, integrated circuit systems, field programmable gate arrays, application specific integrated circuits, application specific standard products, systems on chips, load programmable logic devices, computer hardware, firmware, software, and / or combinations thereof. These various implementations may include: being implemented in one or more computer programs that can be executed and / or interpreted on a programmable system including at least one programmable processor, which can be a special purpose or general purpose programmable processor that can receive data and instructions from a storage system, at least one input device, and at least one output device, and transmit data and instructions to the storage system, the at least one input device, and the at least one output device.
[0135] Computer programs for implementing the methods of the present invention may be written in any combination of one or more programming languages. These computer programs may be provided to a processor of a general-purpose computer, a special-purpose computer, or other programmable data processing device, so that when the computer program is executed by the processor, the functions / operations specified in the flow chart and / or block diagram are implemented. The computer program may be executed entirely on the machine, partially on the machine, partially on the machine and partially on a remote machine as a stand-alone software package, or entirely on a remote machine or server.
[0136] In the context of the present invention, a computer-readable storage medium may be a tangible medium that may contain or store a computer program for use by or in conjunction with an instruction execution system, device, or equipment. A computer-readable storage medium may include, but is not limited to, electronic, magnetic, optical, electromagnetic, infrared, or semiconductor systems, devices, or equipment, or any suitable combination of the foregoing. Alternatively, a computer-readable storage medium may be a machine-readable signal medium. A more specific example of a machine-readable storage medium may include an electrical connection based on one or more lines, a portable computer disk, a hard disk, a random access memory, a read-only memory, an erasable programmable read-only memory, an optical fiber, a portable compact disk read-only memory, an optical storage device, a magnetic storage device, or any suitable combination of the foregoing.
[0137] To provide interaction with the user, the systems and techniques described herein may be implemented on a cooking device 40 having: a display device (e.g., a cathode ray tube or a liquid crystal display) for displaying information to the user. Other types of devices may also be used to provide interaction with the user; for example, the feedback provided to the user may be any form of sensory feedback (e.g., visual feedback, auditory feedback, or tactile feedback); and input from the user may be received in any form (including acoustic input, voice input, or tactile input).
[0138] The systems and techniques described herein may be implemented in a computing system that includes backend components (e.g., as a data server), or a computing system that includes middleware components (e.g., an application server), or a computing system that includes frontend components (e.g., a user computer with a graphical user interface or a web browser through which a user can interact with implementations of the systems and techniques described herein), or a computing system that includes any combination of such backend components, middleware components, or frontend components. The components of the system may be interconnected by any form or medium of digital data communication (e.g., a communication network). Examples of communication networks include: local area networks, wide area networks, blockchain networks, and the Internet.
[0139] A computing system may include a client and a server. The client and the server are generally remote from each other and usually interact through a communication network. The client and server relationship is generated by computer programs running on respective computers and having a client-server relationship with each other. The server may be a cloud server, also known as a cloud computing server or cloud host, which is a host product in a cloud computing service system.
[0140] It should be understood that the various forms of processes shown above can be used to reorder, add or delete steps. For example, the steps described in the present invention can be executed in parallel, sequentially or in different orders, as long as the desired results of the technical solution of the present invention can be achieved, and this document does not limit this.
[0141] The above specific implementations do not constitute a limitation on the protection scope of the present invention. It should be understood by those skilled in the art that various modifications, combinations, sub-combinations and substitutions can be made according to design requirements and other factors. Any modification, equivalent substitution and improvement made within the spirit and principle of the present invention should be included in the protection scope of the present invention.
Claims
1. A control method for a cooking device control panel, characterized in that: include: While ensuring that the user is standing within the appropriate range, obtaining a measured distance between a camera on a control panel of the cooking device and the user's head; Determining a flip angle of the control panel according to a measured distance between the camera and the user's head; Wherein, obtaining the measured distance between the camera on the control panel of the cooking device and the user's head includes: Controlling the camera to rotate in a first rotation direction by a first preset angle each time, and obtaining a first measurement distance after each rotation; If it is detected that the difference between the adjacent first measurement distances is greater than a first set threshold, the camera is controlled to rotate in a second rotation direction by a second preset angle each time, and a second measurement distance is obtained after each rotation, wherein the second preset angle is smaller than the first preset angle; If it is detected that the difference between the adjacent second measured distances is greater than the second set threshold, the camera is controlled to stop rotating, and the current second measured distance is used as the measured distance between the camera and the user's head.
2. The method according to claim 1, characterized in that Get the measured distance between the camera on the control panel of the cooking device and the user's head, including: If it is determined that there is a historical flip angle of the control panel, obtaining the current vertical distance and the historical vertical distance between the user and the plane of the control panel, and controlling the camera to rotate by the historical flip angle; If it is detected that the current vertical distance is less than the historical vertical distance, control the camera to rotate by a first preset angle in a first rotation direction each time starting from the historical flip angle, and obtain a first measured distance after each rotation; If it is detected that the difference between the adjacent first measurement distances is greater than a first set threshold, the camera is controlled to rotate in a second rotation direction by a second preset angle each time, and a second measurement distance is obtained after each rotation, wherein the second preset angle is smaller than the first preset angle; If it is detected that the difference between the adjacent second measured distances is greater than the second set threshold, the camera is controlled to stop rotating, and the current second measured distance is used as the measured distance between the camera and the user's head.
3. The method according to claim 1, characterized in that: Get the measured distance between the camera on the control panel of the cooking device and the user's head, including: If it is determined that there is a historical flip angle of the control panel, obtaining the current vertical distance and the historical vertical distance between the user and the plane of the control panel, and controlling the camera to rotate by the historical flip angle; If it is detected that the current vertical distance is greater than the historical vertical distance, control the camera to rotate by a first preset angle in a second rotation direction each time starting from the historical flip angle, and obtain a first measured distance after each rotation; If it is detected that the difference between the adjacent first measurement distances is greater than a first set threshold, the camera is controlled to rotate by a second preset angle in the first rotation direction each time, and a second measurement distance is obtained after each rotation, wherein the second preset angle is smaller than the first preset angle; If it is detected that the difference between the adjacent second measurement distances is greater than the second set threshold, the camera is controlled to stop rotating, and the second measurement distance obtained last time is used as the measurement distance between the camera and the user's head.
4. The method according to claim 1, characterized in that Determining the flip angle of the control panel according to the measured distance between the camera and the user's head includes: After successfully detecting the measured distance between the camera and the user's head, determining a total rotation angle in the first rotation direction and a total rotation angle in the second rotation direction; The actual rotation angle is determined according to the total rotation angle in the first rotation direction and the total rotation angle in the second rotation direction, and the flip angle of the control panel is determined according to the actual rotation angle.
5. The method according to claim 1, characterized in that Ensure that the user is positioned within the appropriate range, including: According to the current vertical distance between the user and the control panel plane, the maximum allowable deviation angle in the horizontal direction is calculated; Calculate the horizontal offset angle between the camera and the user; Determine whether the absolute value of the offset angle is less than or equal to the absolute value of the maximum allowable offset angle, and if so, determine that the user's position is within a suitable range; If not, the user is prompted to move to the middle position of the cooking equipment. After the user moves, the maximum allowable offset angle in the horizontal direction is recalculated based on the current vertical distance between the user and the plane of the control panel, and the offset angle between the camera and the user in the horizontal direction is recalculated until it is detected that the absolute value of the offset angle is less than or equal to the absolute value of the maximum allowable offset angle, determining that the user's position is within the appropriate range.
6. The method according to claim 5, characterized in that Also includes: Determine the key parts of the user's body and the actual height differences between the key parts of the body; Acquire a user image, and acquire pixel coordinates of the key human body parts in the user image; Calculate the pixel height difference between the key parts of the human body according to the pixel coordinates of the key parts of the human body in the user image; The current vertical distance between the user and the control panel plane is calculated based on the actual height difference and pixel height difference between the key parts of the human body and the focal length of the camera.
7. The method according to claim 5, characterized in that Based on the current vertical distance between the user and the control panel plane, the maximum allowable deviation angle in the horizontal direction is calculated, including: The width of the control panel is obtained, and the maximum allowable offset angle in the horizontal direction is calculated according to the ratio of the width to the current vertical distance.
8. The method according to claim 5, characterized in that The horizontal offset angle between the camera and the user is calculated, including: Acquire a user image, and acquire the horizontal coordinates of key facial parts of the user in the user image; The offset angle between the camera and the user in the horizontal direction is calculated according to the ratio of the horizontal coordinate to the focal length of the camera.
9. A cooking device, characterized in that: The cooking device comprises: The camera is communicatively connected to at least one processor, and is used to collect a user image, send the user image to the at least one processor, and rotate according to a control command of the at least one processor; at least one processor; and a memory communicatively connected to the at least one processor; wherein, The memory stores a computer program executable by the at least one processor, and the computer program is executed by the at least one processor so that the at least one processor can execute the control panel control method of the cooking device according to any one of claims 1 to 8.
Citation Information
Patent Citations
Electronic equipment, control method, control device and storage medium
CN114962959A
Washing machine panel rotation control method and device and storage medium
CN115874383A
Control method, range hood, equipment and storage medium
CN116753549A
Information terminal device, automatic adjustment method, and automatic adjustment program
JP2014241553A
Cooking Device, Control Method Therefor, Control System Thereof and Computer-Readable Storage Medium
US20220273138A1
