CN111986312A - A ship trajectory drawing method, terminal device and storage medium - Google Patents
A ship trajectory drawing method, terminal device and storage medium Download PDFInfo
- Publication number
- CN111986312A CN111986312A CN202010817894.9A CN202010817894A CN111986312A CN 111986312 A CN111986312 A CN 111986312A CN 202010817894 A CN202010817894 A CN 202010817894A CN 111986312 A CN111986312 A CN 111986312A
- Authority
- CN
- China
- Prior art keywords
- ship
- image
- pixel
- window
- coefficient
- 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
- 238000000034 method Methods 0.000 title claims abstract description 24
- 238000001914 filtration Methods 0.000 claims abstract description 18
- 238000004422 calculation algorithm Methods 0.000 claims abstract description 17
- 238000000605 extraction Methods 0.000 claims abstract description 5
- 238000004590 computer program Methods 0.000 claims description 20
- 238000004364 calculation method Methods 0.000 claims description 5
- 230000008447 perception Effects 0.000 claims description 2
- 238000012544 monitoring process Methods 0.000 abstract description 5
- 230000006870 function Effects 0.000 description 5
- 230000009466 transformation Effects 0.000 description 5
- 238000003384 imaging method Methods 0.000 description 4
- 230000003287 optical effect Effects 0.000 description 3
- 239000011159 matrix material Substances 0.000 description 2
- 230000008569 process Effects 0.000 description 2
- 238000012545 processing Methods 0.000 description 2
- 238000013519 translation Methods 0.000 description 2
- 230000006399 behavior Effects 0.000 description 1
- 230000009286 beneficial effect Effects 0.000 description 1
- 238000012937 correction Methods 0.000 description 1
- 230000009429 distress Effects 0.000 description 1
- 230000004044 response Effects 0.000 description 1
- 238000012795 verification Methods 0.000 description 1
Images
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06T—IMAGE DATA PROCESSING OR GENERATION, IN GENERAL
- G06T17/00—Three dimensional [3D] modelling, e.g. data description of 3D objects
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06T—IMAGE DATA PROCESSING OR GENERATION, IN GENERAL
- G06T5/00—Image enhancement or restoration
- G06T5/70—Denoising; Smoothing
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06T—IMAGE DATA PROCESSING OR GENERATION, IN GENERAL
- G06T7/00—Image analysis
- G06T7/70—Determining position or orientation of objects or cameras
- G06T7/73—Determining position or orientation of objects or cameras using feature-based methods
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06T—IMAGE DATA PROCESSING OR GENERATION, IN GENERAL
- G06T7/00—Image analysis
- G06T7/80—Analysis of captured images to determine intrinsic or extrinsic camera parameters, i.e. camera calibration
-
- 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/70—Arrangements for image or video recognition or understanding using pattern recognition or machine learning
- G06V10/74—Image or video pattern matching; Proximity measures in feature spaces
- G06V10/75—Organisation of the matching processes, e.g. simultaneous or sequential comparisons of image or video features; Coarse-fine approaches, e.g. multi-scale approaches; using context analysis; Selection of dictionaries
- G06V10/757—Matching configurations of points or features
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06T—IMAGE DATA PROCESSING OR GENERATION, IN GENERAL
- G06T2207/00—Indexing scheme for image analysis or image enhancement
- G06T2207/10—Image acquisition modality
- G06T2207/10016—Video; Image sequence
Landscapes
- Engineering & Computer Science (AREA)
- Physics & Mathematics (AREA)
- Theoretical Computer Science (AREA)
- General Physics & Mathematics (AREA)
- Computer Vision & Pattern Recognition (AREA)
- Software Systems (AREA)
- Computing Systems (AREA)
- General Health & Medical Sciences (AREA)
- Medical Informatics (AREA)
- Evolutionary Computation (AREA)
- Databases & Information Systems (AREA)
- Artificial Intelligence (AREA)
- Health & Medical Sciences (AREA)
- Multimedia (AREA)
- Computer Graphics (AREA)
- Geometry (AREA)
- Image Processing (AREA)
- Traffic Control Systems (AREA)
- Navigation (AREA)
Abstract
本发明涉及一种船舶轨迹绘制方法、终端设备及存储介质,该方法中包括:S1:通过摄像装置对已知坐标的物体进行拍摄;S2:根据拍摄的二维图像和物体的已知坐标对摄像装置进行标定;S3:通过标定后的摄像装置采集连续时间内的船舶图像,并通过非线性梯度域引导滤波算法对船舶图像进行滤波后,对每幅船舶图像中船舶特征均进行特征提取;S4:根据提取的船舶特征和摄像装置标定数据,将船舶特征在图像中的二维坐标转换为在世界坐标系中的三维坐标;S5:根据连续时间内每幅船舶图像中船舶特征对应的三维坐标在海图上进行显示并连线组成船舶轨迹。本发明实现了将监控船舶的经纬度在海图上进行显示。
The present invention relates to a ship trajectory drawing method, a terminal device and a storage medium. The method includes: S1: photographing an object with known coordinates through a camera; S2: pairing the two-dimensional image with the known coordinates of the object The camera device is calibrated; S3: the ship image in a continuous time is collected by the calibrated camera device, and after the ship image is filtered by the nonlinear gradient domain guided filtering algorithm, feature extraction is performed on the ship features in each ship image; S4: Convert the two-dimensional coordinates of the ship features in the image to the three-dimensional coordinates in the world coordinate system according to the extracted ship features and the calibration data of the camera device; S5: According to the three-dimensional coordinates corresponding to the ship features in each ship image in continuous time The coordinates are displayed on the chart and connected to form the ship's trajectory. The invention realizes the display of the longitude and latitude of the monitoring ship on the chart.
Description
技术领域technical field
本发明涉及轨迹绘制领域,尤其涉及一种船舶轨迹绘制方法、终端设备及存储介质。The invention relates to the field of trajectory drawing, in particular to a ship trajectory drawing method, a terminal device and a storage medium.
背景技术Background technique
为了增强电子海图的显示功能,现有技术将AIS信息叠加于电子海图上进行显示,有利于操作人员根据显示信息快速、准确地做出各种反应。然而,当前部分渔船的“AIS”设备及其船舶识别码使用不规范,“船码不符、一船多码、一码多船”等违法违规行为给渔船安全航行和遇险搜救带来了巨大风险隐患,已经成为时刻威胁渔民生命财产安全的“大难题”。In order to enhance the display function of the electronic chart, the existing technology superimposes the AIS information on the electronic chart for display, which is beneficial for the operator to make various responses quickly and accurately according to the displayed information. However, the use of "AIS" equipment and ship identification codes of some fishing boats is not standardized, and illegal behaviors such as "inconsistent vessel codes, multiple codes for one vessel, and multiple vessels for one code" have brought huge risks to the safe navigation of fishing vessels and search and rescue in distress. Hidden dangers have become a "big problem" that threatens the safety of fishermen's lives and property at all times.
发明内容SUMMARY OF THE INVENTION
为了能让未安装AIS的渔船、挖泥船等的航行轨迹,被航道周围的其他船舶所感知,以增加航行安全性,本发明提出了一种船舶轨迹绘制方法、终端设备及存储介质。In order to make the navigation trajectories of fishing boats, dredgers, etc. without AIS installed, be perceived by other ships around the channel to increase navigation safety, the present invention provides a ship trajectory drawing method, terminal equipment and storage medium.
具体方案如下:The specific plans are as follows:
一种船舶轨迹绘制方法,包括以下步骤:A method for drawing a ship trajectory, comprising the following steps:
S1:通过摄像装置对已知坐标的物体进行拍摄;S1: photographing objects with known coordinates through a camera;
S2:根据拍摄的二维图像和物体的已知坐标对摄像装置进行标定;S2: The camera is calibrated according to the captured two-dimensional image and the known coordinates of the object;
S3:通过标定后的摄像装置采集连续时间内的船舶图像,并通过非线性梯度域引导滤波算法对船舶图像进行滤波后,对每幅船舶图像中船舶特征均进行特征提取;S3: Collect ship images in continuous time through the calibrated camera device, and filter the ship images through the nonlinear gradient domain guided filtering algorithm, and then perform feature extraction on ship features in each ship image;
S4:根据提取的船舶特征和摄像装置标定数据,将船舶特征在图像中的二维坐标转换为在世界坐标系中的三维坐标;S4: According to the extracted ship features and camera device calibration data, convert the two-dimensional coordinates of the ship features in the image into three-dimensional coordinates in the world coordinate system;
S5:根据连续时间内每幅船舶图像中船舶特征对应的三维坐标在海图上进行显示并连线组成船舶轨迹。S5: Display on the chart according to the three-dimensional coordinates corresponding to the ship features in each ship image in a continuous time, and connect lines to form a ship trajectory.
进一步的,非线性梯度域引导滤波算法进行滤波包括以下步骤:Further, filtering by the nonlinear gradient domain guided filtering algorithm includes the following steps:
S31:初始化参数,所述参数包括窗口大小和正则化参数λ;S31: initialization parameters, the parameters include a window size and a regularization parameter λ;
S32:针对每个窗口,计算其对应的第一系数和第二系数:S32: For each window, calculate its corresponding first coefficient and second coefficient:
其中,α表示指数,wk表示以像素点k为中心的窗口,ak和bk表示以像素点k为中心的窗口对应的第一系数和第二系数,k表示像素点,γ表示区分边缘和光滑区域的参数,Γ表示边缘感知加权参数,Ii表示引导图像中的第i个像素点,pi表示第i个像素点对应的滤波输入,i表示像素点,|wk|表示窗口wk包含的像素个数;Among them, α represents the index, w k represents the window centered on the pixel point k, a k and b k represent the first and second coefficients corresponding to the window centered on the pixel point k, k represents the pixel point, and γ represents the distinction parameters of edges and smooth regions, Γ represents the edge-perceptual weighting parameter, I i represents the ith pixel in the guide image, pi represents the filter input corresponding to the ith pixel, i represents the pixel, and |w k | The number of pixels contained in the window w k ;
S33:针对每个像素点,计算其包含的所有窗口的第一系数系数的平均值和第二系数的平均值:S33: For each pixel point, calculate the average value of the first coefficient coefficients and the average value of the second coefficient coefficients of all the windows included in it:
其中,和分别表示第一系数和第二系数的平均值,|w|表示图像中包含的窗口的个数;in, and represent the average value of the first coefficient and the second coefficient, respectively, and |w| represents the number of windows included in the image;
S34:根据下式计算过滤后的图像的像素值:S34: Calculate the pixel value of the filtered image according to the following formula:
其中,qi表示过滤后的图像中第i个像素点的像素值。Among them, qi represents the pixel value of the ith pixel in the filtered image.
进一步的,边缘感知加权参数Γ的计算公式为:Further, the calculation formula of the edge perception weighting parameter Γ is:
其中,N表示图像的像素个数,χ(j)表示像素点j所在窗口的像素值的方差,j表示像素点,χ(j')表示像素点j'所在窗口的像素值的方差,像素点j'所在窗口的像素值为引导图片经过线性变换后的图像中的像素值,ε表示防止分母为0的正数。Among them, N represents the number of pixels in the image, χ(j) represents the variance of the pixel value of the window where the pixel point j is located, j represents the pixel point, χ(j') represents the variance of the pixel value of the window where the pixel point j' is located, pixel The pixel value of the window where the point j' is located is the pixel value of the linearly transformed image of the guide image, and ε represents a positive number that prevents the denominator from being 0.
进一步的,区分边缘和光滑区域的参数γ的计算公式为:Further, the calculation formula of the parameter γ that distinguishes the edge and the smooth region is:
其中,η为中间变量,μ表示所有χ(j)值的平均值。where η is an intermediate variable and μ represents the average of all χ(j) values.
一种船舶轨迹绘制终端设备,包括处理器、存储器以及存储在所述存储器中并可在所述处理器上运行的计算机程序,所述处理器执行所述计算机程序时实现本发明实施例上述的方法的步骤。A ship trajectory drawing terminal device, comprising a processor, a memory, and a computer program stored in the memory and running on the processor, and the processor implements the above-mentioned embodiments of the present invention when the processor executes the computer program. steps of the method.
一种计算机可读存储介质,所述计算机可读存储介质存储有计算机程序,所述计算机程序被处理器执行时实现本发明实施例上述的方法的步骤。A computer-readable storage medium, where the computer-readable storage medium stores a computer program, and when the computer program is executed by a processor, implements the steps of the foregoing method in the embodiment of the present invention.
本发明采用如上技术方案,实现了将监控船舶的经纬度在海图上进行显示,并且为了降低海雾对监控视频图像的影响,采用非线性梯度域引导滤波算法对图像进行滤波,提升图像的清晰度。The present invention adopts the above technical scheme to realize the display of the longitude and latitude of the monitoring ship on the chart, and in order to reduce the influence of sea fog on the monitoring video image, the non-linear gradient domain guided filtering algorithm is used to filter the image to improve the clarity of the image. Spend.
附图说明Description of drawings
图1所示为本发明实施例一的流程图。FIG. 1 is a flowchart of Embodiment 1 of the present invention.
具体实施方式Detailed ways
为进一步说明各实施例,本发明提供有附图。这些附图为本发明揭露内容的一部分,其主要用以说明实施例,并可配合说明书的相关描述来解释实施例的运作原理。配合参考这些内容,本领域普通技术人员应能理解其他可能的实施方式以及本发明的优点。To further illustrate the various embodiments, the present invention is provided with the accompanying drawings. These drawings are a part of the disclosure of the present invention, which are mainly used to illustrate the embodiments, and can be used in conjunction with the relevant description of the specification to explain the operation principles of the embodiments. With reference to these contents, one of ordinary skill in the art will understand other possible embodiments and advantages of the present invention.
现结合附图和具体实施方式对本发明进一步说明。The present invention will now be further described with reference to the accompanying drawings and specific embodiments.
实施例一:Example 1:
本发明实施例提供了一种船舶轨迹绘制方法,如图1所示,包括以下步骤。An embodiment of the present invention provides a method for drawing a ship trajectory, as shown in FIG. 1 , including the following steps.
S1:通过摄像装置对已知坐标的物体进行拍摄。S1: The object with known coordinates is photographed by the camera device.
该实施例中所述摄像装置为摄像机。已知坐标的物体可以是船舶,也可以是其他物体,在此不做限制。In this embodiment, the camera device is a camera. Objects with known coordinates can be ships or other objects, which are not limited here.
S2:根据拍摄的二维图像和物体的已知坐标对摄像装置进行标定。S2: The camera is calibrated according to the captured two-dimensional image and the known coordinates of the object.
摄像机的标定和校准是进行三维重建(3D Reconstruction)的基础。The calibration and calibration of the camera is the basis of 3D reconstruction.
与相机成像相关的基本坐标系包括像素坐标系、图像坐标系和世界坐标系。三维场景与摄像机所拍摄到的视频图像的二维成像平面之间的变换关系如下:The basic coordinate systems related to camera imaging include pixel coordinate system, image coordinate system and world coordinate system. The transformation relationship between the 3D scene and the 2D imaging plane of the video image captured by the camera is as follows:
式中,(Xw,Yw,Zw)为三维场景中的三维坐标,(x,y)为摄像机拍摄的图像的二维成像平面中的坐标,R为旋转矩阵,t为平移向量。ɑx、ɑy、u0和v0均为变换与摄像机内部参数,γ为径向畸变修正量。In the formula, (X w , Y w , Z w ) are the three-dimensional coordinates in the three-dimensional scene, (x, y) are the coordinates in the two-dimensional imaging plane of the image captured by the camera, R is the rotation matrix, and t is the translation vector. ɑ x , ɑ y , u 0 and v 0 are all transformation and camera internal parameters, and γ is the radial distortion correction amount.
将式(1)展开为:Expand formula (1) into:
考虑海面的特殊性,取Zw=0,式(2)可以简化为:Considering the particularity of the sea surface, taking Z w = 0, equation (2) can be simplified as:
计算机视觉技术通过相机获取空间中物体或者景物的二维信息,结合相机的内外参数,还原出空间物体的三维信息,包括物体的大小、位置、运动状态等。在整个过程中,需要先进行相机标定,即通过运算来求相机的各个参数,包括光学参数和几何参数。光学参数为相机的内参数,几何参数为相机的外参数,包括相机在空间中由于运动产生的旋转矩阵和平移矢量。Computer vision technology obtains the two-dimensional information of objects or scenes in space through the camera, and combines the internal and external parameters of the camera to restore the three-dimensional information of space objects, including the size, position, and motion state of the object. In the whole process, the camera calibration needs to be performed first, that is, the various parameters of the camera, including optical parameters and geometric parameters, are obtained through operations. The optical parameters are the internal parameters of the camera, and the geometric parameters are the external parameters of the camera, including the rotation matrix and translation vector generated by the motion of the camera in space.
S3:通过标定后的摄像装置采集连续时间内的船舶图像,并通过非线性梯度域引导滤波算法对船舶图像进行滤波后,对每幅船舶图像中船舶特征均进行特征提取。S3: Collect the ship images in a continuous time through the calibrated camera device, and filter the ship images through the nonlinear gradient domain guided filtering algorithm, and then perform feature extraction on the ship features in each ship image.
下面对非线性梯度域引导滤波算法进行详细说明。The nonlinear gradient domain guided filtering algorithm is described in detail below.
(1)梯度域引导滤波算法(1) Gradient Domain Guided Filtering Algorithm
在梯度域引导滤波算法中,滤波后的图像q被假定为引导图像I在窗口Ω中的线性变换:In the gradient domain guided filtering algorithm, the filtered image q is assumed to be a linear transformation of the guided image I in the window Ω:
q=aI+b (4)q=aI+b (4)
其中,a和b分别表示两个系数。where a and b represent two coefficients, respectively.
成本函数定义为:The cost function is defined as:
其中,X表示待过滤图像,j表示图像中的像素点,λ表示正则化参数,Γ表示边缘感知加权参数,定义为:Among them, X represents the image to be filtered, j represents the pixel in the image, λ represents the regularization parameter, and Γ represents the edge-aware weighting parameter, which is defined as:
其中,N表示图像像素数,χ(j)表示像素点j所在窗口的像素值的方差,j表示像素点,χ(j')表示像素点j'所在窗口的像素值的方差,像素点j'所在窗口的像素值为引导图片经过线性变换后的图像中的像素值,ε表示防止分母为0的正数。Among them, N represents the number of image pixels, χ(j) represents the variance of the pixel value of the window where the pixel point j is located, j represents the pixel point, χ(j') represents the variance of the pixel value of the window where the pixel point j' is located, and the pixel point j 'The pixel value of the window is the pixel value in the linearly transformed image of the guide image, and ε represents a positive number that prevents the denominator from being 0.
γ表示区分边缘和光滑区域的系数,定义为:γ represents the coefficient to distinguish between edges and smooth regions, and is defined as:
其中,μ表示所有χ(j)值的平均值,中间变量η的计算公式为:Among them, μ represents the average value of all χ(j) values, and the calculation formula of the intermediate variable η is:
(2)非线性梯度域引导滤波算法(2) Nonlinear gradient domain guided filtering algorithm
假设滤波图像q是引导图像I的非线性变换:Suppose the filtered image q is a nonlinear transformation of the guide image I:
q=aIα+b (9)q=aI α +b (9)
其中,α表示指数,a和b分别表示第一系数和第二系数。where α represents the exponent, and a and b represent the first and second coefficients, respectively.
为了避免梯度反转,设置了以下限制条件:To avoid gradient reversal, the following constraints are set:
1≤α≤2 (10)1≤α≤2 (10)
当α=1时,为传统梯度引导滤波算法,即方程(9)退化为方程(4)。因此,传统的梯度域引导滤波算法是该实施例中提出的非线性梯度域引导滤波算法的一个特例。When α=1, it is the traditional gradient-guided filtering algorithm, that is, equation (9) degenerates into equation (4). Therefore, the traditional gradient domain guided filtering algorithm is a special case of the nonlinear gradient domain guided filtering algorithm proposed in this embodiment.
定理1:a和b的最佳值计算如下:Theorem 1: The optimal values of a and b are calculated as follows:
其中,wk表示以像素点k为中心的窗口,ak和bk表示以像素点k为中心的窗口对应的第一系数和第二系数,k表示像素点,Ii表示引导图像中的第i个像素点,pi表示第i个像素点对应的滤波输入,i表示像素点,|wk|表示窗口wk包含的像素个数。where w k represents the window centered on pixel k, a k and b k represent the first and second coefficients corresponding to the window centered on pixel k, k represents the pixel, and I i represents the The ith pixel, pi represents the filter input corresponding to the ith pixel, i represents the pixel, and |w k | represents the number of pixels contained in the window w k .
证明:噪声定义为Proof: Noise is defined as
n=q-p (13)n=q-p (13)
将(11)代入(13)得到:Substitute (11) into (13) to get:
n=aIα+b-p (14)n= aIα +bp (14)
最终目标是尽量减少这种噪音。因此,成本函数可以写成:The ultimate goal is to minimize this noise. Therefore, the cost function can be written as:
求网络参数的偏导数可以得到:The partial derivatives of the network parameters can be obtained:
因此以下结果成立:So the following results hold:
将(19)代入(18)可得:Substitute (19) into (18) to get:
由式(20)可得:From formula (20), we can get:
这样,完成了对定理1的证明。将上述模型应用于整个图像过滤窗口。但是每个像素都包含在多个窗口中。例如,如果使用3*3窗口过滤器,则除边缘区域外的所有点都将包含在九个窗口中。因此,我们将得到|wk|=9个qi值。设定:In this way, the proof of Theorem 1 is completed. Apply the above model to the entire image filtering window. But each pixel is contained in multiple windows. For example, if a 3*3 window filter is used, all points except edge regions will be contained in nine windows. Therefore, we will get | w k |=9 qi values. set up:
其中,和分别表示第一系数和第二系数的平均值,|w|表示图像中包含的窗口的个数。in, and represent the average value of the first coefficient and the second coefficient, respectively, and |w| represents the number of windows included in the image.
将所有qi值取平均值,得到最终结果。Take the average of all qi values to get the final result.
其中,qi表示过滤后的图像中第i个像素点的像素值。Among them, qi represents the pixel value of the ith pixel in the filtered image.
所述特征主要包括特征点、特征线和区域。大多数情况下都是以特征点为匹配基元,特征点提取算法采用常用的算法即可,如基于方向导数的方法,基于图像亮度对比关系的方法,基于数学形态学的方法等等。The features mainly include feature points, feature lines and regions. In most cases, feature points are used as matching primitives, and the feature point extraction algorithm can use commonly used algorithms, such as the method based on directional derivatives, the method based on image brightness contrast relationship, the method based on mathematical morphology and so on.
S4:根据提取的船舶特征和摄像装置标定数据,将船舶特征在图像中的二维坐标转换为在世界坐标系中的三维坐标。S4: Convert the two-dimensional coordinates of the ship features in the image into three-dimensional coordinates in the world coordinate system according to the extracted ship features and the camera device calibration data.
即求出每幅船舶图像中船舶特征对应于世界坐标系中的坐标(Xw,Yw,Zw)。That is to find the coordinates (X w , Y w , Z w ) of the ship features in each ship image corresponding to the world coordinate system.
S6:根据连续时间内每幅船舶图像中船舶特征对应的三维坐标在海图上进行显示并连线组成船舶轨迹。S6: Display on the chart according to the three-dimensional coordinates corresponding to the ship features in each ship image in a continuous time, and connect lines to form a ship trajectory.
该实施例中,考虑到海面的特殊性,取Zw=0,将船舶特征于世界坐标系中的坐标中的(Xw,Yw)在海图上显示。In this embodiment, considering the particularity of the sea surface, Z w =0 is taken, and (X w , Y w ) in the coordinates in the world coordinate system characterized by the ship is displayed on the chart.
实验验证:Experimental verification:
以厦门市海沧大桥为例,航标坐标如表1所示:Taking the Haicang Bridge in Xiamen as an example, the coordinates of the beacon are shown in Table 1:
表1Table 1
代入式(2)可得:Substitute into formula (2) to get:
解得:Solutions have to:
因此,三维场景与摄像机所拍摄到的图像的二维成像平面之间的变换关系为:Therefore, the transformation relationship between the 3D scene and the 2D imaging plane of the image captured by the camera is:
通过浮标上的监控视频,船舶在图像的轨迹位置分别为(1220,500),(1250,510),(1280,520)。求得经纬度如表2所示:Through the surveillance video on the buoy, the trajectory positions of the ship in the image are (1220, 500), (1250, 510), (1280, 520) respectively. The latitude and longitude are obtained as shown in Table 2:
表2Table 2
本发明实施例一将监控船舶的经纬度在海图上进行显示,并且为了降低海雾对监控视频图像的影响,采用非线性梯度域引导滤波算法对图像进行滤波,提升图像的清晰度。The first embodiment of the present invention displays the longitude and latitude of the monitoring ship on the chart, and in order to reduce the influence of sea fog on the monitoring video image, a nonlinear gradient domain guided filtering algorithm is used to filter the image to improve the clarity of the image.
实施例二:Embodiment 2:
本发明还提供一种船舶轨迹绘制终端设备,包括存储器、处理器以及存储在所述存储器中并可在所述处理器上运行的计算机程序,所述处理器执行所述计算机程序时实现本发明实施例一的上述方法实施例中的步骤。The present invention also provides a terminal device for drawing ship trajectory, comprising a memory, a processor, and a computer program stored in the memory and running on the processor, and the processor implements the present invention when the processor executes the computer program Steps in the above method embodiment of Embodiment 1.
进一步地,作为一个可执行方案,所述船舶轨迹绘制终端设备可以是桌上型计算机、笔记本、掌上电脑及云端服务器等计算设备。所述船舶轨迹绘制终端设备可包括,但不仅限于,处理器、存储器。本领域技术人员可以理解,上述船舶轨迹绘制终端设备的组成结构仅仅是船舶轨迹绘制终端设备的示例,并不构成对船舶轨迹绘制终端设备的限定,可以包括比上述更多或更少的部件,或者组合某些部件,或者不同的部件,例如所述船舶轨迹绘制终端设备还可以包括输入输出设备、网络接入设备、总线等,本发明实施例对此不做限定。Further, as an executable solution, the ship trajectory drawing terminal device may be a computing device such as a desktop computer, a notebook, a palmtop computer, and a cloud server. The ship trajectory drawing terminal device may include, but is not limited to, a processor and a memory. Those skilled in the art can understand that the composition structure of the above-mentioned ship trajectory drawing terminal equipment is only an example of the ship trajectory drawing terminal equipment, and does not constitute a limitation on the ship trajectory drawing terminal equipment, and may include more or less components than the above, Or combine some components, or different components, for example, the ship trajectory drawing terminal device may further include an input and output device, a network access device, a bus, etc., which is not limited in this embodiment of the present invention.
进一步地,作为一个可执行方案,所称处理器可以是中央处理单元(CentralProcessing Unit,CPU),还可以是其他通用处理器、数字信号处理器(Digital SignalProcessor,DSP)、专用集成电路(Application Specific Integrated Circuit,ASIC)、现场可编程门阵列(Field-Programmable Gate Array,FPGA)或者其他可编程逻辑器件、分立门或者晶体管逻辑器件、分立硬件组件等。通用处理器可以是微处理器或者该处理器也可以是任何常规的处理器等,所述处理器是所述船舶轨迹绘制终端设备的控制中心,利用各种接口和线路连接整个船舶轨迹绘制终端设备的各个部分。Further, as an executable solution, the so-called processor may be a central processing unit (Central Processing Unit, CPU), and may also be other general-purpose processors, digital signal processors (Digital Signal Processors, DSP), application specific integrated circuits (Application Specific Integrated Circuits) Integrated Circuit, ASIC), Field-Programmable Gate Array (Field-Programmable Gate Array, FPGA) or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components, etc. The general-purpose processor can be a microprocessor or the processor can also be any conventional processor, etc. The processor is the control center of the ship trajectory drawing terminal device, and uses various interfaces and lines to connect the entire ship trajectory drawing terminal. parts of the device.
所述存储器可用于存储所述计算机程序和/或模块,所述处理器通过运行或执行存储在所述存储器内的计算机程序和/或模块,以及调用存储在存储器内的数据,实现所述船舶轨迹绘制终端设备的各种功能。所述存储器可主要包括存储程序区和存储数据区,其中,存储程序区可存储操作系统、至少一个功能所需的应用程序;存储数据区可存储根据手机的使用所创建的数据等。此外,存储器可以包括高速随机存取存储器,还可以包括非易失性存储器,例如硬盘、内存、插接式硬盘,智能存储卡(Smart Media Card,SMC),安全数字(Secure Digital,SD)卡,闪存卡(Flash Card)、至少一个磁盘存储器件、闪存器件、或其他易失性固态存储器件。The memory can be used to store the computer program and/or module, and the processor implements the ship by running or executing the computer program and/or module stored in the memory and calling the data stored in the memory. Traces draw various functions of the terminal device. The memory may mainly include a storage program area and a storage data area, wherein the storage program area may store an operating system and an application program required for at least one function; the storage data area may store data created according to the use of the mobile phone, and the like. In addition, the memory may include high-speed random access memory, and may also include non-volatile memory such as hard disk, internal memory, plug-in hard disk, Smart Media Card (SMC), Secure Digital (SD) card , a flash memory card (Flash Card), at least one magnetic disk storage device, flash memory device, or other volatile solid-state storage device.
本发明还提供一种计算机可读存储介质,所述计算机可读存储介质存储有计算机程序,所述计算机程序被处理器执行时实现本发明实施例上述方法的步骤。The present invention further provides a computer-readable storage medium, where a computer program is stored in the computer-readable storage medium, and when the computer program is executed by a processor, the steps of the foregoing method in the embodiment of the present invention are implemented.
所述船舶轨迹绘制终端设备集成的模块/单元如果以软件功能单元的形式实现并作为独立的产品销售或使用时,可以存储在一个计算机可读取存储介质中。基于这样的理解,本发明实现上述实施例方法中的全部或部分流程,也可以通过计算机程序来指令相关的硬件来完成,所述的计算机程序可存储于一计算机可读存储介质中,该计算机程序在被处理器执行时,可实现上述各个方法实施例的步骤。其中,所述计算机程序包括计算机程序代码,所述计算机程序代码可以为源代码形式、对象代码形式、可执行文件或某些中间形式等。所述计算机可读介质可以包括:能够携带所述计算机程序代码的任何实体或装置、记录介质、U盘、移动硬盘、磁碟、光盘、计算机存储器、只读存储器(ROM,ROM,Read-OnlyMemory)、随机存取存储器(RAM,Random Access Memory)以及软件分发介质等。If the modules/units integrated in the ship trajectory drawing terminal device are implemented in the form of software functional units and sold or used as independent products, they may be stored in a computer-readable storage medium. Based on this understanding, the present invention can implement all or part of the processes in the methods of the above embodiments, and can also be completed by instructing relevant hardware through a computer program, and the computer program can be stored in a computer-readable storage medium. When the program is executed by the processor, the steps of the foregoing method embodiments can be implemented. Wherein, the computer program includes computer program code, and the computer program code may be in the form of source code, object code, executable file or some intermediate form, and the like. The computer-readable medium may include: any entity or device capable of carrying the computer program code, a recording medium, a U disk, a removable hard disk, a magnetic disk, an optical disk, a computer memory, a read-only memory (ROM, ROM, Read-Only Memory) ), random access memory (RAM, Random Access Memory), and software distribution media.
尽管结合优选实施方案具体展示和介绍了本发明,但所属领域的技术人员应该明白,在不脱离所附权利要求书所限定的本发明的精神和范围内,在形式上和细节上可以对本发明做出各种变化,均为本发明的保护范围。Although the present invention has been particularly shown and described in connection with preferred embodiments, it will be understood by those skilled in the art that changes in form and detail may be made to the present invention without departing from the spirit and scope of the invention as defined by the appended claims. Various changes are made within the protection scope of the present invention.
Claims (6)
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202010817894.9A CN111986312B (en) | 2020-08-14 | 2020-08-14 | A ship trajectory drawing method, terminal device and storage medium |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202010817894.9A CN111986312B (en) | 2020-08-14 | 2020-08-14 | A ship trajectory drawing method, terminal device and storage medium |
Publications (2)
Publication Number | Publication Date |
---|---|
CN111986312A true CN111986312A (en) | 2020-11-24 |
CN111986312B CN111986312B (en) | 2022-04-22 |
Family
ID=73434453
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN202010817894.9A Expired - Fee Related CN111986312B (en) | 2020-08-14 | 2020-08-14 | A ship trajectory drawing method, terminal device and storage medium |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN111986312B (en) |
Cited By (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN112907728A (en) * | 2021-01-27 | 2021-06-04 | 北京邮电大学 | Ship scene restoration and positioning method and system based on camera and edge calculation |
Citations (9)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN103996049A (en) * | 2014-05-05 | 2014-08-20 | 南京大学 | Ship overlength and overwidth detection method based on video image |
US20140369600A1 (en) * | 2013-06-17 | 2014-12-18 | Fujitsu Limited, | Filtering method and apparatus for recovering an anti-aliasing edge |
US20150063628A1 (en) * | 2013-09-04 | 2015-03-05 | Xerox Corporation | Robust and computationally efficient video-based object tracking in regularized motion environments |
CN106871900A (en) * | 2017-01-23 | 2017-06-20 | 中国人民解放军海军工程大学 | Image matching positioning method in ship magnetic field dynamic detection |
CN109188909A (en) * | 2018-09-26 | 2019-01-11 | 大连海事大学 | Self-adaptive fuzzy optimal control method and system for ship course nonlinear discrete system |
US20190066334A1 (en) * | 2017-08-25 | 2019-02-28 | Boe Technology Group Co., Ltd. | Method, apparatus, terminal and system for measuring trajectory tracking accuracy of target |
US20190333189A1 (en) * | 2018-04-27 | 2019-10-31 | Imam Abdulrahman Bin Faisal University | Gradient vector orientation based nonlinear diffusion filter |
CN110472607A (en) * | 2019-08-21 | 2019-11-19 | 上海海事大学 | A kind of ship tracking method and system |
CN111027459A (en) * | 2019-12-06 | 2020-04-17 | 江苏海事职业技术学院 | Ship track prediction method and system |
-
2020
- 2020-08-14 CN CN202010817894.9A patent/CN111986312B/en not_active Expired - Fee Related
Patent Citations (9)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20140369600A1 (en) * | 2013-06-17 | 2014-12-18 | Fujitsu Limited, | Filtering method and apparatus for recovering an anti-aliasing edge |
US20150063628A1 (en) * | 2013-09-04 | 2015-03-05 | Xerox Corporation | Robust and computationally efficient video-based object tracking in regularized motion environments |
CN103996049A (en) * | 2014-05-05 | 2014-08-20 | 南京大学 | Ship overlength and overwidth detection method based on video image |
CN106871900A (en) * | 2017-01-23 | 2017-06-20 | 中国人民解放军海军工程大学 | Image matching positioning method in ship magnetic field dynamic detection |
US20190066334A1 (en) * | 2017-08-25 | 2019-02-28 | Boe Technology Group Co., Ltd. | Method, apparatus, terminal and system for measuring trajectory tracking accuracy of target |
US20190333189A1 (en) * | 2018-04-27 | 2019-10-31 | Imam Abdulrahman Bin Faisal University | Gradient vector orientation based nonlinear diffusion filter |
CN109188909A (en) * | 2018-09-26 | 2019-01-11 | 大连海事大学 | Self-adaptive fuzzy optimal control method and system for ship course nonlinear discrete system |
CN110472607A (en) * | 2019-08-21 | 2019-11-19 | 上海海事大学 | A kind of ship tracking method and system |
CN111027459A (en) * | 2019-12-06 | 2020-04-17 | 江苏海事职业技术学院 | Ship track prediction method and system |
Non-Patent Citations (8)
Title |
---|
FEI KOU等: "Gradient Domain Guided Image Filtering", 《IEEE TRANSACTIONS ON IMAGE PROCESSING》 * |
刘伊凡等: "实船数据环境下船舶主柴油机性能评估方法", 《内燃机学报》 * |
姜佰辰等: "基于多项式卡尔曼滤波的船舶轨迹预测算法", 《信号处理》 * |
姜佰辰等: "海上交通的船舶异常行为挖掘识别分析", 《计算机仿真》 * |
权波等: "基于LSTM的船舶航迹预测模型", 《计算机科学》 * |
茅晨昊等: "基于高斯过程回归的船舶航行轨迹预测", 《科技创新与应用》 * |
邹雄等: "面向自主靠泊的船舶航迹估计方法", 《中国航海》 * |
郭冬冬等: "基于大型船舶实船观测的开敞海域浅滩深挖槽", 《中国港湾建设》 * |
Cited By (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN112907728A (en) * | 2021-01-27 | 2021-06-04 | 北京邮电大学 | Ship scene restoration and positioning method and system based on camera and edge calculation |
Also Published As
Publication number | Publication date |
---|---|
CN111986312B (en) | 2022-04-22 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
US11443445B2 (en) | Method and apparatus for depth estimation of monocular image, and storage medium | |
US8873835B2 (en) | Methods and apparatus for correcting disparity maps using statistical analysis on local neighborhoods | |
Negru et al. | Exponential contrast restoration in fog conditions for driving assistance | |
CN111340077B (en) | Attention mechanism-based disparity map acquisition method and device | |
CN107844750A (en) | A kind of water surface panoramic picture target detection recognition methods | |
CN111368717B (en) | Line-of-sight determination method, line-of-sight determination device, electronic apparatus, and computer-readable storage medium | |
CN104036479B (en) | Multi-focus image fusion method based on non-negative matrix factorization | |
US20130129213A1 (en) | Non-Rigid Dense Correspondence | |
CN108765343A (en) | Method, apparatus, terminal and the computer readable storage medium of image procossing | |
CN112215773B (en) | Local motion deblurring method, device and storage medium based on visual saliency | |
CN105913390B (en) | Image defogging method and system | |
CN104574358B (en) | From the method and apparatus for focusing heap image progress scene cut | |
Lo et al. | Joint trilateral filtering for depth map super-resolution | |
Bastanlar et al. | Multi-view structure-from-motion for hybrid camera scenarios | |
CN109410246B (en) | Visual tracking method and device based on correlation filtering | |
CN108234826B (en) | Image processing method and device | |
CN113570725A (en) | Three-dimensional surface reconstruction method and device based on clustering, server and storage medium | |
Liu et al. | Single color image dehazing based on digital total variation filter with color transfer | |
CN111986312B (en) | A ship trajectory drawing method, terminal device and storage medium | |
CN114004839B (en) | Image segmentation method, device, computer equipment and storage medium for panoramic images | |
CN107945119B (en) | Intra-image correlation noise estimation method based on Bayer pattern | |
CN112884817B (en) | Dense optical flow calculation method, device, electronic device and storage medium | |
CN115330825B (en) | Method, device and readable storage medium for edge detection of catadioptric image | |
CN116051548B (en) | Positioning method and device | |
CN117579944A (en) | Overexposed image processing method and system based on saturation correction and detail enhancement |
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 | ||
CF01 | Termination of patent right due to non-payment of annual fee |
Granted publication date: 20220422 |
|
CF01 | Termination of patent right due to non-payment of annual fee |