CN110848907A - Control method of air conditioner, air conditioner and computer readable storage medium - Google Patents

Control method of air conditioner, air conditioner and computer readable storage medium Download PDF

Info

Publication number
CN110848907A
CN110848907A CN201911188276.6A CN201911188276A CN110848907A CN 110848907 A CN110848907 A CN 110848907A CN 201911188276 A CN201911188276 A CN 201911188276A CN 110848907 A CN110848907 A CN 110848907A
Authority
CN
China
Prior art keywords
air conditioner
distance
user
binocular camera
wind speed
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN201911188276.6A
Other languages
Chinese (zh)
Inventor
乐丽
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Midea Group Co Ltd
GD Midea Air Conditioning Equipment Co Ltd
Original Assignee
Midea Group Co Ltd
GD Midea Air Conditioning Equipment Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Midea Group Co Ltd, GD Midea Air Conditioning Equipment Co Ltd filed Critical Midea Group Co Ltd
Priority to CN201911188276.6A priority Critical patent/CN110848907A/en
Publication of CN110848907A publication Critical patent/CN110848907A/en
Pending legal-status Critical Current

Links

Classifications

    • FMECHANICAL ENGINEERING; LIGHTING; HEATING; WEAPONS; BLASTING
    • F24HEATING; RANGES; VENTILATING
    • F24FAIR-CONDITIONING; AIR-HUMIDIFICATION; VENTILATION; USE OF AIR CURRENTS FOR SCREENING
    • F24F11/00Control or safety arrangements
    • F24F11/62Control or safety arrangements characterised by the type of control or by internal processing, e.g. using fuzzy logic, adaptive control or estimation of values
    • F24F11/63Electronic processing
    • F24F11/64Electronic processing using pre-stored data
    • FMECHANICAL ENGINEERING; LIGHTING; HEATING; WEAPONS; BLASTING
    • F24HEATING; RANGES; VENTILATING
    • F24FAIR-CONDITIONING; AIR-HUMIDIFICATION; VENTILATION; USE OF AIR CURRENTS FOR SCREENING
    • F24F11/00Control or safety arrangements
    • F24F11/70Control systems characterised by their outputs; Constructional details thereof
    • F24F11/72Control systems characterised by their outputs; Constructional details thereof for controlling the supply of treated air, e.g. its pressure
    • F24F11/74Control systems characterised by their outputs; Constructional details thereof for controlling the supply of treated air, e.g. its pressure for controlling air flow rate or air velocity
    • FMECHANICAL ENGINEERING; LIGHTING; HEATING; WEAPONS; BLASTING
    • F24HEATING; RANGES; VENTILATING
    • F24FAIR-CONDITIONING; AIR-HUMIDIFICATION; VENTILATION; USE OF AIR CURRENTS FOR SCREENING
    • F24F2120/00Control inputs relating to users or occupants
    • F24F2120/10Occupancy
    • F24F2120/12Position of occupants

Abstract

The invention discloses a control method of an air conditioner, the air conditioner and a computer readable storage medium, wherein the method comprises the following steps: shooting a user image of a user in an area where an air conditioner is located through a binocular camera in the air conditioner, and determining a parallax value of the user image in an environment image corresponding to the area where the air conditioner is located, which is shot by the binocular camera; determining the distance between the user corresponding to the user image and the binocular camera according to the parallax value and the camera shooting parameters of the binocular camera; and adjusting the operation parameters of the air conditioner according to the distance, and controlling the air conditioner to operate according to the adjusted operation parameters. The invention realizes the automatic adjustment of the operating parameters of the air conditioner according to the change of the distance between the user and the air conditioner, so that the operation of the air conditioner is more in line with the requirements of the user, and the accuracy of the control of the operating parameters of the air conditioner is improved.

Description

Control method of air conditioner, air conditioner and computer readable storage medium
Technical Field
The present invention relates to the field of air conditioners, and in particular, to a method for controlling an air conditioner, and a computer-readable storage medium.
Background
The safety attention of the current market to household appliances is higher, and the utilization rate of the air conditioner is higher and higher. At present, the operation parameters of the air conditioner, such as wind speed, output temperature and the like, are set by a user in advance, and the operation parameters cannot be changed unless the user manually adjusts the operation parameters in the operation process of the air conditioner. However, the variation of the indoor environment factors of the air conditioner may cause the user to experience different conditions under the same operation parameters. Therefore, the control accuracy of the operation parameters of the existing air conditioner is low, and the air conditioner cannot automatically adapt to the requirements of users.
Disclosure of Invention
The invention mainly aims to provide a control method of an air conditioner, the air conditioner and a computer readable storage medium, and aims to solve the technical problem that the control accuracy of the running parameters of the existing air conditioner is low.
In order to achieve the above object, the present invention provides a method for controlling an air conditioner, comprising the steps of:
shooting a user image of a user in an area where an air conditioner is located through a binocular camera in the air conditioner, and determining a parallax value of the user image in an environment image corresponding to the area where the air conditioner is located, which is shot by the binocular camera;
determining the distance between the user corresponding to the user image and the binocular camera according to the parallax value and the camera shooting parameters of the binocular camera;
and adjusting the operation parameters of the air conditioner according to the distance, and controlling the air conditioner to operate according to the adjusted operation parameters.
In an embodiment, the step of adjusting the operation parameter of the air conditioner according to the distance and controlling the operation of the air conditioner according to the adjusted operation parameter includes:
adjusting the wind speed of the air conditioner according to the distance and a preset wind speed adjusting strategy to control the air conditioner to operate according to the adjusted wind speed;
and/or adjusting the output temperature of the air conditioner according to a preset temperature adjustment strategy according to the distance so as to control the operation of the air conditioner according to the adjusted output temperature.
In an embodiment, the step of adjusting the wind speed of the air conditioner according to a preset wind speed adjustment strategy according to the distance to control the operation of the air conditioner according to the adjusted wind speed includes:
if the distance is in an increasing state, increasing the wind speed of the air conditioner according to the increasing range of the distance and the wind speed adjusting strategy, and controlling the air conditioner to operate at the increased wind speed;
and if the distance is in a reduction state, reducing the wind speed of the air conditioner according to the reduction amplitude of the distance and the wind speed adjusting strategy, and controlling the air conditioner to operate at the reduced wind speed.
In an embodiment, the step of adjusting the output temperature of the air conditioner according to a preset temperature adjustment strategy according to the distance to control the operation of the air conditioner with the adjusted output temperature includes:
if the air conditioner is in a refrigeration mode, when the distance is determined to be in an increasing state, reducing the output temperature of the air conditioner according to the increasing amplitude of the distance and the temperature adjusting strategy, and controlling the air conditioner to operate at the reduced output temperature;
if the distance is in a decreasing state, increasing the output temperature of the air conditioner according to the decreasing amplitude of the distance and the temperature adjusting strategy, and controlling the air conditioner to operate at the increased output temperature;
if the air conditioner is in a heating mode, when the distance is determined to be in an increasing state, increasing the output temperature of the air conditioner according to the increasing amplitude of the distance and the temperature adjusting strategy, and controlling the operation of the air conditioner according to the increased output temperature;
and if the distance is in a reduction state, reducing the output temperature of the air conditioner according to the reduction amplitude of the distance and the temperature adjustment strategy, and controlling the air conditioner to operate at the reduced output temperature.
In an embodiment, the step of shooting a user image of a user in an area where an air conditioner is located through a binocular camera in the air conditioner and determining a disparity value of the user image in an environment image corresponding to the area where the air conditioner is located, where the environment image is shot by the binocular camera, includes:
shooting a user image of a user in an area where an air conditioner is located through a binocular camera in the air conditioner, and acquiring imaging coordinates of imaging points of the user image in an environment image corresponding to the area where the air conditioner is located, which is shot by the binocular camera;
and determining a parallax value of the user image in the environment image according to the imaging coordinate.
In an embodiment, the step of determining the distance between the user corresponding to the user image and the binocular camera according to the disparity value and the camera parameters of the binocular camera includes:
determining the product of the focal length of the binocular camera and the center distance of the binocular camera;
and dividing the product by the parallax value to obtain the distance between the user corresponding to the user image and the binocular camera.
In an embodiment, before the step of shooting, by a binocular camera in an air conditioner, a user image of a user in an area where the air conditioner is located and determining a disparity value of the user image in an environment image corresponding to the area where the air conditioner is located, the step of shooting, by the binocular camera, a user image of a user in an area where the air conditioner is located further includes:
and calibrating and correcting the binocular camera.
In an embodiment, after the step of adjusting the operation parameter of the air conditioner according to the distance and controlling the operation of the air conditioner according to the adjusted operation parameter, the method further includes:
outputting the adjusted operation parameters on a display screen of the air conditioner;
and/or sending the adjusted operation parameters to a mobile terminal connected with the air conditioner so that the mobile terminal can output the adjusted operation parameters.
In addition, to achieve the above object, the present invention further provides an air conditioner including a memory, a processor, and a control program of the air conditioner stored on the memory and operable on the processor, wherein the control program of the air conditioner, when executed by the processor, implements the steps of the control method of the air conditioner as described above.
Further, to achieve the above object, the present invention also provides a computer-readable storage medium having stored thereon a control program of an air conditioner, which when executed by a processor, implements the steps of the control method of the air conditioner as described above.
According to the invention, the environment image of the area where the air conditioner is located is shot through the binocular camera in the air conditioner, then the parallax value of the user image in the environment image shot by the binocular camera is determined, the distance between the user and the air conditioner is determined according to the parallax value and the camera parameter of the binocular camera, and the air conditioner is controlled to operate according to the distance, so that the operation parameter of the air conditioner is automatically adjusted according to the change of the distance between the user and the air conditioner, the operation of the air conditioner is more in line with the requirements of the user, and the accuracy of the control of the operation parameter of the air conditioner is improved.
Drawings
Fig. 1 is a schematic flow chart of a first embodiment of a control method of an air conditioner according to the present invention;
FIG. 2 is a schematic flow chart of a second embodiment of the control method of the air conditioner of the present invention;
FIG. 3 is a flow chart illustrating a control method of an air conditioner according to a third embodiment of the present invention;
fig. 4 is a schematic structural diagram of a hardware operating environment according to an embodiment of the present invention.
The implementation, functional features and advantages of the objects of the present invention will be further explained with reference to the accompanying drawings.
Detailed Description
It should be understood that the specific embodiments described herein are merely illustrative of the invention and are not intended to limit the invention.
The invention provides a control method of an air conditioner, and referring to fig. 1, fig. 1 is a flow chart of a first embodiment of the control method of the air conditioner.
While a logical order is shown in the flow chart, in some cases, the steps shown or described may be performed in a different order than that shown or described herein.
The control method of the air conditioner comprises the following steps:
step S10, shooting a user image of a user in an area where the air conditioner is located through a binocular camera in the air conditioner, and determining a parallax value of the user image in an environment image corresponding to the area where the air conditioner is located, wherein the environment image is shot by the binocular camera.
In the embodiment of the invention, the air conditioner is provided with the binocular camera, and in order to shoot all users in the area where the air conditioner is located, the binocular camera is arranged on the air conditioner, and the binocular camera and the air conditioner are connected. The binocular camera obtains a synchronous exposure image through the calibrated double cameras by utilizing a bionics principle, and then determines the third-dimensional depth information of the pixel points of the obtained two-dimensional image. The binocular camera in the air conditioner shoots the environment image of the area environment where the binocular camera is located in real time or at regular time, and determines whether the shot environment image has the user image, wherein the time length corresponding to the timing can be set according to specific needs, and the embodiment does not specifically limit the time length corresponding to the timing. Specifically, the present embodiment may determine whether the user is present in the environment image through a deep learning algorithm, which may be a convolutional neural network or a long-short term memory neural network, or the like. It can be understood that when a person appears in the area captured by the binocular camera, the user image will exist in the environment image captured by the binocular camera.
When the air conditioner determines that the user image exists in the environment image, the air conditioner determines a parallax value of the user image in the environment image. Further, when the air conditioner determines that the user image does not exist in the environment image, the air conditioner continues to shoot the environment image of the environment where the air conditioner is located through the binocular camera.
Further, the step S10 includes:
step a, shooting a user image of a user in an area where an air conditioner is located through a binocular camera in the air conditioner, and obtaining an imaging coordinate of an imaging point of the user image in an environment image corresponding to the area where the air conditioner is located, wherein the environment image is shot by the binocular camera.
Specifically, after the air conditioner determines that the user image exists in the environment image shot by the binocular camera, the air conditioner determines an imaging point of the user image in the environment image and determines an imaging coordinate of the imaging point. It should be noted that two environment images can be obtained by shooting the environment images through the binocular camera, and each environment image has a user image. The imaging point is the central point of the user image, the imaging coordinate is the coordinate of the central point, and the central point can be set as any pixel point in the user image. The coordinate systems corresponding to the two cameras of the binocular camera are the same, and the imaging coordinate is the coordinate of the same characteristic point in the user image in the corresponding coordinate system. For example, the imaging coordinates are the coordinates of the user nose in the corresponding camera coordinate system in the user image. It will be appreciated that there is one imaging coordinate in each ambient image.
And b, determining the parallax value of the user image in the environment image according to the imaging coordinates.
After the imaging coordinates are determined, the air conditioner determines the parallax value of the user image in the environment image according to the imaging coordinates. Specifically, when two cameras of the binocular camera are horizontally arranged in this embodiment, the air conditioner acquires abscissas of two imaging coordinates, and determines a difference value between the two abscissas, where the difference value is a parallax value of the user image in the environment image; when two cameras of the binocular camera are vertically arranged in the embodiment, the air conditioner acquires the vertical coordinates of the two imaging coordinates, and determines the difference value between the two vertical coordinates, wherein the difference value is the parallax value of the user image in the environment image.
And step S20, determining the distance between the user corresponding to the user image and the binocular camera according to the parallax value and the camera shooting parameters of the binocular camera.
After the air conditioner obtains the parallax value, the air conditioner obtains the camera parameters of the binocular camera, wherein the camera parameters comprise a focal length and a central distance, and the central distance is the distance between the optical centers of the two cameras of the binocular camera. It should be noted that the focal lengths of the two cameras of the binocular camera are the same, and the center distance is also determined when the binocular camera is set in the air conditioner. And after the camera shooting parameters are obtained, the air conditioner determines the distance between the user and the binocular camera corresponding to the user image according to the parallax value and the camera shooting parameters. It is understood that the distance between the user and the binocular camera is the distance between the user and the air conditioner.
Further, the step S20 includes:
and c, determining the product of the focal length of the binocular camera and the center distance of the binocular camera.
And d, dividing the product by the parallax value to obtain the distance between the user corresponding to the user image and the binocular camera.
Specifically, after the air conditioner obtains the focal length of the binocular camera and the center distance corresponding to the binocular camera, the air conditioner determines the product between the focal length and the center distance, and divides the product by the parallax value to obtain the distance between the user corresponding to the user image and the binocular camera. Wherein, if the parallax value is XR-XTThe focal length is recorded as f, the central distance is recorded as B, the distance between the user image corresponding to the user and the binocular camera is recorded as Z, according to the triangle similarity law,namely, it is
And step S30, adjusting the operation parameters of the air conditioner according to the distance, and controlling the air conditioner to operate according to the adjusted operation parameters.
And when the air conditioner obtains the distance between the user image corresponding to the user and the binocular camera, the air conditioner adjusts the operation parameters according to the distance to obtain the adjusted operation parameters, and the air conditioner operates according to the adjusted operation parameters. Operating parameters include, but are not limited to, wind speed and output temperature, among others. Specifically, the air conditioner can maintain the wind speed unchanged and independently adjust the output temperature; the output temperature can be kept unchanged, and the wind speed can be independently adjusted; or to adjust the output temperature and wind speed together.
Further, step S30 includes:
and e, adjusting the wind speed of the air conditioner according to the distance and a preset wind speed adjusting strategy so as to control the air conditioner to operate at the adjusted wind speed.
Specifically, the air conditioner adjusts the air speed according to a preset air speed adjusting strategy according to the distance between the user and the binocular camera to obtain the adjusted air speed, and the air conditioner operates at the adjusted air speed. Wherein the wind speed adjusting strategy is pre-stored in the air conditioner.
Further, step e comprises:
and e1, if the distance is in an increasing state, increasing the wind speed of the air conditioner according to the increasing range of the distance and the wind speed adjusting strategy, and controlling the air conditioner to operate at the increased wind speed.
When the air conditioner obtains the distance between the user and the binocular camera, the air conditioner determines whether the distance is in an increasing state or a decreasing state. It can be understood that when the distance corresponding to the previous moment is smaller than the distance corresponding to the later moment, it indicates that the distance is in an increased state; when the distance corresponding to the previous moment is greater than the distance corresponding to the next moment, the distance is in a reduced state, wherein the time difference between the previous moment and the next moment can be set according to specific requirements.
And if the air conditioner determines that the distance is in an increasing state, the air conditioner determines the increasing amplitude of the distance, increases the wind speed of the air conditioner according to the increasing amplitude and the wind speed adjusting strategy to obtain the increased wind speed, and operates at the increased wind speed. It can be understood that the distance is increased by subtracting the distance between the user and the binocular camera at the previous moment from the distance between the user and the binocular camera at the next moment. Specifically, in the wind speed adjustment strategy, a mapping relationship between the distance increase range and the wind speed increase range is set. If the wind speed adjusting strategy can be set to be that the wind speed is increased by 6% every time the distance is increased by 0.4 m; or setting the wind speed adjusting strategy to increase the wind speed by 10% every 0.5 m increase; or the wind speed adjusting strategy is set to increase the wind speed by 12% every 0.7 m.
And e2, if the distance is in a reduction state, reducing the wind speed of the air conditioner according to the reduction amplitude of the distance and the wind speed adjusting strategy, and controlling the air conditioner to operate at the reduced wind speed.
If the air conditioner determines that the distance between the user and the binocular camera is in a reduction state, the air conditioner determines the reduction amplitude of the distance between the user and the binocular camera, reduces the current wind speed according to the reduction amplitude and the wind speed adjusting strategy to obtain the reduced wind speed, and operates at the reduced wind speed. The distance reduction range is the distance between the user and the binocular camera obtained at the previous moment minus the distance between the user and the binocular camera obtained at the later moment. In the wind speed adjustment strategy, a mapping relationship between the distance reduction amplitude and the wind speed reduction amplitude is set, and the mapping relationship may be set according to specific needs. It should be noted that, when the air conditioner adjusts the air speed according to the distance between the user and the binocular camera, it may not be distinguished whether the air conditioner is currently in the heating mode or the cooling mode, that is, when the air conditioner is in the heating mode and the cooling mode, the same air speed adjustment strategy may be adopted.
And/or step f, adjusting the output temperature of the air conditioner according to a preset temperature adjustment strategy according to the distance, and controlling the air conditioner to operate according to the adjusted output temperature.
Specifically, the air conditioner adjusts the output temperature according to a preset temperature adjustment strategy according to the distance between the user and the binocular camera to obtain the adjusted output temperature, and operates at the adjusted output temperature. Wherein the temperature adjustment strategy is pre-stored in the air conditioner.
Further, step f comprises:
and f1, if the air conditioner is in a cooling mode, when the distance is determined to be in an increasing state, reducing the output temperature of the air conditioner according to the increasing amplitude of the distance and the temperature adjusting strategy, and controlling the air conditioner to operate at the reduced output temperature.
When the air conditioner adjusts the output temperature according to the distance between the user and the binocular camera, the air conditioner acquires the current mode identification, and determines the current operation mode according to the mode identification. The operation modes comprise a cooling mode and a heating mode, and each operation mode has a unique mode identifier, so that the current operation mode can be determined through the mode identifier.
When the air conditioner determines that the current operation mode is the cooling mode, the air conditioner determines whether the distance between the user and the binocular camera is in an increasing state or a decreasing state. And when the user is determined to be in the increasing state, the air conditioner determines the increasing amplitude of the distance between the user and the binocular camera, reduces the current output temperature according to the increasing amplitude of the distance and a pre-stored temperature adjusting strategy to obtain the reduced output temperature, and operates according to the reduced output temperature. It is understood that the output temperature of the air conditioner at this time is a reduced output temperature.
In the temperature adjustment strategy, a mapping relation between the distance increase amplitude and the output temperature decrease amplitude is preset. If the temperature adjustment strategy can be set to be that the output temperature is reduced by 0.3 ℃ every time the distance is increased by 0.5 m; or the temperature adjustment strategy is set to reduce the output temperature by 0.5 ℃ every time the distance is increased by 1 meter, and the like.
And f2, if the distance is in a decreasing state, increasing the output temperature of the air conditioner according to the decreasing amplitude of the distance and the temperature adjusting strategy, and controlling the air conditioner to operate at the increased output temperature.
If the air conditioner determines that the distance between the user and the binocular camera is in a reduction state in the refrigeration mode, the air conditioner increases the current output temperature according to the reduction amplitude of the distance and a temperature adjustment strategy to obtain the increased output temperature, and the air conditioner operates at the increased output temperature. It should be noted that the temperature adjustment strategies for the distance in the decreasing state and the increasing state are different. In the temperature adjustment strategy, a mapping relation between the distance reduction amplitude and the output temperature increase amplitude is preset, and the mapping relation can be set according to specific needs.
And f3, if the air conditioner is in a heating mode, when the distance is determined to be in an increasing state, increasing the output temperature of the air conditioner according to the increasing range of the distance and the temperature adjusting strategy, and controlling the operation of the air conditioner according to the increased output temperature.
And f4, if the distance is in a reducing state, reducing the output temperature of the air conditioner according to the reducing amplitude of the distance and the temperature adjusting strategy, and controlling the air conditioner to operate at the reduced output temperature.
If the air conditioner determines that the current operation mode is the heating mode, the air conditioner determines whether the distance between the user and the binocular camera is in an increasing state or a decreasing state. If the distance is determined to be in the increasing state, the air conditioner increases the output temperature according to the increasing range of the distance and the temperature adjusting strategy to obtain the increased output temperature, and the air conditioner operates at the increased output temperature. In the temperature adjustment strategy, a mapping relationship between the distance increase range and the output temperature increase range is preset, and the mapping relationship can be set according to specific needs.
And if the air conditioner determines that the distance between the user and the binocular camera is in a reduction state in the heating mode, determining the reduction amplitude of the distance by the air conditioner, reducing the output temperature according to the reduction amplitude of the distance and a temperature adjustment strategy to obtain the reduced output temperature, and operating at the reduced output temperature. It is understood that the output temperature of the air conditioner at this time is a reduced output temperature. In the temperature adjustment strategy, a mapping relation between the distance reduction amplitude and the output temperature reduction amplitude is preset, the mapping relation can be set according to specific needs, the reduction amplitude of the output temperature can be determined according to the mapping relation, and therefore the reduced output temperature can be determined. It is understood that the difference between the output temperature after the reduction and the output temperature before the reduction is equal to the reduction of the output temperature.
According to the embodiment, the environment image of the area where the air conditioner is located is shot through the binocular camera in the air conditioner, then the parallax value of the user image in the environment image shot by the binocular camera is determined, the distance between the user and the air conditioner is determined according to the parallax value and the camera parameter of the binocular camera, the air conditioner is controlled to operate according to the distance, the operation parameter of the air conditioner is automatically adjusted according to the change of the distance between the user and the air conditioner, the operation of the air conditioner is enabled to be more in line with the requirements of the user, and the accuracy of the control of the operation parameter of the air conditioner is improved.
It should be noted that, a monocular camera may also be used to determine the distance between the user and the air conditioner, but if the distance between the user and the air conditioner is to be determined by the monocular camera, a large number of experiments need to be performed first, a large number of experimental data obtained by the experiments are analyzed to obtain a mapping relationship between the user image pixels and the distance, and then the distance between the user and the monocular camera is determined according to the mapping relationship; and the mapping relation between the user image pixel corresponding to different monocular cameras and the distance is different. Therefore, compared with a monocular camera, the distance between the user and the air conditioner is determined by the binocular camera, the calculation amount is low, the calculation efficiency is high, the distance is directly calculated through the parallax value and the camera shooting parameters of the camera, errors caused by experiments are avoided, and the calculation accuracy is high.
Further, a second embodiment of the control method of the air conditioner of the present invention is provided.
The second embodiment of the control method of the air conditioner is different from the first embodiment of the control method of the air conditioner in that, referring to fig. 2, the control method of the air conditioner further includes:
and step S40, calibrating and correcting the binocular camera.
After the air conditioner is provided with the binocular camera, the binocular camera is calibrated and corrected. Specifically, the calibration principle is as follows: the radial distortion of the image exists due to the characteristics of the optical lens of the camera, and can be determined by three parameters k1, k2 and k 3; due to errors in camera assembly, the sensor and the optical lens are not perfectly parallel, so that tangential distortion exists in the image, which can be determined by two parameters p1 and p 2. The calibration of a single camera mainly comprises the steps of determining internal parameters (focal length f and imaging original points cx and cy, five distortion parameters (generally only k1, k2, p1 and p2 need to be determined, and k3 needs to be determined only when the radial distortion of a fisheye lens is particularly large)) and external parameters (world coordinates of a calibration object) of the camera; the calibration of the binocular camera requires obtaining internal parameters of each camera, and also requires measuring the relative position between the two cameras (i.e., a rotation matrix R and a translation vector t of the right camera relative to the left camera) through calibration.
The binocular correction is to respectively eliminate distortion and line alignment of left and right views according to monocular internal reference data (focal length, imaging origin, distortion coefficient) and binocular relative position relationship (rotation matrix and translation vector) obtained after the cameras are calibrated, so that the imaging origin coordinates of the left and right views are consistent, the optical axes of the two cameras are parallel, the left and right imaging planes are coplanar and the epipolar line is aligned, thus any point on one image and the corresponding point on the other image have the same line number necessarily, and the corresponding point can be matched only by one-dimensional search of the line.
This embodiment is markd and is corrected through the binocular camera on the air conditioner, makes when confirming the distance between user and the air conditioner through the binocular camera, and the formation of image origin coordinate of the left and right views that the binocular camera corresponds is unanimous, two camera optical axes are parallel, control the formation of image plane coplane and alignment of epipolar line row about to reduce the error when the binocular camera shoots the image, thereby improved the rate of accuracy between definite user and the air conditioner.
Further, a third embodiment of the control method of the air conditioner of the present invention is provided.
The third embodiment of the control method of the air conditioner is different from the first or second embodiment of the control method of the air conditioner in that, referring to fig. 3, the control method of the air conditioner further includes:
and step S50, sending the adjusted operation parameters to a mobile terminal connected with the air conditioner, so that the mobile terminal can output the adjusted operation parameters.
And when the air conditioner adjusts the operation parameters according to the determined distance and obtains the adjusted operation parameters, the air conditioner sends the adjusted operation parameters to the mobile terminal connected with the air conditioner. And after the mobile terminal receives the adjusted operation parameters, the mobile terminal outputs the adjusted operation parameters in a screen of the mobile terminal. Specifically, the mobile terminal may output the adjusted operating parameter in a manner of voice or text. In this embodiment, the mobile terminal may be a mobile phone, a personal computer, or the like.
The control method of the air conditioner further includes:
and j, outputting the adjusted operation parameters on a display screen of the air conditioner.
Further, after the air conditioner obtains the adjusted operating parameters, the air conditioner outputs the adjusted operating parameters on a display screen of the air conditioner so as to inform a user of the current operating parameters of the air conditioner. The embodiment does not limit the output mode of the air conditioner for outputting the operation parameters, and the user can set the output mode of the air conditioner for outputting the operation parameters according to the requirement. It can be understood that the air conditioner may also output the adjusted operating parameter on the display screen while transmitting the adjusted operating parameter to the mobile terminal.
In the embodiment, the adjusted operation parameters of the air conditioner are sent to the mobile terminal, and/or the adjusted operation parameters are output on the display screen of the air conditioner, so that a user can know the current operation parameters of the air conditioner in real time.
In addition, the invention also provides an air conditioner. As shown in fig. 4, fig. 4 is a schematic structural diagram of a hardware operating environment according to an embodiment of the present invention.
It should be noted that fig. 4 is a schematic structural diagram of a hardware operating environment of the air conditioner.
As shown in fig. 4, the air conditioner may include: a processor 1001, such as a CPU, a memory 1005, a user interface 1003, a network interface 1004, a communication bus 1002. Wherein a communication bus 1002 is used to enable connective communication between these components. The user interface 1003 may comprise a Display screen (Display), an input unit, and the optional user interface 1003 may further comprise a standard wired interface, a wireless interface. The network interface 1004 may optionally include a standard wired interface, a wireless interface (e.g., WI-FI interface). The memory 1005 may be a high-speed RAM memory or a non-volatile memory (e.g., a magnetic disk memory). The memory 1005 may alternatively be a storage device separate from the processor 1001.
Optionally, the air conditioner may further include an RF (Radio Frequency) circuit, a sensor, a WiFi module, and the like.
Those skilled in the art will appreciate that the air conditioner configuration shown in fig. 4 is not intended to be limiting and may include more or fewer components than shown, or some components may be combined, or a different arrangement of components.
As shown in fig. 4, a memory 1005, which is a kind of computer storage medium, may include therein an operating system, a network communication module, a user interface module, and a control program of an air conditioner. The operating system is a program for managing and controlling hardware and software resources of the air conditioner, and supports the operation of a control program of the air conditioner and other software or programs.
In the air conditioner shown in fig. 4, the user interface 1003 is mainly used for connecting a mobile terminal and performing data communication with the mobile terminal; the network interface 1004 is mainly used for the background server and performs data communication with the background server; the processor 1001 may be configured to call a control program of the air conditioner stored in the memory 1005 and perform the respective steps of the control method of the air conditioner as described above.
The specific embodiment of the air conditioner of the present invention is basically the same as the embodiments of the control method of the air conditioner, and is not described herein again.
Furthermore, an embodiment of the present invention further provides a computer-readable storage medium, in which a control program of an air conditioner is stored, and the control program of the air conditioner, when executed by a processor, implements the steps of the control method of the air conditioner as described above.
The specific implementation of the computer-readable storage medium of the present invention is substantially the same as the embodiments of the control method of the air conditioner, and will not be described herein again.
It should be noted that, in this document, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or apparatus. Without further limitation, an element defined by the phrase "comprising an … …" does not exclude the presence of other like elements in a process, method, article, or apparatus that comprises the element.
The above-mentioned serial numbers of the embodiments of the present invention are merely for description and do not represent the merits of the embodiments.
Through the above description of the embodiments, those skilled in the art will clearly understand that the method of the above embodiments can be implemented by software plus a necessary general hardware platform, and certainly can also be implemented by hardware, but in many cases, the former is a better implementation manner. Based on such understanding, the technical solutions of the present invention may be embodied in the form of a software product, which is stored in a storage medium (such as ROM/RAM, magnetic disk, optical disk) and includes instructions for enabling a terminal device (such as a mobile phone, a computer, a server, an air conditioner, or a network device) to execute the method according to the embodiments of the present invention.

Claims (10)

1. A control method of an air conditioner is characterized by comprising the following steps:
shooting a user image of a user in an area where an air conditioner is located through a binocular camera in the air conditioner, and determining a parallax value of the user image in an environment image corresponding to the area where the air conditioner is located, which is shot by the binocular camera;
determining the distance between the user corresponding to the user image and the binocular camera according to the parallax value and the camera shooting parameters of the binocular camera;
and adjusting the operation parameters of the air conditioner according to the distance, and controlling the air conditioner to operate according to the adjusted operation parameters.
2. The method as claimed in claim 1, wherein the step of adjusting the operation parameter of the air conditioner according to the distance and controlling the operation of the air conditioner according to the adjusted operation parameter comprises:
adjusting the wind speed of the air conditioner according to the distance and a preset wind speed adjusting strategy to control the air conditioner to operate according to the adjusted wind speed;
and/or adjusting the output temperature of the air conditioner according to a preset temperature adjustment strategy according to the distance so as to control the operation of the air conditioner according to the adjusted output temperature.
3. The method as claimed in claim 2, wherein the step of adjusting the wind speed of the air conditioner according to a preset wind speed adjustment strategy based on the distance to control the operation of the air conditioner at the adjusted wind speed comprises:
if the distance is in an increasing state, increasing the wind speed of the air conditioner according to the increasing range of the distance and the wind speed adjusting strategy, and controlling the air conditioner to operate at the increased wind speed;
and if the distance is in a reduction state, reducing the wind speed of the air conditioner according to the reduction amplitude of the distance and the wind speed adjusting strategy, and controlling the air conditioner to operate at the reduced wind speed.
4. The method as claimed in claim 2, wherein the step of adjusting the output temperature of the air conditioner according to a preset temperature adjustment strategy based on the distance to control the operation of the air conditioner with the adjusted output temperature comprises:
if the air conditioner is in a refrigeration mode, when the distance is determined to be in an increasing state, reducing the output temperature of the air conditioner according to the increasing amplitude of the distance and the temperature adjusting strategy, and controlling the air conditioner to operate at the reduced output temperature;
if the distance is in a decreasing state, increasing the output temperature of the air conditioner according to the decreasing amplitude of the distance and the temperature adjusting strategy, and controlling the air conditioner to operate at the increased output temperature;
if the air conditioner is in a heating mode, when the distance is determined to be in an increasing state, increasing the output temperature of the air conditioner according to the increasing amplitude of the distance and the temperature adjusting strategy, and controlling the operation of the air conditioner according to the increased output temperature;
and if the distance is in a reduction state, reducing the output temperature of the air conditioner according to the reduction amplitude of the distance and the temperature adjustment strategy, and controlling the air conditioner to operate at the reduced output temperature.
5. The method as claimed in claim 1, wherein the step of determining the parallax value of the user image in the environment image corresponding to the area where the air conditioner is located, which is shot by the binocular camera of the air conditioner, comprises:
shooting a user image of a user in an area where an air conditioner is located through a binocular camera in the air conditioner, and acquiring imaging coordinates of imaging points of the user image in an environment image corresponding to the area where the air conditioner is located, which is shot by the binocular camera;
and determining a parallax value of the user image in the environment image according to the imaging coordinate.
6. The method of claim 1, wherein the step of determining a distance between the user image corresponding to the user and the binocular camera according to the disparity value and the camera parameters of the binocular camera comprises:
determining the product of the focal length of the binocular camera and the center distance of the binocular camera;
and dividing the product by the parallax value to obtain the distance between the user corresponding to the user image and the binocular camera.
7. The method as claimed in claim 1, wherein the step of capturing the user image of the user in the area where the air conditioner is located by the binocular camera in the air conditioner and determining the parallax value of the user image in the environment image corresponding to the area where the air conditioner is located captured by the binocular camera further comprises:
and calibrating and correcting the binocular camera.
8. The method for controlling an air conditioner according to any one of claims 1 to 7, further comprising, after the step of adjusting the operation parameter of the air conditioner according to the distance and controlling the operation of the air conditioner according to the adjusted operation parameter:
outputting the adjusted operation parameters on a display screen of the air conditioner;
and/or sending the adjusted operation parameters to a mobile terminal connected with the air conditioner so that the mobile terminal can output the adjusted operation parameters.
9. An air conditioner, characterized in that the air conditioner comprises a memory, a processor, and a control program of the air conditioner stored on the memory and executable on the processor, the control program of the air conditioner realizing the steps of the control method of the air conditioner according to any one of claims 1 to 8 when executed by the processor.
10. A computer-readable storage medium, characterized in that a control program of an air conditioner is stored thereon, which when executed by a processor implements the steps of the control method of the air conditioner according to any one of claims 1 to 8.
CN201911188276.6A 2019-11-26 2019-11-26 Control method of air conditioner, air conditioner and computer readable storage medium Pending CN110848907A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201911188276.6A CN110848907A (en) 2019-11-26 2019-11-26 Control method of air conditioner, air conditioner and computer readable storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201911188276.6A CN110848907A (en) 2019-11-26 2019-11-26 Control method of air conditioner, air conditioner and computer readable storage medium

Publications (1)

Publication Number Publication Date
CN110848907A true CN110848907A (en) 2020-02-28

Family

ID=69605557

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201911188276.6A Pending CN110848907A (en) 2019-11-26 2019-11-26 Control method of air conditioner, air conditioner and computer readable storage medium

Country Status (1)

Country Link
CN (1) CN110848907A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111412612A (en) * 2020-03-31 2020-07-14 广东美的制冷设备有限公司 Vortex ring generation method based on air conditioner, storage medium and device

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103471213A (en) * 2012-06-05 2013-12-25 日立空调·家用电器株式会社 Air conditioner, and method of controlling air conditioner
CN106091232A (en) * 2016-05-31 2016-11-09 珠海格力电器股份有限公司 A kind of wind speed control method for air-conditioning, device and air conditioning system
CN109028515A (en) * 2018-07-23 2018-12-18 广东美的制冷设备有限公司 Control method, air conditioner and the storage medium of air conditioner
EP3511933A1 (en) * 2017-08-31 2019-07-17 Humax Co., Ltd. System and method for providing voice recognition image feedback

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103471213A (en) * 2012-06-05 2013-12-25 日立空调·家用电器株式会社 Air conditioner, and method of controlling air conditioner
CN106091232A (en) * 2016-05-31 2016-11-09 珠海格力电器股份有限公司 A kind of wind speed control method for air-conditioning, device and air conditioning system
EP3511933A1 (en) * 2017-08-31 2019-07-17 Humax Co., Ltd. System and method for providing voice recognition image feedback
CN109028515A (en) * 2018-07-23 2018-12-18 广东美的制冷设备有限公司 Control method, air conditioner and the storage medium of air conditioner

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
高宏伟: "《电子封装工艺与装备技术基础教程》", 31 July 2017, 西安电子科技大学出版社 *

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111412612A (en) * 2020-03-31 2020-07-14 广东美的制冷设备有限公司 Vortex ring generation method based on air conditioner, storage medium and device

Similar Documents

Publication Publication Date Title
US20180227478A1 (en) Image preview method, apparatus and terminal
US20180276833A1 (en) Electronic device and method for processing image
US20170318233A1 (en) Noise Models for Image Processing
KR102149187B1 (en) Electronic device and control method of the same
US9892514B2 (en) Post-manufacture camera calibration
CN105453136B (en) The three-dimensional system for rolling correction, method and apparatus are carried out using automatic focus feedback
RU2578210C1 (en) Method and device for correcting skin colour
US8994845B2 (en) System and method of adjusting a camera based on image data
US9794529B2 (en) Method for acquiring image and electronic device thereof
US9288392B2 (en) Image capturing device capable of blending images and image processing method for blending images thereof
US20160094770A1 (en) Image Processing Method and Apparatus, and Terminal
US10880493B2 (en) Imaging device, method and system of providing fill light, and movable object
US10715773B2 (en) Method and system of lens shading color correction using block matching
EP3331231A1 (en) Image processing apparatus, image processing method, and imaging system
US9973672B2 (en) Photographing for dual-lens device using photographing environment determined using depth estimation
EP2889832B1 (en) Image processing apparatus and method
US20180096487A1 (en) Systems and methods for fusing images
US10692274B2 (en) Image processing apparatus and method
CN105025215B (en) A kind of terminal realizes the method and device of group photo based on multi-cam
WO2019105154A1 (en) Image processing method, apparatus and device
KR102222073B1 (en) Method and electronic device for taking a photograph
US9338439B2 (en) Systems, methods, and computer program products for runtime adjustment of image warping parameters in a multi-camera system
JP5592006B2 (en) 3D image processing
JP4960992B2 (en) Image processing method and image processing apparatus for fisheye correction and perspective distortion reduction
JP2017520050A (en) Local adaptive histogram flattening

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination