METHOD AND APPARATUS FOR AIR PURIFICATION AND STORAGE MEDIUM

A method and apparatus for air purification are provided. The method includes: acquiring an image of a room to be purified and determining a location at which the image is acquired; determining spatial capacity information of the room to be purified according to the image and the location; and performing air purification for the room to be purified using a purification strategy corresponding to the spatial capacity information.

Skip to: Description  ·  Claims  · Patent History  ·  Patent History
Description
CROSS-REFERENCE TO RELATED APPLICATION

The present application is based upon and claims the benefit of Chinese Patent Application No. CN 201611042676.2 filed on Nov. 23, 2016, the entire contents of which are incorporated herein by reference.

TECHNICAL FIELD

The present disclosure relates to the field of intelligent terminal technology, and more particularly to a method and apparatus for air purification and storage medium.

BACKGROUND

With the development of intelligent equipments, intelligent equipments, such as smart TV, intelligent air conditioner, intelligent refrigerator, smart printer and so on, have become popular in daily life.

At present, there are more and more harmful substances in the air due to industrial pollution, automobile exhaust emissions or the like. Therefore, in order for reducing inhalation of harmful gases to maintain good health, more and more users use the air purifier which can absorb, decompose or transform various air pollutants and thus effectively improve air cleanliness. With the development of intelligent equipment technology, the air purifier has also become a kind of intelligent equipment with communication ability and computation ability.

SUMMARY

The embodiments of the present disclosure provide a method and apparatus for air purification, the solutions of which are discussed as follow.

According to a first aspect of the embodiments of the present disclosure, there is provided a method for air purification. The method may include: acquiring an image of a room to be purified; determining a location at which the image is acquired; determining spatial capacity information of the room to be purified according to the image and the location; and using a purification strategy corresponding to the spatial capacity information to perform air purification for the room to be purified.

According to a second aspect of the embodiments of the present disclosure, there is provided an apparatus for air purification. The apparatus includes: an acquisition module configured to acquire an image of a room to be purified and determining a location at which the image is acquired; a determination module configured to determine spatial capacity information of the room to be purified according to the image and the location; and a purification module configured to use a purification strategy corresponding to the spatial capacity information to perform air purification for the room to be purified.

According to a third aspect of the embodiments of the present disclosure, there is provided an apparatus for air purification in a terminal device. The apparatus includes: a processor; a memory for storing processor executable instructions; wherein the processor is configured to: acquire an image of a room to be purified; determining a location at which the image is acquired; determine spatial capacity information of the room to be purified according to the image and the location; and use a purification strategy corresponding to the spatial capacity information to perform air purification for the room to be purified.

According to a fourth aspect of the embodiments of the present disclosure, there is provided a non-transitory computer readable storage medium having stored therein instructions that, when executed by an apparatus, cause the apparatus to perform a method for air purification, the method includes: acquiring an image of a room to be purified and determining a location at which the image is acquired; determining spatial capacity information of the room to be purified according to the image and the location; and performing air purification for the room to be purified using a purification strategy corresponding to the spatial capacity information.

It is to be understood that both the foregoing general descriptions and the following detailed descriptions are exemplary and explanatory only and do not limit the scope of the disclosure.

BRIEF DESCRIPTION OF THE DRAWINGS

The drawings herein are incorporated in and constitute a part of this specification, showing embodiments consistent with the present disclosure, and together with the descriptions, serve to explain the principles of the present disclosure.

FIG. 1 is a flow chart of a method for air purification according to an exemplary embodiment.

FIG. 2 is a schematic representation of a corresponding triangle for acquisition of a first distance according to an exemplary embodiment.

FIG. 3 is a schematic representation of a corresponding triangle for acquisition of a first distance according to an exemplary embodiment.

FIG. 4 is a schematic view for determining a floor area of a room to be purified according to an exemplary embodiment.

FIG. 5 is a schematic diagram illustrating a system of an apparatus for air purification purifying a room according to an exemplary embodiment.

FIG. 6 is a flow chart of a method for air purification according to an exemplary embodiment.

FIG. 7 is a schematic diagram illustrating a system of an apparatus for air purification purifying a room according to an exemplary embodiment.

FIG. 8 is a flow chart of a method for air purification according to an exemplary embodiment.

FIG. 9 is a block diagram of an apparatus for air purification according to an exemplary embodiment.

FIG. 10 is a block diagram of an apparatus for air purification according to an exemplary embodiment.

FIG. 11 is a block diagram of an apparatus for air purification according to an exemplary embodiment.

FIG. 12 is a block diagram of an apparatus 1200 for air purification according to an exemplary embodiment.

DETAILED DESCRIPTION

Hereinafter, exemplary embodiments will be described in detail, examples of which are shown in the drawings. In the following descriptions when referring to the drawings, the same numerals in different drawings denote the same or similar elements unless otherwise indicated. The embodiments described in the following exemplary embodiments are not representative of all embodiments consistent with the present disclosure. Rather, they are merely examples of apparatuses and methods consistent with some aspects of the present disclosure as detailed in the appended claims.

With the technical solution provided by the embodiments of the present disclosure, corresponding space capacity information can be determined according to an image of a room to be purified, so that air purification of the room to be purified can be carried out by a corresponding purification strategy. As thus, a purification strategy can be intelligently adjusted according to spatial capacity of a room to be purified, and thus intelligent performance of an air purifier can be improved.

FIG. 1 is a flow chart of a method for air purification according to an exemplary embodiment. As shown in FIG. 1, the method includes the following steps of S101 to S103.

In step S101, an image of a room to be purified is acquired and a location at which the image is acquired is determined.

Here, an apparatus for air purification can obtain the image of the room to be purified. The apparatus for air purification may carry an image acquisition device, such as a camera, whereby the image of the room to be purified can be obtained by the image acquisition device. Alternatively, the apparatus for air purification may communicate with an apparatus carrying an image acquisition device, for example, communicate with a camera mounted at the ceiling of the room, so as to obtain the image of the room to be purified. It can be seen that the image of the room to be purified can be obtained in a more flexible manner, including acquiring the image of the room to be purified by using an image acquisition device, or acquiring the image of the room to be purified by communicating with an apparatus including an image acquisition device.

Further, in the present embodiments, it is also necessary to determine the location where the image is acquired. For example, in the case that the image of the room to be purified is acquired by using an incorporated image acquisition device, the position of the image acquisition device in the apparatus for air purification can be determined. Alternatively, it is possible to determine a position of an incorporated distance measuring device in the apparatus for air purification.

In step S102, spatial capacity information of the room to be purified is determined according to the image and the location.

In some embodiments, the image can be identified to determine positions of corner points of the room to be purified, and then, the space capacity information of the room to be purified can be determined based on the positions of the corner points and the location at which the image is acquired.

In some embodiments, a process for identifying the image to determine positions of the corner points of the room to be purified may include: determining wall intersecting lines within the room to be purified by comparing colors of shadows of respective walls in the image of the room to be purified; and determining the position of each corner point of the room to be purified according to an intersection point of every three intersecting lines.

After the positions of the corner points are determined, the spatial capacity information of the room to be purified may be determined based on the positions of the corner points and the location at which the image is acquired, particularly including: determining a first distance between a projection point of the location at which the image is acquired on a first plane of the room to be purified and each of the corner points on the first plane, based on the positions of the corner points and said location at which the image is acquired, wherein the first plane includes a floor or ceiling of the room to be purified; determining a second distance between every two corner points based on the positions of the corner points; and determining the spatial capacity information of the room to be purified according to the first distances and the second distances.

In some embodiments, the first distance between a projection point of the location on a first plane of the room to be purified and each of the corner points on the first plane may be determined by: determining a first height of the image acquisition device from the first plane of the room to be purified according to the positions of the corner points and the image acquisition location; determining an angle between a first straight line determined by the image acquisition device and a corner point on the first plane and a vertical line passing the image acquisition device according to the positions of the corner points; and calculating the first distance between the projection point of the location at which the image is acquired on the first plane and the corner point according to the first height and the angle.

FIG. 2 is a schematic view showing a corresponding triangle for acquisition of a first distance according to an exemplary embodiment. As shown in FIG. 2, the image acquisition device is located at a point A, its projection point on the floor of the room to be purified is B, and a corner point is C. Here, the first plane is the floor, so that the corner point is an intersection between a wall and the floor.

In general, the location where the image is acquired is determined (in the example, the installation position of the image acquisition device is known), so it is possible to determine a first height of the image acquisition device from the floor of the room to be purified, i.e., the height between A and B is the first height h. Further, a first straight line is determined by the image acquisition device at the time of image acquisition with the corner point C, and the angle between the first straight line and the vertical line passing the image acquisition device is also known, i.e., the angle θ between the line AC and the line AB is known. Thus, a first distance between the floor position point and the corner point can be determined, i.e. the first length of the line BC L=htgθ.

In some embodiments, if the first plane is the ceiling of the room to be purified, the corner point C is an intersection between a wall and the ceiling. The incorporated image acquisition device is located at a point A and its projection point on the ceiling of the room to be purified is B. Then, the first distance is a distance between the projection point on the ceiling and the corner point. After determining the height h of the image acquisition device from the floor of the room to be purified, a first height (H−h) can be determined based on the height H of the room to be purified, that is, the length of the line AB is (H−h). Again, the angle θ between the line AC and the line AB is known. Thus, the first distance between the ceiling position point and the corner point can be determined, i.e. the first length of the line BC L=(H−h)tgθ.

The height H of the room to be purified may be a preset height or a vertical distance between a corner point on the floor and a corner point on the ceiling.

Alternatively, a first distance between a projection point of the location on a first plane of the room to be purified and each of the corner points on the first plane may be determined by: determining a second height of a distance measuring device from the first plane of the room to be purified; acquiring, by the distance measuring device, a corner distance between the distance measuring device and the corner point on the first plane; calculating the first distance between the projection point of the location at which the image is acquired on the first plane and the corner point according to the second height and corner distance.

FIG. 3 is a schematic diagram showing a corresponding triangle for acquisition of a first distance according to an exemplary embodiment. As shown in FIG. 3, an incorporated distance measuring device is located at a point A, its projection point on the floor of the room to be purified is B, and a corner point is C. Here, the first plane is the floor, so that the corner point is an intersection between a wall and the floor.

Similarly, the location where the image is acquired is determined (in the example, the installation position of the image acquisition device is known), and it is possible to determine a second height of the distance measuring device from the floor of the room to be purified, i.e., the height between A and B is the second height h. Further, the distance measuring device can make measurement to obtain a corner distance between the distance measuring device and the corner point, that is, the length X of the line AC. Thus, a first distance between the floor position point and the corner point can be determined according to the Pythagorean theorem, i.e. the first distance L=√{square root over (X2−h2)}.

In some embodiments, if the first plane is the ceiling of the room to be purified, the corner point C is an intersection between a wall and the ceiling. The incorporated distance measuring device is located at a point A and its projection point on the ceiling of the room to be purified is B. Then, the first distance is a distance between the projection point on the ceiling and the corner point. After determining the height h of the distance measuring device from the floor of the room to be purified, a second distance (H−h) can be determined based on the height H of the room to be purified. Further, the distance measuring device can make measurement to obtain a corner distance between the distance measuring device and the corner point, that is, the length X of the line AC. Thus, a first distance between the ceiling position point and the corner point can be determined according to the Pythagorean theorem, i.e. the first distance L=√{square root over (X2−(H−h)2)}.

The height H of the room to be purified may be a preset height or a vertical distance between a corner point on the floor and a corner point on the ceiling.

After the positions of the corner points of the room to be purified and the first distances have been determined, a second distance between every two corner points can be determined from the positions of the corner points and the first distances. For example, in the case that the first plane is the floor, four corner points C1, C2, C3 and C4 on the floor have been identified. The image acquisition device is located at a point A, and its projection point on the floor of the room to be purified is B, and the height of the line AB and the first lengths of the lines BC1, BC2, BC3 and BC4 have been determined. Thus, according to the Pythagorean theorem for a right angle triangle, the lengths of the lines AC1, AC2, AC3 and AC4 can be determined as L1, L2, L3 and L4, respectively. In this way, the second distance between every two corner points can be obtained according to the cosine theorem. For example, the second distance between the corner point C1 and the corner point C2 is √{square root over (L12+L22−2L1L2 cos α)}, where α is the angle ∠C1AC2 between the line AC1 and the line AC2.

Since the corner points C1, C2, C3 and C4 have been determined separately, a can be determined by the image acquisition device. For example, after the center capturing point of the image acquisition device aims at the corner point C1, the image acquisition device is driven to rotate until the center capturing point of the image acquisition device aims at the corner point C2. The rotation angle of the image acquisition device can be recorded as the angle α. Alternatively, at each time the image acquisition device performs capturing, it rotates from a preset start point, so that corresponding rotation angles and rotation directions for capturing can be recorded when capturing the corner points C1, C2, C3 and C4, respectively. The rotation angles may be denoted as α1, α2, α3 and α4. As thus, a certain operation can be performed on the rotation angles α1 and α2 to obtain the angle α. If the rotation direction is the same for all capturing, α=|α2−α1|.

In some embodiments, if A is the point where the distance measuring device is located, the length of the lines AC1, AC2, AC3 and AC4 can be directly measured, which are L1, L2, L3 and L4, respectively. Likewise, the second distance between corner points can be obtained according to the cosine theorem. For example, the second distance between the corner point C1 and the corner point C2 is √{square root over (L12+L22−2L1L2 cos α)}, where α is the angle ∠C1AC2 between the line AC1 and the line AC2.

Likewise, the α can be determined by the rotation angles of the distance measuring device during the measurements. For example, during the measurements, if the distance measurement device is rotated from a preset initial position to the position aiming at C1, the corresponding measurement angle is α1; and if the distance measurement device is rotated from the preset initial position to the position aiming at C2, the corresponding measurement angle is α2. As thus, a second distance between the corner points can be obtained according to the cosine theorem. For example, the second distance between the corner point C1 and the corner point C2 is √{square root over (L12+L22−2L1L2 cos(α12))}, where the rotation direction corresponding α1 is opposite to the rotation direction corresponding α2.

Thus, after determining the first distances and the second distances, the floor area of the room to be purified can be determined based on the first distances and the second distances. Then, the space capacity information of the room can be determined.

FIG. 4 is a schematic view for determining a floor area of a room to be purified according to an exemplary embodiment. As shown in FIG. 4, the room has four corners C1, C2, C3 and C4, and the floor position point is B. The first distance between the floor position point and each corner has been determined, i.e. the line BC1 has the length L1, the line BC2 has the length L2, the line BC3 has the length L3, and the line BC4 has the length L4. The second distance between every two corner points has also been determined, i.e., the line C1C2 has the length Y1, the line C2C3 has the length Y2, the line C3C4 has the length Y3, and the line C4C1 has the length Y4. Thus, according to the first distances and the second distances, the Helen formula can be used to determine the floor area of the room to be purified. Specifically, the area of the triangle BC1C2 is S1=√{square root over (P(P−L1)(P−L2)(P−Y1))}, where

p = L 1 + L 2 + Y 1 2 .

Similarly, the area S2 of the triangle BC2C3, the area S3 of the triangle BC3C4, and the area S4 of the triangle BC4C1 can be determined. Finally, the floor area S of the room to be purified can be determined by adding the areas of the four triangles.

In general, the height of a room is standard, which has a preset value, so that the space capacity information of the room to be purified can be determined according to the floor area S of the room and the preset value. Alternatively, since the second distance between every two corner points is determined, and there are two corner points the second distance between which may be the used to determine the height of the room, the space capacity information of the room can be determined according to the second distance and the floor area.

In step S103, air purification for the room to be purified is performed using a purification strategy corresponding to the spatial capacity information.

After the spatial capacity information of the room to be purified has been determined, a preset purification strategy corresponding to the spatial capacity information of the room to be purified is determined according to a correspondence relationship between preset spatial capacity information of the room to be purified and the preset purification strategy; and the preset purification strategy is performed to purify the air of the room to be purified.

For example, correspondence relationships between preset spatial capacity information of rooms to be purified and preset purification strategies are shown as in Table 1.

TABLE 1 Spatial Capacity Information Preset Purification Strategy <20 m3 Purification Strategy 1: 1st level of power, 1st gear of san speed ≥20 m3, but <50 m3 Purification Strategy 2: 1st level of power, 2nd gear of san speed ≥50 m3, but <80 m3 Purification Strategy 3: 2nd level of power, 3rd gear of san speed  ≥8 m3, but <100 m3 Purification Strategy 4: 2nd level of power, 4th gear of san speed . . . . . .

In this way, when it is determined in step S102 that the space capacity information of the room to be purified includes a capacity of 30 m3, the preset purification strategy may be determined as the Purification Strategy 2 including the first level of power and the second fan speed, according to the relationship of Table 1. As thus, the apparatus for air purification can run with the first level of power and the second gear speed of fan.

It can be seen that different spatial capacity information corresponds to different air purification strategies, so that intelligent adjustment of purification strategy can be realized according to the spatial capacity of the room to be purified, and intelligent performance of the air purifier can be improved.

The operation flow will be summarized below in a specific embodiment, illustrating the method provided by the embodiments of the present disclosure.

In the present embodiment, the apparatus for air purification carries an image acquisition device.

FIG. 5 is a schematic diagram illustrating a system of an apparatus for air purification purifying a room according to an exemplary embodiment. As shown in FIG. 5, the system includes a room 100, an air purifier 200, and an image acquisition device 300 mounted on the air purifier 200. The first plane is the floor of the room 100.

FIG. 6 is a flow chart of a method for air purification according to an exemplary embodiment. As shown in FIG. 6, the method includes the following steps of S601-S608.

In step S601, an image of the room 100 to be purified is acquired by the image acquisition device 300 and an installation position of the image acquisition device 300 in the air purifier 200 is determined.

In step S602, identification is performed to the image to determine positions of the corner points of the room 100 to be purified.

In some embodiments, colors of shadows of respective walls in the image may be compared to determine wall intersecting lines within the room to be purified by comparing; and then, the position of each corner point of the room to be purified may be determined according to an intersection point of every three intersecting lines.

In step S603, a first height of the incorporated image acquisition device 300 from the floor of the room 100 to be purified is determined.

The first height may be determined according to parameters of the installation position of the image acquisition device 300 in the air puffier 200 and the height of the air puffier 200.

In step S604, an angle between a first straight line determined by the image acquisition device 300 and a corner point and a vertical line passing the image acquisition device 300 is determined.

In step S605, the first distance between the floor position point and the corner point is obtained based on the first height and the angle.

In step S606, a second distance between every two corner points is determined.

In step S607, the space capacity information of the room 100 to be purified is determined based on the first distances and the second distances.

Similarly, the floor area of the room to be purified can be firstly determined based on the first distances and the second distances, and then the space capacity information of the room to be purified is determined. For example, the space capacity information of the room to be purified can be determined according to the preset height and the floor area of the room to be purified.

In step S608, air purification for the room 100 to be purified is performed by using a purification strategy corresponding to the space capacity information.

Here, a preset purification strategy corresponding to the spatial capacity information of the room to be purified can be determined according to a correspondence relationship between preset spatial capacity information for the room to be purified and preset purification strategies; and the preset purification strategy is performed to purify the air of the room to be purified.

It can be seen that in the present embodiment, corresponding space capacity information can be determined according to an image of a room to be purified, so that air purification of the room to be purified can be carried out by performing a corresponding purification strategy. As thus, a purification strategy can be intelligently adjusted according to spatial capacity of a room to be purified, and thus intelligent performance of an air purifier can be improved. In addition, by acquiring the image of the room to be purified by using the image acquisition device and determining the first distance between the floor position point and each of the corner points, the present embodiment can be applied to a scene with an image acquisition device installed.

In another embodiment the apparatus for air purification may include a distance measuring device.

FIG. 7 is a schematic diagram illustrating a system of an apparatus for air purification purifying a room according to an exemplary embodiment. As shown in FIG. 7, the system includes a room 100, an air purifier 200, and a distance measuring device 400 mounted on the air purifier 200. The first plane is the floor of room 100.

FIG. 8 is a flow diagram of a method for air purification according to an exemplary embodiment. As shown in FIG. 8, the method includes the following steps of S801-S808.

In step S801, an image of a room 100 to be purified is obtained by communicating with an apparatus including an image acquisition device, and an installation position of the distance measuring device 400 in the air purifier 200 is determined.

In step S802, the image is identified to determine corner points of the room 100 to be purified.

In step S803, a second height of the distance measuring device 400 from the floor of the room 100 to be purified is determined.

The second height may be determined according to the parameters of installation position of the distance measuring device 400 in the air purifier 200 and the height of the air purifier 200.

In step S804, a corner distance between the distance measuring device 400 and the corner point is obtained by the distance measuring device 400.

In step S805, a first distance between the floor position point and the corner point is obtained based on the second height and the corner distance.

In step S806, a second distance between every two corner points is determined.

In step S807, the space capacity information of the room 100 to be purified is determined based on the first distances and the second distances.

It is possible that the floor area of the room to be purified may be firstly determined according to the first distances and the second distances, and then the space capacity information of the room to be purified is determined according to the second distance and the floor area.

In step S808, the air purification of the room 100 to be purified is performed using a purification strategy corresponding to the space capacity information.

It can be seen that in the present embodiment, corresponding space capacity information can be determined according to an image of a room to be purified, so that air purification of the room to be purified can be carried out by performing a corresponding purification strategy. As thus, a purification strategy can be intelligently adjusted according to spatial capacity of a room to be purified, and thus intelligent performance of an air purifier can be improved. Further, the present embodiment can be applied to a scene with an distance measuring device installed.

The following is an apparatus embodiment of the present disclosure which may be used to carry out the method embodiments of the present disclosure.

FIG. 9 is a block diagram of an apparatus for air purification according to an exemplary embodiment. The apparatus may be implemented as part or all of an electronic device by software, hardware, or a combination of both. As shown in FIG. 9, the apparatus for air purification includes an acquisition module 710, a determination module 720, and a purification module 730.

The acquisition module 710 is configured to acquire an image of a room to be purified and determine a location at which the image is acquired.

The determination module 720 is connected to the acquisition module 710 and is configured to determine spatial capacity information of the room to be purified according to the image and the location.

The purification module 730 is connected to the determination module 720 and is configured to use a purification strategy corresponding to the spatial capacity information to perform air purification for the room to be purified.

It can be seen that corresponding space capacity information can be determined according to an image of a room to be purified, so that air purification of the room to be purified can be carried out by a corresponding purification strategy. As thus, a purification strategy can be intelligently adjusted according to spatial capacity of a room to be purified, and thus intelligent performance of an air purifier can be improved.

In an embodiment of the present disclosure, the acquisition module 710 may include a first acquisition sub-module or a second acquisition sub-module. The first acquisition sub-module is configured to acquire the image of the room to be purified by using an image acquisition device. The second acquisition sub-module is configured to acquire the image of the room to be purified by communicating with an apparatus including an image acquisition device. The image of the room to be purified includes images of respective corner points of the room.

In the present embodiment, the image of the room to be purified can be acquired in a more flexible manner, so it is simple to implement.

In an embodiment of the present disclosure, the determination module 720 may include: an identification sub-module configured to perform identification to the image to determine positions of the corner points of the room to be purified; and a determination sub-module configured to determine the spatial capacity information of the room to be purified in accordance with the position of the corner points and the location at which the image is acquired.

In the present embodiment, it is possible to determine the corner points of the room to be purified by an image recognition technique so that the corresponding space capacity information can be determined based on the corner points. As thus, the spatial capacity information can be determined by simply analyzing the image, and thereby the speed of air purification can be improved.

In an embodiment of the present disclosure, the identification sub-module may include: a first determination unit configured to determine wall intersecting lines within the room to be purified by comparing colors of shadows of respective walls in the image of the room to be purified; and a second determining unit configured to determine the position of each corner point of the room to be purified according to an intersection point of every three intersecting lines.

In the present embodiment, the wall intersection lines can be determined by simple comparison of the shadows, so the involved arithmetic operations are relatively less and thus occupies relatively smaller memory.

In an embodiment of the present disclosure, the determination sub-module may include: a first distance determination unit configured to determine a first distance between a projection point of the location on a first plane of the room to be purified and each of the corner points on the first plane, based on the positions of the corner points and the location, wherein the first plane includes the floor or ceiling of the room to be purified; a second distance determination unit configured to determine a second distance between every two corner points based on the positions of the corner points; a capacity determination unit configured to determine the spatial capacity information of the room to be purified according to the first distances and the second distances.

In this way, areas of the triangles formed by every two corner points and the floor position point can be determined based on the first distances and the second distances, so as to determine the spatial capacity information. Thus, the determination is relatively accurate, such that the purification strategy of the air purifier can be more accurately arranged to enhance the purification effect of the air purifier.

In an embodiment of the present disclosure, the first distance determination unit may be further configured to: determine a first height of the image acquisition device from the first plane of the room to be purified; determine an angle between a first straight line determined by the image acquisition device and a corner point on the first plane and a vertical line passing the image acquisition device; and calculate the first distance between the projection point of the location at which the image is acquired on the first plane and the corner point according to the first height and the angle.

In the present embodiment, the distance between the floor position point and the corner point can be obtained according to the height and the angle, and the present embodiment can be applied in a scene with an image acquisition device installed.

In an embodiment of the present disclosure, the first distance determination unit may further be configured to: determine a second height of a distance measuring device from the first plane of the room to be purified; acquire, by the distance measuring device, a corner distance between the distance measuring device and the corner point on the first plane; and calculate the first distance between the projection point of the location at which the image is acquired on the first plane and the corner point according to the second height and the corner distance.

In the present embodiment, the distance between the floor position point and the corner point can be determined by using the two sides of a right-angled triangle, and the present embodiment can be applied in a scene with a distance measuring device installed.

In an embodiment, the purification module 730 may include: a strategy decision sub-module configured to determine a preset purification strategy corresponding to the spatial capacity information of the room to be purified according to a correspondence relationship between preset spatial capacity information for the room to be purified and preset purification strategies; and a purification sub-module configured to perform the preset purification strategy to purify the air of the room to be purified.

It can be seen that the present embodiment has simple operations and is easy to implement by determining and performing a preset purification strategy directly obtained from stored corresponding relationship between preset spatial capacity information for the room to be purified and preset purification strategies.

The apparatus provided in the embodiments of the present disclosure will be described below as an example.

In the present embodiment, the first plane is the floor of the room to be purified.

FIG. 10 is a block diagram of an apparatus for air purification in accordance with an exemplary embodiment. As shown in FIG. 10, the apparatus includes an acquisition module 710, a determination module 720, and a purification module 730. The acquisition module 710 includes a first acquisition sub-module 711. The determination module 720 includes an identification sub-module 721 and a determination sub-module 722. The determination sub-module 722 includes a first distance determination unit 7221, a second distance determination unit 7222, and a capacity determination unit 7223.

In the present embodiment, the first acquisition sub-module 711 in the acquisition module 710 acquires an image of a room to be purified by using an image acquisition device, and the acquisition module 710 determines the location where the image is acquired. The identification sub-module 721 in the determination module 720 can then recognize the image to determine positions of corner points of the room to be purified.

The first distance determination unit 7221 in the determination sub-module 722 of the determination module 720 can determine a first height of the image acquisition device from the floor of the room to be purified, determine an angle between a first straight line determined by the image acquisition device and the corner point and a vertical line passing the image acquisition device, and calculate a first distance between the floor position point and the corner point based on the first height and the angle.

The second distance determination unit 7222 can determine a second distance between every two corner points. The capacity determination unit 7223 can determine the space capacity information of the room to be purified based on the first distances and the second distances.

In this way, the purification module 730 uses a purification strategy corresponding to the spatial capacity information to perform air purification for the room to be purified.

It can be seen that in the present embodiment, corresponding space capacity information can be determined according to an image of a room to be purified, so that air purification of the room to be purified can be carried out by a corresponding purification strategy. As thus, a purification strategy can be intelligently adjusted according to spatial capacity of a room to be purified, and thus intelligent performance of an air purifier can be improved. In addition, by acquiring the image of the room to be purified using an incorporated image acquisition device and determining the first distance between the floor position point and each of the corner points, the present embodiment can be applied to a scene with an image acquisition device installed.

As another embodiment, the first plane may be the ceiling of the room to be purified.

FIG. 11 is a block diagram of an apparatus for air purification in accordance with an exemplary embodiment. As shown in FIG. 11, the apparatus includes an acquisition module 710, a determination module 720, and a purification module 730. The acquisition module 710 includes a second acquisition sub-module 712. The determination module 720 includes an identification sub-module 721 and a determination sub-module 722. The determination sub-module 722 includes a first distance determination unit 7221, a second distance determination unit 7222, and a capacity determination unit 7223.

In the present embodiment, the second acquisition sub-module 712 in the acquisition module 710 acquires the image of the room to be purified by communicating with an apparatus including an image acquisition device, and the acquisition module 710 determines the location where the image is acquired. Then, the identification sub-module 721 in the determination module 720 can recognize the image to determine positions of corner points of the room to be purified.

The first distance determination unit 7221 in the sub-module 722 of the determination module 720 can determine a second height of a distance measuring device to the floor of the room to be purified; acquire, by the distance measuring device, a distance with a corner point between the distance measuring device and the corner point; and calculate the first distance between the floor position point and the corner point according to the second height and the corner distance.

The second distance determination unit 7222 can determine a second distance between every two corner points. The capacity determination unit 7223 can then determine the space capacity information of the room to be purified based on the first distances and the second distances.

In this way, the purification module 730 uses a purification strategy corresponding to the spatial capacity information to perform air purification for the room to be purified.

It can be seen that in the present embodiment, corresponding space capacity information can be determined according to an image of a room to be purified, so that air purification of the room to be purified can be carried out by a corresponding purification strategy. As thus, a purification strategy can be intelligently adjusted according to spatial capacity of a room to be purified, and thus intelligent performance of an air purifier can be improved. The present embodiment can be applied to a scene with a distance measuring device installed.

The embodiments of the present disclosure also provide an apparatus for air purification, which may be configured as a server. The apparatus includes: a processor; a memory for storing processor executable instructions, wherein the processor is configured to: acquire an image of a room to be purified and determining a location at which the image is acquired; determine spatial capacity information of the room to be purified according to the image and the location; and use a purification strategy corresponding to the spatial capacity information to perform air purification for the room to be purified.

The embodiments provided by the present disclosure may include the following beneficial effects.

In the above technical solutions, corresponding space capacity information can be determined according to an image of a room to be purified, so that air purification of the room to be purified can be carried out by a corresponding purification strategy. As thus, a purification strategy can be intelligently adjusted according to spatial capacity of a room to be purified, and thus intelligent performance of an air purifier can be improved.

With respect to the apparatuses of the above embodiments, the specific mode in which each module performs its operation has been described in detail in the method embodiments, and the descriptions thereof will not be described in detail herein.

FIG. 12 is a block diagram of an apparatus 1200 for air purification in accordance with an exemplary embodiment. The apparatus is suitable for use in a terminal device, and the apparatus can be used in an air purifier. For example, the apparatus 1200 may be a mobile phone, a computer, a digital broadcast terminal, a messaging device, a gaming console, a tablet, a medical device, an exercise equipment, a personal digital assistant, and the like.

Referring to FIG. 12, the device 1200 may include one or more of the following components: a processing component 1202, a memory 1204, a power component 1206, a multimedia component 1208, an audio component 1210, an input/output (I/O) interface 1212, a sensor component 1214, and a communication component 1216.

The processing component 1202 typically controls overall operations of the apparatus 1200, such as the operations associated with display, telephone calls, data communications, camera operations, and recording operations. The processing component 1202 may include one or more processors 1220 to execute instructions to perform all or part of the steps in the above described methods. Moreover, the processing component 1202 may include one or more modules which facilitate the interaction between the processing component 1202 and other components. For instance, the processing component 1202 may include a multimedia module to facilitate the interaction between the multimedia component 1208 and the processing component 1202.

The memory 1204 is configured to store various types of data to support the operation of the apparatus 1200. Examples of such data include instructions for any applications or methods operated on the apparatus 1200, contact data, phonebook data, messages, pictures, video, etc. The memory 1204 may be implemented using any type of volatile or non-volatile memory device, or a combination thereof, such as a static random access memory (SRAM), an electrically erasable programmable read-only memory (EEPROM), an erasable programmable read-only memory (EPROM), a programmable read-only memory (PROM), a read-only memory (ROM), a magnetic memory, a flash memory, a magnetic or optical disk.

The power component 1206 provides power to various components of the apparatus 1200. The power component 1206 may include a power management system, one or more power sources, and any other components associated with the generation, management, and distribution of power for the apparatus 1200.

The multimedia component 1208 includes a screen providing an output interface between the apparatus 1200 and the user. In some embodiments, the screen may include a liquid crystal display (LCD) and a touch panel (TP). If the screen includes the touch panel, the screen may be implemented as a touch screen to receive input signals from the user. The touch panel includes one or more touch sensors to sense touches, swipes, and gestures on the touch panel. The touch sensors may not only sense a boundary of a touch or swipe action, but also sense a period of time and a pressure associated with the touch or swipe action. In some embodiments, the multimedia component 1208 includes a front camera and/or a rear camera. The front camera and the rear camera may receive an external multimedia datum while the apparatus 1200 is in an operation mode, such as a photographing mode or a video mode. Each of the front camera and the rear camera may be a fixed optical lens system or have optical focusing and zooming capability.

The audio component 1210 is configured to output and/or input audio signals. For example, the audio component 1210 includes a microphone (“MIC”) configured to receive an external audio signal when the apparatus 1200 is in an operation mode, such as a call mode, a recording mode, and a voice recognition mode. The received audio signal may be further stored in the memory 1204 or transmitted via the communication component 1216. In some embodiments, the audio component 1210 further includes a speaker to output audio signals.

The I/O interface 1212 provides an interface between the processing component 1202 and peripheral interface modules, the peripheral interface modules being, for example, a keyboard, a click wheel, buttons, and the like. The buttons may include, but are not limited to, a home button, a volume button, a starting button, and a locking button.

The sensor component 1214 includes one or more sensors to provide status assessments of various aspects of the apparatus 1200. For instance, the sensor component 1214 may detect an open/closed status of the apparatus 1200, relative positioning of components (e.g., the display and the keypad, of the apparatus 1200), a change in position of the apparatus 1200 or a component of the apparatus 1200, a presence or absence of user contact with the apparatus 1200, an orientation or an acceleration/deceleration of the apparatus 1200, and a change in temperature of the apparatus 1200. The sensor component 1214 may include a proximity sensor configured to detect the presence of a nearby object without any physical contact. The sensor component 1214 may also include a light sensor, such as a CMOS or CCD image sensor, for use in imaging applications. In some embodiments, the sensor component 1214 may also include an accelerometer sensor, a gyroscope sensor, a magnetic sensor, a pressure sensor, or a temperature sensor.

The communication component 1216 is configured to facilitate communication, wired or wirelessly, between the apparatus 1200 and other apparatus. The apparatus 1200 can access a wireless network based on a communication standard, such as WiFi, 2G, or 3G, or a combination thereof. In an exemplary embodiment, the communication component 1216 receives a broadcast signal or broadcast associated information from an external broadcast management system via a broadcast channel. In an exemplary embodiment, the communication component 1216 further includes a near field communication (NFC) module to facilitate short-range communications. For example, the NFC module may be implemented based on a radio frequency identification (RFID) technology, an infrared data association (IrDA) technology, an ultra-wideband (UWB) technology, a Bluetooth (BT) technology, and other technologies.

In exemplary embodiments, the apparatus 1200 may be implemented with one or more application specific integrated circuits (ASICs), digital signal processors (DSPs), digital signal processing apparatuss (DSPDs), programmable logic apparatuss (PLDs), field programmable gate arrays (FPGAs), controllers, micro-controllers, microprocessors, or other electronic components, for performing the above described methods.

In exemplary embodiments, there is also provided a non-transitory computer-readable storage medium including instructions, such as included in the memory 1204, executable by the processor 1220 in the apparatus 1200, for performing the above-described methods. For example, the non-transitory computer-readable storage medium may be a ROM, a RAM, a CD-ROM, a magnetic tape, a floppy disc, an optical data storage apparatus, and the like.

There is provided a non-transitory computer readable storage medium having stored therein instructions that, when executed by the apparatus 1200, cause the apparatus 1200 to perform a method as shown in FIG. 1. The method includes: acquiring an image of a room to be purified and determining a location at which the image is acquired; determining spatial capacity information of the room to be purified according to the image and the location; and using a purification strategy corresponding to the spatial capacity information to perform air purification for the room to be purified.

The step of acquiring an image of a room to be purified and determining a location at which the image is acquired may include: acquiring the image of the room to be purified by using an image acquisition device; or acquiring the image of the room to be purified by communicating with an apparatus including an image acquisition device, wherein the image of the room to be purified includes images of respective corner points of the room.

The step of determining spatial capacity information of the room to be purified according to the image and the location may include: performing identification to the image to determine positions of the corner points of the room to be purified; and determining the spatial capacity information of the room to be purified based on the positions of the corner points and the location.

The step of performing identification to the image to determine positions of the corner points of the room to be purified may include: determining wall intersecting lines within the room to be purified by comparing colors of shadows of respective walls in the image of the room to be purified; and determining the position of each corner points of the room to be purified according to an intersection point of every three intersecting lines.

The step of determining the spatial capacity information of the room to be purified based on the positions of the corner points and the location may include: determining a first distance between a projection point of the location on a first plane of the room to be purified and each of the corner points on the first plane, based on the positions of the corner points and said location, wherein the first plane includes the floor or ceiling of the room to be purified; determining a second distance between every two corner points based on the positions of the corner points; and determining the spatial capacity information of the room to be purified according to the first distances and the second distances.

The step of determining a first distance between a projection point of the location on a first plane of the room to be purified and each of the corner points on the first plane may include: determining a first height of the image acquisition device from the first plane of the room to be purified; determining an angle between a first straight line determined by the image acquisition device and a corner point on the first plane and a vertical line passing the image acquisition device; and calculating the first distance between the projection point of the location at which the image is acquired on the first plane and the corner point according to the first height and the angle.

The step of determining a first distance between a projection point of the location on a first plane of the room to be purified and each of the corner points on the first plane may include: determining a second height of a distance measuring device from the first plane of the room to be purified; acquiring, by the distance measuring device, a corner distance between the distance measuring device and the corner point on the first plane; and calculating the first distance between the projection point of the location at which the image is acquired on the first plane and the corner point according to the second height and the corner distance.

The step of using a purification strategy corresponding to the spatial capacity information to perform air purification for the room to be purified may include: determining a preset purification strategy corresponding to the spatial capacity information of the room to be purified according to a correspondence relationship between preset spatial capacity information for the room to be purified and preset purification strategies; and performing the preset purification strategy to purify the air of the room to be purified.

Other embodiments of the present disclosure will be readily apparent to those skilled in the art upon consideration of the specification and practice of the disclosure disclosed herein. The present application is intended to cover any variations, uses, or adaptations of the present disclosure that follow the general principles of the present disclosure and include the common general knowledge or conventional technical means in the art without departing from the present disclosure The specification and examples are to be regarded as illustrative only, and the true scope and spirit of the disclosure is indicated by the following claims.

It is to be understood that this disclosure is not limited to the precise constructions described above and shown in the accompanying drawings, and that various modifications and changes may be made without departing from the scope thereof. The scope of the present disclosure is limited only by the appended claims.

Claims

1. A method for air purification, comprising:

acquiring an image of a room to be purified;
determining a location at which the image is acquired;
determining spatial capacity information of the room to be purified according to the image and the location; and
using a purification strategy corresponding to the spatial capacity information to perform air purification for the room to be purified.

2. The method according to claim 1, wherein acquiring an image of a room to be purified comprises:

acquiring the image of the room to be purified using an image acquisition device, wherein the image of the room to be purified comprises images of respective corner points of the room.

3. The method according to claim 1, wherein acquiring an image of a room to be purified comprises:

acquiring the image of the room to be purified by communicating with an apparatus comprising an image acquisition device, wherein the image of the room to be purified comprises images of respective corner points of the room.

4. The method according to claim 1, wherein determining spatial capacity information of the room to be purified according to the image and the location comprises:

performing identification to the image of the room to be purified to determine positions of corner points of the room to be purified; and
determining the spatial capacity information of the room to be purified based on the positions of the corner points and the location at which the image is acquired.

5. The method according to claim 4, wherein performing identification to the image of the room to be purified to determine positions of corner points of the room to be purified comprises:

determining wall intersecting lines within the room to be purified by comparing colors of shadows of respective walls in the image of the room to be purified; and
determining the position of each corner point of the room to be purified according to an intersection point of every three intersecting lines.

6. The method according to 4, wherein determining the spatial capacity information of the room to be purified based on the positions of the corner points and the location at which the image is acquired comprises:

determining a first distance between a projection point of the location at which the image is acquired on a first plane of the room to be purified and each of the corner points on the first plane, based on the positions of the corner points and the location at which the image is acquired, wherein the first plane comprises a floor or ceiling of the room to be purified;
determining a second distance between every two corner points based on the positions of the corner points; and
determining the spatial capacity information of the room to be purified according to the first distances and the second distances.

7. The method according to claim 6, wherein determining a first distance between a projection point of the location at which the image is acquired on a first plane of the room to be purified and each of the corner points on the first plane comprises:

determining a first height of an image acquisition device from the first plane of the room to be purified, wherein the image of the room to be purified is acquired using the image acquisition device;
determining an angle between a first straight line determined by the image acquisition device and a corner point on the first plane and a vertical line passing the image acquisition device; and
calculating the first distance between the projection point of the location at which the image is acquired on the first plane and the corner point according to the first height and the angle.

8. The method according to claim 6, wherein determining a first distance between a projection point of the location at which the image is acquired on a first plane of the room to be purified and each of the corner points on the first plane comprises:

determining a second height of a distance measuring device from the first plane of the room to be purified;
acquiring, by the distance measuring device, a corner distance between the distance measuring device and the corner point on the first plane; and
calculating the first distance between the projection point of the location at which the image is acquired on the first plane and the corner point according to the second height and the corner distance.

9. The method according to claim 1, wherein using a purification strategy corresponding to the spatial capacity information to perform air purification for the room to be purified comprises:

determining a preset purification strategy corresponding to the spatial capacity information of the room to be purified according to a correspondence relationship between preset spatial capacity information for the room to be purified and preset purification strategies; and
performing the preset purification strategy to purify the air of the room to be purified.

10. An apparatus for air purification, comprising:

a processor;
a memory for storing processor executable instructions;
wherein the processor is configured to: acquire an image of a room to be purified; determine a location at which the image is acquired; determine spatial capacity information of the room to be purified according to the image and the location; and use a purification strategy corresponding to the spatial capacity information to perform air purification for the room to be purified.

11. The apparatus for air purification according to claim 10, wherein the processor is further configured to:

acquire the image of the room to be purified using an image acquisition device, wherein the image of the room to be purified comprises images of respective corner points of the room.

12. The apparatus for air purification according to claim 10, wherein the processor is further configured to:

acquire the image of the room to be purified by communicating with an apparatus comprising an image acquisition device, wherein the image of the room to be purified comprises images of respective corner points of the room.

13. The apparatus for air purification according to claim 10, wherein the processor is further configured to:

perform identification to the image of the room to be purified to determine positions of corner points of the room to be purified; and
determine the spatial capacity information of the room to be purified based on the positions of the corner points and the location at which the image is acquired.

14. The apparatus for air purification according to claim 13, wherein the processor is further configured to:

determine wall intersecting lines within the room to be purified by comparing colors of shadows of respective walls in the image of the room to be purified; and
determine the position of each corner point of the room to be purified according to an intersection point of every three intersecting lines.

15. The apparatus for air purification according to claim 13, wherein the processor is further configured to:

determine a first distance between a projection point of the location at which the image is acquired on a first plane of the room to be purified and each of the corner points on the first plane, based on the positions of the corner points and the location at which the image is acquired, wherein the first plane comprises a floor or ceiling of the room to be purified;
determine a second distance between every two corner points based on the positions of the corner points; and
determine the spatial capacity information of the room to be purified according to the first distances and the second distances.

16. The apparatus for air purification according to claim 15, wherein the processor is further configured to:

determine a first height of an image acquisition device from the first plane of the room to be purified, wherein the image of the room to be purified is acquired using the image acquisition device;
determine an angle between a first straight line determined by the image acquisition device and a corner point on the first plane and a vertical line passing the image acquisition device; and
calculate the first distance between the projection point of the location at which the image is acquired on the first plane and the corner point according to the first height and the angle.

17. The apparatus for air purification according to claim 15, wherein the processor is further configured to:

determine a second height of a distance measuring device from the first plane of the room to be purified;
acquire, by the distance measuring device, a corner distance between the distance measuring device and the corner point on the first plane; and
calculate the first distance between the projection point of the location at which the image is acquired on the first plane and the corner point according to the second height and the corner distance.

18. The apparatus for air purification according to claim 10, wherein the processor is further configured to:

determine a preset purification strategy corresponding to the spatial capacity information of the room to be purified according to a correspondence relationship between preset spatial capacity information for the room to be purified and preset purification strategies; and
perform the preset purification strategy to purify the air of the room to be purified.

19. A non-transitory computer readable storage medium having stored therein instructions that, when executed by an apparatus, cause the apparatus to perform a method for air purification, the method comprises:

acquiring an image of a room to be purified;
determining a location at which the image is acquired;
determining spatial capacity information of the room to be purified according to the image and the location; and
using a purification strategy corresponding to the spatial capacity information to perform air purification for the room to be purified.
Patent History
Publication number: 20180142911
Type: Application
Filed: Nov 1, 2017
Publication Date: May 24, 2018
Inventors: Pengfei ZHANG (Beijing), Tiejun LIU (Beijing), Ke WU (Beijing)
Application Number: 15/800,093
Classifications
International Classification: F24F 11/00 (20060101);