Control method of three-degree-of-freedom transport platform for ships
Through the combination of the binocular recognition system and the control system, the precise control of the ship's three-degree-of-freedom transport platform is achieved, which solves the safety and accuracy problem of the ship's rocking motion affecting the transfer activities when operating at sea, and improves the safety of the transfer. sex and efficiency.
Patent Information
- Application Number
- CN202111523064.6
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2021-12-13
- Publication Date
- 2024-09-17
- Estimated Expiration
- 2041-12-13
AI Technical Summary
When the ship is operating at sea, it is affected by sea wind and waves, resulting in severe rocking motion, which affects the safety and accuracy of transfer activities. The traditional transfer method has poor precision and accuracy, and poses safety risks.
The binocular recognition system is used for image acquisition, calibration, identification and processing, and the control system is combined to achieve precise control of the three-degree-of-freedom conveying platform. It is carried out through the host computer, controller, mechanical body, rotary encoder, rotary drive proportional valve and other components. Spatial mapping relationship conversion and feature analysis ensure that the conveyor platform reaches the target location accurately.
It improves the accuracy and safety of transfer activities, reduces human operation errors, improves transfer efficiency, and ensures safety and stability in harsh marine environments.
Smart Images

Figure CN114298924B
Abstract
Description
Technical Field
[0001] The present application relates to the field of ship technology, and in particular to a method for controlling a three-degree-of-freedom transport platform for a ship. Background Art
[0002] When ships are operating at sea, they will be affected by sea breeze and waves, which will cause the ships to sway to a certain extent, seriously interfering with the progress of various work on the ship's deck, especially when transferring personnel between ships or between ships and offshore buildings, the safety of personnel cannot be guaranteed.
[0003] The main characteristics of maritime transfer are as follows: First, affected by the marine environment, due to the harsh climatic conditions, high waves and strong winds at sea, it is difficult for ships to lean against each other, especially in strong winds and waves, the hull sways in a large range and the possibility of collision is higher; second, due to the restrictions on ship types, there are many types of ships with different structures, which leads to the fact that the two ships do not have the conditions to lean against each other, which brings difficulties to the transfer; third, the requirements for coordinated actions are high, especially when carrying out the transfer of wounded at sea, the wounded need medical personnel to use stretchers to transfer between ships or between ships and offshore buildings, so higher stability and coordination are required.
[0004] Traditional transfer methods include side-by-side transfer, basket transfer, small boat transfer, etc. However, in traditional transfer methods, when the equipment is manually controlled to approach the transfer target, the precision and accuracy are poor, and the safety of the transferred personnel and goods cannot be guaranteed, especially when the influence of ocean factors is large, safety accidents are particularly prone to occur.
[0005] Therefore, it is necessary to provide a precise control method for a three-degree-of-freedom transport platform for ships. Summary of the invention
[0006] In order to overcome the shortcomings of the prior art of high transfer risk and poor precision and accuracy, the purpose of the present invention is to propose a control method for a three-degree-of-freedom transport platform for ships, which is used in combination with a ship stabilizing platform during the ship's offshore transfer activities. By adopting a binocular recognition system for image acquisition, calibration, recognition and processing, the relative position of the target is obtained, and combined with the control system to solve the problem of poor precision and accuracy when the equipment is approached to the transfer target through manual operation during the transfer process, the safety of the transfer is ensured and the efficiency of the transfer activities is improved.
[0007] To achieve the above purpose, the solution adopted by the present invention is:
[0008] A control method for a three-degree-of-freedom transport platform for a ship, which controls the transport platform based on a three-degree-of-freedom transport platform control system for a ship, wherein the three-degree-of-freedom transport platform control system for a ship includes a host computer, a controller, a mechanical body, a rotary encoder, a slewing drive proportional valve, a fence-type slewing drive, a displacement sensor, a valve-controlled hydraulic motor, a pitch valve-controlled asymmetric hydraulic cylinder, a telescopic valve-controlled asymmetric hydraulic cylinder, a hydraulic oil source and a binocular camera; specifically, the following steps are included:
[0009] Step 1: perform binocular camera calibration to obtain binocular camera distortion parameters, wherein the distortion parameters include radial distortion parameters and tangential distortion parameters;
[0010] Step 2: Design a recognition target pattern to obtain a pattern to be recognized;
[0011] Step 3: According to the binocular camera distortion parameters obtained in step 1, a spatial mapping relationship conversion is performed to correct the distortion of the binocular camera to obtain a corrected image;
[0012] Step 4: Manually operate the conveying platform through the host computer to perform three-degree-of-freedom motion so that the distance between the conveying platform and the target is within the first range;
[0013] Step 5: The binocular camera that has been calibrated and corrected for distortion in step 1 and step 3 photographs the pattern for identification obtained in step 2, and preprocesses the pattern photographed by the binocular camera to obtain a preprocessed image;
[0014] Step 6: Perform feature analysis and matching on the preprocessed image obtained in step 5, and recognize the target image using a geometric image matching strategy based on shape features according to the characteristics of the recognition target to obtain recognition information;
[0015] Step 7: Calculate the position of the characteristic target using the identification information obtained in step 6, and calculate the relative position relationship of the characteristic target relative to the base of the ship transport platform using the relative position relationship between the target and the binocular camera;
[0016] Step 8: Based on the relative position relationship of the characteristic target obtained in step 7 with respect to the base of the ship transport platform, the controller is used to control the movement of the transport platform so that the transport platform reaches the target platform.
[0017] Preferably, the step 1 specifically comprises the following steps:
[0018] Step 11: Establish the binocular camera imaging coordinate system;
[0019] The binocular camera imaging coordinate system includes a world coordinate system, a binocular camera coordinate system, an image coordinate system and a pixel coordinate system; the world coordinate system is a real coordinate system in a three-dimensional world; the binocular camera coordinate system uses the optical center of the camera as the origin of the coordinate system, the optical axis as the X-axis, and the XOY plane and the imaging plane are parallel to each other; the image coordinate system establishes a projection relationship of the object from the binocular camera coordinate system to the image coordinate system; the pixel coordinate system is the coordinates of the pixel points of the image obtained on the image coordinate system;
[0020] Step 12: Describe three transformations from the world coordinate system to the pixel coordinate system according to the established binocular camera imaging coordinate system, specifically:
[0021]
[0022] Where: R, T are the rotation matrix and translation matrix from the world coordinate system to the binocular camera coordinate system; f is the focal length of the binocular camera; u 0 、v 0 is the pixel coordinate of the center point of the image coordinate system; d x , d y are the physical sizes of the pixel in the x-axis and y-axis directions of the image coordinate system; Z C is the object distance; X W , Y W , Z W is the real coordinate of the three-dimensional world;
[0023] Step 13: Use Zhang Zhengyou calibration method to calibrate the binocular camera, and use the binocular camera to take pictures of the calibration plate at different angles and positions.
[0024] Preferably, in step 2, the BR channel is selected to perform grayscale conversion of the image, specifically:
[0025]
[0026] Where: f(x,y) is the gray value after conversion; B(x,y) and R(x,y) are the gray values corresponding to blue and red respectively.
[0027] Preferably, the mathematical model of the spatial mapping relationship in step 3 considering image distortion is:
[0028]
[0029] Where: k 1 , k 2 , k 3 is the radial distortion parameter; p 1 、p 2 is the tangential distortion parameter; x c ,y cis the coordinate after correction; x and y are the coordinates before correction; the internal parameters and distortion parameters of the binocular camera are obtained by calculating by establishing the mathematical model of the spatial mapping relationship.
[0030] Preferably, the first range in step 4 is specifically between 200 mm and 650 mm.
[0031] Preferably, the characteristics of the target in step 6 include: shape structure characteristics, color characteristics, grayscale characteristics and edge curve characteristics.
[0032] Preferably, the step 7 establishes an ideal binocular camera imaging model according to the parallax principle, and uses the triangle similarity theorem to establish a triangle similarity theorem mathematical model:
[0033]
[0034] Where: B is the baseline distance of the binocular camera; f is the focal length of the binocular camera; P L , P R are the imaging points of the object in the left and right binocular cameras respectively; Z is the depth of the binocular camera from the object; P L P R is the distance between the imaging points of the object in the left and right binocular cameras;
[0035] The imaging point distance is specifically:
[0036]
[0037] Where: L1 and L2 are the widths of the imaging planes of the left and right binocular cameras respectively;
[0038] The depth information of the spatial object point P from the binocular camera is:
[0039]
[0040] Where: X L , X R is the horizontal coordinate of the object in the left and right binocular cameras.
[0041] Preferably, the controller in step 8 controls the movement of the conveying platform specifically as follows: the controller controls the rotary drive proportional valve, the proportional valve for the pitch mechanism and the proportional valve on the telescopic mechanism to control the movement of the conveying platform.
[0042] According to the control method of a three-degree-of-freedom transport platform for a ship according to claim 1, the preprocessing in step 5 includes noise reduction, grayscale conversion and threshold segmentation operations.
[0043] Preferably, the preprocessing in step 5 includes noise reduction, grayscale conversion and threshold segmentation operations.
[0044] Compared with the prior art, the present invention has the following beneficial effects:
[0045] By applying the motion control solution of the ship transport platform based on binocular vision, small-range fine control of the transport channel can be achieved; the problem of manual operation failing to accurately reach the predetermined position is avoided, the control accuracy of the transport platform is improved, and at the same time the safety of transfers can be guaranteed and the efficiency of transfer activities can be improved. BRIEF DESCRIPTION OF THE DRAWINGS
[0046] Figure 1 This is a control block diagram of a control method for a three-degree-of-freedom transport platform for a ship according to an embodiment of the present invention;
[0047] Figure 2 This is a schematic structural diagram of a three-degree-of-freedom transport platform for ships according to an embodiment of the present invention;
[0048] Figure 3 It is a block diagram of a positioning solution based on a binocular vision system in an embodiment of the present invention;
[0049] Figure 4 To invent the binocular camera imaging coordinate system in this embodiment;
[0050] Figure 5 The binocular imaging model in the embodiment of the present invention;
[0051] Figure 6 This is a diagram showing the error analysis of binocular camera ranging in an embodiment of the present invention;
[0052] Figure 7 Schematic diagram of a black and white chessboard calibration plate in an embodiment of the present invention;
[0053] Figure 8 This is a flowchart of the basic steps of camera calibration in an embodiment of the present invention;
[0054] Fig. 9 The picture is taken by the left camera in the embodiment of the present invention.
[0055] In the figure: 1-host computer, 2-controller, 3-rotary drive proportional valve, 4-rotary encoder, 5-fence type rotary drive, 6-pitch valve-controlled asymmetric hydraulic cylinder, 7-proportional valve, 8-first displacement sensor, 9-telescopic valve-controlled asymmetric hydraulic cylinder, 10-electro-hydraulic servo valve, 11-second displacement sensor, 12-binocular camera, 13-connecting seat, 14-fixed ladder section of conveying channel, 15-movable ladder section, 16-slider, 17-guide rail, 18-rotating part, 19-pitch part, 20-telescopic part, 21-valve-controlled hydraulic motor, 22-mechanical body. DETAILED DESCRIPTION
[0056] Hereinafter, embodiments of the present invention will be described with reference to the drawings.
[0057] The embodiment of the present invention provides a control method for a three-degree-of-freedom transport platform for a ship. The implementation of the method relies on a control system for a three-degree-of-freedom transport platform for a ship, such as Figure 2 The schematic diagram of the structure of the conveying platform shown in the figure includes a mechanical body 22 and a control system. The mechanical body 22 includes all accessories of the slewing part 18, the telescopic part 20, and the pitching part 19. The control system includes a host computer 1, a controller 2, a slewing drive proportional valve 3, a rotary encoder 4, a fence-type slewing drive 5, a first displacement sensor 8, a second displacement sensor 11, a valve-controlled hydraulic motor 21, a pitching valve-controlled asymmetric hydraulic cylinder 6, a telescopic valve-controlled asymmetric hydraulic cylinder 9, and a binocular camera 12.
[0058] The upper computer 1 reads and displays data, and the controller 2 collects and processes system signals, and the two are connected; the rotary part 18 in the mechanical body 22 is controlled by the valve-controlled hydraulic motor 21, the rotary encoder 4, the rotary drive proportional valve 3, and the fence-type rotary drive 5. The rotary drive proportional valve 3 controls the direction and flow of the oil, and the rotary encoder 4 detects the rotation angle. The rotary drive proportional valve 3 is connected to the controller 2 and is controlled by the controller 2. A connecting seat 13 is provided at the bottom of the rotary part 18; the pitch part 19 is controlled by the pitch valve-controlled asymmetric hydraulic cylinder 6, and the proportional valve 7 controls the direction and flow of the oil. The displacement signal is fed back by the built-in first displacement sensor 8 to detect the piston position. The proportional valve 7 and the first displacement sensor 8 are connected to the controller 2, and the proportional valve 7 is connected to the controller 2. Controlled by the controller 2; the telescopic part 20 is controlled by the telescopic valve-controlled asymmetric hydraulic cylinder 9, the electro-hydraulic servo valve 10 controls the direction and flow of the oil, and the displacement signal is fed back by detecting the piston position through the built-in second displacement sensor 11. The proportional valve 7 and the second displacement sensor 11 are connected to the controller 2, and the electro-hydraulic servo valve 10 is controlled by the controller 2; the upper part of the telescopic part 20 is connected to the telescopic ladder section, in which the movable ladder section 15 performs telescopic movement relative to the fixed ladder section 14 of the conveying channel through the slider 16 and the guide rail 17; the ship conveying platform adopts hydraulic drive, and the hydraulic oil source provides power for the overall hydraulic system, which is connected to the valve-controlled hydraulic motor 21, the pitch valve-controlled asymmetric hydraulic cylinder 6, and the telescopic valve-controlled asymmetric hydraulic cylinder 9; the binocular camera 12 is located at the end of the conveying platform and is connected to the controller 2.
[0059] like Figure 1 As shown, the control method of the three-degree-of-freedom transport platform for ships specifically includes the following steps:
[0060] Step 1: Perform binocular camera calibration, that is, use the MATLAB calibration toolbox to calibrate the binocular camera, and correct the error between the acquired image and the real image caused by the manufacturing error and installation error of the lens in the binocular camera lens. This process is offline content;
[0061] Binocular camera calibration specifically includes the following steps:
[0062] Step 11: Establish four coordinate systems to describe the mapping relationship between objects from the three-dimensional real world to the imaging plane of the binocular camera, such as Figure 4 As shown in the figure, the four coordinate systems are: world coordinate system, binocular camera coordinate system, image coordinate system and pixel coordinate system.
[0063] The world coordinate system is the real coordinate system in the three-dimensional world. It reflects the absolute coordinate system of the objective world and is used to represent the absolute coordinates of the target object and the binocular camera in the real world. The binocular camera coordinate system is used to describe the position of the object from the perspective of the binocular camera, with the optical center of the camera as the origin of the coordinate system, the optical axis as the X-axis, and the XOY plane and the imaging plane parallel to each other. The image coordinate system is used to describe the projection relationship of the object from the binocular camera coordinate system to the image coordinate system. The pixel coordinate system is used to describe the coordinates of the pixel points of the image obtained in the image coordinate system.
[0064] Step 12: Describe the three transformations from the world coordinate system to the pixel coordinate system based on the established binocular camera imaging coordinate system. The specific process is shown in the following formula:
[0065]
[0066] Where: R, T are the rotation matrix and translation matrix from the world coordinate system to the binocular camera coordinate system; f is the focal length of the binocular camera; u 0 、v 0 is the pixel coordinate of the center point of the image coordinate system; d x , d y The physical dimensions of the pixel in the x-axis and y-axis directions of the image coordinate system are respectively; C is the object distance; X W , Y W , Z W It is the real coordinate of the three-dimensional world, reflecting the absolute coordinate system of the objective world, and is used to represent the absolute coordinates of the target object point and the camera in the real world.
[0067] Step 13: Use Zhang Zhengyou calibration method to calibrate the binocular camera, and use the binocular camera to take pictures of the calibration plate at different angles and positions. The internal parameters and distortion parameters of the camera are obtained by calculating through the establishment of a model, and the MATLAB calibration toolbox is used to calibrate the binocular camera. The Stereo Camera Calibrator module is used to solve the internal parameters, external parameters and distortion parameters of the camera. The distortion parameter is (k 1 , k 2 , k 3 、p 1 、p 2 ), where: k 1 , k2 , k 3 Radial distortion parameter; p 1 、p 2 is the tangential distortion parameter.
[0068] Step 2: After completing the calibration of the binocular camera, correct the distortion of the binocular camera and generate a corrected image to obtain more accurate image information. This process is also offline content.
[0069] The mathematical model of the spatial mapping relationship considering image distortion is as follows:
[0070]
[0071] Where: x c ,y c is the coordinate after correction; x, y are the coordinates before correction. The internal parameters and distortion parameters of the binocular camera are obtained by calculation through the established model.
[0072] The camera is calibrated using Zhang Zhengyou calibration method, which has low equipment requirements and is easy to operate. The camera is used to take pictures of the calibration plate at different angles and positions, and the internal parameters and distortion parameters of the camera are obtained by calculating through the establishment of a model. Figure 7 It is a black and white chessboard calibration board.
[0073] The calibration board is shown in the figure. The MATLAB calibration toolbox is used to calibrate the binocular camera. The Stereo Camera Calibrator module used is a module under the image processing and computer vision category in MATLAB.
[40] This module can realize camera calibration very intuitively, solve the camera's internal parameters, external parameters and distortion parameters, and analyze the errors.
[0074] The calibration steps are as follows: Figure 8 As shown in the figure, there are some key points to note during camera calibration, such as shooting the calibration plate image, which requires the calibration plate to occupy more than two-thirds of the entire image. The calibration plate should be in five positions, four corners and the middle of the image, and each position should have different angles such as tilting upward, tilting downward, tilting to the left and tilting to the right. The more images of the calibration plate in different postures are collected, the more accurate the calibration result will be. Generally, 15 to 20 groups are needed. A total of 20 groups of images were collected this time. After eliminating the images with larger errors, 16 groups of valid images remained. Take the pictures taken by the left camera as an example. Fig. 9 shown.
[0075] The calibration results are as follows
[0076] Left camera intrinsic parameter matrix:
[0077] Left camera distortion parameters: [-0.3194 0.1238 -0.0262 0.0013 0.0020]
[0078] Right camera intrinsic parameter matrix:
[0079] Right camera distortion parameters: [-0.3101 0.1243 -0.0263 0.0013 0.0020]
[0080] Rotation matrix:
[0081] Translation matrix: [-106.4067 0.6876 9.1466]
[0082] After analyzing the calibration results and eliminating the four groups of data with larger errors, the overall average error is 0.61 pixels. It can be considered that the calibration results at this time meet the requirements.
[0083] Step 3: Design a target pattern for recognition and obtain a pattern for recognition. A pattern with distinct features has a higher matching accuracy in the three feature matching processes of grayscale matching, color matching, and geometric matching.
[0084] Select the BR channel to perform grayscale conversion of the image. This process is also offline content. Specifically, the mathematical model of grayscale conversion of the image by the BR channel is:
[0085]
[0086] Where: f(x,y) is the grayscale value after conversion; B(x,y) and R(x,y) are the grayscale values corresponding to blue and red respectively.
[0087] After completing steps 1, 2, and 3, the adjustment of the binocular camera error is completed, laying a good foundation for accurate recognition in the subsequent step 5.
[0088] Step 4: Manually operate the conveying platform in three degrees of freedom through the host computer to initially approach the target so that the conveying platform is within the range of 200mm to 650mm from the target.
[0089] Step 5: When the conveying channel approaches the target, the binocular camera captures the recognition image, and then performs operations such as noise reduction, grayscale conversion, and threshold segmentation on the image to simplify the image irrelevant information and speed up the system's processing speed.
[0090] The above is completed as Figure 3 Positioning of the binocular vision system shown.
[0091] Step 6: Perform feature analysis and matching on the acquired binocular images. According to the characteristics of the recognition target, a geometric image matching strategy based on shape features is used to recognize the target image. The target characteristics include shape structure features, color features, grayscale features, and edge curve features.
[0092] Step 7: At the same time, the position of the characteristic target is calculated using the recognition information, and the relative position relationship between the target and the binocular camera is used to calculate the relative position relationship between the characteristic target and the base of the ship transport platform. The calculation process is as follows: According to the parallax principle, a triangle similarity theorem mathematical model is established, such as Figure 5 The coordinate system shown is an ideal binocular camera imaging model. Figure 5 Based on the information in the figure, the triangle similarity theorem is used to establish the triangle similarity theorem mathematical model as follows:
[0093]
[0094] Among them: L , O R is the optical center of the left and right binocular cameras; P is an object point in space; Z is the depth of the binocular camera from the object; B is the baseline distance of the binocular camera; P L , P R is the imaging point of the object in the left and right binocular cameras; X L , X R is the horizontal coordinate of the object in the left and right binocular cameras; P L P R is the distance between the imaging points of the object in the left and right binocular cameras.
[0095] Figure 5 Where L1 and L2 represent the width of the imaging plane of the left and right binocular cameras respectively, so the imaging point distance can be expressed as:
[0096]
[0097] The depth information of the spatial object point P from the binocular camera is:
[0098]
[0099] From the above formula, we can see that if we want to obtain the depth information of the target object, we need to know the baseline distance between the binocular cameras, the focal length of the binocular cameras, and the horizontal coordinate of the same object point in the left and right images. Based on these four pieces of information, we can calculate the depth distance of the target point.
[0100] Step 8: By calculating the relative position relationship of the characteristic target with respect to the base of the ship conveying platform, the controller 2 controls the valves on the rotation, pitch, and telescopic mechanisms to control the movement of the conveying platform so that the conveying platform reaches the target platform.
[0101] Figure 6This is a binocular camera ranging error analysis diagram. The binocular ranging data shows that the error is between 2% and 4%. Figure 6 It can be intuitively found that as the theoretical test distance increases, the percentage relative error changes gradually. Therefore, appropriately reducing the distance can improve the measurement accuracy.
[0102] Compared with the prior art, the platform previously only compensated for the movement of the waves to reduce the shaking, while the rotation, pitch and telescopic processes of the transport platform were all manually controlled, which was slow. The three-degree-of-freedom transport platform control method for ships proposed in the present invention is added to the binocular vision entry control system as an auxiliary, which can greatly improve the working speed under the shaking conditions at sea, and the transport platform can reach the position faster and more accurately.
[0103] The embodiments described above are only descriptions of the preferred implementation modes of the present invention, and are not intended to limit the scope of the present invention. Without departing from the design spirit of the present invention, various modifications and improvements made to the technical solutions of the present invention by ordinary technicians in this field should all fall within the protection scope determined by the claims of the present invention.
Claims
1. A control method for a three-degree-of-freedom transport platform for a ship, characterized in that: The system controls the transport platform based on a three-degree-of-freedom transport platform control system for ships. The three-degree-of-freedom transport platform control system for ships includes a host computer, a controller, a mechanical body, a rotary encoder, a slewing drive proportional valve, a fence-type slewing drive, a displacement sensor, a valve-controlled hydraulic motor, a pitch valve-controlled asymmetric hydraulic cylinder, a telescopic valve-controlled asymmetric hydraulic cylinder, a hydraulic oil source, and a binocular camera. The system specifically includes the following steps: Step 1: perform binocular camera calibration to obtain binocular camera distortion parameters, where the distortion parameters include radial distortion parameters and tangential distortion parameters; Step 2: Design a recognition target pattern to obtain a pattern to be recognized; Step 3: According to the binocular camera distortion parameters obtained in step 1, a spatial mapping relationship conversion is performed to correct the distortion of the binocular camera to obtain a corrected image; Step 4: Manually operate the conveying platform through the host computer to perform three-degree-of-freedom motion so that the distance between the conveying platform and the target is within the first range; Step 5: The binocular camera that has been calibrated and corrected for distortion in step 1 and step 3 photographs the pattern for identification obtained in step 2, and preprocesses the pattern photographed by the binocular camera to obtain a preprocessed image; Step 6: Perform feature analysis and matching on the preprocessed image obtained in step 5, and recognize the target image using a geometric image matching strategy based on shape features according to the characteristics of the recognition target to obtain recognition information; Step 7: Calculate the position of the characteristic target using the identification information obtained in step 6, and calculate the relative position relationship of the characteristic target relative to the base of the ship transport platform using the relative position relationship between the target and the binocular camera; Step 8: Based on the relative position relationship of the characteristic target obtained in step 7 with respect to the base of the ship transport platform, the controller is used to control the movement of the transport platform so that the transport platform reaches the target platform.
2. The control method of a three-degree-of-freedom transport platform for a ship according to claim 1, characterized in that: The step 1 specifically comprises the following steps: Step 11: Establish the binocular camera imaging coordinate system; The binocular camera imaging coordinate system includes a world coordinate system, a binocular camera coordinate system, an image coordinate system and a pixel coordinate system; the world coordinate system is a real coordinate system in a three-dimensional world; the binocular camera coordinate system uses the optical center of the camera as the origin of the coordinate system, the optical axis as the X-axis, and the XOY plane and the imaging plane are parallel to each other; the image coordinate system establishes a projection relationship of the object from the binocular camera coordinate system to the image coordinate system; the pixel coordinate system is the coordinates of the pixel points of the image obtained on the image coordinate system; Step 12: Describe three transformations from the world coordinate system to the pixel coordinate system according to the established binocular camera imaging coordinate system, specifically: Where: R, T are the rotation matrix and translation matrix from the world coordinate system to the binocular camera coordinate system; f is the focal length of the binocular camera; u0, v0 are the pixel coordinates of the center point of the image coordinate system; d x , d y are the physical sizes of the pixel in the x-axis and y-axis directions of the image coordinate system; Z C is the object distance; X W , Y W , Z W is the real coordinate of the three-dimensional world; Step 13: Use Zhang Zhengyou calibration method to calibrate the binocular camera, and use the binocular camera to take pictures of the calibration plate at different angles and positions.
3. The control method of a three-degree-of-freedom transport platform for a ship according to claim 1, characterized in that: In step 2, the BR channel is selected to perform grayscale conversion of the image, specifically: Where: f(x,y) is the gray value after conversion; B(x,y) and R(x,y) are the gray values corresponding to blue and red respectively.
4. The control method of a three-degree-of-freedom transport platform for a ship according to claim 1, characterized in that: The mathematical model of the spatial mapping relationship in step 3 considering image distortion is: Where: k1, k2, k3 are radial distortion parameters; p1, p2 are tangential distortion parameters; x c ,y c is the coordinate after correction; x and y are the coordinates before correction; the internal parameters and distortion parameters of the binocular camera are obtained by calculating by establishing the mathematical model of the spatial mapping relationship.
5. The control method of the three-degree-of-freedom transport platform for a ship according to claim 4, characterized in that: The first range in step 4 is specifically between 200 mm and 650 mm.
6. The control method of a three-degree-of-freedom transport platform for a ship according to claim 1, characterized in that: The characteristics of the target in step 6 include: shape structure characteristics, color characteristics, grayscale characteristics and edge curve characteristics.
7. The control method of a three-degree-of-freedom transport platform for a ship according to claim 1, characterized in that: The step 7 establishes an ideal binocular camera imaging model based on the parallax principle, and uses the triangle similarity theorem to establish a triangle similarity theorem mathematical model: Where: B is the baseline distance of the binocular camera; f is the focal length of the binocular camera; P L , P R are the imaging points of the object in the left and right binocular cameras respectively; Z is the depth of the binocular camera from the object; P L P R is the distance between the imaging points of the object in the left and right binocular cameras; The imaging point distance is specifically: Where: L1 and L2 are the widths of the imaging planes of the left and right binocular cameras respectively; The depth information of the spatial object point P from the binocular camera is: Where: X L , X R is the horizontal coordinate of the object in the left and right binocular cameras.
8. The control method of a three-degree-of-freedom transport platform for a ship according to claim 1, characterized in that: The controller in step 8 controls the movement of the conveying platform specifically as follows: the controller controls the rotary drive proportional valve, the proportional valve for the pitch mechanism and the proportional valve on the telescopic mechanism to control the movement of the conveying platform.
9. The control method of a three-degree-of-freedom transport platform for a ship according to claim 1, characterized in that: The preprocessing in step 5 includes noise reduction, grayscale conversion and threshold segmentation operations.
