CN105445204A - Method for discriminating air quality grade based on lens blue light wave analysis - Google Patents

Method for discriminating air quality grade based on lens blue light wave analysis Download PDF

Info

Publication number
CN105445204A
CN105445204A CN 201510886748 CN201510886748A CN105445204A CN 105445204 A CN105445204 A CN 105445204A CN 201510886748 CN201510886748 CN 201510886748 CN 201510886748 A CN201510886748 A CN 201510886748A CN 105445204 A CN105445204 A CN 105445204A
Authority
CN
Grant status
Application
Patent type
Prior art keywords
air
quality
grade
sky
device
Prior art date
Application number
CN 201510886748
Other languages
Chinese (zh)
Inventor
刘耀龙
段锦
常媛媛
马清亮
张华明
郭涛
Original Assignee
太原理工大学
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date

Links

Classifications

    • GPHYSICS
    • G01MEASURING; TESTING
    • G01NINVESTIGATING OR ANALYSING MATERIALS BY DETERMINING THEIR CHEMICAL OR PHYSICAL PROPERTIES
    • G01N21/00Investigating or analysing materials by the use of optical means, i.e. using infra-red, visible or ultra-violet light
    • G01N21/17Systems in which incident light is modified in accordance with the properties of the material investigated
    • G01N21/25Colour; Spectral properties, i.e. comparison of effect of material on the light at two or more different wavelengths or wavelength bands
    • G01N21/27Colour; Spectral properties, i.e. comparison of effect of material on the light at two or more different wavelengths or wavelength bands using photo-electric detection ; circuits for computing concentration
    • GPHYSICS
    • G01MEASURING; TESTING
    • G01NINVESTIGATING OR ANALYSING MATERIALS BY DETERMINING THEIR CHEMICAL OR PHYSICAL PROPERTIES
    • G01N21/00Investigating or analysing materials by the use of optical means, i.e. using infra-red, visible or ultra-violet light
    • G01N21/17Systems in which incident light is modified in accordance with the properties of the material investigated
    • G01N2021/1765Method using an image detector and processing of image signal
    • G01N2021/177Detector of the video camera type
    • G01N2021/1776Colour camera

Abstract

The invention discloses a method for discriminating an air quality grade based on lens blue light wave analysis. The method comprises the steps of shooting the sky through a shooting device to obtain a sky image; receiving the output sky image shot by the shooting device through an analytical calculation device, calculating the average blue saturability of the sky image based on an HSB color mode, calculating the value of the current air quality index (AQI) according to the corresponding relations of the average blue saturability and an AQI established in advance to obtain the air quality grade; and displaying the current air quality grade and/or the AQI through a display device. According to the method, the air quality grade can be discriminated and displayed accurately and conveniently, so that ordinary people can obtain and judge the air pollution degree in real time, judge the air quality grade and conveniently take corresponding protective measures according to different air quality grades.

Description

-种基于镜头蓝色光波分析的空气质量等级判别方法 - kind of air quality level determination method based on shot blue light wave analysis

技术领域 FIELD

[0001] 本发明设及一种基于镜头蓝色光波分析的空气质量等级判别方法,属于空气质量等级判断领域。 [0001] The present invention is provided, and an air quality level determination method based on the analysis wavelength blue lens, belonging to the field of air quality level determination.

背景技术 Background technique

[0002] 近年来空气污染越来越严重,影响人体健康。 [0002] In recent years, air pollution is getting worse, affect human health. 人们需要像天气预报一样获知空气污染程度,W便出口时采取必要的防护措施。 People need to know, like weather forecasts as air pollution, take the necessary protective measures W will be exported. 而目前对于空气质量的状况(一般为PM2.5污染)一般由政府机构等专业部口发布,普通人难W实时获知判断空气污染的程度,难W评判空气质量等级,也就无法方便地根据不同空气质量等级采取对应的防护措施。 The current situation for air quality (usually PM2.5 pollution) are generally issued by government agencies and other professional portion of the mouth, which most people know the real-time W to determine the extent of air pollution, air quality is difficult to judge the W grade, it can not easily according to the different air quality levels to take corresponding precautions.

发明内容 SUMMARY

[0003]本发明旨在提供一种基于镜头蓝色光波分析的空气质量等级判别方法,W比较准确方便地对空气质量进行等级判别显示,使得普通人可实时获知空气污染程度,评判空气质量等级,便于根据不同空气质量等级采取对应的防护措施。 [0003] The present invention aims to provide an air quality level is determined based on the lens of the blue light wave analysis, W more accurately and easily determining the air quality level of the display, so that ordinary air pollution can be known in real time, critical air quality level easy to take protective measures according to the corresponding different air quality levels.

[0004]本发明提供的一种基于镜头蓝色光波分析的空气质量等级判别方法,包括W下步骤: 通过拍摄装置拍摄天空获取天空图像; 通过分析计算装置接收所述拍摄装置拍摄输出的天空图像,基于HSB颜色模式计算所述天空图像的平均蓝色饱和度;所述分析计算装置为主机板,包括部件有CPU、RAM、R0M、 GPU; 根据预先建立的平均蓝色饱和度和空气质量指数AQI的对应关系,计算当前空气质量指数AQI的数值进而得到空气质量等级; 通过显示装置显示当前的空气质量等级和/或空气质量指数AQI。 [0004] A present invention provides a method for determining an air quality level of the blue optical wave analysis based on the lens, W comprises the steps of: acquiring the sky by the sky image capturing means capturing; imaging means receiving an output of said calculating means by analyzing captured image sky the average of the blue sky image is calculated based on the HSB color saturation mode; the evaluation unit for the motherboard, with a member comprising a CPU, RAM, R0M, GPU; pre-established according to the average saturation and blue AQI AQI correspondence relationship, the current value of the air quality index is calculated and thus obtain AQI air quality level; the display device displays the current level of air quality and / or air quality index AQI.

[000引上述判别方法中,所述预先建立的平均蓝色饱和度和空气质量指数AQI的对应关系具体为: AQI=131.839-1.345*S,其中,AQI为空气质量指数,S为平均蓝色饱和度。 [000 cited above determination method, the predetermined saturation and blue average air quality index AQI correspondence relationship established specifically: AQI = 131.839-1.345 * S, wherein, AQI air quality index, S is the average blue saturation.

[0006]上述关系式是由大量的实测数据拟合而成,拟合软件为SPSS,用最小二乘法拟合线性回归模型。 [0006] The above relation is fitted by a large number of measured data obtained by fitting the SPSS software, by fitting the least squares linear regression model. 平均蓝色饱和度S数据来源于图像拍摄和计算,空气质量指数AQI数据来源于环保局监测数值。 The average saturation S blue data from the image capturing and calculating, from data AQI air quality index value EPA monitoring.

[0007]空气质量指数AQI越小,空气质量越好。 [0007] AQI air quality index, the better the quality of the air.

[000引上述判别方法中,所述平均蓝色饱和度S的数值范围为0-98。 [000 cited above determination process, an average value of the blue range of the saturation S is 0-98.

[0009] 进一步地,所述平均蓝色饱和度S的数值范围0-98分为两个数值区间,每个区间对应不同的空气质量指数:0~23为污染;24~98为不污染。 [0009] Further, the numerical range of the blue average saturation S values ​​of 0-98 is divided into two sections, each section corresponding to a different air quality index: 0 ~ 23 pollution; 24 to 98 is not contaminated.

[0010] 更进一步地,所述平均蓝色饱和度S的数值范围0-98分为Ξ个数值区间:0~23代表空气质量为污染;24~60代表空气质量为良好;6^98代表空气质量为优秀。 [0010] Further, the numerical range of the average saturation S 0-98 blue Ξ into numerical range: 0 to 23 is representative of mass air pollution; 24 to 60 represents an air quality to be good; 98 ^ 6 representatives air quality is excellent.

[0011] 上述判别方法中,所述的基于HSB颜色模式计算所述天空图像中的平均蓝色饱和度,具体为:将所述天空图像进行九宫格处理,取九宫格中的中间图像的四个端点的hsb值(该值是通过化Otoshop滴管工具拾取颜色后可查询获得),根据四个端点的服B值计算所述服B值中S值的平均值,即为平均蓝色饱和度;其中所述四个端点的HSB值满足W下条件:HSB 值中Η的取值范围为200~250。 [0011] The determination method, the average saturation of the blue sky in the image is calculated based on the HSB color model, specifically: the sky image processing squares, four terminals of the intermediate image is taken Jiugongge the hsb value (which is picked up by the color of the eyedropper tool queries the obtained Otoshop), calculates an average value in the serving B S B value based on values ​​of service four terminals, namely blue average saturation; wherein the four endpoints HSB values ​​satisfies condition W: Η ranges in HSB value of 200 to 250.

[0012] 上述判别方法中,所述显示装置为LCD或L邸显示器。 [0012] The determination method of the display device is an LCD display or L Di.

[0013]上述判别方法中,所述拍摄装置为摄像头,要求摄像头的像素含30万像素(640X 480像素)。 Pixel [0013] The determination method of the imaging device is a camera, the camera requires having 300,000 pixels (640X 480 pixels).

[0014]本发明的有益效果: 本发明根据蓝色强度值和空气质量指数AQI的对应关系,计算当前空气质量指数AQI的数值,然后根据空气质量指数AQI可获得当前空气质量等级,由于采用预先建立的平均蓝色饱和度和空气质量指数AQI的对应关系进行计算判断,全过程自动计算,能够准确方便地对空气质量进行等级判别显示,使得普通人可实时获知判断空气污染的程度,评判空气质量等级,便于根据不同空气质量等级采取对应的防护措施。 [0014] Advantageous Effects of Invention: The present invention is based on the correspondence and the blue intensity value of the air quality index AQI calculated AQI air quality index value of the current, and in accordance with the current air quality index AQI air quality level can be obtained, thanks to pre the average saturation of the blue and establishing a correspondence relationship AQI air quality index calculation judgment, the whole process is calculated automatically, accurately and easily determining the air quality level display, so that the average person can know in real time to determine the extent of air pollution, air evaluation quality levels, corresponding to facilitate take protective measures depending on the air quality levels.

附图说明 BRIEF DESCRIPTION

[0015]图1为本发明空气质量等级判别方法流程示意图。 [0015] FIG 1 determines air quality level flowchart of a method of the present invention.

具体实施方式 detailed description

[0016]下面通过实施例来进一步说明本发明,但不局限于W下实施例。 [0016] The present invention is further illustrated below by way of examples, but the embodiment is not limited W.

[0017]首先,对本发明中用到的理论基础作出说明,即大气散射原理及其光学效应原理。 [0017] First, an explanation of the theory used in the present invention, i.e., atmospheric scattering principle as its optical effect. 大气散射是指太阳福射入射大气遇到空气分子、尘埃、云滴等质点时,粒子W和入射波相同的频率,按一定规律重新向四周福射电磁波的现象。 When atmospheric scattering of the sun is encountered Four Incidence atmospheric air molecules, dust cloud droplets and other particles, W particles and the same frequency as the incident waves, again according to certain rules Four emitted to the surrounding electromagnetic phenomena. 按照散射质点粒径与太阳波长的大小关系不同,散射分为分子散射(又称蕾利散射)和粗粒散射(又称漫射)。 Scattering particles of different wavelengths according to the relationship between particle size and the sun, into molecular scattering scattering (also known as scatter Lei Li) and coarse scattering (also called diffusion). 两类散射的形成、质点类型、特点及光学效应见表1所示,其中d为散射质点直径,r为太阳福射光波长。 Forming two scattering, particle type, the characteristics shown in Table 1 and the optical effect, where d is the diameter of the scattering particles, r is the wavelength of light emitted Sun Fu.

[001引表1 [Table 1 Primer 001

Figure CN105445204AD00041

表1中所示的两类散射的特点决定了它们所产生的光学效应。 Two scattering characteristics shown in Table 1 determine the optical effect they produce. 当发生分子散射时,散射质点(空气分子)的波长小于太阳福射波长。 When the molecular scattering occurs, scattering particles (air molecules) is smaller than the wavelength of emission wavelength Sun Fu. 由于空气分子的散射强度与波长的四次方成反比,也即入射光波长愈小,其被散射程度愈大。 Since the scattering intensity is inversely proportional to the fourth power of the wavelength of the air molecules, i.e., the smaller the wavelength of incident light, which is the greater the degree of scattering. 在可见光光谱(380nm--760nm)范围内,蓝紫光的波长较小,其散射程度较大,而红澄光波长较大,故很少被散射,几乎全部通过。 In visible light (380nm - 760nm) spectral range of the wavelength of blue-violet light is small, the degree of scattering is large, and the red wavelength Chengguang large, so rarely is scattered almost all through. 故而,在晴天大气中散射质点主要为空气分子,分子散射强烈,天空呈蓝色。 Therefore, the scattering particles in the sunny atmosphere mainly air molecules, molecular scattering intense blue sky. 而日出、日落时, 由于太阳光穿过厚的大气层,大部分蓝紫光被散射掉,红澄光则相对保留,所W天空呈现红、澄色。 The sunrise, sunset, because the sunlight through the thick atmosphere, most of the blue-violet light is scattered out, red Chengguang the relative retention, the W sky appear red, an orange. 而当空气中所含粗粒(如尘埃、云滴、雨滴、雾粒、烟粒等)较多时则发生粗粒散射。 When coarse particles contained in the air (e.g., dust, droplets clouds, rain, fog particles, soot, etc.) occurs more coarse scattering. 太阳光无论波长大小全部被无选择地散射,使得屯色可见光又重新组合,使天空呈现出白色。 No matter the size of the wavelength of sunlight are all non-selectively scattered, making visible again Tuen color combination, the sky appeared a white. 在阴天(水汽分子、云滴、雨滴较多),严重污染的工业区(雾、尘埃较多),天空总是呈白色或含有杂质的灰白色。 On a cloudy day (water vapor molecule, cloud droplets, raindrops more), polluted industrial areas (fog, more dust), the sky is always white or gray containing impurities.

[0019]基于W上理论基础,本发明建立天空蓝色强度值和空气质量指数的模型对应关系,W此为基础来进行空气质量评级判断,能够比较准确方便地对空气质量进行等级判别显示,进而使得普通人可实时获知判断空气污染的程度,评判空气质量等级,方便地根据不同空气质量等级采取对应的防护措施。 [0019] Based on theory W, the present invention builds models sky and the blue intensity value of the air quality index corresponding relationship, W performs this determination based on air quality ratings, can accurately and easily determining the air quality level display, Furthermore such known ordinary real-time to determine the extent of air pollution, air quality evaluation level, corresponding to conveniently take protective measures according to the different air quality levels. 下面结合附图具体说明本发明。 The present invention is specifically described below with reference to the accompanying drawings.

[0020] 如图1所示,为本发明实施例示出的基于镜头蓝色光波分析的空气质量等级判别方法流程图,基于镜头蓝色光波分析的空气质量等级判别装置包括拍摄装置、分析计算装置和显示装置。 [0020] FIG. 1, a flowchart illustrates a method of determining a lens blue light wave analysis based on air quality level embodiment of the invention, based on the air quality level determination apparatus including a lens imaging the blue light wave analysis apparatus, the evaluation unit and a display device. 该方法具体包括W下步骤: 5101、 通过拍摄装置拍摄天空获取天空图像; 5102、 通过分析计算装置接收所述拍摄装置拍摄输出的天空图像,计算所述天空图像中RGB中的蓝色平均强度值; 5103、 通过分析计算装置根据预先建立的蓝色强度值和空气质量指数AQI的对应关系, 计算当前空气质量指数AQI的数值进而得到空气质量等级; 5104、 通过显示装置显示当前的空气质量等级和/或空气质量指数AQI。 The method comprises the steps of W: 5101, acquired sky by the sky image capturing means capturing; 5102, sky image capturing means receiving the output of said imaging analysis calculation means for calculating the average intensity value of blue in the RGB image of the sky ; 5103, the computing device by analyzing the pre-established correspondence relation, and blue intensity values ​​of the air quality index AQI, calculates the current value of the air quality index and thus obtained AQI air quality levels; 5104, display current air quality level by the display means and / air quality index or AQI.

[0021] 本发明通过拍摄天空获取天空图像,基于HSB颜色模式计算所述天空图像的平均蓝色饱和度,再根据预先建立的平均蓝色饱和度和空气质量指数AQI的对应关系,计算当前空气质量指数AQI的数值进而得到空气质量等级,然后显示当前的空气质量等级和/或空气质量指数AQI。 [0021] The present invention is an image acquired by photographing the sky sky, the sky blue average saturation of an image based on the HSB color model is calculated, and then the correspondence relationship between pre-established average saturation and blue AQI air quality index, and calculates the current air Numerical AQI mass index and thus obtain air quality level, then the current air quality levels and / or air quality index AQI. 空气质量指数AQI越小,空气质量越好。 AQI air quality index, the better the quality of the air. 根据平均蓝色饱和度和空气质量指数AQI的对应关系,计算当前空气质量指数AQI的数值,然后根据空气质量指数AQI可获得当前空气质量等级,由于采用预先建立的平均蓝色饱和度和空气质量指数AQI的对应关系进行计算判断,全过程自动计算,能够准确方便地对空气质量进行等级判别并显示,使得普通人可实时获知判断空气污染的程度,评判空气质量等级,方便地根据不同空气质量等级采取对应的防护措施。 The correspondence relationship between the average saturation and blue AQI air quality index to calculate the current value of the air quality index AQI and air quality level can be obtained in accordance with the current air quality index AQI, thanks to pre-established average blue saturation, and air quality a correspondence relationship judgment index is calculated AQI, the whole process of automatic calculation, it is possible to accurately and conveniently air quality level is determined and displayed in real time so that the average person can judge the degree of air pollution is known, critical air quality levels, depending on the air quality and easily level corresponding to take protective measures.

[0022] 具体地,所述显示装置为LCD或Lm)显示器,与所述分析计算装置连接。 [0022] Specifically, the display device is an LCD or Lm) display, and the evaluation unit is connected. 所述拍摄装置为摄像头,所述摄像头与所述分析计算装置(如微处理器、微控制器或者其他CPLD、FPGA 等可编程逻辑器件)连接。 The imaging device is a camera, the camera head and the evaluation unit (such as a microprocessor, microcontroller or other CPLD, FPGA programmable logic devices, etc.) connection. 该装置包括背板和面板,所述摄像头设置在背板上,所述显示器设置在面板上,所述分析计算装置设置在壳体内。 The apparatus comprises a backing plate and a panel, the camera is provided on the back plate, disposed on the display panel, the evaluation unit disposed within the housing. 分析计算装置可控制摄像头进行拍摄,并根据摄像头拍摄的天空图像,基于HSB颜色模式计算所述天空图像的平均蓝色饱和度,再根据预先建立的平均蓝色饱和度和空气质量指数AQI的对应关系,计算当前空气质量指数AQI 的数值进而得到空气质量等级。 Calculation means may control the camera to shoot, and the sky in accordance with the image captured by the camera, the average saturation of the blue sky image calculated based on the HSB color model, again according to the preset saturation and blue average air quality index corresponding to AQI relation, calculates the current value of the air quality index and thus obtained AQI air quality levels. 显示装置可W是触摸屏显示器,可W接收用户输入的操作指令从而触发控制摄像头拍照。 The display device may be a touch screen display W, W may receive operating instructions input by the user control to trigger the camera to take pictures. 运样使得该装置可像手机一样操作,易用性好,简单方便易携带。 The sample transport so that the device can operate like a mobile phone, ease of use is good, simple and easy to carry.

[0023]其中,所述预先建立的平均蓝色饱和度和空气质量指数AQI的对应关系(即关系模型)具体为:AQI=131.839-1.345*S,其中,AQI为空气质量指数,S为平均蓝色饱和度。 [0023] wherein the predetermined saturation and blue average air quality index AQI correspondence relationship established (i.e., the relational model) is specifically: AQI = 131.839-1.345 * S, wherein the AQI is the air quality index, S is the average blue saturation. 该对应关系即关系模型通过大量观测数据拟合计算得到,下面对该关系模型作出具体说明。 I.e., the correspondence relation model by fitting the observed data is calculated to obtain a large amount, to the following detailed description of the relational model.

[0024] W上模型检验的相关结果如下:R为-0.810(sig=0.000),R2为0.655,F检验值为57.080(sig=0.000),常数项131.827和系数-1.344对应的t检验值分别为32.115(sig= 0.000)和-7.555(sig=0.000),均通过99.99%显著性检验,模型拟合效果良好。 [0024] The results of the model test of the correlation W follows: R is -0.810 (sig = 0.000), R2 is 0.655, F-test value 57.080 (sig = 0.000), the constant term and the coefficients of -1.344 131.827 corresponding t-test values is 32.115 (sig = 0.000) and -7.555 (sig = 0.000), 99.99% have passed the significance test, a good model fit results.

[002引HSB颜色模式:从屯、理学的角度来看,颜色有Ξ个要素:色泽(Hue)、饱和度(Saturation)和亮度(Bri曲tness)。 [002 cited HSB color model: From the village, pharmacological point of view, color Ξ elements: color (Hue), saturation (Saturation,) and brightness (Bri song tness). 册8颜色模式便是基于人对颜色的屯、理感受的一种颜色模式。 Volume 8 color mode is based on Tuen people of color, a color mode of management experience. 它是由RGBS基色转换为Lab模式,再在Lab模式的基础上考虑了人对颜色的屯、理感受运一因素而转换成的。 It was converted by RGBS color to Lab mode, then consider a person of color on the basis of Tuen Lab mode on a transport management experience factors to convert to. 因此运种颜色模式比较符合人的视觉感受,让人觉得更加直观一些。 So color mode operation more in line with human visual perception, people feel more intuitive.

[0026]HSB颜色模式中的蓝色对应的取值分别为:Η的取值范围为(200,250 ),B的取值范围为(85,100),S的取值范围为(0,100),其中饱和度S取值0时,为白色,S取值100时,为蓝色;从0至100之间,形成不同饱和度的蓝色。 [0026] HSB color model values ​​corresponding to blue, respectively: Η range of (200, 250), is in the range B (85,100), S is in the range (0,100), wherein value of the saturation S 0, is white, when the value of S 100, blue; from 0 to 100, a blue varying degrees of saturation.

[0027] 上述关系模型检验的结果为:R为-0.810(31旨=0.000),32为0.655古检验值为57.080(sig=0.000),常数项131.827和系数-1.344对应的t检验值分别为32.115(sig= 0.000)和-7.555(sig=0.000),均通过99.99%显著性检验,模型拟合效果良好。 [0027] The results of the above test model the relationship is: R is -0.810 (31 aims = 0.000), 32 0.655 ancient test value 57.080 (sig = 0.000), the constant term and the coefficients of -1.344 131.827 corresponding t-test values ​​were 32.115 (sig = 0.000) and -7.555 (sig = 0.000), 99.99% have passed the significance test, a good model fit results.

[0028] 上述检验结果的意义:时兑明AQI和S之间存在显著的负相关关系,即随着平均蓝色饱和度S增大,空气质量指数AQI值变小,空气质量变好。 [0028] The significance of the above test results: there is between the S and AQI out against significant negative correlation, i.e. blue as the average saturation S increases, AQI air quality index value becomes small, the air quality is improved. R2反映S解释AQI的比例,即平均蓝色饱和度S能够解释空气质量指数AQI的65.5%,就单因素来说,解释的比例相对较好。 R2 reflected the ratio S explained AQI, i.e., the average saturation S can be interpreted blue AQI AQI of 65.5%, on a single factor, the proportion of relatively good explanation. F检验值反映模型的拟合优度,伴随概率sig=0.000说明模型的拟合优度大于99.99%;t检验值反映模型中的两个参数的拟合优度,二者sig=0.000也说明参数拟合优度大于99.99%。 Goodness of fit of the model to reflect the value of F-test, with the probability of sig = 0.000 goodness of fit of the model description of greater than 99.99%; t goodness of fit test values ​​reflect two parameters in the model, both also shows sig = 0.000 The goodness of fit parameter of greater than 99.99%. 总体来说,运个模型能够较精确地解释AQI和S的关系。 Overall, transport models can explain more accurately the relationship between AQI and S.

[0029]该关系模型的来源:模型的来源于数据拟合,拟合软件为SPSS,拟合方法为线性回归分析。 Source [0029] The relational model: data derived from the model fitting, fitting software as SPSS, linear regression analysis fitting method. 拟合的原始数据来源于实测,W临汾市尧都区,时间为2006年3月和4月为例说明, 其中空气质量指数AQI数据来源于临汾市环保局网站,平均蓝色饱和度S数据来源于对应日期的天空照片图像计算获得。 Fitting the raw data from the measured, W Yaodu, time is March 2006 and April as an example, where the air quality index AQI data from Linfen City Environmental Protection Bureau website, the average blue saturation data S from the corresponding date of the sky photo image obtained by calculation. 原始数据见下表2。 The original data in Table 2 below.

[0030]表2模型拟合的原始数据 [0030] Table 2 model fitting raw data

Figure CN105445204AD00071

该关系模型来源于实测和计算机拟合,前人的研究文献中尚未有二者的关系模型,模型的拟合优度大于99.99%,精度较高。 The relational model and derived Found computer fitting, previous studies in the literature have not been both relational model, the goodness of fit of the model is greater than 99.99%, and high precision. 通过该模型关系W天空平均蓝色饱和度值计算空气质量指数AQI的数值,然后根据空气质量指数AQI获得当前空气质量等级,准确性大大提高。 AQI air quality index value calculated by the average of Model W sky blue saturation value, then obtains the current AQI air quality level according to the air quality index, greatly improved accuracy.

[0031]具体地,所述分析计算装置基于HSB颜色模式计算所述天空图像中的蓝色平均蓝色饱和度,具体为:将所述天空图像进行九宫格处理,取九宫格中的中间图像的四个端点的服B值,根据所述四个端点的服B值计算所述服B值中S值的平均值,即为平均蓝色饱和度;其中所述四个端点的HSB值满足W下条件:HSB值中Η的取值范围为(200,250 )。 [0031] In particular, the analysis of the blue average saturation in the image blue sky calculating means calculates the HSB color model based, specifically: the sky image processing squares, four squares in the middle of the image taken service endpoints B value is calculated according to the values ​​of the four service endpoint B average value S B of the suit value, that is, the average saturation of blue; wherein the HSB values ​​satisfy the following four endpoints W conditions: Η range of values ​​for the HSB (200, 250).

[0032]具体地,平均蓝色饱和度是图像中屯、部分选点的蓝色饱和度的算术平均值,通过该计算方式可W高蓝色饱和度的识别准度,防止W偏概全,检测结果准确性提高。 [0032] Specifically, the average saturation of an image in the blue Tun, the arithmetic mean of the blue part of the selected point, saturation, W may be calculated by the identification accuracy higher saturation blue, almost full to prevent partial W , accuracy of test results improved.

[0033]平均蓝色饱和度的计算方法为:将摄像头镜头拍摄的天空图像进行九宫格处理(即通过Photoshop软件划分为3X3切片),取中间图像的四个端点的HSB值,计算S的平均值,即为平均饱和度。 [0033] The method of calculating the average saturation of blue: a camera lens sky image photographed squares process (i.e., divided by the Photoshop software 3X3 sections), the HSB value takes four terminals of the intermediate image, the average value of S , is the average saturation. 所述四个端点的HSB只要符合Η的取值范围为(200,250),B的取值范围为(85,100)即可计算S的平均值,否则图像不是蓝色,计算会出错,要求拍摄图像时候中屯、 部分一定为天空,而不能是景物或人物。 Η they meet the HSB value ranges for the four endpoints (200, 250), is in the range B (85,100) to calculate the average value of S, or blue image is not calculated to be wrong, the image capturing time required Tuen, a certain part of the sky is, not a scene or character.

[0034] 参看表3,所述平均蓝色饱和度S的数值范围为0-98。 [0034] Referring to Table 3, the numerical range of the blue average saturation S is 0-98. 所述平均蓝色饱和度S的数值范围0-98分为至少两个数值区间,每个区间对应不同的空气质量指数,具体划分可参考表3 中给出的对应关系。 Blue range of the average value of saturation S of 0-98 values ​​into at least two sections, each section corresponding to a different air quality index, can be divided specifically in reference to Table 3 given correspondence relation. AQI与空气质量等级之间的对应关系是《环境空气质量指数(AQI)技术规定(试行)》(町633-2012)中明确规定的,即划分为6级,指数越大,级别越高,说明污染越严重,对人体健康的影响也越明显。 Correspondence between AQI and air quality levels are clearly defined "Ambient Air Quality Index (AQI) Technical provisions (Trial)" (cho 633-2012), that is divided into six larger the index, the higher the level, indicating more serious pollution, the impact on human health is also more obvious. 本发明只判断优秀、良好和轻微污染,便于直观判断空气质量等级,同时便于公众理解,对于轻微污染、轻度污染、中度污染和重度污染均归为污染一级,既然污染,公众就应该采取防护措施。 The present invention is determined only excellent, good and light pollution, easy to visually determine the air quality level, while allowing the public understood that for slight contamination, light pollution, moderate pollution and are classified as severe pollution pollution level, since the contamination, the public should take protective measures.

[0035]表3 [0035] TABLE 3

Figure CN105445204AD00081

本发明装置工作时,通过摄像头镜头拍摄天空图像,基于HSB颜色模式计算所述天空图像的平均蓝色饱和度,再根据预先建立的平均蓝色饱和度和空气质量指数AQI的对应关系, 计算AQI数值,进而判断天空空气质量等级,判断结果呈现在显示器上,空气质量指数AQI越小,空气质量越好,由于采用预先建立的平均蓝色饱和度和空气质量指数AQI的对应关系进行计算判断,全过程自动计算,能够准确方便地对空气质量进行等级判别显示,使得普通人可实时获知判断空气污染的程度,评判空气质量等级,方便地根据不同空气质量等级采取对应的防护措施。 When the apparatus of the present invention work, the sky image captured through the camera lens, the average saturation of the blue sky image calculated based on the HSB color model, and then the correspondence relationship between pre-established average saturation and blue AQI air quality index calculated AQI value, and thus the air quality level determination sky, determination results presented on the display, the smaller the AQI air quality index, the better the quality of air, thanks to a pre-established correspondence relationship between the average saturation and blue AQI air quality index is calculated determination, automatic calculation of the whole process, can be accurately and conveniently air quality level determination of display, so that the average person can know in real time to determine the extent of air pollution, air quality evaluation level, corresponding to conveniently take protective measures according to the different air quality levels.

[0036]上面结合附图对本发明的具体实施方式进行了详细说明,但本发明并不限制于上述实施方式,在不脱离本申请的权利要求的精神和范围情况下,本领域的技术人员可W作出各种修改或改型。 [0036] DETAILED DESCRIPTION OF THE DRAWINGS The above embodiment of the present invention will be described in detail, but the present invention is not limited to the above embodiment, the claimed spirit and scope of the present disclosure without departing from the claims, those skilled in the art can W make various modifications or modifications.

Claims (9)

  1. 1. 一种基于镜头蓝色光波分析的空气质量等级判别方法,其特征在于,包括以下步骤: 通过拍摄装置拍摄天空获取天空图像; 通过分析计算装置接收所述拍摄装置拍摄输出的天空图像,基于HSB颜色模式计算所述天空图像的平均蓝色饱和度; 根据预先建立的平均蓝色饱和度和空气质量指数AQI的对应关系,计算当前空气质量指数AQI的数值进而得到空气质量等级; 通过显示装置显示当前的空气质量等级和/或空气质量指数AQI。 An air quality level determination method based on analysis of the lens blue light waves, characterized by comprising the steps of: capturing an image by photographing the sky sky acquiring means; sky image capturing means receiving the output of said captured by the evaluation unit, based on HSB color model calculates the average blue sky image saturation; according to a pre-established correspondence relationship between the average blue saturation AQI and air quality index calculated value of the current air quality index and thus obtained AQI air quality level; by the display means display current air quality levels and / or air quality index AQI.
  2. 2. 根据权利要求1所述的基于镜头蓝色光波分析的空气质量等级判别方法,其特征在于,所述预先建立的平均蓝色饱和度和空气质量指数AQI的对应关系具体为: AQI=131.839-1.345*S,其中,AQI为空气质量指数,S为平均蓝色饱和度。 The air quality level is determined based on the blue light wave analysis lens according to claim 1, wherein the corresponding relationship between the pre-established average saturation and blue AQI AQI is specifically: AQI = 131.839 -1.345 * S, wherein, AQI is the air quality index, S is the average saturation blue.
  3. 3. 根据权利要求2所述的基于镜头蓝色光波分析的空气质量等级判别方法,其特征在于,所述平均蓝色饱和度S的数值范围为0-98。 The air quality level is determined based on the lens of the blue light wave analysis according to claim 2, wherein the average value of the blue range of the saturation S is 0-98.
  4. 4. 根据权利要求3所述的基于镜头蓝色光波分析的空气质量等级判别方法,其特征在于,所述平均蓝色饱和度S的数值范围0-98分为两个数值区间:每个区间对应不同的空气质量指数:0~23为污染;24~98为不污染。 4. The air quality level is determined based on the lens of the blue light wave analysis according to claim 3, wherein the average value of the blue range of the saturation S values ​​0-98 is divided into two sections: in each section corresponding to different air quality index: 0 ~ 23 pollution; 24 to 98 is not contaminated.
  5. 5. 根据权利要求3所述的基于镜头蓝色光波分析的空气质量等级判别方法,其特征在于,所述平均蓝色饱和度S的数值范围0-98分为三个数值区间,0~23--空气质量为污染; 24~60空气质量为良好;61~98空气质量为优秀。 The air quality level is determined based on the blue light wave analysis lens according to claim 3, wherein the average value of the blue range of the saturation S is divided into three numerical range 0-98, 0 to 23 - pollution of the air quality; 24 ~ 60 good air quality; 61 to 98 excellent air quality.
  6. 6. 根据权利要求1所述的基于镜头蓝色光波分析的空气质量等级判别方法,其特征在于,所述的基于HSB颜色模式计算所述天空图像中的平均蓝色饱和度,具体为:将所述天空图像进行九宫格处理,取九宫格中的中间图像的四个端点的HSB值,根据四个端点的HSB值计算所述HSB值中S值的平均值,即为平均蓝色饱和度; 其中所述四个端点的HSB值满足以下条件:HSB值中Η的取值范围为200~250。 The air quality level is determined based on the blue light wave analysis lens according to claim 1, characterized in that the average saturation of the blue sky in the image is calculated based on the HSB color model, in particular to: the squares sky image processing, four endpoints HSB values ​​intermediate image taken in squared, calculating an average value of the HSB values ​​of S according to HSB values ​​four terminals, namely blue average saturation; wherein HSB values ​​of the four end satisfy the following condition: Η in the range HSB value of 200 to 250.
  7. 7. 根据权利要求1所述的基于镜头蓝色光波分析的空气质量等级判别方法,其特征在于,所述显示装置为IXD或LED显示器。 The air quality level is determined based on the blue light wave analysis lens according to claim 1, characterized in that the device is a display or LED display IXD.
  8. 8. 根据权利要求1所述的基于镜头蓝色光波分析的空气质量等级判别方法,其特征在于,所述拍摄装置为摄像头,要求摄像头的像素2 30万像素。 The air quality level is determined based on the lens of the blue light wave analysis according to claim 1, wherein said imaging means is a camera, the camera pixel claim 2 300,000 pixels.
  9. 9. 根据权利要求1所述的基于镜头蓝色光波分析的空气质量等级判别方法,其特征在于,所述分析计算装置为主机板,包括部件有CPU、RAM、ROM、GPU。 9. The air quality level is determined based on the lens of the blue light wave analysis according to claim 1, wherein said evaluation unit for the motherboard, with a member comprising a CPU, RAM, ROM, GPU.
CN 201510886748 2015-12-07 2015-12-07 Method for discriminating air quality grade based on lens blue light wave analysis CN105445204A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN 201510886748 CN105445204A (en) 2015-12-07 2015-12-07 Method for discriminating air quality grade based on lens blue light wave analysis

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN 201510886748 CN105445204A (en) 2015-12-07 2015-12-07 Method for discriminating air quality grade based on lens blue light wave analysis

Publications (1)

Publication Number Publication Date
CN105445204A true true CN105445204A (en) 2016-03-30

Family

ID=55555660

Family Applications (1)

Application Number Title Priority Date Filing Date
CN 201510886748 CN105445204A (en) 2015-12-07 2015-12-07 Method for discriminating air quality grade based on lens blue light wave analysis

Country Status (1)

Country Link
CN (1) CN105445204A (en)

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
EP1569465A3 (en) * 2004-02-19 2007-01-03 Sony Corporation Image processing apparatus, and image processing method
CN202110131U (en) * 2011-05-31 2012-01-11 河南农业大学 Device for testing tobacco maturity
CN102323221A (en) * 2011-05-31 2012-01-18 河南农业大学 Tobacco maturity detection method and device
CN103940714A (en) * 2014-05-13 2014-07-23 武汉大学 Imitated artificial haze monitoring system and method

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
EP1569465A3 (en) * 2004-02-19 2007-01-03 Sony Corporation Image processing apparatus, and image processing method
CN202110131U (en) * 2011-05-31 2012-01-11 河南农业大学 Device for testing tobacco maturity
CN102323221A (en) * 2011-05-31 2012-01-18 河南农业大学 Tobacco maturity detection method and device
CN103940714A (en) * 2014-05-13 2014-07-23 武汉大学 Imitated artificial haze monitoring system and method

Non-Patent Citations (2)

* Cited by examiner, † Cited by third party
Title
丁刚毅 等: "《数字媒体技术》", 31 August 2015 *
刘耀龙 等: "天空蓝色饱和程度与城市空气质量等级的相关性", 《城市环境与城市生态》 *

Similar Documents

Publication Publication Date Title
Tan et al. Separating reflection components of textured surfaces using a single image
US6594384B1 (en) Apparatus and method for estimating and converting illuminant chromaticity using perceived illumination and highlight
Tocci et al. A versatile HDR video production system
Tominaga Spectral imaging by a multichannel camera
Wolff Using polarization to separate reflection components
Xu et al. Fast image dehazing using improved dark channel prior
US20020146169A1 (en) Method and apparatus for using illumination from a display for computer vision based user interfaces and biometric authentication
Fredembach et al. Colouring the near-infrared
Lin et al. Separation of diffuse and specular reflection in color images
Lehmann et al. Color line search for illuminant estimation in real-world scenes
Finlayson et al. Hue that is invariant to brightness and gamma.
US20110018999A1 (en) Device for Evaluating the Surface of a Tire
Treibitz et al. Instant 3descatter
Zheng et al. Qualitative and quantitative comparisons of multispectral night vision colorization techniques
CN102831591A (en) Gaussian filter-based real-time defogging method for single image
CN101082992A (en) Drawing of real time high dynamic range image and display process
US20090033753A1 (en) Imaging apparatus, imaging method, storage medium, and integrated circuit
CN1356536A (en) System for testing optical environment by image processing technique
Kawakami et al. Consistent surface color for texturing large objects in outdoor scenes
Myshkin et al. The use of color in wear debris analysis
Kwon Atmospheric visibility measurements using video cameras: Relative visibility
Rizzi et al. Color correction between gray world and white patch
CN103020996A (en) Lab-space-based detection method based on image color cast
Brunner et al. Using color in machine vision systems for wood processing
Quan Evaluation and optimal design of spectral sensitivities for digital color imaging

Legal Events

Date Code Title Description
C06 Publication
C10 Entry into substantive examination