Power Plant Pipeline Defect Detection and Segmentation Based on Otsu's and Region Growing Algorithms
-
摘要: 针对电厂高温管道红外图像背景复杂、干扰较多的特点,结合电厂巡检机器人系统对图像处理算法的需求,提出了基于改进二维最大类间方差法(OTSU)和区域生长法的电厂高温管道缺陷定位与分割方法。将红外图像灰度化后,通过改进二维OTSU进行预分割,提取出管道区域;基于管道区域灰度直方图,结合邻域灰度均值,实现多种子点的自动检测与定位;采用基于生长区域灰度均值和标准差的自适应阈值以及基于Prewitt算子的梯度幅值改进的生长准则完成缺陷区域的分割。实验证明,所提算法不仅能实现电厂高温管道多缺陷自动检测与定位,而且能精确地提取出缺陷区域,准确性高且具有良好的实时性。Abstract: In this study, we consider the complex background and high interference that adversely affect infrared images of high-temperature pipelines in power plants and the requirements of image processing algorithms for inspection robot systems. We propose a high-temperature pipeline defect detection and extraction method based on an improved two-dimensional Otsu and region growth algorithms. After grayscale conversion, a 2D Otsu method was used to extract the pipeline area. Based on the grayscale histogram of the pipeline region and the average gray value of the neighborhood, automatic detection and positioning of multiple sub-points were realized. The segmentation of the defect area was accomplished using two methods. The adaptive threshold was determined based on the gray mean and standard deviation values of the growth area, while the growth criterion was improved using the gradient amplitude of the Prewitt operator. The experimental results show that the proposed algorithm can not only realize the automatic detection and positioning of various defects in high-temperature pipelines of power plants, but it additionally segments the defect regions more accurately with high accuracy and good real-time performance.
-
0. 引言
有机电致发光器件(Organic Light Emitting Device,OLED)具有发光亮度高、响应时间短、可视范围大和可柔性化等优点,被称为“梦幻般的显示器”,被视为液晶显示后的下一代主流显示器,并初步应用于装饰和室内照明[1-6]。近年来,高性能顶发射器件逐渐成为研究热点,诸多科研工作者投身于实现高性能器件的研究中,目前主要从两个方面入手:一是新材料的研发,如新型有机发光分子材料[7];二是新结构的开发,如超薄结构[8]、量子阱结构[9]和和微腔结构[10]等。在微腔结构方面,主要是通过理论计算改变有机结构层厚度,进而调节器件的微腔长度,获得不同模数的微腔,使器件处于不同微腔加强区,从而提升器件性能。
光学微腔是一种光学微型谐振腔,尺寸在光波长量级。有机微腔电致发光器件最早是日本九州大学在1993年完成的[11]。当前关于有机微腔发光的大部分研究致力于提升器件效率[12-14],而对具有微腔效应顶发射器件的色纯度及稳定性的研究存在不足。因此,本文在现有器件研究的基础上,通过引入二阶微腔结构[15-16],制备了一系列顶发射微型器件,验证二阶微腔长度范围内器件的光电性能,最终获得优化后的稳定绿光顶发射器件,实现标准绿光显示。
1. 实验
本文所制备的顶发射器件,微腔结构为简单的FP(Fabry-Perot)微腔结构[17-19],底部全反射电极采用Ag,顶部光出射端采用半透明的金属阴极Mg/Ag作为半反射镜。器件各膜层通过蒸镀设备依次完成,主要膜层及所用材料见表 1,其中阳极为ITO,空穴注入层(Hole Injection Layer, HIL)为有机材料F16CuPc和NPB,F16CuPc为掺杂料;空穴传输层(Hole Transport Layer, HTL)为有机材料NPB;电子阻挡层(Electron Blocking Layer, EBL)为有机材料TCTA;有机发光层(Emitting Layer, EML)为有机材料mCP和Ir(ppy)3,mCP为绿色发光基质,Ir(ppy)3掺杂料;电子传输层(Electron Transport Layer, ETL)为有机材料Bphen和Liq,Liq为掺杂料;光输出耦合层(Capping Layer, CPL)为有机材料Alq3。器件中涉及的有机材料分子结构如图 1所示。
表 1 器件主要膜层及所用材料Table 1. Layers and materials of deviceLayer Material anode ITO HIL Copper(II)1, 2, 3, 4, 8, 9, 10, 11, 15, 16, 17, 18, 22, 23, 24, 25-hexadecafluoro-29H, 31H-phthalocyanine(F16CuPc)
N, N'-Di-[(1-naphthyl)-N, N'-diphenyl]-1, 1'-biphenyl)-4, 4'-diamine (NPB)HTL N, N'-Di-[(1-naphthyl)-N, N'-diphenyl]-1, 1'-biphenyl)-4, 4'-diamine (NPB) EBL 4, 4', 4''-tris(carbazol-9-yl)-triphenylamine (TCTA) EML 1, 3-bis(9-carbazolyl)benzene(mCP)
Iridium, tris[2-(2-pyridinyl-kN)phenyl-kC](Ir(ppy)3)ETL 4, 7-Diphenyl-1, 10-phenanthroline(Bphen)
8-hydroxyquinoline lithium(Liq)cathode Mg/Ag CPL 8-Hydroxyquinoline aluminum salt(Alq3) 该器件采用云南北方奥雷德光电股份有限公司开发的硅基CMOS基板作为器件衬底,依次蒸镀各层有机材料,蒸发速率保持在0.1 nm/s,真空度保持在2×10-4 Pa。器件的亮度及光谱通过PR-655测量,电流和电压采用搭载Keithley 2400测试仪的测试系统进行测量。
2. 结果讨论
2.1 微腔长度对色纯度影响
一般来说,顶发射器件都存在微腔效应,器件发出的光谱强度I(λ)如式(1)[20]:
$$ I\left( \lambda \right) = \frac{{\left( {1 + {R_{\text{h}}}} \right)\left[ {1 + {R_{\text{f}}} + 2\sqrt {{R_{\text{f}}}} \cos \left( {\frac{{4{\rm{ \mathsf{ π} }}Z}}{\lambda }} \right)} \right]}}{{1 + {R_{\text{f}}}{R_{\text{h}}} - 2\sqrt {{R_{\text{f}}}{R_{\text{h}}}} \cos \left( {\frac{{4{\rm{ \mathsf{ π} }}L}}{\lambda }} \right)}}{I_0}\left( \lambda \right) $$ (1) 式中:Rf为全反射镜的反射率;Rh为半透明反射镜的反射率;I0(λ)为自由空间的光谱强度;L为器件微腔光学长度;Z为全反射镜与有机发光层之间的距离。其中,微腔的光学长度L计算式为:
$$ L = \sum {{n_{\text{m}}}{d_{\text{m}}}} + {n_{{\text{ITO}}}}{d_{{\text{ITO}}}} + \left| {\frac{{{\lambda _q}}}{{4{\rm{ \mathsf{ π} }}}}\sum\limits_i {{\phi _i}\left( \lambda \right)} } \right| = q\frac{{{\lambda _q}}}{2} $$ (2) 式中:nm、dm分别为有机材料的折射率和厚度;nITO、dITO分别为ITO的折射率和厚度;q(1, 2, 3, 4, …)是发射模的模(阶)数;λq是模(阶)数为q的共振发射波长;ϕt(λ)为光在有机界面/金属镜面之间的相移,i为阳极/有机界面或阴极/有机界面。由式(1)、(2)可知,通过调节有机材料膜层厚度,可以改变器件微腔长度,使腔模q的位置产生移动,从而改变微腔器件的出射光波长。为了使器件微腔的谐振波长与发光层电致发光谱的峰值波长相匹配以实现增益,利用公式(2)计算得到一阶腔长对应的有机层总厚度约为100 nm,二阶腔长对应的有机层总厚度约为250 nm。
通过调整空穴传输层和电子阻挡层厚度,实验中制作了5种不同微腔长度的器件A~E,如图 2所示。其结构为:Si Substrate/Ag/ITO/ NPB: F16CuPc(10 nm, 3%)/NPB(x nm)/TCTA(y nm)/ mCP: Ir(ppy)3(40 nm, 6%)/ Bphen: Liq(30 nm, 40%)/ Mg/Ag(12 nm)/Alq3(35 nm),x表示空穴传输层(NPB)的膜层厚度,y表示电子阻挡层(TCTA)的膜层厚度。其中x分别为30、30、60、20、120,y分别为20、15、20、15、40,器件有机层厚度依次为130 nm、125 nm、160 nm、115 nm、240 nm。
图 3为不同腔长器件EL光谱。器件A、B、C、D在524 nm处有一强峰,556 nm、552 nm、560 nm、560 nm处出现一弱峰,器件E为520 nm处唯一单峰。从图中可以看出,器件C→A→B→D→E长波一侧出现明显的窄化趋势,向短波一侧移动,出现蓝移,560 nm处的肩峰逐渐减弱至消失。这一现象是器件微腔效应导致的,根据腔量子电动力学效应,腔内光场的模式密度受到调制,在谐振波长处得到增强,而在其他波长处的受到抑制,光谱得到窄化[21]。微腔效应的强弱常通过半高宽(FWHM, full width at half maximum)来衡量,计算得到器件C→A→B→D→E半高宽从84 nm减小到33 nm,微腔效应逐渐增强。
不同腔长器件的发光性能如表 2所示。在A~E中,D在亮度、电流效率与外量子效率等方面表现较佳,B次之,C表现最差,而E色坐标偏移最小。这主要是因为,D位于一阶加强区,E位于二阶加强区,C远离加强区。可以看出,当器件腔长位于一阶加强区时,器件的光电效率会得到加强;当位于二阶加强区时,器件效率会低于一阶加强区[22-23],但器件色纯度明显高于一阶加强区,说明处于二阶加强区对器件的色纯度有显著的提升作用。
表 2 不同腔长器件的光电特性Table 2. Optoectronic performance of device with different cavity lengthsDevice Luminance/(cd/m2) Current efficiency/(cd/A) Peak wavelength/nm FWHM/nm External quantum efficiency/% CIEx, y Color shift[CIE 1931] A 6330 33.80 524 73 9.19% (0.3713, 0.6019) (0.1613, 0.1081) B 7439 39.73 524 70 10.59% (0.3601, 0.6110) (0.1501, 0.0990) C 2198 11.74 524 84 3.39% (0.3959, 0.5821) (0.1859, 0.1279) D 9123 48.72 524 66 12.75% (0.3436, 0.6243) (0.1336, 0.0857) E 5477 29.25 520 33 7.67% (0.2092, 0.7167) (0.0008, 0.0067) 通过进一步的测试发现,制作得到的器件色坐标都具有很好的稳定性,如图 4所示。A~E色坐标CIEx,CIEy在低电压阶段经过短暂上升,电压达到2.8 V后,色坐标保持平稳。从整个变化情况来看,器件E色坐标出现了明显的突变,CIEx骤降到0.2左右,CIEy骤升到0.71左右,出现该现象的原因是器件A~D分别在556 nm、552 nm、560 nm、560 nm处存在一弱峰,导致色坐标产生偏离,发光时表现出黄绿光,而器件E为唯一单峰,在器件正常启亮后就表现出近乎接近标准绿光(0.21, 0.71)显示,如图 4(c)所示。这一结果也再次表明微腔长度处于二阶加强区,对器件发光色纯度有明显的提升作用。
2.2 空穴传输层和电子阻挡层厚度对腔长影响
前述结果表明,当器件微腔长度位于二阶加强区时,器件的色纯度会得到明显提升。为了验证器件处于二阶加强区时,空穴传输层和电子阻挡层厚度是否对微腔长度改变起同等作用,制作了器件E1。在其他条件保持不变的情况下,空穴传输层厚度为40 nm,电子阻挡层厚度为120 nm。从表 3可以看出,E、E1在亮度、电流效率、外量子效率等性能方面表现相当,差异很小。通过光谱图(图 5)和色坐标(图 6)也可以看出,两者EL光谱基本重合,且CIEx、CIEy未发生较大改变。这一结果表明,空穴传输层与电子传输层厚度在微腔长度改变中作用相同,均能有效调节色纯度。
表 3 不同HTL & EBL厚度器件的光电特性Table 3. Optoectronic performance of device with different HTL & EBL thicknessDevice Luminance/(cd/m2) Current efficiency/(cd/A) Peak wavelength/nm FWHM/nm External quantum efficiency/% CIEx, y Color shift[CIE 1931] E 5477 29.25 520 33 7.67 (0.2092, 0.7167) (0.0008, 0.0067) E1 5261 28.09 520 32 7.58 (0.2079, 0.7173) (0.0021, 0.0073) 3. 结论
研究发现器件结构为Si Substrate/Ag/ITO/ NPB: F16CuPc(10 nm, 3%)/NPB(x nm)/TCTA(y nm)/ mCP: Ir(ppy)3(40 nm, 6%)/Bphen: Liq(30 nm, 40%)/ Mg/ Ag(12 nm)/Alq3(35 nm)的顶发射绿光器件,通过调节器件空穴传输层和电子阻挡层的厚度使器件处于第二阶微腔加强区,可以使光谱明显窄化,器件色纯度得到极大提升,进一步研究发现,空穴传输层与电子阻挡层在微腔长度改变中作用相同,均能有效调节色纯度。器件在腔长为240 nm时,能实现稳定的高色纯度绿光显示,正向出射绿光的色坐标达到了(0.2092,0.7167),接近标准绿光(0.21, 0.71),该结果对二阶腔长绿光器件的应用有较好的参考意义。
-
表 1 缺陷区域像素点个数表
Table 1 Number of pixels in defect area
Algorithm Defect image Defect one Defect two Defect three Defect four Algorithm of this article Scene one 929 - - - Scene two 796 489 - - Scene three 249 129 109 96 Traditional regional growth algorithm Scene one 930 - - - Scene two 827 551 - - Scene three 117 79 59 80 Algorithm of literature [10] Scene one 941 - - - Scene two 776 493 - - Scene three 226 118 106 95 表 2 算法性能对比表
Table 2 Algorithm performance comparison table
Algorithm False detection Seed point selection Time/(s/sheet) Algorithm of this article No Auto 0.331 Traditional regional growth algorithm No Manual ≥3.5 Algorithm of literature [10] Yes Auto 0.254 -
[1] 王丞浩. 基于物联网的电厂智能巡检系统移动端设计与实现[D]. 吉林: 东北电力大学, 2019. WANG Chenghao. Design and Implement of Mobile Terminal Power Plant Intelligent Patrol System Based on IOT[D]. Jilin: Northeast Electric Power University, 2019.
[2] 华志刚, 郭荣, 汪勇. 燃煤智能发电的关键技术[J]. 中国电力, 2018, 51(10): 8-16. https://www.cnki.com.cn/Article/CJFDTOTAL-ZGDL201810004.htm HUA Zhigang, GUO Rong, WANG Yong. Key technologies for intelligent coal-fired power generation[J]. Electric Power, 2018, 51(10): 8-16. https://www.cnki.com.cn/Article/CJFDTOTAL-ZGDL201810004.htm
[3] 张燕东, 田磊, 李茂清, 等. 智能巡检机器人系统在火力发电行业的应用研发及示范[J]. 中国电力, 2017, 50(10): 1-7. https://www.cnki.com.cn/Article/CJFDTOTAL-ZGDL201710001.htm ZHANG Yandong, TIAN Lei, LI Maoqing, et al. Application and development of intelligent inspection robot system in thermal power plant[J]. Electric Power, 2017, 50(10): 1-7. https://www.cnki.com.cn/Article/CJFDTOTAL-ZGDL201710001.htm
[4] 徐蔚波, 刘颖, 章浩伟. 基于区域生长的图像分割研究进展[J]. 北京生物医学工程, 2017, 36(3): 317-322. DOI: 10.3969/j.issn.1002-3208.2017.03.16. XU Weibo, LIU Ying, ZHANG Haowei. Research progress in image segmentation based on region growing[J]. Beijing Biomedical Engineering, 2017, 36(3): 317-322. DOI: 10.3969/j.issn.1002-3208.2017.03.16.
[5] Jain Preetha M M S, Padmasuresh L, Bosco M J. Firefly based region growing and region merging for image segmentation[C]//2016 International Conference on Emerging Technological Trends (ICETT), 2016: 1-9.
[6] 彭双, 肖昌炎. 结合区域生长与模糊连接度的肺气管树分割[J]. 计算机工程与应用, 2016, 52(13): 201-205. DOI: 10.3778/j.issn.1002-8331.1407-0623 PENG Shuang, XIAO Changyan. Segmentation of pulmonary airway tree by combining region growing and fuzzy connectedness[J]. Computer Engineering and Applications, 2016, 52(13): 201-205. DOI: 10.3778/j.issn.1002-8331.1407-0623
[7] Senthilkumar B, Umamaheswari G, Karthik J. A novel region growing segmentation algorithm for the detection of breast cancer[C]//2010IEEE International Conference on Computational Intelligence and Computing Research, 2010: 1-4.
[8] SONG L, LV Y, YANG B, et al. Segmentation of breast masses using adaptive region growing[C]//Ulaanbaatar, Ifost, 2013: 77-81.
[9] 倪豪, 郑慧峰, 王月兵, 等. 基于自动种子区域生长的超声B图像缺陷分割方法[J]. 计量学报, 2018, 39(6): 878-883. DOI: 10.3969/j.issn.1000-1158.2018.06.24 NI Hao, ZHEN Huifeng, WANG Yuebing, et al. Ultrasonic B image defect segmentation Method Based on automatic seeded region growing[J]. Acta Metrologica Sinica, 2018, 39(6): 878-883. DOI: 10.3969/j.issn.1000-1158.2018.06.24
[10] 李小磊, 曾曙光, 郑胜, 等. 基于滑动滤波和自动区域生长的陶瓷瓦表面裂纹检测[J]. 激光与光电子学进展, 2019, 56(21): 49-55. https://www.cnki.com.cn/Article/CJFDTOTAL-JGDJ201921006.htm LI Xiaolei, ZENG Shuguang, ZHENG Sheng, et al. Surface crack detection of ceramic tile based on sliding filter and automatic region growth[J]. Laser & Optoelectronics Progress, 2019, 56(21): 49-55. https://www.cnki.com.cn/Article/CJFDTOTAL-JGDJ201921006.htm
[11] 施兢业, 刘俊. 基于改进区域生长法的电力设备红外图像分割[J]. 光学技术, 2017, 43(4): 381-384. https://www.cnki.com.cn/Article/CJFDTOTAL-GXJS201704019.htm SHI Jingye, LIU Jun. Metation based on modified region growing algorithm[J]. Optical Technique, 2017, 43(4): 381-384. https://www.cnki.com.cn/Article/CJFDTOTAL-GXJS201704019.htm
[12] 胡淋波, 姚建刚, 孔维辉, 等. 基于红外图像的高压绝缘子串自动定位方法[J]. 红外技术, 2015, 37(12): 1047-1051. http://hwjs.nvir.cn/article/id/hwjs201512011 HU Linbo, YAO Jiangang, KONG Weihui, et al. High voltage insulator string automatic location method based on infrared image[J]. Infrared Technology, 2015, 37(12): 1047-1051. http://hwjs.nvir.cn/article/id/hwjs201512011
[13] 宋银龙. 基于二维Otsu和模糊聚类的图像分割的研究及应用[D]. 合肥: 合肥工业大学, 2012. SONG Yinlong. Research and application of image segmentation based on two-dimensional otsu and fuzzy clustering[D]. Hefei: Hefei University of Technology, 2012.
[14] 倪伟传, 许志明, 刘少江, 等. 复杂环境下的自适应红外目标分割算法[J]. 红外技术, 2019, 41(4): 357-363. http://hwjs.nvir.cn/article/id/hwjs201904010 NI Weichuan, XU Zhiming, LIU Shaojiang, et al. Adaptive Infrared Target Segmentation Algorithm in Complex Environment[J]. Infrared Technology, 2019, 41(4): 357-363. http://hwjs.nvir.cn/article/id/hwjs201904010
[15] SHAO L, ZHANG Y, LI J, et al. Research on High Temperature Region of Infrared Pipeline Image Based on Improved Two-Dimensional-Otsu[J]. Spectroscopy and Spectral Analysis, 2019, 39(5): 1637-1642.
[16] 彭启伟, 罗旺, 冯敏, 等. 改进二维Otsu法和果蝇算法结合的图像分割方法[J]. 计算机应用, 2017, 37(S2): 193-197. https://www.cnki.com.cn/Article/CJFDTOTAL-JSJY2017S2047.htm PENG Qiwei, LUO Wang, FENG Min, et al. Novel method for image segmentation based on improved two-dimensional Otsu and fruit fly algorithm[J]. Journal of Computer Applications, 2017, 37(S2): 193-197. https://www.cnki.com.cn/Article/CJFDTOTAL-JSJY2017S2047.htm
[17] 周云燕, 杨坤涛, 黄鹰. 基于最小类内离散度的改进Otsu分割方法的研究[J]. 华中科技大学学报: 自然科学版, 2007, 35(2): 101-103. https://www.cnki.com.cn/Article/CJFDTOTAL-HZLG200702030.htm ZHOU Yunyan, YANG Kuntao, HUANG Ying. Improved Otsu thresholding based on minimum inner-cluster variance[J]. Journal of Huazhong University of Science and Technology: Natural Science Edition, 2007, 35(2): 101-103. https://www.cnki.com.cn/Article/CJFDTOTAL-HZLG200702030.htm
[18] HUANG C, LIU Q, LI X. Color image segmentation by seeded region growing and region merging[C]//2010 Seventh International Conference on Fuzzy Systems and Knowledge Discovery, 2010: 533-536.
[19] YANG L, WU X, ZHAO D, et al. An improved Prewitt algorithm for edge detection based on noised image[C]//20114th International Congress on Image and Signal Processing, 2011: 1197-1200.
-
期刊类型引用(4)
1. 吕伽奇,丁帅,庞静珠,许小进. 基于改进LeNet-5网络的堆芯燃料组件编码识别. 东华大学学报(自然科学版). 2024(02): 121-128 . 百度学术
2. 毛羽,郑怀华,李隆,张傲. 基于热红外图像的光伏板热斑检测方法研究. 自动化仪表. 2024(05): 25-29+34 . 百度学术
3. 王晓君,孙梓林,王雁. 基于AMP架构的青霉素结晶与发酵检测系统设计. 仪表技术与传感器. 2024(05): 66-73 . 百度学术
4. 赵兴文. 机器学习在信用贷款评分中的应用. 福建电脑. 2023(02): 31-34 . 百度学术
其他类型引用(15)