基于自适应K均值聚类和霍夫变换的船舶干舷视觉检测
2021-08-09姜苗苗史国友许拴梅江行张恒
姜苗苗 史国友 许拴梅 江行 张恒



摘要:針对内河船舶监管过程中对船舶干舷的测量还需人工巡航,增加了海事部门管理成本问题,提出一种不借助船舶水尺标志检测船舶干舷的方法。对采集的图像进行中值滤波预处理,去除孤立点、降低噪声敏感性;考虑图像颜色特性,应用自适应K均值聚类算法识别船舶区域;联合Canny边缘检测和霍夫直线检测的方法,标记船舶吃水线和甲板边线,并利用数学形态学方法提高检测准确性;基于标定相机和双目测距原理建立图像坐标与世界坐标转换关系,找到甲板中间位置,取其与水面的距离作为船舶实际干舷值。用相机拍摄内河船舶进行检测,结果表明,该方法可以对内河船舶的吃水线和船舷线进行检测并计算干舷值,用于判断船舶是否超载并及时发出预警,满足海事部门的监管需求。
关键词: 船舶干舷; 自适应K均值聚类; Canny边缘检测; 霍夫变换
中图分类号: U698.3;TP391.4
文献标志码: A
收稿日期: 2020-05-31
修回日期: 2020-09-23
基金项目: 国家自然科学基金(51579025);中央高校基本科研业务费专项资金(3132020134,3132020139)
作者简介:
姜苗苗(1995—),女,山东菏泽人,硕士研究生,研究方向为交通运输工程,(E-mail)jiangmiaomiao2010@qq.com;
史国友(1968—),男,安徽桐城人,教授,博士,研究方向为航海科学技术安全保障、船舶智能避碰,(E-mail)sgydmu@dlmu.edu.cn
Ship freeboard visual detection based on adaptive
K-means clustering and Hough transform
JIANG Miaomiaoa,b, SHI Guoyoua,b, XU Shuanmeia,b,
JIANG Xinga,b, ZHANG Henga,b
(a.Navigation College; b.Key Laboratory of Navigation Safety Guarantee of Liaoning Province,
Dalian Maritime University, Dalian 116026, Liaoning, China)
Abstract:
In view of the problem that the measurement of ship freeboard needs manual cruise in the process of inland river ship supervision, which increases the management cost of maritime departments, a method of detecting ship freeboard without the aid of ship water gauge marks is put forward. The collected image is preprocessed by the median filter to remove isolated points and reduce noise sensitivity; considering the image color characteristic, the adaptive K-means clustering algorithm is adopted to identify the ship area; the Canny edge detection and Hough line detection are combined to mark the waterline and deck edge of the ship, and the mathematical morphology method is used to improve the detection accuracy. The transformation relationship between the image coordinate and the world coordinate is established based on the calibration camera and the principle of binocular ranging to find the middle position of the deck, and the distance between the middle position of the deck and the water surface is taken as the actual freeboard value of the ship. Using the cameras to shoot inland ships for inspection, the results show that this method can detect the waterline and the side line of an inland ship and calculate the
freeboard value, which can be used to judge whether a ship is overloaded and give early warning in time, and meets the supervision needs of maritime departments.
Key words:
ship freeboard; adaptive K-means clustering; Canny edge detection; Hough transform
0 引 言
近年来,我国航运业持续处于低迷状态。为减少运输成本、谋取最大利益,船舶经营人不顾安全追求利润,造成内河船舶运输超载、超吃水现象越来越严重,给水上交通安全及生态环境带来严重威胁。……
