CN110334703A - A Ship Detection and Recognition Method in Day and Night Images - Google Patents
A Ship Detection and Recognition Method in Day and Night Images Download PDFInfo
- Publication number
- CN110334703A CN110334703A CN201910514333.9A CN201910514333A CN110334703A CN 110334703 A CN110334703 A CN 110334703A CN 201910514333 A CN201910514333 A CN 201910514333A CN 110334703 A CN110334703 A CN 110334703A
- Authority
- CN
- China
- Prior art keywords
- ship
- image
- images
- network
- target
- Prior art date
- Legal status (The legal status 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 status listed.)
- Granted
Links
Classifications
-
- G—PHYSICS
- G06—COMPUTING OR CALCULATING; COUNTING
- G06N—COMPUTING ARRANGEMENTS BASED ON SPECIFIC COMPUTATIONAL MODELS
- G06N3/00—Computing arrangements based on biological models
- G06N3/02—Neural networks
- G06N3/04—Architecture, e.g. interconnection topology
- G06N3/045—Combinations of networks
-
- G—PHYSICS
- G06—COMPUTING OR CALCULATING; COUNTING
- G06V—IMAGE OR VIDEO RECOGNITION OR UNDERSTANDING
- G06V10/00—Arrangements for image or video recognition or understanding
- G06V10/20—Image preprocessing
- G06V10/25—Determination of region of interest [ROI] or a volume of interest [VOI]
Landscapes
- Engineering & Computer Science (AREA)
- Physics & Mathematics (AREA)
- Theoretical Computer Science (AREA)
- General Physics & Mathematics (AREA)
- General Health & Medical Sciences (AREA)
- Molecular Biology (AREA)
- Biophysics (AREA)
- Computational Linguistics (AREA)
- Data Mining & Analysis (AREA)
- Evolutionary Computation (AREA)
- Artificial Intelligence (AREA)
- Biomedical Technology (AREA)
- Computing Systems (AREA)
- General Engineering & Computer Science (AREA)
- Life Sciences & Earth Sciences (AREA)
- Mathematical Physics (AREA)
- Software Systems (AREA)
- Health & Medical Sciences (AREA)
- Multimedia (AREA)
- Image Analysis (AREA)
Abstract
本发明提出了一种昼夜图像中的船舶检测和识别方法,包括如下步骤:S1、利用光感元件探测不同时段船舶图像的照度,根据船舶图像的不同照度范围将其分成白天图像和夜间图像两类;S2、针对白天图像,首先对所有出现在探测范围内的物体进行检测,然后从中筛选出船舶类物体;S3、针对夜间图像,首先检测夜间图像中的显著目标,从中筛选出船舶类物体;S4、基于筛选出的船舶类物体,获取当前视频帧中的所有船舶的实时位置和所属类别信息。本发明的方法实现了船舶目标在全时段场景下的检测与识别,具有较好的鲁棒性。
The present invention proposes a ship detection and recognition method in day and night images, including the following steps: S1, using light sensing elements to detect the illuminance of ship images in different periods, and dividing them into daytime images and nighttime images according to different illuminance ranges of ship images S2. For daytime images, first detect all objects that appear within the detection range, and then filter out ship-like objects; S3. For night-time images, first detect prominent targets in night-time images, and then filter out ship-like objects ; S4. Obtain the real-time position and category information of all ships in the current video frame based on the filtered ship objects. The method of the invention realizes the detection and recognition of the ship target in the scene of the whole time, and has better robustness.
Description
技术领域technical field
本发明涉及计算机视觉和数字图像处理领域,具体涉及一种基于统计学习和区域协方差的昼夜图像中的船舶检测和识别方法。The invention relates to the fields of computer vision and digital image processing, in particular to a ship detection and recognition method in day and night images based on statistical learning and regional covariance.
背景技术Background technique
目标检测即找出图像中所有感兴趣的物体,包含物体定位和物体分类两个子任务,即同时确定物体的类别和位置。目标检测是计算机视觉和图像处理的一个热门方向,广泛用于机器人导航、智能视频监控、工业检测等诸多领域,通过计算机视觉减少人力资本的消耗,具有很重要的现实意义。因此,目标检测也就成为了近年来理论和应用的研究热点,它是图像处理和计算机视觉学科的重要分支,也是智能监控系统的核心部分。同时目标检测也是泛身份识别领域的一个基础性的算法,对后续的人脸识别、步态识别、人群计数、实例分割等任务起着至关重要的作用。Target detection is to find all the objects of interest in the image, including two sub-tasks of object positioning and object classification, that is, to determine the category and position of the object at the same time. Object detection is a popular direction in computer vision and image processing, and it is widely used in many fields such as robot navigation, intelligent video surveillance, and industrial inspection. It is of great practical significance to reduce the consumption of human capital through computer vision. Therefore, target detection has become a research hotspot in theory and application in recent years. It is an important branch of image processing and computer vision, and it is also the core part of intelligent monitoring system. At the same time, target detection is also a basic algorithm in the field of pan-identification, which plays a vital role in subsequent tasks such as face recognition, gait recognition, crowd counting, and instance segmentation.
由于深度学习的广泛运用,目标检测算法得到了较为快速的发展。从2006年以来,在Hinton、Bengio、Lecun等人的引领下,大量深度神经网络的论文被发表,尤其是2012年,Hinton课题组首次参加ImageNet图像识别比赛,其通过构建的CNN网络AlexNet一举夺得冠军,从此神经网络开始受到广泛的关注。深度学习利用多层计算模型来学习抽象的数据表示,能够发现大数据中的复杂结构,目前,这项技术已成功地应用在包括计算机视觉领域在内的多种模式分类问题上。Due to the widespread use of deep learning, target detection algorithms have developed relatively rapidly. Since 2006, under the leadership of Hinton, Bengio, Lecun, etc., a large number of papers on deep neural networks have been published. Especially in 2012, Hinton's research group participated in the ImageNet image recognition competition for the first time, and won the prize in one fell swoop through the constructed CNN network AlexNet. won the championship, and since then the neural network has received widespread attention. Deep learning uses multi-layer computing models to learn abstract data representation, and can discover complex structures in big data. At present, this technology has been successfully applied to various pattern classification problems including computer vision.
计算机视觉对于目标运动的分析可以大致分为三个层次:运动分割、目标检测;目标跟踪;动作识别、行为描述。其中,目标检测既是计算机视觉领域要解决的基础任务之一,同时它也是视频监控技术的基本任务。由于视频中的目标具有不同姿态且经常出现遮挡、其运动具有不规则性,同时考虑到监控视频的景深、分辨率、天气、光照等条件和场景的多样性,而且目标检测算法的结果将直接影响后续的跟踪、动作识别和行为描述的效果。故即使在技术发展的今天,目标检测这一基本任务仍然是非常具有挑战性的课题,存在很大的提升潜力和空间。The analysis of computer vision for target motion can be roughly divided into three levels: motion segmentation, target detection; target tracking; action recognition, behavior description. Among them, target detection is not only one of the basic tasks to be solved in the field of computer vision, but also a basic task of video surveillance technology. Since the targets in the video have different postures and often occlude, and their motion is irregular, at the same time, considering the depth of field, resolution, weather, illumination and other conditions of the surveillance video and the diversity of the scene, the results of the target detection algorithm will be directly Affect the effect of subsequent tracking, action recognition and behavior description. Therefore, even with the development of technology today, the basic task of object detection is still a very challenging topic, and there is great potential and room for improvement.
目前基于深度学习的目标检测与识别的方法,运用在船舶的检测和识别中,白天场景表现良好,但对于夜间场景,由于夜间图像的光照、对比度和信噪比都相差较大,使得夜间船舶的检测与识别的性能急剧下降。为了从全时段的视频监控中智能检测船舶的位置,并自动识别目标船舶的种类,关键点在于提取船舶的图像特征。然而在实际应用中,昼夜不同时段图像的信噪比和对比度等特性差异较大,给船舶的图像特征提取提出了极大的挑战。At present, the target detection and recognition method based on deep learning is used in the detection and recognition of ships. The daytime scene performs well, but for the night scene, due to the large difference in the illumination, contrast and signal-to-noise ratio of the night image, the night ship The performance of detection and recognition drops sharply. In order to intelligently detect the position of the ship from the full-time video surveillance and automatically identify the type of the target ship, the key point is to extract the image features of the ship. However, in practical applications, the signal-to-noise ratio and contrast of images at different times of the day and night are quite different, which poses a great challenge to the image feature extraction of ships.
目前主流基于深度学习模型的目标检测算法主可以分成两大类:One-Stage和Two-Stage。通常,One-Stage检测算法,其不需要Region Proposal阶段,直接产生物体的类别概率和位置坐标值,速度相对较快;Two-Stage目标检测算法,其将检测问题划分为两个阶段,首先产生候选区域(region proposals),然后对候选区域进行分类和位置精修,这类算法相对于上一种在精度上有很大提升,但是速度相对慢一些。The current mainstream target detection algorithms based on deep learning models can be divided into two categories: One-Stage and Two-Stage. Usually, the One-Stage detection algorithm, which does not require the Region Proposal stage, directly generates the category probability and position coordinate value of the object, and the speed is relatively fast; the Two-Stage target detection algorithm divides the detection problem into two stages, first generating Candidate regions (region proposals), and then classify and refine the location of the candidate regions. Compared with the previous one, this type of algorithm has greatly improved the accuracy, but the speed is relatively slow.
发明内容Contents of the invention
为了实现全时段的水面目标船舶的检测与识别,本发明提出一种昼夜图像中的船舶检测和识别方法,其包括以下步骤:In order to realize the detection and recognition of the water surface target ship at all times, the present invention proposes a ship detection and recognition method in day and night images, which includes the following steps:
S1、利用光感元件探测不同时段船舶图像的照度,根据船舶图像的不同照度范围将其分成白天图像和夜间图像两类;S1. Use the photosensitive element to detect the illuminance of ship images in different periods, and divide them into daytime images and nighttime images according to the different illuminance ranges of ship images;
S2、针对白天图像,首先对所有出现在探测范围内的物体进行检测,然后从中筛选出船舶类物体;S2. For daytime images, firstly detect all objects appearing in the detection range, and then filter out ship-like objects;
S3、针对夜间图像,首先检测夜间图像中的显著目标,从中筛选出船舶类物体;S3. For the nighttime image, firstly detect the significant target in the nighttime image, and filter out the ship-like object therefrom;
S4、基于筛选出的船舶类物体,获取当前视频帧中的所有船舶的实时位置和所属类别信息。S4. Obtain real-time positions and category information of all ships in the current video frame based on the filtered ship objects.
进一步的,步骤S1具体包括:Further, step S1 specifically includes:
S11、采集大量不同时段场景图片,统计分析出各时段的图像照度范围,形成照度范围参考对照表;S11. Collect a large number of scene pictures in different time periods, statistically analyze the image illuminance ranges in each time period, and form a reference comparison table for illuminance ranges;
S12、通过光感元件探测摄像头传来的船舶图像的照度,对比所述照度范围参考对照表判断船舶图像的类别是白天图像还是夜间图像。S12. Detect the illuminance of the ship image from the camera through the photosensitive element, compare the illuminance range and refer to the comparison table to determine whether the type of the ship image is a daytime image or a nighttime image.
进一步的,步骤S2中,使用基于深度卷积神经网络的目标检测算法Faster R-CNN处理白天图像,其网络结构包括RPN和Fast R-CNN两个部分,其中RPN用于预测输入图像中可能包含目标的候选区域,输出可能包含船舶目标的建议框;Fast R-CNN用于分类所述候选区域,并修正候选区域的边界框。Further, in step S2, use the deep convolutional neural network-based target detection algorithm Faster R-CNN to process the daytime image, and its network structure includes two parts: RPN and Fast R-CNN, where RPN is used to predict that the input image may contain The candidate area of the target, output the proposal box that may contain the ship target; Fast R-CNN is used to classify the candidate area, and correct the bounding box of the candidate area.
进一步的,所述的基于深度卷积神经网络的目标检测算法Faster R-CNN的训练步骤如下:Further, the training steps of the target detection algorithm Faster R-CNN based on the deep convolutional neural network are as follows:
1)用预训练网络模型初始化RPN网络参数,通过随机梯度下降算法和反向传播算法微调RPN网络参数;1) Initialize the RPN network parameters with the pre-trained network model, and fine-tune the RPN network parameters through the stochastic gradient descent algorithm and the back propagation algorithm;
2)用预训练网络模型初始化Faster R-CNN目标检测网络参数,并用第一步中的RPN网络提取候选区域,训练目标检测网络;2) Initialize the Faster R-CNN target detection network parameters with the pre-trained network model, and use the RPN network in the first step to extract candidate regions and train the target detection network;
3)用第二步中的目标检测网络重新初始化并微调RPN网络参数;3) Re-initialize and fine-tune the RPN network parameters with the target detection network in the second step;
4)用第三步中的RPN网络提取候选区域并对目标检测网络参数进行微调;4) Use the RPN network in the third step to extract candidate regions and fine-tune the target detection network parameters;
5)重复第三步和第四步,直到达到最大迭代次数或网络收敛。5) Repeat steps 3 and 4 until the maximum number of iterations is reached or the network converges.
进一步的,步骤S2具体包括:Further, step S2 specifically includes:
S21、计算待检测白天图像的卷积特征图;S21. Calculate the convolution feature map of the daytime image to be detected;
S22、采用RPN对所述卷积特征图进行处理,得到目标建议框;S22. Using RPN to process the convolutional feature map to obtain a target suggestion frame;
S23、利用RoI Pooling对每个建议框提取特征;S23. Using RoI Pooling to extract features for each suggestion frame;
S24、利用提取的特征进行分类。S24. Classify by using the extracted features.
进一步的,步骤S3中,使用基于区域协方差引导的卷积神经网络算法处理夜间图像。Further, in step S3, the nighttime image is processed using a convolutional neural network algorithm guided by region covariance.
进一步的,步骤S3具体包括:Further, step S3 specifically includes:
S31、以像素为单元提取夜间图像的低级特征;S31. Extracting low-level features of nighttime images in units of pixels;
S32、以多维特征向量为基础构造区域协方差;S32. Constructing regional covariance based on multidimensional feature vectors;
S33、以协方差矩阵为训练样本构造卷积神经网络模型;S33. Using the covariance matrix as a training sample to construct a convolutional neural network model;
S34、基于局部和全局对比度原则计算图像显著性;S34. Calculate image saliency based on local and global contrast principles;
S35、框出显著的船舶目标,获取船舶位置。S35 , frame a prominent ship target, and acquire the position of the ship.
进一步的,本发明的船舶检测和识别方法还包括:Further, the ship detection and identification method of the present invention also includes:
S5、使用AUC和MAE评价指标评判图像检测结果;AUC和MAE计算公式分别如下:S5. Use the AUC and MAE evaluation indicators to judge the image detection results; the calculation formulas of AUC and MAE are as follows:
其中rankinsi代表第i条样本的序号,其表示概率得分从小到大排,排在第rank个位置,M、N分别是正样本的个数和负样本的个数,表示只把正样本的序号加起来;Among them, rank insi represents the serial number of the i-th sample, which indicates that the probability score is ranked from small to large, and ranks at the rank position. M and N are the number of positive samples and the number of negative samples, respectively. Indicates that only the serial numbers of the positive samples are added;
其中表示显著图谱,表示基准图谱,W和H分别表示图像的像素值宽和高。in represents a significant map, Represents the benchmark map, W and H represent the pixel value width and height of the image, respectively.
本发明的有益效果如下:The beneficial effects of the present invention are as follows:
本发明的船舶检测和识别方法,通过基于船舶图像的不同照度对图像进行分类,并对分类后的白天图像和夜间图像分别使用不同的处理策略,使得本发明的方法即使在图像质量较差的夜间图像上也能检测出大部分船舶,另外即使船舶发生尺度变化也能够被检测,从而实现了船舶目标在全时段场景下的检测与识别,具有较好的鲁棒性。The ship detection and recognition method of the present invention classifies the images based on different illuminances of the ship images, and uses different processing strategies for the classified daytime images and nighttime images, so that the method of the present invention can be used even when the image quality is poor Most of the ships can also be detected on nighttime images, and even if the scale of the ship changes, it can be detected, thus realizing the detection and recognition of ship targets in the full-time scene, which has good robustness.
附图说明Description of drawings
图1为本发明的船舶检测和识别方法实施例的基本流程图。Fig. 1 is a basic flowchart of an embodiment of the ship detection and identification method of the present invention.
图2为本发明实施例中昼夜船舶图像的例子。Fig. 2 is an example of day and night ship images in the embodiment of the present invention.
图3为本发明实施例中所使用的Faster R-CNN目标检测算法流程图。FIG. 3 is a flow chart of the Faster R-CNN target detection algorithm used in the embodiment of the present invention.
图4为本发明的船舶检测和识别方法实施例在校园内湖泊使用船模模拟实船运动测试得到的实现效果图,其中:a为远处船舶图像,b为近处船舶图像,c为多障碍物船舶图像,d为船舶尺度变换图像。Fig. 4 is an implementation effect diagram obtained by using a ship model to simulate the movement test of a real ship in an embodiment of the ship detection and recognition method of the present invention, wherein: a is an image of a distant ship, b is an image of a nearby ship, and c is an image of multiple ships Obstacle ship image, d is the ship scale transformation image.
图5为本发明实施例中所使用的基于区域协方差引导的卷积神经网络框图。Fig. 5 is a block diagram of a convolutional neural network guided by region covariance used in an embodiment of the present invention.
图6为本发明的船舶检测和识别方法在夜间时段在校园内湖泊使用船模模拟实船运动测试得到的实现效果图。Fig. 6 is an effect diagram of the ship detection and recognition method of the present invention obtained by using a ship model to simulate the movement of a real ship in a lake on campus at night.
具体实施方式Detailed ways
为了进一步理解本发明,下面结合实施例对本发明优选实施方案进行描述,但是应当理解,这些描述只是为进一步说明本发明的特征和优点,而不是对本发明权利要求的限制。In order to further understand the present invention, the preferred embodiments of the present invention are described below in conjunction with examples, but it should be understood that these descriptions are only to further illustrate the features and advantages of the present invention, rather than limiting the claims of the present invention.
本发明实施例提供了一种基于统计学习和区域协方差的昼夜图像中的船舶检测和识别方法。如图1所示,其流程包括:An embodiment of the present invention provides a ship detection and recognition method in day and night images based on statistical learning and regional covariance. As shown in Figure 1, its process includes:
1.首先对通过光电云台获取的视频帧图像,利用光感元件探测,实现昼夜图像分类;1. Firstly, the video frame image obtained through the photoelectric head is detected by the photosensitive element to realize the classification of day and night images;
2.针对白天和夜间图像,分别利用Faster RCNN和区域引导协方差引导CNN检测出船舶大小和位置,具体流程分别如图3和图5所示;2. For daytime and nighttime images, use Faster RCNN and region-guided covariance to guide CNN to detect the size and position of the ship. The specific processes are shown in Figure 3 and Figure 5 respectively;
3.将检测出的船舶进行筛选,确定船舶的种类及位置。3. Screen the detected ships to determine the type and location of the ships.
步骤1中,昼夜船舶图像的例子如图2所示,其中第一张为白天图像,第二张为夜间图像。利用光感元件实现昼夜图像分类的具体过程为:首先采集大量不同时段场景图片,统计分析出各时段的图像照度范围,详细参数见表1,左边是白天场景照度范围,右边是夜间场景的照度范围。通过光感元件探测法,即普通的光感元件探测摄像头传来的图像的照度,对比下表范围参考值判断图像的类别,即是白天图像还是夜间图像。In step 1, examples of day and night ship images are shown in Figure 2, where the first one is a daytime image and the second one is a nighttime image. The specific process of using light-sensing elements to realize day-night image classification is as follows: First, collect a large number of scene pictures in different time periods, and statistically analyze the image illuminance range of each time period. The detailed parameters are shown in Table 1. The left side is the daytime scene illuminance range, and the right side is the nighttime scene illuminance range. scope. Through the light-sensing element detection method, that is, the ordinary light-sensing element detects the illuminance of the image sent by the camera, and compares the range of reference values in the table below to determine the category of the image, that is, a daytime image or a nighttime image.
表1.各种自然时段下照度范围参考值Table 1. Reference values of illuminance ranges in various natural periods
步骤2中,Faster R-CNN(Region-based Convolutional Neural Networks,更快的基于区域的卷积神经网络)目标检测算法处理船舶检测的主要步骤为:In step 2, the main steps of the Faster R-CNN (Region-based Convolutional Neural Networks, faster region-based convolutional neural network) target detection algorithm for ship detection are:
1)计算船舶图像的卷积特征图;1) Calculate the convolution feature map of the ship image;
2)采用RPN(Region Proposal Network,区域建议网络)对卷积特征图处理,得到目标建议框;2) Use RPN (Region Proposal Network, Region Proposal Network) to process the convolutional feature map to obtain the target proposal frame;
3)利用RoI Pooling(Region of interest pooling,感兴趣区域池化)对每个建议框提取特征;3) Use RoI Pooling (Region of interest pooling, region of interest pooling) to extract features for each suggestion frame;
4)利用提取特征进行分类。4) Use the extracted features to classify.
针对白天场景的船舶目标检测与识别,本实施例中选用的数据集为鹦鹉洲大桥实拍的长江中的船舶图片数据集和船模数据集,实现前将采集的数据集中的一部分船舶图像作为训练数据集,另一部分作为测试集。其中船舶被分为五类,分别为客船、货船、灯标船、军舰和帆船。本实施例中选用的预训练模型为ResNet50。RPN在训练阶段进行端到端训练。Faster R-CNN网络中初始学习率为0.0003,迭代20000次,具体训练步骤如下:For the ship target detection and recognition in the daytime scene, the data set selected in this embodiment is the ship picture data set and ship model data set in the Yangtze River actually taken by the Yingwuzhou Bridge. The training data set and the other part as the test set. Among them, ships are divided into five categories, namely passenger ships, cargo ships, light ships, warships and sailing ships. The pre-training model selected in this embodiment is ResNet50. RPN is trained end-to-end during the training phase. The initial learning rate in the Faster R-CNN network is 0.0003, and iterates 20,000 times. The specific training steps are as follows:
1)用预训练网络模型初始化RPN网络参数,通过随机梯度下降算法和反向传播算法微调RPN网络参数;1) Initialize the RPN network parameters with the pre-trained network model, and fine-tune the RPN network parameters through the stochastic gradient descent algorithm and the back propagation algorithm;
2)用预训练网络模型初始化Faster R-CNN目标检测网络参数,并用第一步中的RPN网络提取候选区域,训练目标检测网络;2) Initialize the Faster R-CNN target detection network parameters with the pre-trained network model, and use the RPN network in the first step to extract candidate regions and train the target detection network;
3)用第二步中目标检测网络重新初始化并微调RPN网络参数;3) Re-initialize and fine-tune the RPN network parameters with the target detection network in the second step;
4)用第三步中RPN网络提取候选区域并对目标检测网络参数进行微调;4) Use the RPN network in the third step to extract candidate regions and fine-tune the target detection network parameters;
5)重复第三步和第四步,直到达到最大迭代次数或网络收敛。5) Repeat steps 3 and 4 until the maximum number of iterations is reached or the network converges.
在测试集上验证模型性能,统计得到的漏报率和误报率指标,如表2所示。The performance of the model is verified on the test set, and the statistics of the false negative rate and false negative rate indicators are obtained, as shown in Table 2.
表2 Faster R-CNN模型漏报误报率Table 2 Faster R-CNN model false negative rate
图4所示的实验效果图中,针对左下多船回归图即图4(c),做如下说明:图片分辨率大小为233×151,其中白色泡沫为水面障碍干扰物,算法运行结果参数值如下表3。其他三幅图片均与图4(c)类似。In the experimental effect diagram shown in Fig. 4, for the multi-ship regression diagram on the lower left, Fig. 4(c), the following explanations are made: the resolution of the image is 233×151, and the white foam is the obstacle on the water surface, and the parameter values of the algorithm operation results Table 3 below. The other three pictures are similar to those in Figure 4(c).
表3船舶位置种类信息表Table 3 Ship position type information table
步骤2中,针对夜间视频帧图像,为了解决其视觉信息单一导致训练样本不均衡的问题,本发明实施例提出了一种基于区域协方差引导的卷积神经网络算法,用于检测夜间图像中的显著目标。由于显著性目标检测是模拟人眼视觉注意力机制所提出的一种以人眼最感兴趣区域为检测对象的研究,在背景较为单一的船舶水面航行场景,船舶物体即为显著目标,检测后返回显著船舶目标的边界框即可获取船舶位置。如图5所示,基于区域协方差引导的卷积神经网络算法的主要步骤为:In step 2, for nighttime video frame images, in order to solve the problem of unbalanced training samples caused by single visual information, the embodiment of the present invention proposes a convolutional neural network algorithm based on region covariance guidance, which is used to detect notable target. Since the salient target detection is a research proposed by simulating the human visual attention mechanism, the area of most interest to the human eye is used as the detection object. In the scene of a ship sailing on the water with a relatively simple background, the ship object is a salient target. The ship position is obtained by returning the bounding box of the salient ship object. As shown in Figure 5, the main steps of the convolutional neural network algorithm based on region covariance guidance are:
1)以像素为单元提取图像的低级特征;1) Extract the low-level features of the image in units of pixels;
2)以多维特征向量为基础构造区域协方差;2) Construct the regional covariance based on the multidimensional feature vector;
3)以协方差矩阵为训练样本构造卷积神经网络模型;3) Construct a convolutional neural network model with the covariance matrix as a training sample;
4)基于局部和全局对比度原则计算图像显著性;4) Calculate image saliency based on local and global contrast principles;
5)框出显著的船舶目标,获取船舶位置。5) Frame a significant ship target to obtain the ship's position.
夜间场景的模型训练与白天场景不同,但其训练和测试步骤可参考步骤2中Faster R-CNN目标检测算法的训练方案以及图3中的训练测试步骤。本模块使用的数据集为与白天场景地点相同的夜间时段图像。由于夜间场景的特殊性和本模块使用的算法特性,故而本模块选择的评价标准为本领域主流的AUC和MAE评价指标,每幅图像运行时间单位为:秒。具体的指标值见表4。The model training of the nighttime scene is different from that of the daytime scene, but its training and testing steps can refer to the training scheme of the Faster R-CNN target detection algorithm in step 2 and the training and testing steps in Figure 3. The data set used in this module is the same night time period imagery as the daytime scene location. Due to the particularity of the night scene and the characteristics of the algorithm used in this module, the evaluation criteria selected by this module are the mainstream AUC and MAE evaluation indicators in this field, and the running time unit for each image is: seconds. The specific index values are shown in Table 4.
AUC和MAE计算公式分别如下:The calculation formulas of AUC and MAE are as follows:
其中rankinsi代表第i条样本的序号(概率得分从小到大排,排在第rank个位置),M、N分别是正样本的个数和负样本的个数,表示只把正样本的序号加起来。Among them, rank insi represents the serial number of the i-th sample (the probability score is ranked from small to large, ranking in the rank position), M and N are the number of positive samples and the number of negative samples, respectively, Indicates that only the serial numbers of the positive samples are added up.
其中表示显著图谱,表示基准图谱,W和H分别表示图像的像素值宽和高。in represents a significant map, Represents the benchmark map, W and H represent the pixel value width and height of the image, respectively.
表4夜间船舶检测算法评价指标Table 4 Evaluation index of ship detection algorithm at night
由表4可知,在夜间时段,由于船舶图像信息的缺失,显著性处理船舶图像时无法达到实时的效果,但能较好实现船舶目标检测功能。MAE是平均绝对误差,值越小代表算法性能越好。AUC是一个概率值,可以直观的评价分类器的好坏,数值越大越好。It can be seen from Table 4 that during the night time period, due to the lack of ship image information, the real-time effect cannot be achieved when the ship image is saliently processed, but the ship target detection function can be better realized. MAE is the mean absolute error, and the smaller the value, the better the performance of the algorithm. AUC is a probability value, which can intuitively evaluate the quality of the classifier, and the larger the value, the better.
夜间时段在校园内湖泊使用船模模拟实船运动测试得到的实现效果如图6所示,针对右下多船回归图做如下说明:图片分辨率大小为233×155,船舶信息经算法运行结果输出参数值如表5所示。其他三幅图片均与之类似。The realization effect obtained by using the ship model to simulate the real ship motion test in the lake on campus at night time is shown in Figure 6, and the multi-ship regression graph on the lower right is explained as follows: the resolution of the picture is 233×155, and the ship information is the result of the algorithm operation The output parameter values are shown in Table 5. The other three pictures are similar.
表5船舶位置种类信息表Table 5 Ship position type information table
从检测结果可以看出:本发明实施例的船舶检测模型即使在图像质量较差的夜间图像上也能检测出大部分船舶,即使船舶发生尺度变化也能够被检测。综上所述,本发明实现了船舶目标在全时段场景下的检测与识别,具有较好的鲁棒性。It can be seen from the detection results that the ship detection model of the embodiment of the present invention can detect most ships even on nighttime images with poor image quality, and can be detected even if the scale of the ship changes. To sum up, the present invention realizes the detection and recognition of ship targets in a full-time scene, and has better robustness.
以上实施例的说明只是用于帮助理解本发明的方法及其核心思想。应当指出,对于本技术领域的普通技术人员来说,在不脱离本发明原理的前提下,还可以对本发明进行若干改进和修饰,这些改进和修饰也落入本发明权利要求的保护范围内。The descriptions of the above embodiments are only used to help understand the method and core idea of the present invention. It should be pointed out that for those skilled in the art, without departing from the principle of the present invention, some improvements and modifications can be made to the present invention, and these improvements and modifications also fall within the protection scope of the claims of the present invention.
Claims (8)
Priority Applications (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| CN201910514333.9A CN110334703B (en) | 2019-06-14 | 2019-06-14 | A method for ship detection and recognition in day and night images |
Applications Claiming Priority (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| CN201910514333.9A CN110334703B (en) | 2019-06-14 | 2019-06-14 | A method for ship detection and recognition in day and night images |
Publications (2)
| Publication Number | Publication Date |
|---|---|
| CN110334703A true CN110334703A (en) | 2019-10-15 |
| CN110334703B CN110334703B (en) | 2021-10-19 |
Family
ID=68142123
Family Applications (1)
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| CN201910514333.9A Active CN110334703B (en) | 2019-06-14 | 2019-06-14 | A method for ship detection and recognition in day and night images |
Country Status (1)
| Country | Link |
|---|---|
| CN (1) | CN110334703B (en) |
Cited By (6)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN111582182A (en) * | 2020-05-11 | 2020-08-25 | 广州创亿源智能科技有限公司 | Ship name identification method, system, computer equipment and storage medium |
| CN112101282A (en) * | 2020-09-25 | 2020-12-18 | 北京瞰天科技有限公司 | Aquatic target identification method and device, electronic equipment and storage medium |
| CN114881336A (en) * | 2022-05-17 | 2022-08-09 | 广州海事科技有限公司 | Method, system, computer equipment and storage medium for automatically marking virtual navigation aids |
| CN115294387A (en) * | 2022-07-08 | 2022-11-04 | 西安电子科技大学广州研究院 | Image classification method under complex illumination imaging based on deep learning |
| CN118071997A (en) * | 2024-03-06 | 2024-05-24 | 武汉船用电力推进装置研究所(中国船舶集团有限公司第七一二研究所) | Water surface target identification method and device based on visual image and electronic equipment |
| CN118372853A (en) * | 2024-05-17 | 2024-07-23 | 泉州世纪众创信息科技有限公司 | A car automatic driving system |
Citations (1)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN105469115A (en) * | 2015-11-25 | 2016-04-06 | 天津大学 | Statistical feature-based day and night image recognition method |
-
2019
- 2019-06-14 CN CN201910514333.9A patent/CN110334703B/en active Active
Patent Citations (1)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN105469115A (en) * | 2015-11-25 | 2016-04-06 | 天津大学 | Statistical feature-based day and night image recognition method |
Non-Patent Citations (3)
| Title |
|---|
| JIN_MUMU: "《基于改进faster-rcnn的舰船目标检测与识别(阅读笔记)》", 《HTTPS://BLOG.CSDN.NET/QQ_42521031/ARTICLE/DETAILS/85321098》 * |
| YAO-JIE CHEN 等: "《Research on Ship Automatic Modeling and Identification System》", 《2017 2ND INTERNATIONAL CONFERENCE ON MECHATRONICS AND INFORMATION TECHNOLOGY (ICMIT 2017)》 * |
| 徐新 等: "《一种鲁棒的夜间图像显著性对象检测模型》", 《软件学报》 * |
Cited By (11)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN111582182A (en) * | 2020-05-11 | 2020-08-25 | 广州创亿源智能科技有限公司 | Ship name identification method, system, computer equipment and storage medium |
| CN111582182B (en) * | 2020-05-11 | 2023-08-11 | 广东创亿源智能科技有限公司 | Ship name recognition method, system, computer equipment and storage medium |
| CN112101282A (en) * | 2020-09-25 | 2020-12-18 | 北京瞰天科技有限公司 | Aquatic target identification method and device, electronic equipment and storage medium |
| CN112101282B (en) * | 2020-09-25 | 2024-04-26 | 北京瞰天科技有限公司 | Water target identification method and device, electronic equipment and storage medium |
| CN114881336A (en) * | 2022-05-17 | 2022-08-09 | 广州海事科技有限公司 | Method, system, computer equipment and storage medium for automatically marking virtual navigation aids |
| CN115294387A (en) * | 2022-07-08 | 2022-11-04 | 西安电子科技大学广州研究院 | Image classification method under complex illumination imaging based on deep learning |
| CN115294387B (en) * | 2022-07-08 | 2025-07-15 | 西安电子科技大学广州研究院 | Image classification method under complex illumination imaging based on deep learning |
| CN118071997A (en) * | 2024-03-06 | 2024-05-24 | 武汉船用电力推进装置研究所(中国船舶集团有限公司第七一二研究所) | Water surface target identification method and device based on visual image and electronic equipment |
| CN118071997B (en) * | 2024-03-06 | 2024-09-10 | 武汉船用电力推进装置研究所(中国船舶集团有限公司第七一二研究所) | Water surface target identification method and device based on visual image and electronic equipment |
| CN118372853A (en) * | 2024-05-17 | 2024-07-23 | 泉州世纪众创信息科技有限公司 | A car automatic driving system |
| CN118372853B (en) * | 2024-05-17 | 2025-02-14 | 泉州世纪众创信息科技有限公司 | A car automatic driving system |
Also Published As
| Publication number | Publication date |
|---|---|
| CN110334703B (en) | 2021-10-19 |
Similar Documents
| Publication | Publication Date | Title |
|---|---|---|
| CN110334703A (en) | A Ship Detection and Recognition Method in Day and Night Images | |
| CN106845487B (en) | End-to-end license plate identification method | |
| CN106960446B (en) | Unmanned ship application-oriented water surface target detection and tracking integrated method | |
| CN113592911B (en) | Apparent enhanced depth target tracking method | |
| CN112434599B (en) | Pedestrian re-identification method based on random occlusion recovery of noise channel | |
| CN110765964A (en) | Method for detecting abnormal behaviors in elevator car based on computer vision | |
| CN111160249A (en) | Multi-class target detection method in optical remote sensing images based on cross-scale feature fusion | |
| CN110929593A (en) | A Real-time Saliency Pedestrian Detection Method Based on Detail Discrimination | |
| CN111368660A (en) | A single-stage semi-supervised image human object detection method | |
| CN111582092B (en) | Pedestrian abnormal behavior detection method based on human skeleton | |
| CN113139896A (en) | Target detection system and method based on super-resolution reconstruction | |
| CN109784278A (en) | The small and weak moving ship real-time detection method in sea based on deep learning | |
| CN114332921A (en) | Pedestrian detection method based on Faster R-CNN network based on improved clustering algorithm | |
| CN111260687A (en) | Aerial video target tracking method based on semantic perception network and related filtering | |
| CN113888461A (en) | Method, system and equipment for detecting defects of hardware parts based on deep learning | |
| Cao et al. | Learning spatial-temporal representation for smoke vehicle detection | |
| CN116665015B (en) | A method for detecting weak and small targets in infrared sequence images based on YOLOv5 | |
| CN113763424A (en) | Real-time intelligent target detection method and system based on embedded platform | |
| CN116844234A (en) | A moving target detection method based on visual brain network background modeling | |
| CN106384089A (en) | Human body reliable detection method based on lifelong learning | |
| CN116363535A (en) | Ship detection method in unmanned aerial vehicle aerial image based on convolutional neural network | |
| CN114463619B (en) | Infrared dim target detection method based on integrated fusion features | |
| CN102592125A (en) | Moving object detection method based on standard deviation characteristic | |
| CN109284752A (en) | A rapid detection method for vehicles | |
| CN114511807B (en) | A high-altitude small target detection method based on video stream data suitable for complex environments |
Legal Events
| Date | Code | Title | Description |
|---|---|---|---|
| PB01 | Publication | ||
| PB01 | Publication | ||
| SE01 | Entry into force of request for substantive examination | ||
| SE01 | Entry into force of request for substantive examination | ||
| GR01 | Patent grant | ||
| GR01 | Patent grant |