CN109961065A - A method for target detection of surface ships - Google Patents
A method for target detection of surface ships Download PDFInfo
- Publication number
- CN109961065A CN109961065A CN201711417359.9A CN201711417359A CN109961065A CN 109961065 A CN109961065 A CN 109961065A CN 201711417359 A CN201711417359 A CN 201711417359A CN 109961065 A CN109961065 A CN 109961065A
- Authority
- CN
- China
- Prior art keywords
- interest
- vertical edge
- image
- area
- row
- 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
- 238000001514 detection method Methods 0.000 title claims abstract description 36
- 238000000034 method Methods 0.000 title claims abstract description 34
- 230000011218 segmentation Effects 0.000 claims abstract description 22
- 238000000605 extraction Methods 0.000 claims description 4
- 238000010586 diagram Methods 0.000 description 8
- 238000004364 calculation method Methods 0.000 description 3
- 230000000694 effects Effects 0.000 description 3
- 238000001914 filtration Methods 0.000 description 2
- 238000003909 pattern recognition Methods 0.000 description 2
- 230000009286 beneficial effect Effects 0.000 description 1
- 230000007123 defense Effects 0.000 description 1
- 230000007812 deficiency Effects 0.000 description 1
- 239000011159 matrix material Substances 0.000 description 1
- 238000013517 stratification Methods 0.000 description 1
- 230000009466 transformation Effects 0.000 description 1
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR 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]
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06V—IMAGE OR VIDEO RECOGNITION OR UNDERSTANDING
- G06V10/00—Arrangements for image or video recognition or understanding
- G06V10/20—Image preprocessing
- G06V10/255—Detecting or recognising potential candidate objects based on visual cues, e.g. shapes
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06V—IMAGE OR VIDEO RECOGNITION OR UNDERSTANDING
- G06V10/00—Arrangements for image or video recognition or understanding
- G06V10/20—Image preprocessing
- G06V10/26—Segmentation of patterns in the image field; Cutting or merging of image elements to establish the pattern region, e.g. clustering-based techniques; Detection of occlusion
- G06V10/267—Segmentation of patterns in the image field; Cutting or merging of image elements to establish the pattern region, e.g. clustering-based techniques; Detection of occlusion by performing operations on regions, e.g. growing, shrinking or watersheds
Landscapes
- Engineering & Computer Science (AREA)
- Physics & Mathematics (AREA)
- General Physics & Mathematics (AREA)
- Multimedia (AREA)
- Theoretical Computer Science (AREA)
- Image Analysis (AREA)
- Image Processing (AREA)
Abstract
本发明涉及一种海面舰船目标检测方法,通过在Sobel垂直边缘图上计算垂直边缘点的数量和来获得感兴趣区域的左、右、上和下边界,从而确定感兴趣区域;基于行列均值分割与轮廓生长相结合的方法对感兴趣区域进行图像分割;在感兴趣区域所对应的灰度图像和二值图像上计算疑似目标的特征,并通过特征判别确定有效地舰船目标。本发明具有适应场景广、检测率准,具有十分重要的意义和价值。
The invention relates to a surface ship target detection method. The left, right, upper and lower boundaries of the region of interest are obtained by calculating the sum of the number of vertical edge points on the Sobel vertical edge map, so as to determine the region of interest; The method of combining segmentation and contour growth is used to segment the region of interest; the features of the suspected target are calculated on the grayscale image and the binary image corresponding to the region of interest, and the effective ship target is determined by feature discrimination. The invention has wide adaptability to scenarios and accurate detection rate, and has very important significance and value.
Description
技术领域technical field
本发明涉及图像目标检测领域,具体地说是一种海面舰船目标检测方法。The invention relates to the field of image target detection, in particular to a surface ship target detection method.
背景技术Background technique
图像目标检测是模式识别的一个重要分支,在交通运输和国防安全领域中的应用十分广泛。海上舰船作为重要的航海交通运输工具,具有很高的经济和战略价值,尤其是海洋资源日益紧张而导致局部冲突的形势下,控制舰船目标是有效、迅速控制冲突事态的重要手段。当前海面舰船目标检测主要是在图像中海天交界区域进行检测,并且对海天交界区域只采用分割方法提取舰船目标,从而限定了目标检测的区域范围,提取的舰船目标不完整,导致检测不到舰船目标或者检测的舰船目标不完整。因此,基于行列均值分割与轮廓生长相结合的海面舰船目标检测方法具有重要的应用价值,其方法主要涉及图像处理和模式识别。Image object detection is an important branch of pattern recognition, which is widely used in the fields of transportation and national defense. As an important means of navigation and transportation, ships at sea have high economic and strategic value. Especially in the situation of local conflicts caused by the increasing tension of marine resources, controlling the target of ships is an important means to effectively and quickly control the conflict situation. At present, the detection of ships on the sea surface is mainly carried out in the sea-sky junction area in the image, and only the segmentation method is used to extract the ship target in the sea-sky junction area, thus limiting the scope of the target detection area, and the extracted ship target is incomplete, resulting in detection. The ship target is not found or the detected ship target is incomplete. Therefore, the method of target detection based on the combination of row-column mean segmentation and contour growth has important application value, and the method mainly involves image processing and pattern recognition.
发明内容SUMMARY OF THE INVENTION
针对现有技术的不足,本发明提供一种基于行列均值分割与轮廓生长相结合的精确有效的海面舰船目标检测方法。In view of the deficiencies of the prior art, the present invention provides an accurate and effective method for detecting objects on the sea surface based on the combination of row-column mean segmentation and contour growth.
本发明为实现上述目的所采用的技术方案是:The technical scheme that the present invention adopts for realizing the above-mentioned purpose is:
一种基于行列均值分割与轮廓生长相结合的海面舰船目标检测方法,包括以下步骤:A method for target detection of surface ships based on the combination of row-column mean segmentation and contour growth, comprising the following steps:
步骤1:通过在Sobel垂直边缘图上计算垂直边缘点的数量来提取感兴趣区域;Step 1: Extract the region of interest by counting the number of vertical edge points on the Sobel vertical edge map;
步骤2:采用基于行列均值分割与轮廓生长相结合的分割方法对感兴趣区域进行分割;Step 2: Segment the region of interest by using a segmentation method based on the combination of row and column mean segmentation and contour growth;
所述感兴趣区域提取方法为:The method for extracting the region of interest is:
步骤1:在Sobel垂直边缘图上计算每列垂直边缘点的数量和来确定感兴趣区域的左、右边界;Step 1: Calculate the sum of the number of vertical edge points in each column on the Sobel vertical edge map to determine the left and right boundaries of the region of interest;
步骤2:在Sobel垂直边缘图上计算每行垂直边缘点的个数和来确定感兴趣区域的上、下边界;Step 2: Calculate the sum of the number of vertical edge points in each row on the Sobel vertical edge map to determine the upper and lower boundaries of the region of interest;
步骤3:在灰度图像中由左边界、右边界、上边界和下边界所包围的区域即为感兴趣区域。Step 3: The area surrounded by the left border, right border, upper border and lower border in the grayscale image is the region of interest.
红外海面图像的尺寸为M×N,在Sobel垂直边缘图上计算每列垂直边缘点的个数和来确定感兴趣区域的左、右边界,在Sobel垂直边缘图上从图像最左端向右统计每列垂直边缘点个数和Tleft(j),j=1,2,...,N,当Tleft(j)>T0且NumFirstleft=0时,Tleft(j)所对应的列位置j即为区域的左边界BL;在Sobel垂直边缘图上从图像的最右端向左统计每列垂直边缘点个数和Tright(j),j=N,N-1,...,1,当Tright(j)>T0且NumFirstright=0时,Tright(j)所对应的列位置j即为区域的右边界BR;其中,NumFirstleft为Tleft(j)满足约束条件Tleft(j)>T0的次数,初始值为0;NumFirstright为Tright(j)满足约束条件Tright(j)>T0的次数,初始值为0;T0=5。若BL>BR,则BL=N/4,BR=N/2。The size of the infrared sea surface image is M×N. Calculate the sum of the number of vertical edge points in each column on the Sobel vertical edge map to determine the left and right boundaries of the region of interest, and count from the leftmost edge of the image to the right on the Sobel vertical edge map. The number of vertical edge points in each column and T left (j), j=1, 2, ..., N, when T left (j)>T 0 and NumFirst left =0, the corresponding value of T left (j) The column position j is the left boundary BL of the region; on the Sobel vertical edge map, count the number of vertical edge points and T right (j) in each column from the rightmost end of the image to the left, j=N, N-1, .. ., 1, when T right (j)>T 0 and NumFirst right =0, the column position j corresponding to T right (j) is the right boundary BR of the region; wherein, NumFirst left is T left (j) The number of times that the constraint condition T left (j)>T 0 is satisfied, and the initial value is 0; NumFirst right is the number of times that T right (j) satisfies the constraint condition T right (j)>T 0 , and the initial value is 0; T 0 =5 . If BL > BR , then BL= N/4 and BR =N/2.
在Sobel垂直边缘图上计算每行垂直边缘点的个数和来确定感兴趣区域的上、下边界,分两种情形:图像中存在海天线和图像中不存海天线,图像中存在海天线即海天线检测有效,图像中不存在海天线即海天线检测无效,第一种情形:当红外海面图像中存在海天线时,在由感兴趣区域左边界BL、右边界BR所限定的Sobel垂直边缘图中,将提取的垂直边缘作水平方向投影,即计算每行边缘点个数和;首先,从海天线位置由下至上计算每行边缘点个数和Ttop(i),i=K,K-1,...,1,1≤K≤M,当Ttop(i)>0且Ttop(i-1)=0时,i所对应的行位置即为上边界BT,从图像中最后一行由下至上计算每行边缘点个数和Tdown(i),i=M,M-1,...,K,当Tdown(i)=0且Tdown(i-1)>0时,i所对应的行位置即为下边界BB;第二种情形:当图像中不存在海天线时,在由感兴趣区域左、右边界所限定的Sobel垂直边缘图中,从图像第一行由上至下计算每行边缘点个数和Ttop(i),i=1,2,...,M,当Ttop(i)>TH且NumFirsttop=0时,i所对应的行位置即为上边界BT,从图像中最后一行由下至上计算每行边缘点个数和Tdown(i),i=M,M-1,...,1,当Tdown(i)>TH且NumFirstdown=0时,i所对应的行位置即为下边界BB,其中,NumFirsttop为Ttop(i)满足约束条件Ttop(i)>TH的次数,初始值为0,NumFirstdown为Tdown(i)满足约束条件Tdown(i)>TH的次数,初始值为0;TH=3。若BT>BB,则BT=M/4,BB=M/2。Calculate the sum of the number of vertical edge points in each row on the Sobel vertical edge map to determine the upper and lower boundaries of the region of interest. There are two cases: there are sea lines in the image and there are no sea lines in the image, and there are sea lines in the image. That is, the sea line detection is valid, and there is no sea line in the image, that is, the sea line detection is invalid. The first situation: when there is a sea line in the infrared sea surface image, it is defined by the left boundary BL and the right boundary BR of the region of interest. In the Sobel vertical edge graph, the extracted vertical edges are projected in the horizontal direction, that is, the sum of the number of edge points in each row is calculated; first, the number of edge points in each row is calculated from the bottom to the top from the position of the sea antenna. T top (i), i =K, K-1, ..., 1, 1≤K≤M, when T top (i)>0 and T top (i-1)=0, the row position corresponding to i is the upper boundary B T , calculate the number of edge points and T down (i) in each row from the bottom to the top of the last row in the image, i=M, M-1,...,K, when T down (i)=0 and T down ( When i-1)>0, the row position corresponding to i is the lower boundary B B ; the second situation: when there is no sea line in the image, at the Sobel vertical edge defined by the left and right boundaries of the region of interest In the figure, the number of edge points and T top (i) in each row are calculated from top to bottom from the first row of the image, i=1, 2, ..., M, when T top (i) > T H and NumFirst top =0, the row position corresponding to i is the upper boundary B T , the number of edge points in each row and T down (i) are calculated from the bottom to the top of the last row in the image, i=M, M-1,... , 1, when T down (i)> TH and NumFirst down =0, the row position corresponding to i is the lower boundary B B , where NumFirst top is T top (i) that satisfies the constraint T top (i) > TH times, the initial value is 0, NumFirst down is the times that T down (i) satisfies the constraint condition T down (i)> TH , and the initial value is 0; TH =3. If B T > BB , then B T =M/4, and B B =M/2.
在灰度图像中由左边界BL、右边界BR、上边界BT和下边界BB所包围的区域即为感兴趣区域。In the grayscale image, the area surrounded by the left border BL , the right border BR , the upper border BT and the lower border BB is the region of interest.
所述基于行列均值分割与轮廓生长相结合的分割方法为:The described segmentation method based on the combination of row and column mean segmentation and contour growth is:
感兴趣区域尺寸为M′×N′,采用基于行列均值的分割方法对感兴趣区域进The size of the region of interest is M′×N′, and the segmentation method based on the row and column mean is used to segment the region of interest.
行二值化,R(i,j)是感兴趣区域二值化后的图像上任意一点的灰度值,其中i=1,2,...,M′,j=1,2,...,N′;若(i,j)是目标点,则R(i,j)=1;若(i,j)是非目标点,则R(i,j)=0。Row binarization, R(i, j) is the gray value of any point on the image after binarization of the region of interest, where i=1, 2, ..., M', j=1, 2, . .., N'; if (i, j) is a target point, then R(i, j)=1; if (i, j) is a non-target point, then R(i, j)=0.
对感兴趣区域二值化后图像中每一非目标点R(i0,j0)进行判断,其中,R(i0,j0)=0,若在感兴趣区域二值化后的图像中(i0,j0)的左、右和下方向至少存在一个目标点:当j=1,2,...,j0-1时,存在R(j0,j)=1,当j=j0+1,...,N′时,存在R(i0,j)=1,当i=i0+1,...,M′时,存在R(i,j0)-1;且在二值轮廓图像中对应位置的左、右、下三个方向均搜索到通过轮廓生长得到的同一目标轮廓,则将当前非目标点置为目标点。Judging each non-target point R(i 0 , j 0 ) in the image after the binarization of the region of interest, where R(i 0 , j 0 )=0, if the binarized image of the region of interest is There is at least one target point in the left, right and downward directions of (i 0 , j 0 ): when j=1, 2, . . . , j 0 -1, there is R(j 0 , j)=1, when When j=j 0 +1,...,N', there is R(i 0 ,j)=1, when i=i 0 +1,...,M', there is R(i,j 0 ) -1; and the same target contour obtained by contour growth is searched in the left, right and bottom directions of the corresponding position in the binary contour image, then the current non-target point is set as the target point.
本发明具有以下有益效果及优点:The present invention has the following beneficial effects and advantages:
1.本发明基于行列均值分割与轮廓生长相结合的方法能够获得精确的舰船区域,避免获得的舰船区域比真实舰船过大或过小,为舰船特征的计算和舰船判别提供有力依据,提高舰船检测的准确率;1. The method of the present invention based on the combination of row-column mean segmentation and contour growth can obtain an accurate ship area, avoid the obtained ship area being too large or too small than the real ship, and provide the calculation of ship features and ship discrimination. Strong basis to improve the accuracy of ship detection;
2.本发明对获取的红外海面图像质量要求不高,主要是复杂背景下红外海面舰船目标检测;2. The present invention does not have high requirements on the quality of the obtained infrared sea surface images, mainly the detection of infrared sea surface ship targets under complex backgrounds;
3.本发明具有适应场景广、检测率准,具有十分重要的意义和价值。3. The present invention has wide adaptability to scenarios, accurate detection rate, and is of great significance and value.
附图说明Description of drawings
图1是本发明的方法流程图;Fig. 1 is the method flow chart of the present invention;
图2是本发明的海天线检测过程图;Fig. 2 is the sea antenna detection process diagram of the present invention;
图3是本发明的海天线检测结果图;Fig. 3 is the sea antenna detection result diagram of the present invention;
图4是本发明的感兴趣区域提取过程图;Fig. 4 is the process diagram of region of interest extraction of the present invention;
图5是本发明的感兴趣区域分割过程图;Fig. 5 is the interest region segmentation process diagram of the present invention;
图6是本发明的邻域背景区域示意图;6 is a schematic diagram of a neighborhood background area of the present invention;
图7是本发明的红外海面舰船目标检测结果图。FIG. 7 is a graph of the detection result of the infrared sea surface ship target of the present invention.
具体实施方式Detailed ways
下面结合附图及实施例对本发明做进一步的详细说明。The present invention will be further described in detail below with reference to the accompanying drawings and embodiments.
如图1所示为本发明的方法流程图。Figure 1 is a flow chart of the method of the present invention.
一种基于行列均值分割与轮廓生长相结合的海面舰船目标检测方法,首先,采用基于Hough变换的方法检测海天线;然后,在Sobel垂直边缘图上计算感兴趣区域的左、右、上和下边界,从而确定感兴趣区域;进一步,应用基于行列均值分割与轮廓生长相结合的方法对感兴趣区域进行目标分割;接下来,在感兴趣区域所对应的灰度图像和二值图像上计算疑似目标的特征,并通过特征判别确定有效地舰船目标。A method for detecting sea surface ships based on the combination of row and column mean segmentation and contour growth. First, the method based on Hough transform is used to detect sea lines; then, the left, right, top and bottom of the region of interest are calculated on Sobel vertical edge map The lower boundary is used to determine the region of interest; further, a method based on the combination of row and column mean segmentation and contour growth is used to segment the region of interest; next, the grayscale image and binary image corresponding to the region of interest are calculated. Features of suspected targets, and determine effective ship targets through feature discrimination.
1.采用基于Hough变换的方法检测海天线,具体步骤如下;1. Using the method based on Hough transform to detect sea lines, the specific steps are as follows;
第一步:将红外海面图像与垂直方向Sobel算子做卷积,并对滤波后的图像进行二值化,从而得到Sobel水平边缘图像;Step 1: Convolve the infrared sea surface image with the vertical Sobel operator, and binarize the filtered image to obtain the Sobel horizontal edge image;
垂直方向Sobel算子:Vertical Sobel operator:
第二步:干10°范围内且精度0.5°,在Sobel水平边缘图像上进行Hough变换获得变换矩阵,得到长度应大于160个像素的直线,选取最长的3条为候选直线;若不足3条,则选取长度大于160个像素的所有直线为候选直线;若无则图像中不存在海天线,海天线检测结果无效。The second step: within the range of 10° and the accuracy is 0.5°, perform Hough transform on the Sobel horizontal edge image to obtain the transformation matrix, and obtain a straight line whose length should be greater than 160 pixels, and select the longest 3 lines as candidate lines; If the number of lines is greater than 160 pixels, all lines with a length greater than 160 pixels are selected as candidate lines; if there are no lines, there is no sea line in the image, and the sea line detection result is invalid.
第三步:计算直线的有效长度,方法为:Step 3: Calculate the effective length of the straight line, the method is:
Sdot为有效点数,LCi为第i个线段的连续点数,LIj为第j个间断的连续点数。S dot is the number of valid points, LC i is the number of consecutive points of the i-th line segment, and LI j is the number of consecutive points of the j-th discontinuity.
第四步:根据直线上、下各15行区域灰度均值差绝对值、直线下区域15行灰度方差判断所有候选直线是否满足约束条件Step 4: According to the absolute value of the gray mean difference of the 15 lines above and below the line, and the gray variance of the 15 lines below the line to determine whether all the candidate lines meet the constraints
且 and
若满足约束条件,则该候选直线是海天线,否则不是海天线,其中,If the constraints are met, the candidate line is a sea line, otherwise it is not a sea line, where,
N上=15,N下=15,Ti上为直线上15行区域第i行的灰度均值,Ti下为直线下15行区域第i行的灰度均值,为直线下15区域灰度均值。 Nup =15, Ndown =15, T i up is the gray mean value of the ith row in the 15-line area on the straight line, and T i below is the gray average value of the ith row in the 15-line area under the straight line, It is the average gray level of the 15 areas under the straight line.
如图2所示为本发明的基于Hough变换的方法检测海天线的过程图,其中(a)为红外海面舰船图像,(b)为垂直方向Sobel算子滤波图像,(c)为Sobel水平边缘图像,(d)为海天线检测结果。Figure 2 shows the process diagram of the method based on the Hough transform of the present invention to detect sea lines, wherein (a) is the infrared sea surface ship image, (b) is the vertical Sobel operator filtering image, (c) is the Sobel horizontal Edge image, (d) is the sea line detection result.
如图3所示为本发明的海天线检测结果图;其中(a)为海面分层情形下海天线检测效果,(b)为逆光情形下海天线检测效果,(c)为云层背景下海天线检测效果。Figure 3 shows the result of the sea line detection of the present invention; wherein (a) is the sea line detection effect in the case of sea surface stratification, (b) is the sea line detection effect under the backlight situation, and (c) is the sea line detection effect under the background of clouds .
2.感兴趣区域提取2. Region of interest extraction
第一步:将红外海面图像与水平方向Sobel算子做卷积,并对滤波后的图像进行二值化,从而得到Sobel垂直边缘图像;The first step: convolve the infrared sea surface image with the horizontal Sobel operator, and binarize the filtered image to obtain the Sobel vertical edge image;
第二步:计算区域左、右边界,在Sobel垂直边缘图上从图像最左端向右统计每列垂直边缘点个数和Tleft(j),j=1,2,...,N,当Tleft(j)>T0且NumFirstleft=0时,Tleft(j)所对应的列位置j即为区域的左边界BL;在Sobel垂直边缘图上从图像的最右端向左统计每列垂直边缘点个数和Tright(j),j=N,N-1,...,1,当Tright(j)>T0且NumFirstright=0时,Tright(j)所对应的列位置j即为区域的右边界BR;其中,NumFirstleft为Tleft(j)满足约束条件Tleft(j)>T0的次数,初始值为0;NumFirstright为Tright(j)满足约束条件Tright(j)>T0的次数,初始值为0;T0=5。若BL>BR,则BL=N/4,BR=N/2。Step 2: Calculate the left and right boundaries of the area, and count the number of vertical edge points in each column and T left (j) from the leftmost edge of the image to the right on the Sobel vertical edge map, j=1,2,...,N, When T left (j)>T 0 and NumFirst left = 0, the column position j corresponding to T left (j) is the left boundary BL of the region; on the Sobel vertical edge map, count from the rightmost end of the image to the left The number of vertical edge points in each column and T right (j), j=N, N-1, ..., 1, when T right (j)>T 0 and NumFirst right =0, the value of T right (j) is The corresponding column position j is the right boundary BR of the region; wherein, NumFirst left is the number of times that T left (j) satisfies the constraint condition T left (j)>T 0 , and the initial value is 0; NumFirst right is T right (j ) the number of times that the constraint condition T right (j)>T 0 is satisfied, and the initial value is 0; T 0 =5. If BL >BR, then BL= N/4 and BR =N/2.
第三步:计算区域上、下边界,分两种情形:图像中存在海天线和图像中不存海天线,图像中存在海天线即海天线检测有效,图像中不存在海天线即海天线检测无效。在由感兴趣区域左边界BL、右边界BR所限定的Sobel垂直边缘图中,将提取的垂直边缘作水平方向投影,即计算每行边缘点个数和;第一种情形:当红外海面图像中存在海天线时,从海天线位置由下至上计算每行边缘点个数和Ttop(i),i=K,K-1,...,1,1≤K≤M,当Ttop(i)>0且Ttop(i-1)=0时,i所对应的行位置即为上边界BT,从图像中最后一行由下至上计算每行边缘点个数和Tdown(i),i=M,M-1,...,K,当Tdown(i)=0且Tdown(i-1)>0时,i所对应的行位置即为下边界BB;第二种情形:当图像中不存在海天线时,从图像第一行由上至下计算每行边缘点个数和Ttop(i),i=1,2,...,M,当Ttop(i)>TH且NumFirsttop=0时,i所对应的行位置即为上边界BT,从图像中最后一行由下至上计算每行边缘点个数和Tdown(i),i=M,M-1,...,1,当Tdown(i)>TH且NumFirstdown=0时,i所对应的行位置即为下边界BB,其中,NumFirsttop为Ttop(i)满足约束条件Ttop(i)>TH的次数,初始值为0,NumFirstdown为Tdown(i)满足约束条件Tdown(i)>TH的次数,初始值为0;TH=3。若BT>BB,则BT=M/4,BB=M/2。Step 3: Calculate the upper and lower boundaries of the area. There are two cases: there are sea lines in the image and there are no sea lines in the image. If there are sea lines in the image, the sea line detection is valid, and if there are no sea lines in the image, the sea line detection is effective. invalid. In the Sobel vertical edge map defined by the left boundary BL and the right boundary BR of the region of interest, the extracted vertical edges are projected in the horizontal direction, that is, the sum of the number of edge points in each row is calculated; the first case: when the infrared When there is a sea line in the sea surface image, the number of edge points in each row and T top (i) are calculated from the bottom to the top from the position of the sea line, i = K, K-1, ..., 1, 1≤K≤M, when When T top (i)>0 and T top (i-1)=0, the row position corresponding to i is the upper boundary B T , the number of edge points in each row and T down are calculated from the bottom to the top of the last row in the image (i), i=M, M-1,...,K, when T down (i)=0 and T down (i-1)>0, the row position corresponding to i is the lower boundary B B ; The second case: when there is no sea line in the image, calculate the number of edge points and T top (i) in each row from top to bottom from the first row of the image, i=1, 2,...,M, When T top (i)> TH and NumFirst top =0, the row position corresponding to i is the upper boundary B T , and the number of edge points in each row and T down (i) are calculated from the bottom to the top of the last row in the image. , i=M, M-1,...,1, when T down (i)>T H and NumFirst down =0, the row position corresponding to i is the lower boundary B B , where NumFirst top is T top (i) The number of times that the constraint condition T top (i)> TH is satisfied, the initial value is 0, and NumFirst down is the number of times that T down (i) the constraint condition T down (i)> TH is satisfied, and the initial value is 0; TH =3. If B T > BB , then B T =M/4, and B B =M/2.
在灰度图像中由左边界BL、右边界BR、上边界BT和下边界BB所包围的区域即为感兴趣区域。In the grayscale image, the area surrounded by the left border BL , the right border BR , the upper border BT and the lower border BB is the region of interest.
如图4所示为本发明的感兴趣区域提取过程图;其中(a)为红外海面舰船图像,(b)为水平方向Sobel算子滤波图像,(c)为Sobel垂直边缘图像,(d)为感兴趣区域提取结果。Figure 4 shows the process of extracting the region of interest of the present invention; wherein (a) is the infrared sea surface ship image, (b) is the horizontal Sobel operator filtering image, (c) is the Sobel vertical edge image, (d) ) to extract results for the region of interest.
3.感兴趣区域分割3. Region of Interest Segmentation
第一步:采用基于行列均值的分割方法对感兴趣区域进行二值化,感兴趣区域尺寸为M′×N′,R(i,j)是感兴趣区域二值化后的图像上任意一点的灰度值,其中i=1,2,...,M′,j=1,2,...,N′;若(i,j)是目标点,则R(i,j)=1;若(i,j)是非目标点,则R(i,j)=0。Step 1: Binarize the region of interest by using the segmentation method based on the mean of rows and columns. The size of the region of interest is M′×N′, and R(i, j) is any point on the image after the binarization of the region of interest. , where i=1,2,...,M',j=1,2,...,N'; if (i,j) is the target point, then R(i,j)= 1; if (i, j) is a non-target point, then R(i, j)=0.
第二步:对感兴趣区域二值化后图像中每一非目标点R(i0,j0)进行判断,其中,R(i0,j0)=0,若在感兴趣区域二值化后的图像中(i0,j0)的左、右和下方向至少存在一个目标点:当j=1,2,...,j0-1时,存在R(i0,j)=1,当j=j0+1,...,N′时,存在R(i0,j)=1,当i=i0+1,...,M′时,存在R(i,j0)=1;且在二值轮廓图像中对应位置的左、右、下三个方向均搜索到通过轮廓生长得到的同一目标轮廓,则将当前非目标点置为目标点。Step 2: Judging each non-target point R(i 0 , j 0 ) in the image after binarization of the region of interest, where R(i 0 , j 0 )=0, if the binarization in the region of interest There is at least one target point in the left, right and bottom directions of (i 0 , j 0 ) in the transformed image: when j=1, 2, . . . , j 0 -1, there is R(i 0 , j) =1, when j=j 0 +1,...,N', there is R(i 0 ,j)=1, when i=i 0 +1,...,M', there is R(i , j 0 )=1; and the same target contour obtained by contour growth is searched in the left, right and bottom directions of the corresponding position in the binary contour image, then the current non-target point is set as the target point.
注:为了使分割结果更准确,实现时保留一定的背景区域,在感兴趣区域四周各扩展20个像素。Note: In order to make the segmentation results more accurate, a certain background area is reserved during implementation, and 20 pixels are expanded around the area of interest.
如图5所示是本发明的感兴趣区域分割过程图;其中(a)为感兴趣区域图像,(b)为行列均值分割结果图像,(c)为轮廓图像,(d)为基于行列均值分割与轮廓生长相结合分割方法的图像结果。As shown in FIG. 5 is the process diagram of the segmentation process of the region of interest of the present invention; wherein (a) is the region of interest image, (b) is the result image of the row and column mean segmentation, (c) is the contour image, and (d) is based on the row and column mean value. Image results of the segmentation method combined with contour growing.
4.疑似目标计算4. Suspected target calculation
在感兴趣区域分割图像中计算疑似目标几何特征。Compute the suspected target geometric features in the region of interest segmented image.
第一步:采用连通区域标记的方法对感兴趣区域二值图像进行疑似目标标记,同时记录下每个标记目标的边缘像素坐标和数量;Step 1: Use the method of connected region marking to mark the suspected target in the binary image of the region of interest, and record the edge pixel coordinates and quantity of each marked target at the same time;
第二步:通过计算可得到疑似目标的形心、面积、宽度和高度特征;然后,按照疑似目标的面积对二值图像中所有的疑似目标进行降序排列。Step 2: The centroid, area, width and height features of the suspected target can be obtained by calculation; then, all the suspected targets in the binary image are sorted in descending order according to the area of the suspected target.
在感兴趣区域图像中计算疑似目标与邻域背景的平均灰度,其中,邻域背景为目标最小外接矩形四周3圈所包围的区域,如图6所示为本发明的邻域背景区域示意图,实线框为目标最小外接矩形。Calculate the average gray level of the suspected target and the neighborhood background in the area of interest image, where the neighborhood background is the area surrounded by 3 circles around the minimum circumscribed rectangle of the target, as shown in FIG. 6 is a schematic diagram of the neighborhood background area of the present invention , the solid line frame is the minimum circumscribed rectangle of the target.
5.疑似目标判别5. Suspected target identification
疑似目标需要通过特征判别才能确定为有效的舰船目标,特征约束如下:The suspected target needs to be identified as a valid ship target through feature discrimination, and the feature constraints are as follows:
a.面积:疑似舰船目标像素点总数。a. Area: The total number of target pixels of the suspected ship.
有效目标的面积>100像素。The area of the valid target is >100 pixels.
b.宽高比:疑似舰船目标最小外接矩形的宽度像素值除以高度像素值。b. Aspect ratio: The width pixel value of the minimum circumscribed rectangle of the suspected ship target is divided by the height pixel value.
有效目标的宽高比在0.5~10之间。A valid target has an aspect ratio between 0.5 and 10.
c.对比度:疑似舰船目标平均亮度与邻域背景平均亮度的差值,其中的邻域背景为目标最小外接矩形四周3圈所围区域的灰度均值。c. Contrast: the difference between the average brightness of the suspected ship target and the average brightness of the neighborhood background, where the neighborhood background is the average gray value of the area surrounded by the 3 circles around the minimum circumscribed rectangle of the target.
有效目标的对比度>5(灰度差)。Contrast of valid targets > 5 (gray difference).
d.位置:疑似舰船目标最小外接矩形的位置坐标。d. Position: the position coordinates of the smallest circumscribed rectangle of the suspected ship target.
对疑似目标进行目标判别确定真实的舰船目标,获得目标检测结果。Perform target discrimination on the suspected target to determine the real ship target, and obtain the target detection result.
如图7所示为本发明的红外海面舰船目标检测结果图。FIG. 7 is a graph showing the result of infrared sea surface ship target detection according to the present invention.
Claims (5)
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201711417359.9A CN109961065B (en) | 2017-12-25 | 2017-12-25 | A method for target detection of surface ships |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201711417359.9A CN109961065B (en) | 2017-12-25 | 2017-12-25 | A method for target detection of surface ships |
Publications (2)
Publication Number | Publication Date |
---|---|
CN109961065A true CN109961065A (en) | 2019-07-02 |
CN109961065B CN109961065B (en) | 2021-05-25 |
Family
ID=67020608
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201711417359.9A Active CN109961065B (en) | 2017-12-25 | 2017-12-25 | A method for target detection of surface ships |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN109961065B (en) |
Cited By (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN111222511A (en) * | 2020-04-13 | 2020-06-02 | 中山大学 | Infrared unmanned aerial vehicle target detection method and system |
CN112150480A (en) * | 2020-09-17 | 2020-12-29 | 哈尔滨工业大学(威海) | Background Segmentation Method Based on Sea-Line |
CN112446918A (en) * | 2019-09-04 | 2021-03-05 | 三赢科技(深圳)有限公司 | Method and device for positioning target object in image, computer device and storage medium |
CN117115082A (en) * | 2023-07-12 | 2023-11-24 | 钛玛科(北京)工业科技有限公司 | Method and equipment for detecting overlap quality of tire |
CN117557784A (en) * | 2024-01-09 | 2024-02-13 | 腾讯科技(深圳)有限公司 | Target detection method, target detection device, electronic equipment and storage medium |
Citations (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101604383A (en) * | 2009-07-24 | 2009-12-16 | 哈尔滨工业大学 | A Maritime Target Detection Method Based on Infrared Image |
CN103578103A (en) * | 2013-09-24 | 2014-02-12 | 北京环境特性研究所 | Target quick-search method based on navigation attitude correction |
US20160012606A1 (en) * | 2012-06-14 | 2016-01-14 | International Business Machines Corporation | Multi-cue object detection and analysis |
CN105303526A (en) * | 2015-09-17 | 2016-02-03 | 哈尔滨工业大学 | Ship target detection method based on coastline data and spectral analysis |
CN106127728A (en) * | 2016-06-07 | 2016-11-16 | 电子科技大学 | A kind of infrared image sea horizon connected domain detection method under sea and sky background |
CN108288268A (en) * | 2018-01-23 | 2018-07-17 | 华中科技大学 | Inshore ship detection method in high-resolution remote sensing image based on Projection Analysis |
-
2017
- 2017-12-25 CN CN201711417359.9A patent/CN109961065B/en active Active
Patent Citations (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101604383A (en) * | 2009-07-24 | 2009-12-16 | 哈尔滨工业大学 | A Maritime Target Detection Method Based on Infrared Image |
US20160012606A1 (en) * | 2012-06-14 | 2016-01-14 | International Business Machines Corporation | Multi-cue object detection and analysis |
CN103578103A (en) * | 2013-09-24 | 2014-02-12 | 北京环境特性研究所 | Target quick-search method based on navigation attitude correction |
CN105303526A (en) * | 2015-09-17 | 2016-02-03 | 哈尔滨工业大学 | Ship target detection method based on coastline data and spectral analysis |
CN106127728A (en) * | 2016-06-07 | 2016-11-16 | 电子科技大学 | A kind of infrared image sea horizon connected domain detection method under sea and sky background |
CN108288268A (en) * | 2018-01-23 | 2018-07-17 | 华中科技大学 | Inshore ship detection method in high-resolution remote sensing image based on Projection Analysis |
Non-Patent Citations (3)
Title |
---|
XIHUANNIYA: "连通区域计算", 《CSDN》 * |
孙健: "红外序列图像中舰船检测与跟踪算法研究", 《中国科学院沈阳自动化研究所》 * |
孙健: "红外序列图像中舰船检测与跟踪算法研究", 《中国科学院自动化研究所》 * |
Cited By (8)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN112446918A (en) * | 2019-09-04 | 2021-03-05 | 三赢科技(深圳)有限公司 | Method and device for positioning target object in image, computer device and storage medium |
CN111222511A (en) * | 2020-04-13 | 2020-06-02 | 中山大学 | Infrared unmanned aerial vehicle target detection method and system |
CN111222511B (en) * | 2020-04-13 | 2020-07-24 | 中山大学 | A kind of infrared unmanned aerial vehicle target detection method and system |
CN112150480A (en) * | 2020-09-17 | 2020-12-29 | 哈尔滨工业大学(威海) | Background Segmentation Method Based on Sea-Line |
CN117115082A (en) * | 2023-07-12 | 2023-11-24 | 钛玛科(北京)工业科技有限公司 | Method and equipment for detecting overlap quality of tire |
CN117115082B (en) * | 2023-07-12 | 2024-04-05 | 钛玛科(北京)工业科技有限公司 | Method and equipment for detecting overlap quality of tire |
CN117557784A (en) * | 2024-01-09 | 2024-02-13 | 腾讯科技(深圳)有限公司 | Target detection method, target detection device, electronic equipment and storage medium |
CN117557784B (en) * | 2024-01-09 | 2024-04-26 | 腾讯科技(深圳)有限公司 | Target detection method, target detection device, electronic equipment and storage medium |
Also Published As
Publication number | Publication date |
---|---|
CN109961065B (en) | 2021-05-25 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN106651872B (en) | Pavement crack identification method and system based on Prewitt operator | |
CN109961065A (en) | A method for target detection of surface ships | |
CN107230202B (en) | Method and system for automatic identification of pavement disease images | |
CN101334836B (en) | License plate positioning method incorporating color, size and texture characteristic | |
CN108038883B (en) | Crack detection and identification method applied to highway pavement video image | |
CN109726717B (en) | A vehicle comprehensive information detection system | |
CN106557764B (en) | A kind of water level recognition methods based on binary-coded character water gauge and image procossing | |
CN111310558A (en) | An intelligent extraction method of pavement diseases based on deep learning and image processing | |
CN111027511B (en) | Remote sensing image ship detection method based on region of interest block extraction | |
CN105205488B (en) | Word area detection method based on Harris angle points and stroke width | |
CN108280450A (en) | A kind of express highway pavement detection method based on lane line | |
CN103927526A (en) | Vehicle detecting method based on Gauss difference multi-scale edge fusion | |
CN108171695A (en) | A kind of express highway pavement detection method based on image procossing | |
CN104063877B (en) | Hybrid judgment identification method for candidate lane lines | |
CN106446894A (en) | Method for recognizing position of spherical object based on contour | |
CN109376740A (en) | A kind of water gauge reading detection method based on video | |
CN104598907B (en) | Lteral data extracting method in a kind of image based on stroke width figure | |
CN110175556B (en) | Remote sensing image cloud detection method based on Sobel operator | |
CN107705301A (en) | A kind of highway graticule damage testing method based on unmanned plane highway map picture | |
CN108985305A (en) | A kind of positioning of laser-induced thermal etching industrial detonator coded image and bearing calibration | |
CN101846513B (en) | Sign image recognition and center coordinate extraction method | |
CN103279755A (en) | Vehicle bottom shadow characteristics-based rapid license plate positioning method | |
CN106651880A (en) | Method for detecting marine moving target of thermal infrared remote sensing image based on multi-feature fusion | |
CN107423735A (en) | It is a kind of to utilize horizontal gradient and the algorithm of locating license plate of vehicle of saturation degree | |
CN104463126A (en) | Automatic slant angle detecting method for scanned document image |
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 |