An air quality determination method, device, computer equipment and storage medium
By acquiring and analyzing particulate matter images of the target illuminated area, the number of particulate matter can be determined, thereby accurately assessing indoor air quality. This solves the problem of inaccurate detection in existing technologies and achieves efficient air quality assessment.
Patent Information
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- HUIZHOU TCL MOBILE COMM CO LTD
- Filing Date
- 2022-07-21
- Publication Date
- 2026-05-15
AI Technical Summary
Current technology cannot accurately detect indoor air quality.
By acquiring particulate matter images of the target illuminated area in a preset space, the number of particulate matter corresponding to the size of the particulate matter is determined, and the air quality corresponding to the air quality evaluation index is determined based on the number of particulate matter.
It enables accurate and rapid detection of indoor air quality, improving the accuracy and efficiency of the detection.
Smart Images

Figure CN117152046B_ABST
Abstract
Description
Technical Field
[0001] This application relates to the field of particulate matter detection technology, specifically to an air quality determination method, apparatus, computer equipment, and storage medium, wherein the storage medium is a computer-readable storage medium. Background Technology
[0002] With societal development, air quality has become an increasingly important concern. People are not only concerned about outdoor air quality but also about indoor air quality. While there are various methods available for testing indoor air quality, none of these methods are entirely accurate.
[0003] In summary, there is currently a problem with the inability to accurately detect indoor air quality. Summary of the Invention
[0004] This application provides an air quality determination method, apparatus, computer equipment, and storage medium, which can accurately detect air quality.
[0005] A method for determining air quality, comprising:
[0006] Acquire particulate matter images of the target illuminated area in a preset space;
[0007] Based on the particulate matter image, determine the number of particles corresponding to the particle size in the target illuminated area;
[0008] Based on the number of particles corresponding to the size of the particles, the air quality corresponding to the air quality evaluation index in the preset space is determined.
[0009] Accordingly, embodiments of this application provide an air quality determination device, comprising:
[0010] The acquisition unit can be used to acquire particulate matter images of a target illuminated area in a preset space;
[0011] The first determination can be used to determine the number of particles corresponding to the particle size in the target illumination area based on the particle image;
[0012] The second determining unit can be used to determine the air quality corresponding to the air quality evaluation index in the preset space based on the number of particles corresponding to the particle size.
[0013] In some embodiments, the first determining unit may be used to perform region recognition on a particulate image to obtain particulate regions in the particulate image; and to determine the number of particles corresponding to the particle size in the target illumination region based on the particulate regions.
[0014] In some embodiments, the first determining unit may be specifically used to determine the particle size in the target illumination area based on the particle area; and to determine the number of particles corresponding to the particle size in the target illumination area.
[0015] In some embodiments, the first determining unit may be specifically used to acquire the image coefficients of the particulate matter image and the size of the particulate matter region; and to calculate the size of the particulate matter corresponding to the target illumination area based on the particulate matter region size and the image coefficients.
[0016] In some embodiments, the first determining unit may be used to obtain the number of pixels in the particulate region and determine the size of the particulate region in the particulate image based on the number of pixels in the particulate region.
[0017] In some embodiments, the second determining unit may be used to obtain spatial parameters of a preset space; and to determine the air quality corresponding to the air quality evaluation index in the preset space based on the number of particles corresponding to the particle size and the spatial parameters.
[0018] In some embodiments, the second determining unit may be used to fuse the particle size corresponding to the particle number and spatial parameters to obtain fused parameters; and to determine the air quality corresponding to the air quality evaluation index in the preset space based on the fused parameters.
[0019] In some embodiments, the target illumination area includes multiple target illumination areas; the second determining unit can be specifically used to determine the air quality evaluation index in the preset space; according to the air quality evaluation index, select the target particle number corresponding to the target particle size from the particle number corresponding to the particle size; and determine the air quality corresponding to the air quality evaluation index in the preset space according to the target particle number corresponding to the target particle size and the spatial parameters.
[0020] In some embodiments, the acquisition unit may be specifically used to determine an activated target light source, the target light source being used to illuminate a preset space; determine the illumination area corresponding to the target light source in the preset space; and acquire a particulate image of the target illumination area within the illumination area.
[0021] Furthermore, embodiments of this application also provide a computer device, including a memory and a processor; the memory stores a computer program, and the processor is used to run the computer program in the memory to execute any of the air quality determination methods provided in embodiments of this application.
[0022] Furthermore, embodiments of this application also provide a computer-readable storage medium storing a computer program adapted for loading by a processor to execute any of the air quality determination methods provided in embodiments of this application.
[0023] This application embodiment can acquire particulate matter images of a target illuminated area in a preset space; determine the number of particles corresponding to the particle size in the target illuminated area based on the particulate matter images; and determine the air quality corresponding to the air quality evaluation index in the preset space based on the number of particles corresponding to the particle size. Since this application embodiment can determine the number of particles corresponding to the particle size in the target illuminated area based on the particulate matter images of the target illuminated area, the air quality corresponding to the air quality evaluation index in the preset space can be accurately and quickly determined based on the number of particles corresponding to the particle size. Attached Figure Description
[0024] To more clearly illustrate the technical solutions in the embodiments of this application, the accompanying drawings used in the description of the embodiments will be briefly introduced below. Obviously, the accompanying drawings described below are only some embodiments of this application. For those skilled in the art, other drawings can be obtained based on these drawings without creative effort.
[0025] Figure 1 This is a schematic diagram of a scenario for the air quality determination method provided in the embodiments of this application;
[0026] Figure 2 This is a flowchart illustrating the air quality determination method provided in the embodiments of this application;
[0027] Figure 3 This is a schematic diagram of the preset space provided in the embodiments of this application;
[0028] Figure 4 This is a schematic diagram of the air quality determination device provided in the embodiments of this application;
[0029] Figure 5 This is a schematic diagram of the structure of the computer device provided in the embodiments of this application. Detailed Implementation
[0030] The technical solutions of the embodiments of this application will be clearly and completely described below with reference to the accompanying drawings. Obviously, the described embodiments are only some embodiments of this application, and not all embodiments. Based on the embodiments of this application, all other embodiments obtained by those skilled in the art without creative effort are within the scope of protection of this application.
[0031] This application provides an air quality determination method, apparatus, computer device, and computer-readable storage medium. The air quality determination apparatus can be integrated into the computer device, which can be a server, a terminal, or other similar device.
[0032] The server can be a standalone physical server, a server cluster or distributed system composed of multiple physical servers, or a cloud server providing basic cloud computing services such as cloud services, cloud databases, cloud computing, cloud functions, cloud storage, network services, cloud communication, middleware services, domain name services, security services, content delivery network (CDN), and big data and artificial intelligence platforms. The terminal can be a smartphone, tablet, laptop, desktop computer, smart speaker, smartwatch, etc., but is not limited to these. The terminal and server can be directly or indirectly connected via wired or wireless communication, which is not limited herein.
[0033] For example, see Figure 1 Taking the integration of an air quality determination device into a computer device as an example, the computer device can acquire particulate matter images of a target illuminated area in a preset space; based on the particulate matter images, determine the number of particulate matter corresponding to the size of the particulate matter in the target illuminated area; and based on the number of particulate matter corresponding to the size of the particulate matter, determine the air quality corresponding to the air quality evaluation index in the preset space.
[0034] The preset space can be a pre-set space indoors. Specifically, the preset space can be an opaque space with air circulation, or it can be a translucent space with air circulation. The preset space can be installed anywhere indoors and can also be applied to various home appliances, such as air conditioners, range hoods, refrigerators, smart TVs, and air purifiers, to display real-time information on the appliance screens and alert users when air quality exceeds standards.
[0035] Here, a particulate matter image can refer to an image of particles within the illuminated area of a target. Particulate matter can refer to particulate matter present in the air.
[0036] Among them, air quality evaluation indicators can be PM2.5, PM10, etc.
[0037] The following sections provide detailed descriptions of each example. It should be noted that the order in which the embodiments are described is not intended to limit the preferred order of the embodiments.
[0038] This embodiment will be described from the perspective of an air quality determination device, which can be integrated into a computer device, such as a server or a terminal. The terminal can include tablet computers, laptops, personal computers (PCs), wearable devices, virtual reality devices, or other smart devices that can acquire data.
[0039] First, it should be noted that this embodiment of the application can set up a preset space indoors. This preset space can be a dark space with indoor air circulation. This embodiment of the application can set up at least one light source to illuminate the preset space, and can set up a camera device to photograph the target illuminated area in the preset space. The camera device can be set up either outside or inside the preset space.
[0040] like Figure 2 As shown, the specific process of this air quality determination method is as follows: steps S101 to S103:
[0041] S101. Obtain the particle image of the target illumination area in the preset space.
[0042] This application embodiment can acquire particulate matter images of a target illuminated area in a preset space using a camera device.
[0043] Specifically, the method for obtaining particulate matter images of a target illuminated area in a preset space in this embodiment of the application can be as follows: determine an activated target light source, which is used to illuminate the preset space; determine the illuminated area corresponding to the target light source in the preset space; and obtain particulate matter images of the target illuminated area in the illuminated area.
[0044] It should be noted that the preset space in this embodiment can be set to a dark space. Under normal circumstances, small particles such as dust in the air are too small to be seen by the human eye. However, in a dark environment, when strong light shines in, the particles reflect the light, creating a strong contrast in brightness with the surrounding dark background. As a result, the particles can be seen by the human eye and can also be captured by camera equipment.
[0045] like Figure 3 As shown, in this embodiment of the application, multiple light sources can be arranged on one side of a preset space, and the distance between each adjacent light source can be equal. In this embodiment of the application, a target light source that can be turned on can be determined from multiple light sources. Specifically, in this embodiment of the application, the target light source that can be turned on can be determined sequentially from multiple light sources based on the distance between the light source and the camera device from near to far. For example, as Figure 3 As shown, the distances between the light sources and the camera equipment, from closest to farthest, are as follows: first light source, second light source, third light source, fourth light source, fifth light source, sixth light source, seventh light source, and eighth light source. The order in which the light sources are turned on is as follows: first light source, second light source, third light source, fourth light source, fifth light source, sixth light source, seventh light source, and eighth light source.
[0046] In this embodiment, the light source emits parallel light, which can illuminate a parallel, narrow bandwidth region in a preset space, such as... Figure 3The shadow area corresponding to each light source is shown in the diagram. Only one light source is turned on at a time, while the others are turned off; the turned-on light source is the target light source. When the target light source illuminates the preset space, this embodiment of the application can acquire an image of the particles corresponding to the target illuminated area in the illuminated area using a camera device.
[0047] The particle images corresponding to each light source can be obtained using the above method.
[0048] In this embodiment of the application, since the camera of the imaging device has a field of view, it may not be able to capture the entire illuminated area during the process of shooting the illuminated area. It may capture a part of the illuminated area. Based on this, it can be understood that the target illuminated area includes at least a part of the illuminated area, and the target illuminated area may also include the entire illuminated area.
[0049] S102. Based on the particulate matter image, determine the number of particles corresponding to the particle size in the target illumination area.
[0050] The method for determining the number of particles corresponding to the particle size in the target illumination area based on the particle image in this application embodiment can be as follows: perform region recognition on the particle image to obtain the particle region in the particle image; and determine the number of particles corresponding to the particle size in the target illumination area based on the particle region.
[0051] In this embodiment of the application, the method for identifying particulate matter regions in a particulate matter image is as follows: the particulate matter image is binarized to obtain a binarized image; and the particulate matter regions in the particulate matter image are determined based on the pixel values of the pixels in the binarized image.
[0052] In this embodiment of the application, the particulate matter region in the particulate matter image is determined based on the pixel value of the pixel in the binarized image: if the pixel value of the pixel in the binarized image is greater than or equal to a preset pixel threshold, then the region where the pixel value is greater than or equal to the preset pixel threshold is located is determined as the particulate matter region in the particulate matter image.
[0053] In this embodiment of the application, the method for region identification of particulate matter images to obtain particulate matter regions in particulate matter images can also be as follows: converting the particulate matter image into a grayscale image; if the grayscale value of a pixel in the grayscale image is less than a first preset threshold, then the region where the pixel with the grayscale value is less than the first preset threshold is determined as a particulate matter region; if the grayscale value of a pixel in the grayscale image is greater than a second preset threshold, then the region where the pixel with the grayscale value is greater than the second preset threshold is determined as a particulate matter region.
[0054] In this embodiment of the application, the method for determining the number of particles corresponding to the particle size in the target illumination area based on the particle area can be as follows: determine the particle size in the target illumination area based on the particle area; determine the number of particles corresponding to the particle size in the target illumination area.
[0055] Based on the above, the method for determining the particle size in the target illumination area according to the particle area in this application embodiment can be as follows: obtain the image coefficients of the particle image and obtain the particle area size of the particle area; calculate the particle size corresponding to the target illumination area based on the particle area size and the image coefficients.
[0056] It should be noted that, in this embodiment, because the camera device exhibits a visual effect of objects appearing larger when closer and smaller when farther away, particles of the same size will display different particle areas (i.e., the number of pixels occupied by the particles) in the particle images captured by the camera device at different distances from the device. The number of pixels occupied by the particles is inversely proportional to the distance from the particle to the camera device. Therefore, this embodiment requires image coefficient calculation when calculating particle size.
[0057] In this embodiment of the application, the first light source can be calibrated in advance. By illuminating a preset space with the first light source, the number of pixels occupied by the particles in the particle image of the first light source is used as a standard value to determine the correspondence between particle size and number of pixels under the first light source.
[0058] Therefore, when calculating particle size under other light sources, such as a second light source, it is necessary to use the correspondence between particle size and pixel count under the first light source as a basis and calculate the particle size under the second light source using image coefficients.
[0059] Based on the above, such as Figure 3 As shown, when the first light source is the target light source, the image coefficient is the ratio of the distance from the camera device to the first light source to the distance from the camera device to the first light source; when the second light source is the target light source, the image coefficient is the ratio of the distance from the camera device to the second light source to the distance from the camera device to the first light source; when the third light source is the target light source, the image coefficient is the ratio of the distance from the camera device to the third light source to the distance from the camera device to the first light source; and so on. The image coefficients for other light sources will not be elaborated here.
[0060] Based on the above, the method for calculating the particle size corresponding to the target illumination area according to the particle area size and image coefficients in this embodiment of the application can be as follows: the particle area size and image coefficients are fused to obtain the fused area size; the particle size corresponding to the target illumination area is determined according to the fused area size.
[0061] Specifically, in this embodiment, the particle region size can be multiplied by the image coefficients to obtain the fused region size. Based on the fused region size and the correspondence between particle size and pixel count under the first light source, this embodiment determines the particle size corresponding to the target illumination region.
[0062] S103. Determine the air quality corresponding to the preset air quality evaluation index based on the number of particulate matter corresponding to the size of the particulate matter.
[0063] The method by which this application embodiment determines the air quality corresponding to the air quality evaluation index in a preset space based on the number of particles corresponding to the particle size can be as follows: obtain the spatial parameters of the preset space; determine the air quality corresponding to the air quality evaluation index in the preset space based on the number of particles corresponding to the particle size and the spatial parameters.
[0064] The spatial parameters may include the total volume occupied by all target illumination areas within a preset space. In this embodiment, the volume occupied by each target illumination area within the preset space can be pre-measured to calculate the total volume occupied by all target illumination areas within the preset space, and stored in a database. Based on this, the spatial parameters can be directly extracted from the database.
[0065] Based on the above, the method for determining the air quality corresponding to the air quality evaluation index in the preset space according to the particulate matter quantity and spatial parameters corresponding to the particulate matter size in this embodiment of the application can be as follows: the particulate matter quantity and spatial parameters corresponding to the particulate matter size are fused to obtain fused parameters; and the air quality corresponding to the air quality evaluation index in the preset space is determined according to the fused parameters.
[0066] Specifically, in this embodiment of the application, the number of particles and spatial parameters corresponding to the particle size in all target illumination areas can be fused to obtain fused parameters.
[0067] For example, the target illumination area includes a first target illumination area, a second target illumination area, and a third target illumination area. The particle size includes a first particle size and a second particle size. The fused parameters include a first fused parameter and a second fused parameter.
[0068] Regarding the first particle size, embodiments of this application can add the number of particles corresponding to the first particle size in the first target illumination region, the number of particles corresponding to the first particle size in the second target illumination region, and the number of particles corresponding to the first particle size in the third target illumination region to obtain the total number of particles corresponding to the first particle size. Embodiments of this application can calculate the ratio of the total number of particles corresponding to the first particle size to the spatial parameters to obtain the first fused parameters.
[0069] Regarding the second particle size, embodiments of this application can add the number of particles corresponding to the second particle size in the first target illumination region, the number of particles corresponding to the second particle size in the second target illumination region, and the number of particles corresponding to the second particle size in the third target illumination region to obtain the total number of particles corresponding to the second particle size. The second fused parameter is the total number of particles corresponding to the second particle size. Embodiments of this application can calculate the ratio of the total number of particles corresponding to the second particle size to the spatial parameter to obtain the second fused parameter.
[0070] Based on the above, if the particulate matter size corresponding to the air quality assessment indicator is the first particulate matter size, then the first fused parameter can be used as the air quality corresponding to the air quality assessment indicator in the preset space. If the particulate matter size corresponding to the air quality assessment indicator is the second particulate matter size, then the second fused parameter can be used as the air quality corresponding to the air quality assessment indicator in the preset space.
[0071] The target illumination area includes multiple target illumination areas; in this embodiment, the method for determining the air quality corresponding to the air quality evaluation index in the preset space based on the particle size corresponding to the particle quantity and spatial parameters can be as follows: determine the air quality evaluation index in the preset space; based on the air quality evaluation index, filter out the target particle size corresponding to the target particle quantity from the particle size corresponding to the particle quantity; and determine the air quality corresponding to the air quality evaluation index in the preset space based on the target particle size corresponding to the target particle quantity and spatial parameters.
[0072] The target particulate matter size can be the particulate matter size corresponding to the air quality assessment index.
[0073] In this embodiment of the application, the method of determining the air quality corresponding to the air quality evaluation index in the preset space based on the number of target particulate matter corresponding to the target particle size and spatial parameters can be referred to the aforementioned method of determining the air quality corresponding to the air quality evaluation index in the preset space based on the number of particulate matter corresponding to the particle size and spatial parameters, and will not be repeated here.
[0074] This application embodiment can acquire particulate matter images of a target illuminated area in a preset space; determine the number of particles corresponding to the particle size in the target illuminated area based on the particulate matter images; and determine the air quality corresponding to the air quality evaluation index in the preset space based on the number of particles corresponding to the particle size. Since this application embodiment can determine the number of particles corresponding to the particle size in the target illuminated area based on the particulate matter images of the target illuminated area, the air quality corresponding to the air quality evaluation index in the preset space can be accurately and quickly determined based on the number of particles corresponding to the particle size.
[0075] To better implement the above methods, this application also provides an air quality determination device, which can be integrated into a computer device, such as a server or terminal. The terminal may include a tablet computer, a laptop computer, and / or a personal computer.
[0076] For example, such as Figure 4 As shown, the air quality determining device may include an acquisition unit 301, a first determining unit 302, and a second determining unit 303, as follows:
[0077] (1) Obtain unit 301;
[0078] The acquisition unit 301 can be used to acquire particulate matter images of a target illuminated area in a preset space.
[0079] In some embodiments, the acquisition unit 301 may be specifically used to determine an activated target light source, the target light source being used to illuminate a preset space; determine the illumination area corresponding to the target light source in the preset space; and acquire a particulate image of the target illumination area within the illumination area.
[0080] (2) First determining unit 302;
[0081] The first determining unit 302 can be used to determine the number of particles corresponding to the particle size in the target illumination area based on the particle image.
[0082] In some embodiments, the first determining unit 302 may be used to perform region recognition on a particulate image to obtain particulate regions in the particulate image; and determine the number of particles corresponding to the particle size in the target illumination region based on the particulate regions.
[0083] In some embodiments, the first determining unit 302 may be specifically used to determine the size of particles in the target illumination area based on the particle area; and to determine the number of particles corresponding to the particle size in the target illumination area.
[0084] In some embodiments, the first determining unit 302 may be specifically used to obtain the image coefficients of the particulate matter image and the size of the particulate matter region; and to calculate the size of the particulate matter corresponding to the target illumination area based on the size of the particulate matter region and the image coefficients.
[0085] In some embodiments, the first determining unit 302 may be used to obtain the number of pixels in the particulate region and determine the size of the particulate region in the particulate image based on the number of pixels in the particulate region.
[0086] (3) Second determining unit 303;
[0087] The second determining unit 303 can be used to determine the air quality corresponding to the air quality evaluation index in the preset space based on the number of particles corresponding to the particle size.
[0088] In some embodiments, the second determining unit 303 may be used to obtain spatial parameters of a preset space; and determine the air quality corresponding to the air quality evaluation index in the preset space based on the number of particles corresponding to the particle size and the spatial parameters.
[0089] In some embodiments, the second determining unit 303 may be used to fuse the particle size corresponding to the particle number and spatial parameters to obtain fused parameters; and to determine the air quality corresponding to the air quality evaluation index in the preset space based on the fused parameters.
[0090] In some embodiments, the target illumination area includes multiple target illumination areas; the second determining unit 303 can be specifically used to determine the air quality evaluation index in the preset space; according to the air quality evaluation index, select the target particle number corresponding to the target particle size from the particle number corresponding to the particle size; and determine the air quality corresponding to the air quality evaluation index in the preset space according to the target particle number corresponding to the target particle size and the spatial parameters.
[0091] As can be seen from the above, the acquisition unit 301 of this application embodiment can be used to acquire particulate matter images of a target illuminated area in a preset space; the first determination unit 302 can be used to determine the number of particles corresponding to the particle size in the target illuminated area based on the particulate matter image; the second determination unit 303 can be used to determine the air quality corresponding to the air quality evaluation index in the preset space based on the number of particles corresponding to the particle size; since this application embodiment can determine the number of particles corresponding to the particle size in the target illuminated area based on the particulate matter image of the target illuminated area, the air quality corresponding to the air quality evaluation index in the preset space can be accurately and quickly determined based on the number of particles corresponding to the particle size.
[0092] This application also provides a computer device, such as... Figure 5 As shown, it illustrates a structural schematic diagram of the computer device involved in the embodiments of this application, specifically:
[0093] The computer device may include components such as a processor 401 with one or more processing cores, a memory 402 with one or more computer-readable storage media, a power supply 403, and an input unit 404. Those skilled in the art will understand that... Figure 5 The computer device structure shown does not constitute a limitation on the computer device and may include more or fewer components than shown, or combine certain components, or have different component arrangements. Wherein:
[0094] The processor 401 is the control center of the computer device, connecting various parts of the computer device through various interfaces and lines. It performs various functions and processes data by running or executing software programs and / or modules stored in the memory 402, and by calling data stored in the memory 402. Optionally, the processor 401 may include one or more processing cores; preferably, the processor 401 may integrate an application processor and a modem processor, wherein the application processor mainly handles the operating system, user interface, and computer programs, and the modem processor mainly handles wireless communication. It is understood that the modem processor may not be integrated into the processor 401.
[0095] The memory 402 can be used to store software programs and modules. The processor 401 executes various functional applications and data processing by running the software programs and modules stored in the memory 402. The memory 402 may mainly include a program storage area and a data storage area. The program storage area may store the operating system, computer programs required for at least one function (such as sound playback function, image playback function, etc.), etc.; the data storage area may store data created according to the use of the computer device, etc. In addition, the memory 402 may include high-speed random access memory, and may also include non-volatile memory, such as at least one disk storage device, flash memory device, or other volatile solid-state storage device. Accordingly, the memory 402 may also include a memory controller to provide the processor 401 with access to the memory 402.
[0096] The computer device also includes a power supply 403 that supplies power to the various components. Preferably, the power supply 403 can be logically connected to the processor 401 through a power management system, thereby enabling functions such as charging, discharging, and power consumption management through the power management system. The power supply 403 may also include one or more DC or AC power supplies, recharging systems, power fault detection circuits, power converters or inverters, power status indicators, and other arbitrary components.
[0097] The computer device may also include an input unit 404, which can be used to receive input digital or character information communication, and to generate keyboard, mouse, joystick, optical or trackball signal inputs related to user settings and function control.
[0098] Although not shown, the computer device may also include a display unit, etc., which will not be described in detail here. Specifically, in this embodiment, the processor 401 in the computer device loads the executable files corresponding to the processes of one or more computer programs into the memory 402 according to the following instructions, and the processor 401 runs the computer programs stored in the memory 402 to realize various functions, as follows:
[0099] Acquire particulate matter images of the target illuminated area in the preset space; determine the number of particulate matter corresponding to the size of particulate matter in the target illuminated area based on the particulate matter images; determine the air quality corresponding to the air quality evaluation index in the preset space based on the number of particulate matter corresponding to the size of particulate matter.
[0100] For details on the implementation of each of the above operations, please refer to the previous examples, which will not be repeated here.
[0101] Those skilled in the art will understand that all or part of the steps in the various methods of the above embodiments can be performed by a computer program, or by a computer program controlling related hardware. The computer program can be stored in a computer-readable storage medium and loaded and executed by a processor.
[0102] Therefore, embodiments of this application provide a computer-readable storage medium storing a computer program that can be loaded by a processor to execute any of the air quality determination methods provided in embodiments of this application.
[0103] For details on the implementation of each of the above operations, please refer to the previous examples, which will not be repeated here.
[0104] The computer-readable storage medium may include: read-only memory (ROM), random access memory (RAM), disk or optical disk, etc.
[0105] Since the instructions stored in the computer-readable storage medium can execute the steps in any of the air quality determination methods provided in the embodiments of this application, the beneficial effects that any of the air quality determination methods provided in the embodiments of this application can achieve can be realized, as detailed in the preceding embodiments, and will not be repeated here.
[0106] According to one aspect of this application, a computer program product or computer program is provided, comprising computer instructions stored in a computer-readable storage medium. A processor of a computer device reads the computer instructions from the computer-readable storage medium and executes the computer instructions, causing the computer device to perform the methods provided in the various optional implementations of the above embodiments.
[0107] The above provides a detailed description of an air quality determination method, apparatus, computer device, and computer-readable storage medium provided in the embodiments of this application. Specific examples have been used to illustrate the principles and implementation methods of this application. The descriptions of the above embodiments are only for the purpose of helping to understand the method and core ideas of this application. At the same time, for those skilled in the art, there will be changes in the specific implementation methods and application scope based on the ideas of this application. Therefore, the content of this specification should not be construed as a limitation of this application.
Claims
1. A method for determining air quality, characterized in that, include: Acquire particulate matter images of the target illuminated area in a preset space; Based on the particulate image, determine the number of particles corresponding to the particle size in the target illumination area; Based on the number of particles corresponding to the particle size, the air quality corresponding to the air quality evaluation index in the preset space is determined; The particle size is determined in the following way: The image coefficients of the particulate matter image are obtained, and the size of the particulate matter region is obtained; based on the particulate matter region size and the image coefficients, the size of the particulate matter corresponding to the target illumination area is calculated; wherein, the particulate matter region is obtained by region recognition of the particulate matter image, and the image coefficient is the ratio between the distance from the camera device to the target light source illuminating the preset space and the distance from the camera device to the first light source turned on. The target light source is a light source that is sequentially selected from a plurality of light sources and turned on, and the plurality of light sources are arranged on one side of the preset space.
2. The air quality determination method according to claim 1, characterized in that, The step of determining the number of particles corresponding to the particle size in the target illumination area based on the particle image includes: Region identification is performed on the particulate matter image to obtain the particulate matter regions in the particulate matter image; Based on the particulate area, determine the number of particles corresponding to the particle size in the target illumination area.
3. The air quality determination method according to claim 2, characterized in that, The step of determining the number of particles corresponding to the particle size in the target illumination area based on the particle area includes: Based on the particulate area, determine the size of the particulate matter in the target illumination area; Determine the number of particles corresponding to the particle size in the target illumination area.
4. The air quality determination method according to claim 1, characterized in that, The step of obtaining the particle region size includes: Obtain the number of pixels in the particulate area; The size of the particulate region in the particulate image is determined based on the number of pixels in the particulate region.
5. The air quality determination method according to claim 1, characterized in that, The step of determining the air quality corresponding to the air quality evaluation index in the preset space based on the number of particles corresponding to the particle size includes: Obtain the spatial parameters of the preset space; Based on the particle size corresponding to the particle quantity and the spatial parameters, the air quality corresponding to the air quality evaluation index in the preset space is determined.
6. The air quality determination method according to claim 5, characterized in that, The step of determining the air quality corresponding to the air quality evaluation index in the preset space based on the particle size corresponding to the particle quantity and the spatial parameters includes: The particle size corresponding to the particle number and the spatial parameters are fused to obtain the fused parameters. Based on the fused parameters, the air quality corresponding to the air quality evaluation index in the preset space is determined.
7. The air quality determination method according to claim 5, characterized in that, The target illumination area includes multiple target illumination areas; determining the air quality corresponding to the air quality evaluation index in the preset space based on the particle size and the number of particles and the spatial parameters includes: Determine the air quality evaluation indicators in the preset space; Based on the air quality assessment indicators, the target particle size corresponding to the target particle size is selected from the particle size corresponding to the particle quantity. Based on the number of target particulate matter corresponding to the target particle size and the spatial parameters, the air quality corresponding to the air quality evaluation index in the preset space is determined.
8. The air quality determination method according to claim 1, characterized in that, The step of acquiring the particulate matter image of the target illuminated area in the preset space includes: A target light source is identified and activated, which is used to illuminate the preset space; Determine the illumination area corresponding to the target light source in the preset space; Acquire particulate matter images of the target illuminated area within the illuminated region.
9. An air quality determining device, characterized in that, include: The acquisition unit is used to acquire particulate matter images of the target illumination area in a preset space; The first determining unit is used to determine the number of particles corresponding to the particle size in the target illumination area based on the particle image. The second determining unit is used to determine the air quality corresponding to the air quality evaluation index in the preset space based on the number of particles corresponding to the particle size. The particle size is determined in the following way: The image coefficients of the particulate matter image are obtained, and the size of the particulate matter region is obtained; based on the particulate matter region size and the image coefficients, the size of the particulate matter corresponding to the target illumination area is calculated; wherein, the particulate matter region is obtained by region recognition of the particulate matter image, and the image coefficient is the ratio between the distance from the camera device to the target light source illuminating the preset space and the distance from the camera device to the first light source turned on. The target light source is a light source that is sequentially selected from a plurality of light sources and turned on, and the plurality of light sources are arranged on one side of the preset space.
10. A computer device, characterized in that, It includes a memory and a processor; the memory stores a computer program, and the processor is used to run the computer program in the memory to perform the air quality determination method according to any one of claims 1 to 8.
11. A computer-readable storage medium, characterized in that, The computer-readable storage medium stores a computer program adapted for loading by a processor to perform the air quality determination method according to any one of claims 1 to 8.