基于图像处理的试管位置实时检测
Real-Time Detection of Tube Position Based on Image Processing
DOI: 10.12677/SEA.2022.113045, PDF,    国家自然科学基金支持
作者: 张文博, 龙泰学, 万 旻, 武和雷*:南昌大学信息工程学院,江西 南昌;李 姗:南昌大学数学与计算机学院,江西 南昌
关键词: 图像处理OpenCV相机标定差分运算试管位置检测Image Processing OpenCV Camera Calibration Difference Calculation Test Tube Position Detection
摘要: 为解决人工识别试管位置效率低、易出错问题,利用图像处理技术,设计一种对于医学冷藏盒上的试管位置自动实时检测识别的方法。通过USB摄像头读取视频流,USB摄像头要进行相机标定去畸变,利用OpenCV读取获得的每一帧图像,并保留第一帧图像。在图像上确定检测的冷藏盒的ROI矩形范围、冷藏盒上每个试管格的四个顶点以及四个顶点的中心点,每帧图像与第一帧图像做差分运算后转换为灰度图,设定阈值并根据这个中心点位置索引获得试管在冷藏盒上准确的相对坐标位置。测试结果表明,该方法可以有效和实时地完成试管位置的检测识别,准确率几乎可达100%,有较大实用价值。
Abstract: In order to solve the problem of low efficiency and error-prone manual identification of test tube positions, a method for automatic real-time detection and identification of test tube positions on medical refrigerator boxes was designed by using image processing technology. The video stream is read through the USB camera. The USB camera needs to be calibrated and de-distorted, and each frame of image obtained is read by OpenCV, and the first frame of image is retained. Determine the ROI rectangular range of the detected refrigerated box, the four vertices of each test tube grid on the refrigerated box and the center point of the four vertices on the image, and convert each frame image and the first frame image into a grayscale image after differential operation. Set the threshold and obtain the exact relative coordinate position of the test tube on the refrigerated box according to this center point position index. The test results show that the method can effectively and real-time complete the detection and recognition of the position of the test tube, and the accuracy rate can reach almost 100%, which has great practical value.
文章引用:张文博, 李姗, 龙泰学, 万旻, 武和雷. 基于图像处理的试管位置实时检测[J]. 软件工程与应用, 2022, 11(3): 425-434. https://doi.org/10.12677/SEA.2022.113045

参考文献

[1] 郭宽. 数字图像处理技术在医学领域的应用[J]. 科技与创新, 2016(13): 106.
[2] 朱晓萌, 姜峰, 庞嘉楠. 数字图像处理技术在中医眼诊方面的应用[J]. 科技创新导报, 2020, 17(16): 148-149+151.
[3] 徐天宇. 基于霍夫变换及卷积神经网络的试管数目识别[J]. 电子技术与软件工程, 2020(2): 135-136.
[4] 陆秦江. 基于图像处理的试管识别系统的设计与实现[D]: [硕士学位论文]. 苏州: 苏州大学, 2017.
[5] 赵真宗. 血标本试管架及试管识别报警系统的临床应用及效果评价[J]. 中国卫生标准管理, 2017, 8(2): 123-125.
[6] 宋美萍. 数字图像处理中的图像分割技术应用研究[J]. 电子技术及软件工程, 2017(1): 75.
[7] Luo, X. and Cai, G. (2021) Computer Image Processing System Based on Feature Extraction Technology. Journal of Physics: Conference Series, 1952, Article ID: 022046. [Google Scholar] [CrossRef
[8] Shelke, S.K., Sinna, S.K. and Singh Patel, G. (2021) Study of End to End Image Processing System Including Image De-noising, Image Conpression & Image Secu-rity. Wireless Personal Communications, 121, 209-220. [Google Scholar] [CrossRef
[9] 叶一帆. 基于计算机视觉算法的图像处理技术研究[J]. 长江信息通信, 2021, 34(10): 73-75.
[10] 李德伟, 裴震宇. 数字图像处理的关键技术及应用[J]. 电子技术及软件工程, 2018(6): 65.
[11] Shi, Z.C., Shang, Y., Zhang, X.F. and Wang, G. (2021) DLT-Lines Based Camera Calibration with Lens Radial and Tangential Distortion. Experimental Mechanics, 61, 1237-1247. [Google Scholar] [CrossRef
[12] Kim, J., Bae, H. and Lee, S.G. (2021) Image Distortion and Rectification Calibration Algorithms and Validation Technique for a Stereo Camera. Electronics, 10, Article No. 339. [Google Scholar] [CrossRef
[13] 张伟, 程鸿, 韦穗. 摄像机标定系统的设计与实现[J]. 计算机工程, 2007(2): 255-256+276.
[14] 喻夏琼, 秦晓东, 高超, 孙韬. 基于矩特征和鲁棒性估计的摄像机标定方法[J]. 测绘工程, 2021, 30(6): 16-20+26.
[15] 赖文敬, 周延周, 朱文卓, 鲍鸿. 一种基于棋盘格模板单目摄像机高精度标定方法[J]. 广东工业大学学报, 2015, 32(3): 79-84.
[16] Sivkov, S., Novikov, L., Romanova, G., Romanova, A., Vaganov, D., Valitov, M., et al. (2020) The Algorithm Development for Operation of a Computer Vision System via the OpenCV Library. Procedia Computer Science, 169, 662-667. [Google Scholar] [CrossRef
[17] Gao, F., Luo, D. and Ma, X. (2020) Research on Facial Expres-sion Recognition of Video Stream Based on OpenCV. International Journal of Biometrics, 13, 114-129. [Google Scholar] [CrossRef
[18] 夏帮贵. OpenCV计算机视觉基础教程[M]. 北京: 中国工信出版集团, 人民邮电出版社, 2021.
[19] Wei, H. and Peng, Q. (2018) A Block-Wise Frame Difference Method for Real-Time Video Motion Detection. International Journal of Advanced Robotic Systems, 15, Article ID: 172988141878363. [Google Scholar] [CrossRef
[20] Cheng, Y.H. and Wang, J. (2014) A Motion Image Detection Method Based on the Inter-Frame Difference Method. Applied Mechanics and Materials, 490-491, 1283-1286. [Google Scholar] [CrossRef
[21] 胡东红, 汪浩, 艾君, 张玲, 张胜兰. 两种图像校正算法在实际应用中的比较[J]. 计算机工程与应用, 2009, 45(13): 191-193+226.
[22] 许宏. 基于图像差分的关键帧检测技术[J]. 计算机工程与设计, 2010, 21(12): 2849-2852.