A visual guidance control method and system for unmanned boat berthing based on benchmark markers

The vision system of the unmanned boat detects the reference mark light box, combines geometric imaging and attitude estimation, and uses the integral line of sight angle guidance method to perform autonomous berthing control of the unmanned boat, which solves the problem of berthing deviation of unmanned boats in the existing technology. Improved berthing accuracy and safety.

CN117806328BActive Publication Date: 2024-09-17HUAZHONG UNIV OF SCI & TECH
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202311862437.1
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2023-12-28
Publication Date
2024-09-17
Estimated Expiration
2043-12-28

AI Technical Summary

Technical Problem

There are deviations in the autonomous berthing process of unmanned surface vehicles, which affects berthing safety. Existing technologies such as electronic compasses, inertial navigation systems and GNSS have problems with magnetic field interference, drift and insufficient accuracy.

Method used

The visual guidance and control method of unmanned boat berthing based on fiducial marks is adopted. The video image of the fiducial mark light box is collected through the on-board camera of the unmanned boat, and target detection, identification and decoding are performed. The geometric imaging principle and attitude estimation method are combined to accurately calculate the pose. , using the integral line of sight angle guidance method for visual guidance control until the unmanned boat berthing is completed.

Benefits of technology

It improves the accuracy and safety of autonomous berthing of unmanned boats, compensates for the drift angle phenomenon through visual guidance control, and enhances the stability and success rate of berthing.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN117806328B
    Figure CN117806328B
Patent Text Reader

Abstract

The present invention provides a method and system for visual guidance control of berthing of an unmanned boat based on reference marks, the method comprising: collecting a video image of a current video frame through a camera carried by the unmanned boat, performing target detection and recognition on a mark light box in the video image, decoding the reference mark of the mark light box, and obtaining a rough posture of the unmanned boat relative to a docking station; performing posture precise calculation on the rough posture through a geometric imaging principle and a posture estimation method, and obtaining a relative posture between the unmanned boat and the docking station, wherein the relative posture includes a distance, a heading angle, and a two-dimensional coordinate; performing visual guidance control on the unmanned boat through an integrated line of sight angle guidance method based on the distance, the heading angle, and the two-dimensional coordinate; updating the current video frame to obtain an updated image, and performing visual guidance control on the unmanned boat based on the updated image until the berthing of the unmanned boat is completed. The present invention can improve the accuracy of autonomous berthing of the unmanned boat, and thus improve the safety of berthing.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention belongs to the technical field of unmanned boat control, and more specifically, relates to a visual guidance control method and system for unmanned boat berthing based on reference marks. Background Art

[0002] As a miniaturized marine robot, unmanned surface vessels can replace humans to complete repetitive and dangerous tasks on the water. They are important means of transport for caring for, understanding and managing the ocean. Due to their low cost and high safety, unmanned surface vessels have been widely used in various fields of water activities, such as marine environmental monitoring, traffic safety supervision, maritime rescue, marine resource detection, marine archaeology, etc. Unmanned surface vessels will change the existing marine long-distance transportation and marine mission operation mode.

[0003] Autonomous berthing of unmanned surface vessels means that after completing the navigation mission, the unmanned surface vessel obtains the heading signal in a certain way and adopts a certain control method to achieve autonomous berthing of the unmanned surface vessel and the dock. In terms of obtaining the heading signal, it is mostly obtained through an electronic compass and an inertial navigation system. With the development of marine equipment, the emergence of the GNSS system makes path tracking, dynamic positioning and automatic berthing possible. However, the above systems all have some shortcomings. For example, the electronic compass is easily disturbed by the magnetic field, the inertial navigation system has drift, and the GNSS has insufficient accuracy and cannot provide accurate positioning, which makes the autonomous berthing of the unmanned surface vessel have certain deviations and affects the berthing safety.

[0004] Therefore, how to improve the accuracy of autonomous berthing of unmanned boats and improve the safety of berthing is a technical problem that needs to be solved urgently. Summary of the invention

[0005] In view of the defects of the prior art, the purpose of the present invention is to propose a visual guidance control method for autonomous berthing of an unmanned boat, aiming to solve the problem that the current autonomous berthing of unmanned surface boats has certain deviations, affecting the berthing safety.

[0006] To achieve the above-mentioned purpose, the present invention provides a visual guidance control method and system for berthing of an unmanned boat based on reference marks.

[0007] In a first aspect, the present invention provides a visual guidance control method for berthing an unmanned boat based on a reference mark, comprising:

[0008] The video image of the current video frame of the reference mark light box is collected by the onboard camera of the unmanned boat, the target detection and recognition is performed on the mark light box in the video image, and the reference mark of the mark light box is decoded to obtain a rough position of the unmanned boat relative to the docking station; wherein the reference mark light box is installed at the center of the docking station, and the reference mark is installed on the reference mark light box;

[0009] The rough posture is precisely calculated by using the geometric imaging principle and the posture estimation method to obtain the relative posture between the unmanned boat and the docking station, wherein the relative posture includes the distance, the heading angle and the two-dimensional coordinates;

[0010] The distance, heading angle and two-dimensional coordinates are used to perform visual guidance control on the unmanned boat through an integrated sight angle guidance method to determine a first control direction of the unmanned boat in a current video frame;

[0011] The current video frame is updated to obtain an updated image, and a first control direction of the unmanned boat is visually guided and controlled based on the updated image to determine a second control direction of the unmanned boat until the unmanned boat completes berthing.

[0012] In some embodiments, the rough posture is accurately calculated by using the geometric imaging principle and the posture estimation method to obtain the relative posture between the unmanned boat and the docking station, including:

[0013] Performing target detection and recognition on the marked light box in the video image based on an image processing flow algorithm to obtain image coordinates of corner points;

[0014] Determine a first coordinate of the marking light box in a world coordinate system based on the size and placement position of the marking light box;

[0015] The camera of the unmanned boat is calibrated by the Zhang Zhengyou calibration method to obtain a camera intrinsic parameter matrix;

[0016] The relative position and posture between the unmanned boat and the docking station is determined based on the image coordinates of the corner points, the first coordinates and the camera internal parameter matrix through a posture estimation method.

[0017] In some embodiments, determining the relative posture between the unmanned boat and the docking station based on the image coordinates of the corner point, the first coordinates, and the camera intrinsic parameter matrix by a posture estimation method includes:

[0018] The target pose is used to obtain a first estimated pose of the unmanned boat and the docking station based on a direct linear transformation algorithm, and the target pose is used to obtain a second estimated pose of the unmanned boat and the docking station based on an effective view-n point algorithm;

[0019] The first estimated posture and the second estimated posture are data-fused to obtain a relative posture between the unmanned boat and the docking station, and the distance, heading angle and two-dimensional coordinates between the unmanned boat and the docking station are determined based on the relative posture.

[0020] In some embodiments, it also includes:

[0021] Performing limiting filtering on the relative posture to obtain a limiting filtering sampling value, and performing first-order low-pass filtering on the relative posture to obtain a first-order low-pass filtering sampling value;

[0022] The determining of the distance, heading angle and two-dimensional coordinates between the unmanned boat and the docking station based on the relative position and posture includes:

[0023] The distance, heading angle and two-dimensional coordinates are determined based on the first-order low-pass filtered sampling values.

[0024] In some embodiments, the method of visually guiding and controlling the unmanned boat by using the distance, heading angle and two-dimensional coordinates through an integrated line of sight angle guidance method includes:

[0025] Determine the lateral offset of the unmanned boat based on the abscissa and ordinate of the two-dimensional coordinate;

[0026] Determine a longitudinal offset based on the distance and the lateral offset, determine a los vector angle based on the lateral offset and the longitudinal offset,

[0027] Integrating and compensating the lateral offset caused by the drift angle of the unmanned boat to obtain a compensated offset;

[0028] Determine a heading error based on the heading angle, the compensation offset and the los vector angle;

[0029] The unmanned boat is visually guided and controlled based on the compensation offset and the heading error.

[0030] In some embodiments, performing limiting filtering on the relative posture to obtain limiting filtering sampling values, and performing first-order low-pass filtering on the relative posture to obtain first-order low-pass filtering sampling values, include:

[0031] Determine the maximum deviation between the current sampling value and the previous sampling value, and obtain the deviation comparison result between the current sampling value and the previous sampling value;

[0032] Under the condition of the deviation comparison result, based on the maximum deviation value, the current sampling value and the previous sampling value, limit filtering jump suppression is performed to obtain the limit filtering sampling value;

[0033] The first-order low-pass filter sampling value is determined based on the set weighting coefficient, the current sampling value and the previous sampling value.

[0034] In some embodiments, the installation process of the fiducial marker light box includes:

[0035] Construct a cube light box model;

[0036] Selecting a first reference mark, a second reference mark and a third reference mark, and adding the first reference mark, the second reference mark and the third reference mark to the advertising cloth on the front side, the left side and the right side of the cubic light box model respectively, to obtain a light box with reference marks completed;

[0037] The fiducial marker light box is mounted in the center of the docking station.

[0038] In a second aspect, the present invention further provides a visual guidance control system for berthing an unmanned boat based on a reference mark, comprising:

[0039] A rough processing module is used to collect a video image of a current video frame of a reference mark light box through a camera on the unmanned boat, perform target detection and recognition on the mark light box in the video image, decode the reference mark of the mark light box, and obtain a rough position and posture of the unmanned boat relative to the docking station; wherein the reference mark light box is installed at the center of the docking station, and a reference mark is installed on the reference mark light box;

[0040] A fine processing module is used to perform a fine posture calculation on the rough posture by using the geometric imaging principle and the posture estimation method to obtain the distance, heading angle and two-dimensional coordinates between the unmanned boat and the docking station;

[0041] A guidance control module, used for visually guiding and controlling the unmanned boat by using the distance, heading angle and two-dimensional coordinates through an integrated sight angle guidance method, and determining a first control direction of the unmanned boat in a current video frame;

[0042] An updating module is used to update the current video frame to obtain an updated image, perform visual guidance control on the first control direction of the unmanned boat based on the updated image, and determine the second control direction of the unmanned boat until the unmanned boat completes berthing.

[0043] In a third aspect, the present invention provides an electronic device comprising: at least one memory for storing programs; and at least one processor for executing the programs stored in the memory, wherein when the programs stored in the memory are executed, the processor is used to execute the method described in the first aspect or any possible implementation of the first aspect.

[0044] In a fourth aspect, the present invention provides a computer-readable storage medium storing a computer program. When the computer program runs on a processor, the processor executes the method described in the first aspect or any possible implementation of the first aspect.

[0045] In a fifth aspect, the present invention provides a computer program product. When the computer program product runs on a processor, the processor executes the method described in the first aspect or any possible implementation of the first aspect.

[0046] It can be understood that the beneficial effects of the second to fifth aspects mentioned above can be found in the relevant description of the first aspect mentioned above, and will not be repeated here.

[0047] In general, the above technical solution conceived by the present invention has the following beneficial effects compared with the prior art:

[0048] The present invention provides a visual guidance control method and system for unmanned boat berthing based on benchmark marks. A docking station benchmark mark light box is designed, and visual detection and target tracking are performed on the benchmark mark light box to solve the relative posture between the benchmark mark light box and the unmanned boat, and the relative posture required for the unmanned boat to achieve autonomous berthing is inferred. According to the relative posture, an integrated line of sight angle guidance strategy is adopted to compensate for the influence of the drift angle on the autonomous berthing process, improve the accuracy of berthing, and thus improve the safety of the unmanned boat berthing. BRIEF DESCRIPTION OF THE DRAWINGS

[0049] Figure 1 It is a flow chart of a method for visual guidance control of berthing of an unmanned boat based on a benchmark provided by an embodiment of the present invention;

[0050] Figure 2 is a schematic diagram of the installation of the reference mark of the reference mark light box in the embodiment of the present invention;

[0051] Figure 3 is a plan view of the parameters to be solved provided by an embodiment of the present invention;

[0052] Figure 4 is a schematic diagram of a process of installing a reference mark of a reference mark light box according to an embodiment of the present invention;

[0053] Figure 5 It is a structural schematic diagram of a visual guidance control system for berthing an unmanned boat based on a reference mark provided by an embodiment of the present invention. DETAILED DESCRIPTION

[0054] In order to make the purpose, technical solution and advantages of the present invention more clearly understood, the present invention is further described in detail below in conjunction with the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are only used to explain the present invention and are not used to limit the present invention.

[0055] The term "and / or" in this article is a description of the association relationship of associated objects, indicating that there can be three relationships. For example, A and / or B can represent: A exists alone, A and B exist at the same time, and B exists alone. The symbol " / " in this article indicates that the associated objects are in an or relationship, for example, A / B means A or B.

[0056] The terms "first" and "second" in the specification and claims herein are used to distinguish different objects rather than to describe a specific order of the objects. For example, a first response message and a second response message are used to distinguish different response messages rather than to describe a specific order of the response messages.

[0057] In the embodiments of the present invention, words such as "exemplary" or "for example" are used to indicate examples, illustrations or explanations. Any embodiment or design described as "exemplary" or "for example" in the embodiments of the present invention should not be interpreted as being more preferred or more advantageous than other embodiments or designs. Specifically, the use of words such as "exemplary" or "for example" is intended to present related concepts in a specific way.

[0058] In the description of the embodiments of the present invention, unless otherwise specified, “multiple” means two or more than two. For example, multiple processing units means two or more processing units, etc.; multiple elements means two or more elements, etc.

[0059] Reference Figure 1 The present invention provides a visual guidance control method for berthing an unmanned boat based on a reference mark, comprising the following steps:

[0060] S101, collecting a video image of a current video frame of a reference mark light box through a camera onboard the unmanned boat, performing target detection and recognition on the mark light box in the video image, decoding the reference mark of the mark light box, and obtaining a rough position of the unmanned boat relative to the docking station; wherein the reference mark light box is installed at the center of the docking station, and a reference mark is installed on the reference mark light box;

[0061] In this embodiment, firstly, reference marks are selected to make a cube light box for use in monocular vision guidance of ships. When determining the center position of the dock, the balance and stability of the unmanned boat or other target when docked in the dock needs to be considered.

[0062] The fiducial mark light box is a device used to mark the center position of the docking station, including a light box and the fiducial mark on it.

[0063] Reference Figure 2 , three reference marks can be set, the first reference mark is installed on the front side of the light box, the second reference mark is installed on the left side of the light box, and the third reference mark is installed on the right side of the light box. All reference marks use different codes. Then, according to the design requirements and actual conditions, after the center position of the docking station is determined, the reference mark light box can be installed.

[0064] It should be noted that the reference mark light box in this embodiment cannot be rotated. During the docking process at night, the reference mark light box can emit light from the inside to the outside to ensure that it can be detected and identified at night.

[0065] Furthermore, in this embodiment, video images can be captured in real time by the onboard camera, and target detection and recognition can be performed on the video image of the current frame. For example, the target detection model can be used to perform target detection and recognition of the marking light box to quickly and accurately obtain the position and status information of the marking light box, providing a reference for subsequent navigation, positioning and operation.

[0066] Then, the image coordinate position of the fiducial marker in the image frame is obtained based on the fiducial marker target detection algorithm of monocular vision. The fiducial marker encoding is obtained based on the fiducial marker decoding algorithm of monocular vision, and the relative position of the unmanned boat and the docking station is roughly solved.

[0067] It should be noted that obtaining the reference mark code and calculating the relative position through the code is only a qualitative analysis of whether the unmanned boat is on the left or right side of the dock, and it is qualitatively considered that it should turn left or right.

[0068] S102, performing precise posture calculation on the rough posture by using the geometric imaging principle and posture estimation method to obtain the relative posture between the unmanned boat and the docking station, wherein the relative posture includes distance, heading angle and two-dimensional coordinates;

[0069] In this embodiment, the relative position of the unmanned boat and the dock obtained by the rough solution in the above step S101 is solved to calculate the approximate direction to assist in judging or verifying the accuracy of the fine solution. Therefore, it is necessary to perform a fine posture solution on the rough solution through the geometric imaging principle and the posture estimation method to determine the relative posture between the unmanned boat and the dock.

[0070] S103, using the distance, heading angle and two-dimensional coordinates to perform visual guidance control on the unmanned boat through an integrated sight angle guidance method, and determining a first control direction of the unmanned boat in the current video frame;

[0071] Specifically, after obtaining the relative position and posture of the unmanned boat and the dock, the distance, heading angle and two-dimensional coordinates of the unmanned boat and the dock are determined, and then the heading error of the unmanned boat is calculated based on the distance, heading angle and two-dimensional coordinates. The heading error is used as the control quantity to realize visual guidance control of the unmanned boat. During the control process, the unmanned boat will adjust the control quantities such as the rudder angle according to the control instructions, so as to realize accurate autonomous navigation of the target object. The distance, heading angle and two-dimensional coordinates are calculated and controlled using the integrated line of sight angle guidance method, so as to realize visual guidance control of the unmanned boat.

[0072] S104, updating the current video frame to obtain an updated image, performing visual guidance control on a first control direction of the unmanned boat based on the updated image, and determining a second control direction of the unmanned boat until the unmanned boat completes berthing.

[0073] In this step, the current video frame is updated to obtain a new video image, and the above steps S101-S103 are repeated to update the visual guidance control of the unmanned boat until the unmanned boat completes the berthing.

[0074] It should be noted that this embodiment belongs to the terminal execution method of the unmanned boat's autonomous berthing process. Before the camera can see the dock, it is still necessary to use navigation methods such as GPS and inertial navigation to navigate close to the dock. Near the dock, when GPS is denied or the accuracy conditions are insufficient, the guidance strategy of autonomous berthing in this embodiment is adopted. By repeatedly executing the process from step S101 to step S103, the heading of the unmanned boat is continuously calculated and corrected until the berthing is successful.

[0075] The present invention provides a visual guidance control method for berthing of an unmanned boat based on a benchmark mark. The method designs a docking station benchmark mark light box, performs visual detection and target tracking on the benchmark mark light box, solves the relative posture between the benchmark mark light box and the unmanned boat, and infers the relative posture required for the unmanned boat to achieve autonomous berthing. According to the relative posture, an integrated line of sight angle guidance strategy is adopted to compensate for the influence of the drift angle on the autonomous berthing process, improve the berthing accuracy, and thus improve the safety of the unmanned boat berthing.

[0076] In some embodiments, the rough posture is accurately calculated by using the geometric imaging principle and the posture estimation method to obtain the relative posture between the unmanned boat and the docking station, including:

[0077] Performing target detection and recognition on the marked light box in the video image based on an image processing flow algorithm to obtain image coordinates of corner points;

[0078] Determine a first coordinate of the marking light box in a world coordinate system based on the size and placement position of the marking light box;

[0079] The camera of the unmanned boat is calibrated by the Zhang Zhengyou calibration method to obtain a camera intrinsic parameter matrix;

[0080] The relative position and posture between the unmanned boat and the docking station is determined based on the image coordinates of the corner points, the first coordinates and the camera internal parameter matrix through a posture estimation method.

[0081] Specifically, in this embodiment, the image processing algorithm is first used to detect and identify the marker light box in the video image. A deep learning model such as a convolutional neural network (CNN) or a traditional computer vision algorithm can be used. Through this step, the position information of the marker light box in the image can be obtained, and the image coordinates of the corner points can be obtained, which are recorded as P ′ [u,v,1] T , usually four or eight.

[0082] Then, based on the size and placement of the marker light box, the camera imaging principle can be used to map the position of the marker light box in the image coordinate system to the world coordinate system, thereby determining the first coordinate of the marker light box in the world coordinate system.

[0083] Next, the camera of the unmanned boat is calibrated using Zhang Zhengyou's calibration method. The camera calibration process includes taking a series of calibration plate images with known spatial positions and calculating the camera's intrinsic parameter matrix based on these images, including focal length, principal point position, distortion parameters, etc.

[0084] Finally, through the attitude estimation method, based on the camera intrinsic parameter matrix obtained by calibration and the previously obtained corner image coordinates and the first coordinate, the camera pose can be determined. Since the camera is fixed on the unmanned boat, the attitude estimation of the unmanned boat is the attitude estimation of the camera, that is, the precise solution of the unmanned boat pose is completed to determine the relative pose between the unmanned boat and the dock.

[0085] The present invention provides a visual guidance control method for berthing an unmanned boat based on reference markers. The relative posture of the unmanned boat and the dock is accurately calculated to control the heading of the unmanned boat using the relative posture, thereby providing a basis for achieving tasks such as accurate positioning, autonomous obstacle avoidance, target tracking and heading control of the unmanned boat.

[0086] In some embodiments, determining the relative posture between the unmanned boat and the docking station based on the image coordinates of the corner point, the first coordinates, and the camera intrinsic parameter matrix by a posture estimation method includes:

[0087] Acquire a first estimated position and posture of the unmanned boat and the docking station based on a direct linear transformation algorithm, and acquire a second estimated position and posture of the unmanned boat and the docking station based on an effective view-n point algorithm;

[0088] The first estimated posture and the second estimated posture are data-fused to obtain a relative posture between the unmanned boat and the docking station, and the distance, heading angle and two-dimensional coordinates between the unmanned boat and the docking station are determined based on the relative posture.

[0089] Specifically, it should be noted that the visual imaging PNP problem is to deduce the position and orientation of an object in the camera coordinate system through the image information captured by the camera. Among them, DLT (Direct Linear Transform) and EPnP (Efficient Perspective-n-Point) are two commonly used methods to solve this problem.

[0090] In this embodiment, based on the direct linear transformation method (DLT) to solve the visual imaging PNP problem, a more accurate first estimated pose is obtained, and its pose information includes heading angle θ, distance L, two-dimensional coordinates xu ,y u .

[0091] Based on the EPNP method to solve the PNP problem of visual imaging, a more accurate second estimated pose is obtained. The pose information includes heading angle θ, distance L, and two-dimensional coordinate x u ,y u .

[0092] The first estimated pose and the second estimated pose are fused to obtain the accurate pose estimation of the unmanned boat and the dock. The method combining direct linear transformation (DLT) and EPnP is used to obtain the relative pose after solution, and finally the heading angle θ, distance L, and two-dimensional coordinate x are obtained. u ,y u The method is shown below.

[0093]

[0094] The present invention provides a visual guidance control method for berthing an unmanned boat based on a benchmark marker. By combining the two algorithms, DLT and EPnP, the advantages of each algorithm can be fully utilized to improve the accuracy of pose estimation. By fusing the first estimated pose and the second estimated pose, the robustness of pose estimation can be further improved, thereby enhancing the autonomous berthing control and operation capabilities of the unmanned boat and improving the performance and effect of the system.

[0095] In some embodiments, it also includes:

[0096] Performing limiting filtering on the relative posture to obtain a limiting filtering sampling value, and performing first-order low-pass filtering on the relative posture to obtain a first-order low-pass filtering sampling value;

[0097] The determining of the distance, heading angle and two-dimensional coordinates between the unmanned boat and the docking station based on the relative position and posture includes:

[0098] The distance, heading angle and two-dimensional coordinates are determined based on the first-order low-pass filtered sampling values.

[0099] Further, the performing of limiting filtering on the relative posture to obtain a limiting filtering sampling value, and performing a first-order low-pass filtering on the relative posture to obtain a first-order low-pass filtering sampling value, include:

[0100] Determine the maximum deviation between the current sampling value and the previous sampling value, and obtain the deviation comparison result between the current sampling value and the previous sampling value;

[0101] Under the condition of the deviation comparison result, based on the maximum deviation value, the current sampling value and the previous sampling value, limit filtering jump suppression is performed to obtain the limit filtering sampling value;

[0102] The first-order low-pass filter sampling value is determined based on the set weighting coefficient, the current sampling value and the previous sampling value.

[0103] Specifically, in this embodiment, the result obtained by solving the solution is subjected to limiting filtering and first-order low-pass filtering to ensure that the information transmitted to the control program is relatively stable and does not affect the robustness of the control.

[0104] For each sampling, there is the sampling value and the last sample value First, the sampling data is limited and filtered, and the calculation formula is as follows:

[0105]

[0106] Among them, A is the maximum deviation allowed between two samples determined before the experiment.

[0107] After the limiting filter removes the large jump values, it passes through the first-order low-pass filter to make the output smoother. The calculation formula of the first-order filter is as follows:

[0108]

[0109] Wherein, a in the formula is the set weighting coefficient.

[0110] It should be noted that the sampling frequency of the video stream in the autonomous docking system is 5 frames / s, and the limiting filter can eliminate errors caused by accidental fluctuations and remove obviously erroneous data. However, considering that the limiting filter cannot suppress periodic interference and has poor smoothness, the obtained data is once again subjected to a first-order low-pass filter, which can improve the smoothness of the obtained data, is more friendly to subsequent control, and has a good inhibitory effect on periodic interference.

[0111] In some embodiments, the method of visually guiding and controlling the unmanned boat by using the distance, heading angle and two-dimensional coordinates through an integrated line of sight angle guidance method includes:

[0112] Determine the lateral offset of the unmanned boat based on the abscissa and ordinate of the two-dimensional coordinate;

[0113] Determine a longitudinal offset based on the distance and the lateral offset, determine a los vector angle based on the lateral offset and the longitudinal offset,

[0114] Integrating and compensating the lateral offset caused by the drift angle of the unmanned boat to obtain a compensated offset;

[0115] Determine a heading error based on the heading angle, the compensation offset and the los vector angle;

[0116] The unmanned boat is visually guided and controlled based on the compensation offset and the heading error.

[0117] Specifically, this embodiment is a specific process of visually guided control of an unmanned boat.

[0118] First, based on the two-dimensional coordinates in the relative posture, the lateral offset between the unmanned boat and the dock is determined. The lateral offset represents the horizontal distance between the unmanned boat and the target, and is an important reference quantity in the motion control of the unmanned boat. The calculation formula for the lateral offset is:

[0119] y e =x u sin(θ)-y u cos(θ)

[0120] Based on the distance and lateral offset in the relative position, the longitudinal offset between the unmanned boat and the dock can be determined using the Pythagorean theorem. The longitudinal offset represents the vertical distance between the unmanned boat and the target, recorded as Δ.

[0121] Then, the los vector angle can be determined based on the lateral offset and the longitudinal offset. The los vector angle represents the angle between the line between the unmanned boat and the dock and the direction of the unmanned boat. The calculation formula is as follows:

[0122]

[0123] Furthermore, since the drift angle of the unmanned boat will affect the lateral offset, integral compensation is required. The drift angle phenomenon may be caused by the asymmetry of the boat, the influence of environmental wind and wave currents, and the lateral force introduced by the steering maneuver. By integrating the historical lateral offset, the compensation offset can be obtained, thereby eliminating the influence caused by the drift of the unmanned boat, as shown in the following formula:

[0124]

[0125] Among them, k i Indicates the compensation coefficient.

[0126] Finally, based on the compensation offset, los vector angle and the current heading angle of the unmanned boat, the heading error can be calculated, as shown in the following formula. The heading error reflects the degree to which the unmanned boat deviates from the target heading.

[0127]

[0128] Based on compensating for offset and heading errors, visual guidance control can be performed. By controlling the steering and speed of the unmanned boat, it can move towards the target and maintain an appropriate distance and heading angle from the target, thereby achieving autonomous berthing of the unmanned boat and improving the accuracy of the berthing.

[0129] Reference Figure 3,Since the automatic berthing process is generally carried out in shallow water, low speed conditions, and generally in windless conditions, in this process, it is assumed that the movement of the unmanned boat is restricted to the horizontal plane, that is, the heave, pitch, and roll movements are all negligible, that is, only the movement of the unmanned boat in the three degrees of freedom of sway, pitch, and bow is concerned. The berthing model can be simplified as follows Figure 2 As shown, the label facing direction is taken as the z-axis of the label coordinate system, and the visual forward direction is the z-axis. According to the following formula, we can get:

[0130] θ=arccos(R(3,3))

[0131] X u =t z

[0132] Y u =t x

[0133]

[0134] Among them, R(3,3) is the element of the third row and third column of the 3x3 rotation matrix, t z and t x Represents the translation along the Z axis and X axis respectively.

[0135] In some embodiments, the installation process of the fiducial marker light box includes:

[0136] Construct a cube light box model;

[0137] Selecting a first reference mark, a second reference mark and a third reference mark, and adding the first reference mark, the second reference mark and the third reference mark to the advertising cloth on the front side, the left side and the right side of the cubic light box model respectively, to obtain a light box with reference marks completed;

[0138] The fiducial marker light box is mounted in the center of the docking station.

[0139] Reference Figure 4 Specifically, the installation process of the light box and fiducial markers includes:

[0140] Step S401, using aluminum profiles and LED lighting control systems to make a cubic light box model. The light box model needs to be large enough to meet the needs of monocular vision detection and positioning.

[0141] Step S402, select three labels with different codes, respectively called the first reference mark, the second reference mark, and the third reference mark, and print them on the advertising cloth, so that when the light inside the light box is illuminated, the light is diffusely reflected so that the reference marks can be clearly and stably detected and identified at night.

[0142] Step S403: hang and install the prepared reference mark light box at the center of the docking station as a beacon for monocular visual guidance of the unmanned boat.

[0143] Preferably, the label on the fiducial marker light box can adopt AprilTag, which is built on the framework of ARTag and introduces an image segmentation algorithm that analyzes the gradient pattern on the image to accurately estimate the lines and includes a quaternion extraction method that allows non-intersecting edges to be identified as possible candidate edges. A new encoding system is also implemented to solve problems originating from 2D barcode systems. These problems include incompatibility with rotation and false positives under outdoor conditions. Therefore, AprilTag is more robust to occlusion and distortion and reduces the number of false detections. Due to its excellent performance, many scholars have used it for positioning and navigation in the fields of smart cars and drones, providing many application solutions. The AprilTag detection system mainly consists of two parts: a tag detector and a coding system. The detector is used to find the relative position of the AprilTag label between the visual coordinate system. The coding system is used to extract the ID information contained in the AprilTag.

[0144] Different AprilTag labels can be pasted on different sides of the light box model for identification and positioning. When the unmanned boat approaches the docking station, the AprilTag mark on the light box is identified and the code is solved. The attitude can be roughly solved according to the AprilTag codes with different codes on different sides of the light box.

[0145] Considering the rich natural features around the docking station and the large amount of image feature information collected, the image frames should be preprocessed by filtering, binarization, defogging, etc., and AprilTag target detection and recognition should be performed on the region of interest in the image. This can improve the image recognition efficiency, improve the real-time nature of information feedback, and reduce the demand for industrial computer hardware configuration.

[0146] In summary, the present invention provides a visual guidance control method for unmanned boat berthing based on reference marks. The reference mark light box is pre-hanged at the center of the docking station to provide a guide target for the unmanned boat berthing process. Different marks are encoded on each surface of the light box to roughly solve the relative position of the unmanned boat and the docking station, and then the precise posture of the unmanned boat is estimated by the PNP method. The posture estimation and solution part requires the internal parameter calibration of the camera in advance. The Zhang Zhengyou chessboard method is often used to calibrate the internal parameters of the camera. The specific parameters that need to be calibrated include the internal parameter matrix, focal length, imaging center coordinates, distortion coefficients and other required parameters. Only when these parameters are known can the relationship between the camera coordinate system and the world coordinate system be constructed by solving the PNP problem method. According to the connection between the camera coordinate system, the world coordinate system and the tag coordinate system, the posture estimation of the camera is solved. Since the camera is fixed on the unmanned boat, the posture estimation of the unmanned boat is the posture estimation of the camera, that is, the precise solution of the posture of the unmanned boat is completed.

[0147] Based on the pose estimation of the precise solution, the integral sight angle guidance method is used to calculate the target heading that gradually approaches the target path, and the unmanned boat's berthing process is achieved by continuously adjusting the heading of the unmanned boat. According to the method of coarse solution first and then precise solution, the accuracy and real-time performance of target recognition are improved, and the integral sight angle guidance method is introduced to improve the accuracy and stability of the unmanned boat's berthing control, thereby improving the success rate and accuracy of unmanned autonomous berthing.

[0148] Reference Figure 5 The present invention also provides a visual guidance control system for unmanned boat berthing based on a benchmark mark, comprising:

[0149] The rough processing module 510 is used to collect the video image of the current video frame of the reference mark light box through the onboard camera of the unmanned boat, perform target detection and recognition on the mark light box in the video image, decode the reference mark of the mark light box, and obtain the rough position and posture of the unmanned boat relative to the docking station; wherein the reference mark light box is installed at the center of the docking station, and the reference mark is installed on the reference mark light box;

[0150] A fine processing module 520 is used to perform a fine posture calculation on the rough posture by using the geometric imaging principle and the posture estimation method to obtain the distance, heading angle and two-dimensional coordinates between the unmanned boat and the docking station;

[0151] A guidance control module 530 is used to perform visual guidance control on the unmanned boat by using the distance, heading angle and two-dimensional coordinates through an integrated line of sight angle guidance method to determine a first control direction of the unmanned boat in a current video frame;

[0152] The updating module 540 is used to update the current video frame to obtain an updated image, perform visual guidance control on the first control direction of the unmanned boat based on the updated image, and determine the second control direction of the unmanned boat until the unmanned boat completes berthing.

[0153] In some embodiments, the rough posture is accurately calculated by using the geometric imaging principle and the posture estimation method to obtain the relative posture between the unmanned boat and the docking station, including:

[0154] Performing target detection and recognition on the marked light box in the video image based on an image processing flow algorithm to obtain image coordinates of corner points;

[0155] Determine a first coordinate of the marking light box in a world coordinate system based on the size and placement position of the marking light box;

[0156] The camera of the unmanned boat is calibrated by the Zhang Zhengyou calibration method to obtain a camera intrinsic parameter matrix;

[0157] The relative position and posture between the unmanned boat and the docking station is determined based on the image coordinates of the corner points, the first coordinates and the camera internal parameter matrix through a posture estimation method.

[0158] In some embodiments, determining the relative posture between the unmanned boat and the docking station based on the image coordinates of the corner point, the first coordinates, and the camera intrinsic parameter matrix by a posture estimation method includes:

[0159] The target pose is used to obtain a first estimated pose of the unmanned boat and the docking station based on a direct linear transformation algorithm, and the target pose is used to obtain a second estimated pose of the unmanned boat and the docking station based on an effective view-n point algorithm;

[0160] The first estimated posture and the second estimated posture are data-fused to obtain a relative posture between the unmanned boat and the docking station, and the distance, heading angle and two-dimensional coordinates between the unmanned boat and the docking station are determined based on the relative posture.

[0161] In some embodiments, a filtering module is further included, and the filtering module is used to:

[0162] Performing limiting filtering on the relative posture to obtain a limiting filtering sampling value, and performing first-order low-pass filtering on the relative posture to obtain a first-order low-pass filtering sampling value;

[0163] The determining of the distance, heading angle and two-dimensional coordinates between the unmanned boat and the docking station based on the relative position and posture includes:

[0164] The distance, heading angle and two-dimensional coordinates are determined based on the first-order low-pass filtered sampling values.

[0165] In some embodiments, the method of visually guiding and controlling the unmanned boat by using the distance, heading angle and two-dimensional coordinates through an integrated line of sight angle guidance method includes:

[0166] Determine the lateral offset of the unmanned boat based on the abscissa and ordinate of the two-dimensional coordinate;

[0167] Determine a longitudinal offset based on the distance and the lateral offset, determine a los vector angle based on the lateral offset and the longitudinal offset,

[0168] Integrating and compensating the lateral offset caused by the drift angle of the unmanned boat to obtain a compensated offset;

[0169] Determine a heading error based on the heading angle, the compensation offset and the los vector angle;

[0170] The unmanned boat is visually guided and controlled based on the compensation offset and the heading error.

[0171] In some embodiments, performing limiting filtering on the relative posture to obtain limiting filtering sampling values, and performing first-order low-pass filtering on the relative posture to obtain first-order low-pass filtering sampling values, include:

[0172] Determine the maximum deviation between the current sampling value and the previous sampling value, and obtain the deviation comparison result between the current sampling value and the previous sampling value;

[0173] Under the condition of the deviation comparison result, based on the maximum deviation value, the current sampling value and the previous sampling value, limit filtering jump suppression is performed to obtain the limit filtering sampling value;

[0174] The first-order low-pass filter sampling value is determined based on the set weighting coefficient, the current sampling value and the previous sampling value.

[0175] In some embodiments, the installation process of the fiducial marker light box includes:

[0176] Construct a cube light box model;

[0177] Selecting a first reference mark, a second reference mark and a third reference mark, and adding the first reference mark, the second reference mark and the third reference mark to the advertising cloth on the front side, the left side and the right side of the cubic light box model respectively, to obtain a light box with reference marks completed;

[0178] The fiducial marker light box is mounted in the center of the docking station.

[0179] It can be understood that the detailed functional implementation of each of the above-mentioned units / modules can be found in the introduction of the aforementioned method embodiment, and will not be repeated here.

[0180] It should be understood that the above-mentioned device is used to execute the method in the above-mentioned embodiment. The implementation principle and technical effect of the corresponding program module in the device are similar to those described in the above-mentioned method. The working process of the device can refer to the corresponding process in the above-mentioned method, which will not be repeated here.

[0181] Based on the method in the above embodiment, an embodiment of the present invention provides an electronic device. The device may include: at least one memory for storing programs and at least one processor for executing the programs stored in the memory. When the program stored in the memory is executed, the processor is used to execute the method described in the above embodiment.

[0182] Based on the method in the above embodiment, an embodiment of the present invention provides a computer-readable storage medium, which stores a computer program. When the computer program runs on a processor, the processor executes the method in the above embodiment.

[0183] Based on the method in the above embodiment, an embodiment of the present invention provides a computer program product. When the computer program product runs on a processor, the processor executes the method in the above embodiment.

[0184] It is understandable that the processor in the embodiment of the present invention may be a central processing unit (CPU), or other general-purpose processors, digital signal processors (DSP), application specific integrated circuits (ASIC), field programmable gate arrays (FPGA) or other programmable logic devices, transistor logic devices, hardware components or any combination thereof. The general-purpose processor may be a microprocessor or any conventional processor.

[0185] The method steps in the embodiments of the present invention can be implemented by hardware or by a processor executing software instructions. The software instructions can be composed of corresponding software modules, and the software modules can be stored in random access memory (RAM), flash memory, read-only memory (ROM), programmable read-only memory (PROM), erasable programmable read-only memory (EPROM), electrically erasable programmable read-only memory (EEPROM), registers, hard disks, mobile hard disks, CD-ROMs, or any other form of storage medium known in the art. An exemplary storage medium is coupled to the processor so that the processor can read information from the storage medium and write information to the storage medium. Of course, the storage medium can also be a component of the processor. The processor and the storage medium can be located in an ASIC.

[0186] In the above embodiments, it can be implemented in whole or in part by software, hardware, firmware or any combination thereof. When implemented by software, it can be implemented in whole or in part in the form of a computer program product. The computer program product includes one or more computer instructions. When the computer program instructions are loaded and executed on a computer, the process or function described in the embodiment of the present invention is generated in whole or in part. The computer can be a general-purpose computer, a special-purpose computer, a computer network, or other programmable device. The computer instructions can be stored in a computer-readable storage medium or transmitted through the computer-readable storage medium. The computer instructions can be transmitted from a website site, computer, server or data center to another website site, computer, server or data center by wired (e.g., coaxial cable, optical fiber, digital subscriber line (DSL)) or wireless (e.g., infrared, wireless, microwave, etc.). The computer-readable storage medium can be any available medium that a computer can access or a data storage device such as a server or data center that includes one or more available media integrated. The available medium can be a magnetic medium (e.g., a floppy disk, a hard disk, a tape), an optical medium (e.g., a DVD), or a semiconductor medium (e.g., a solid state disk (SSD)), etc.

[0187] It should be understood that the various numerical numbers involved in the embodiments of the present invention are only used for the convenience of description and are not used to limit the scope of the embodiments of the present invention.

[0188] It will be easily understood by those skilled in the art that the above description is only a preferred embodiment of the present invention and is not intended to limit the present invention. Any modifications, equivalent substitutions and improvements made within the spirit and principles of the present invention should be included in the protection scope of the present invention.

Claims

1. A visual guidance control method for berthing an unmanned boat based on a reference mark, characterized in that: include: The video image of the current video frame of the reference mark light box is collected by the onboard camera of the unmanned boat, the target detection and recognition is performed on the mark light box in the video image, and the reference mark of the mark light box is decoded to obtain a rough position of the unmanned boat relative to the docking station; wherein the reference mark light box is installed at the center of the docking station, and the reference mark is installed on the reference mark light box; The rough posture is precisely calculated by using the geometric imaging principle and the posture estimation method to obtain the relative posture between the unmanned boat and the docking station, wherein the relative posture includes the distance, the heading angle and the two-dimensional coordinates; The distance, heading angle and two-dimensional coordinates are used to perform visual guidance control on the unmanned boat through an integrated sight angle guidance method to determine a first control direction of the unmanned boat in a current video frame; Updating the current video frame to obtain an updated image, performing visual guidance control on a first control direction of the unmanned boat based on the updated image, and determining a second control direction of the unmanned boat until the unmanned boat completes berthing; The method of performing precise posture calculation on the rough posture by using the geometric imaging principle and the posture estimation method to obtain the relative posture between the unmanned boat and the docking station includes: Performing target detection and recognition on the marked light box in the video image based on an image processing flow algorithm to obtain image coordinates of corner points; Determine a first coordinate of the marking light box in a world coordinate system based on the size and placement position of the marking light box; The camera of the unmanned boat is calibrated by the Zhang Zhengyou calibration method to obtain a camera intrinsic parameter matrix; The relative position and posture between the unmanned boat and the docking station is determined based on the image coordinates of the corner points, the first coordinates and the camera internal parameter matrix through a posture estimation method.

2. The visual guidance control method for berthing an unmanned boat based on a benchmark according to claim 1 is characterized in that: The method of determining the relative position and posture between the unmanned boat and the docking station based on the image coordinates of the corner point, the first coordinates, and the camera intrinsic parameter matrix by using a posture estimation method includes: Acquire a first estimated position and posture of the unmanned boat and the docking station based on a direct linear transformation algorithm, and acquire a second estimated position and posture of the unmanned boat and the docking station based on an effective view-n point algorithm; The first estimated posture and the second estimated posture are data-fused to obtain a relative posture between the unmanned boat and the docking station, and the distance, heading angle and two-dimensional coordinates between the unmanned boat and the docking station are determined based on the relative posture.

3. The visual guidance control method for berthing an unmanned boat based on a benchmark according to claim 2 is characterized in that: Also includes: Performing limiting filtering on the relative posture to obtain a limiting filtering sampling value, and performing first-order low-pass filtering on the relative posture to obtain a first-order low-pass filtering sampling value; The determining of the distance, heading angle and two-dimensional coordinates between the unmanned boat and the docking station based on the relative position and posture includes: The distance, heading angle and two-dimensional coordinates are determined based on the first-order low-pass filtered sampling values.

4. The visual guidance control method for berthing an unmanned boat based on a benchmark according to claim 1, characterized in that: The method of visually guiding and controlling the unmanned boat by using the distance, heading angle and two-dimensional coordinates through an integrated sight angle guidance method includes: Determine the lateral offset of the unmanned boat based on the abscissa and ordinate of the two-dimensional coordinate; Determine a longitudinal offset based on the distance and the lateral offset, determine a los vector angle based on the lateral offset and the longitudinal offset, Integrating and compensating the lateral offset caused by the drift angle of the unmanned boat to obtain a compensated offset; Determine a heading error based on the heading angle, the compensation offset and the los vector angle; The unmanned boat is visually guided and controlled based on the compensation offset and the heading error.

5. The visual guidance control method for berthing an unmanned boat based on a benchmark according to claim 3 is characterized in that: The performing of limiting filtering on the relative posture to obtain a limiting filtering sampling value, and performing a first-order low-pass filtering on the relative posture to obtain a first-order low-pass filtering sampling value, include: Determine the maximum deviation between the current sampling value and the previous sampling value, and obtain the deviation comparison result between the current sampling value and the previous sampling value; Under the condition of the deviation comparison result, based on the maximum deviation value, the current sampling value and the previous sampling value, limit filtering jump suppression is performed to obtain the limit filtering sampling value; The first-order low-pass filter sampling value is determined based on the set weighting coefficient, the current sampling value and the previous sampling value.

6. The visual guidance control method for berthing an unmanned boat based on a reference mark according to any one of claims 1 to 5, characterized in that: The installation process of the fiducial marker light box includes: Construct a cube light box model; Selecting a first reference mark, a second reference mark and a third reference mark, and adding the first reference mark, the second reference mark and the third reference mark to the advertising cloth on the front side, the left side and the right side of the cubic light box model respectively, to obtain a light box with reference marks completed; The fiducial marker light box is mounted in the center of the docking station.

7. A visual guidance control system for unmanned boat berthing based on reference marks, characterized in that: include: A rough processing module is used to collect a video image of a current video frame of a reference mark light box through a camera on the unmanned boat, perform target detection and recognition on the mark light box in the video image, decode the reference mark of the mark light box, and obtain a rough position and posture of the unmanned boat relative to the docking station; wherein the reference mark light box is installed at the center of the docking station, and a reference mark is installed on the reference mark light box; A fine processing module is used to perform a fine posture calculation on the rough posture by using the geometric imaging principle and the posture estimation method to obtain the distance, heading angle and two-dimensional coordinates between the unmanned boat and the docking station; A guidance control module, used for visually guiding and controlling the unmanned boat by using the distance, heading angle and two-dimensional coordinates through an integrated sight angle guidance method, and determining a first control direction of the unmanned boat in a current video frame; An updating module, used for updating the current video frame to obtain an updated image, performing visual guidance control on a first control direction of the unmanned boat based on the updated image, and determining a second control direction of the unmanned boat until the unmanned boat completes berthing; The method of performing precise posture calculation on the rough posture by using the geometric imaging principle and the posture estimation method to obtain the relative posture between the unmanned boat and the docking station includes: Performing target detection and recognition on the marked light box in the video image based on an image processing flow algorithm to obtain image coordinates of corner points; Determine a first coordinate of the marking light box in a world coordinate system based on the size and placement position of the marking light box; The camera of the unmanned boat is calibrated by the Zhang Zhengyou calibration method to obtain a camera intrinsic parameter matrix; The relative position and posture between the unmanned boat and the docking station is determined based on the image coordinates of the corner points, the first coordinates and the camera internal parameter matrix through a posture estimation method.

8. An electronic device, characterized in that: include: at least one memory for storing a program; At least one processor is used to execute the program stored in the memory. When the program stored in the memory is executed, the processor is used to execute the method according to any one of claims 1 to 6.

9. A computer-readable storage medium storing a computer program, characterized in that: When the computer program runs on a processor, the processor is caused to execute the method according to any one of claims 1 to 6.