A drowning prevention intelligent monitoring and rescue method
Through the intelligent monitoring system and the automatic tracking method of the water surface rescue robot, combined with the distortion model to correct the camera parameters, the problem of dynamic position changes in maritime rescue is solved, and faster and more accurate rescue of people who fall into the water is achieved.
Patent Information
- Application Number
- CN202410756409.X
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2024-06-13
- Publication Date
- 2024-08-30
- Estimated Expiration
- 2044-06-13
AI Technical Summary
During the sea rescue process, due to the influence of waves, the position of the person who fell into the water dynamically changes, and the existing rescue method based on GPS coordinates is difficult to accurately locate, resulting in low rescue timeliness.
An anti-drowning intelligent monitoring and rescue method is adopted to calculate the position of the person who fell into the water by acquiring water surface images, using the water surface rescue robot to locate based on the automatic tracking method, and correcting the camera's intrinsic parameters through the distortion model to improve the accuracy of position conversion. The water surface rescue robot Plan the movement path until the detection component senses the person falling into the water, and perform autonomous tracking and rescue.
It improves the timeliness of rescue for people who fell into the water, obtains more accurate information on the location of the person who fell into the water, and ensures fast and accurate rescue.
Smart Images

Figure CN118323395B
Abstract
Description
Technical Field
[0001] The present invention relates to the technical field of safety rescue, and in particular to an anti-drowning intelligent monitoring and rescue method. Background Art
[0002] During the rescue process, the accurate position relationship between the rescue boat and the person who falls into the water is the key to the rapid rescue of the person who falls into the water. However, most of the existing rescue boats carry out rescue based on the GPS coordinates of the person who falls into the water as a fixed position. However, in water rescue, especially sea rescue, due to the influence of waves, the person who falls into the water is in a dynamic state and his position is changing at any time, causing the initial GPS position to be constantly changing, which creates great difficulties for rescue. Summary of the invention
[0003] Based on the technical problems existing in the background technology, the present invention proposes an anti-drowning intelligent monitoring and rescue method, which improves the timeliness of rescuing people who fall into the water.
[0004] The present invention provides an intelligent drowning prevention monitoring and rescue method, comprising the following steps:
[0005] S1, obtaining a water surface image containing a person falling into the water, and calculating the position of the person falling into the water based on the water surface image;
[0006] S2. The surface rescue robot plans a movement path on the water surface according to the position of the person who falls into the water, until the detection component provided on the surface rescue robot senses the person who falls into the water;
[0007] S3, the surface rescue robot locates the person who falls into the water based on the automatic tracking method until the person who falls into the water is rescued;
[0008] S31, initializing the queue of trajectory points to be tracked And loop variables , the queue of trajectory points to be tracked The system program automatically plans the path tracking trajectory points according to the position of the person who fell into the water. is the total number of tracking points in the queue of trajectory points to be tracked, is the first point in the queue of trajectory points to be tracked. Tracking points;
[0009] S32, traversing the queue of trajectory points to be tracked , to find the Points to be tracked ;
[0010] S33. Directly obtain the real-time position of the surface rescue robot from the longitude and latitude of the ship-borne satellite navigation , based on the real-time position of the surface rescue robot and the next point to be tracked The target azimuth of the surface rescue robot is calculated And the surface rescue robot and the point to be tracked The distance between , thereby updating the current heading deviation and lateral distance deviation of the surface rescue robot;
[0011] S34, using the current heading deviation and lateral distance deviation of the surface rescue robot as inputs of the ship lateral distance controller, and regulating the driving trajectory of the surface rescue robot based on the control amount output by the ship lateral distance controller;
[0012] S35: Determine whether the water rescue robot is at the point to be tracked after the driving is completed. Is the distance between them less than the set threshold? If so, proceed to step S36; if not, return to step S33;
[0013] S36, then the current tracking point is reached ,Other ,judge Is it less than If yes, then loop into step S32, if not, then rescue the person who fell into the water.
[0014] Furthermore, step S1 specifically includes:
[0015] S11. Calculate the coordinates of the center of the person falling into the water in the water surface image acquired by the camera in the pixel coordinate system ;
[0016] S12. Correct the camera distortion of the intrinsic parameters of the camera model using the distortion model to obtain the camera calibration parameter matrix , through the camera calibration parameter matrix The coordinates in the pixel coordinate system are converted into coordinates in the world coordinate system, and the coordinates in the world coordinate system correspond to the position of the person who falls into the water.
[0017] Furthermore, in step S12, the camera distortion of the camera intrinsic parameters is corrected using the distortion model to obtain the camera calibration parameter matrix , specifically:
[0018] use The coordinates in the known world coordinate system and the corresponding pixel coordinate system are transformed by linear transformation to obtain each element in the camera projection matrix P;
[0019] Based on the machine projection matrix P, we get The matrix of linear equations between the known and calibrated coordinates in the world coordinate system and the corresponding coordinates in the pixel coordinate system ,in, represents the intrinsic parameter matrix of the camera, represents the camera parameters, express A matrix composed of coordinates in the pixel coordinate system;
[0020] The camera parameters are solved using the least squares method. ;
[0021] Based on camera parameters Get the camera calibration parameter matrix .
[0022] Further, in step S12, the camera calibration parameter matrix Convert the pixel coordinates to the world coordinates:
[0023] In the camera model, a world coordinate system of any spatial point is established. Through the rigid body transformation from the world coordinate system to the camera coordinate system, the perspective projection transformation from the camera coordinate system to the image coordinate system, and the coordinate transformation between the image coordinate system and the pixel coordinate system, the camera calibration parameter matrix is realized. Convert pixel coordinates to world coordinates.
[0024] Further, in step S33, the target azimuth of the surface rescue robot And the surface rescue robot and the point to be tracked The distance between The calculation formula is as follows:
[0025]
[0026]
[0027] in, Indicates the last point to be tracked location, Indicates the real-time position of the surface rescue robot corresponding to the longitude and latitude of the ship-borne satellite navigation. Indicates the next point to be tracked location, Represents the radius of the Earth.
[0028] Furthermore, in step S34, the calculation formula of the control amount output by the ship lateral distance controller is as follows:
[0029]
[0030]
[0031] in, express The control quantity output by the ship's lateral distance controller at the moment, express The control quantity output by the ship's lateral distance controller at the moment, Indicates the control change. , , Respectively represent the proportional, integral, and differential coefficients of the lateral distance PID controller, express The horizontal distance deviation at the moment, express The horizontal distance deviation at the moment, express The horizontal distance deviation at the moment.
[0032] The advantages of the intelligent monitoring and rescue method for preventing drowning provided by the present invention are as follows: the intelligent monitoring and rescue method for preventing drowning provided in the structure of the present invention first uses a distortion model to correct the camera distortion of the intrinsic parameters of the camera model to improve the accuracy of the conversion between the pixel coordinate system and the world coordinate system, and obtain a more accurate position of the person who falls into the water, thereby providing more accurate information for the rescue of the person who falls into the water, and improving the timeliness of the accurate rescue of the person who falls into the water; in addition, the surface rescue robot first uses the converted position of the person who falls into the water to plan the driving trajectory, but due to the position of the person who falls into the water obtained based on the camera, and the person who falls into the water has a certain floating displacement before the arrival of the surface rescue robot, the initial position is changed. Therefore, when the detection component on the surface rescue robot in this embodiment can detect the person who falls into the water, it will not follow the path form of the planned path, but will instead locate the person who falls into the water based on the automatic tracking method, thereby obtaining the falling position of the person who falls into the water more quickly, thereby improving the timeliness of rescuing the person who falls into the water. BRIEF DESCRIPTION OF THE DRAWINGS
[0033] Figure 1 It is a schematic diagram of the process of the present invention;
[0034] Figure 2 A schematic diagram of a process for calculating the position of a person falling into the water based on a water surface image;
[0035] Figure 3 Schematic diagram of four coordinate systems;
[0036] Figure 4 A schematic diagram of locating a person who falls into water based on an automatic tracking method;
[0037] Figure 5 for Figure 4 A partial enlarged view of
[0038] Figure 6 A schematic diagram of the process of locating a person who falls into water based on an automatic tracking method;
[0039] Among them, 1-person falling into the water, 2-position of the surface rescue robot in the image, 3-imaging plane, 4-horizontal plane. DETAILED DESCRIPTION
[0040] Below, the technical solution of the present invention is described in detail through specific embodiments. Many specific details are set forth in the following description to facilitate a full understanding of the present invention. However, the present invention can be implemented in many other ways different from those described herein, and those skilled in the art can make similar improvements without violating the connotation of the present invention. Therefore, the present invention is not limited to the specific implementation disclosed below.
[0041] The anti-drowning intelligent monitoring and rescue method recorded in this embodiment is implemented through an intelligent monitoring system, a surface rescue control and management system, and a surface rescue robot, wherein the intelligent monitoring system includes a video monitoring system and a surface security automatic identification system.
[0042] The video monitoring system includes a camera, which can be an optical camera, an infrared camera, a thermal imaging camera or a combination thereof; the camera monitors the water surface and the shoreline all day and night;
[0043] The water surface security automatic identification system monitors and identifies the video images of the water surface and the shoreline uploaded by the video surveillance system in real time, builds electronic fences and safety zones on the water surface and the shoreline, automatically warns, tracks and locates people or objects that break into the safety zone, and transmits the real-time location of prohibited people or objects to the water surface rescue control and management system;
[0044] The surface rescue control and management system initiates automatic expulsion or rescue instructions based on the real-time latitude and longitude of the person or object that enters the restricted area and sends them to the surface rescue robot. The surface rescue robot automatically departs from the dock or re-plans the path during surface cruising. The surface rescue robot plans the cruising route according to the target to be expelled or rescued, and continuously updates and re-plans the path according to the dynamic position of the target during the cruising process until it approaches a certain distance (for example, 20 to 100 meters) from the target.
[0045] When the surface rescue robot approaches the target (the distance threshold can be set), it enters the detection range of the detection component (one or more combinations of optical, infrared, thermal imaging camera, laser radar) on the surface rescue robot, starts the autonomous target detection mode of the surface rescue robot, takes over the background position instructions of the surface rescue control and management system, and the surface rescue robot autonomously tracks the target according to the detection component until it reaches the target location (for example, about 1-2 meters), and uses the rescue equipment on the surface rescue machine or automatically releases the rescue device to the person to be rescued. If the rescue is unsuccessful or deviates from the person to be rescued, the surface rescue robot will restart the target detection and automatic rescue process.
[0046] like Figures 1 to 6 As shown, the present invention proposes an anti-drowning intelligent monitoring and rescue method, comprising the following steps:
[0047] S1, obtaining a water surface image containing a person falling into the water, and calculating the position of the person falling into the water based on the water surface image;
[0048] The camera is used to obtain water surface images including people who fall into the water. The camera is composed of multiple sub-cameras. The coverage area of the picture taken by each sub-camera is fixed. The pictures of multiple sub-cameras are superimposed on each other to achieve full coverage of the monitoring area. When people or other prohibited targets break into the area covered by the camera, the water surface security automatic identification system will warn the video images of the intrusion into the restricted area, and further automatically warn, track and locate the people or objects that break into the safe area.
[0049] The position of the drowning person is calculated based on the water surface image of the camera. First, the position of the drowning person in the pixel coordinate system is identified through the water surface image, and then the world coordinate or GPS coordinate position of the drowning person is calculated. The GPS coordinate position corresponds to the position where the drowning person needs to be rescued. At this time, the pixel coordinates need to be converted into the corresponding earth coordinates in the river or water surface area. In addition, before the calculation, the intrinsic parameters of the camera are calibrated by linear transformation according to the physical characteristics of the installed camera, which specifically includes steps S11 to S12.
[0050] S11. Calculate the coordinates of the center of the person falling into the water in the water surface image acquired by the camera in the pixel coordinate system ;
[0051] S12. Correct the camera distortion of the intrinsic parameters of the camera model using the distortion model to obtain the camera calibration parameter matrix , through the camera calibration parameter matrix The coordinates in the pixel coordinate system Convert to world coordinates , the coordinates in the world coordinate system Corresponds to the position of the person who fell into the water;
[0052] Coordinates in pixel coordinate system After the coordinates are converted to the world coordinate system, the intrinsic parameters of the camera model need to be obtained through chessboard calibration. The world coordinates (earth coordinate system) are mapped to the image plane through the intrinsic parameters. Considering the lens distortion, the intrinsic parameters of the camera mainly include the principal point coordinates and Equivalent focal length in direction , also including the radial distortion coefficient and tangential distortion coefficient One of the main factors that affect the measurement accuracy is camera distortion. The measurement accuracy can be improved by using the distortion model to correct the camera distortion. The camera imaging model is established as shown in the figure below, and four coordinate systems are defined: pixel coordinate system , Image coordinate system , Camera coordinate system and the world coordinate system .
[0053] The descriptions of the four coordinate systems are as follows:
[0054] 1) Pixel coordinate system : A two-dimensional coordinate system that describes the pixel arrangement in the camera chip and represents the discretization of the image coordinate system. Usually defined at the lower left corner of the image matrix, Axis and The axes are parallel to the two sides of the camera imaging plane, and the coordinate unit is pixel;
[0055] 2) Image coordinate system : A two-dimensional coordinate system that describes the actual physical position of a spatial object projected onto the imaging target surface. Coordinate origin Defined as the intersection of the extended line of the camera optical axis and the imaging target surface, Axis and The axes are respectively related to the pixel coordinate system Axis and The axes are parallel, and the coordinate unit is millimeter (mm);
[0056] 3) Camera coordinate system : The three-dimensional coordinate system is the bridge between the world coordinate system and the image coordinate system. Set the optical center of the camera lens as the coordinate origin, denoted as axis, The axes correspond to the axes of the image coordinate system and Axis parallel, The axis coincides with the camera optical axis, and the coordinate unit is millimeter (mm);
[0057] 4) World Coordinate System : A three-dimensional coordinate system, which can be used as a reference to describe the spatial position of the camera and the object to be measured (person falling into the water). Generally, it is freely set according to the actual situation, and the coordinate unit is millimeter (mm).
[0058] In the camera model, establish the space point World coordinates Its imaging position on the imaging target surface The relationship between them requires three transformations: rigid body transformation from world coordinate system to camera coordinate system, perspective projection transformation from camera coordinate system to image coordinate system, and coordinate transformation between image coordinate system and pixel coordinate system. The coordinate transformation formula is as follows:
[0059] (1)
[0060] , (2)
[0061] (3)
[0062] (4)
[0063] in is the distance from the optical center of the camera to the imaging plane of the camera, that is, the focal length of the camera; are the coordinates of the vertical and horizontal axes in the pixel coordinate system; is the world coordinate system; is the center point, which is the internal reference of a general camera; are the scale factor focal lengths of the horizontal and vertical axes in the pixel coordinate system, respectively; Represents the inclination of the horizontal and vertical axes in the pixel coordinate system, that is, Axis and The non-perpendicularity factor of the axis; are the physical sizes of the unit pixel in the horizontal and vertical axes respectively; Calibrate the parameter matrix for the camera; is the rotation matrix, Specifically, it is a 3×3 unit orthogonal matrix; is the translation vector, Represents the Z axis of the image coordinate system.
[0064] Furthermore, in order to improve the measurement accuracy by correcting the camera distortion using the distortion model, a GPS-based camera calibration method is adopted to calibrate the camera parameter matrix Decompose and solve the camera intrinsic parameters by direct linear transformation method to calculate the recalibrated camera calibration parameter matrix , as follows:
[0065] a1) Utilization The coordinates in the world coordinate system and the corresponding pixel coordinate system are known and calibrated, and each element in the camera projection matrix P is obtained by linear transformation;
[0066] use Control points are used to calculate the projection matrix. The square error of the reprojection is minimized first, and then the projection matrix is used for calculation.
[0067] (5)
[0068] in, is the pixel coordinate system The second image coordinates of the points are, is the world coordinate system (GPS) The Euclidean coordinates of a point, is the internal parameter matrix, is a one-dimensional translation vector, is the translation vector, which is a matrix containing 0. is a simplified one-dimensional vector, not including 0; is the scale factor, is the element in the camera projection matrix P.
[0069] a2) Based on the machine projection matrix P, we get The matrix of linear equations between the known coordinates in the world coordinate system and the corresponding coordinates in the pixel coordinate system ,in, represents the intrinsic parameter matrix of the camera, Represents the camera parameters, that is, the camera projection matrix P element, express A matrix composed of coordinates in the pixel coordinate system;
[0070] right Known world coordinates And the corresponding image coordinates , the direct linear transformation (DLT) method can be used to solve each element in the camera projection matrix P. Substituting the points into formula (5), the matrix form of the linear equation system is as follows:
[0071] (6)
[0072] To simplify the calculation, construct Special values, set , thus we get the camera projection matrix P Elemental Linear equation, let:
[0073] (7)
[0074] (8)
[0075] (9)
[0076] a3) Solve the camera parameters using the least squares method ;
[0077] a4) Based on camera parameters Get the camera calibration parameter matrix ;
[0078] From space Known points and corresponding coordinates, calculate the camera parameters , the camera calibration parameter matrix can be obtained After completing the camera calibration, the coordinate conversion formula can be used to calculate the conversion between the pixel coordinate system and the world coordinate system, and the mapping relationship between the pixel coordinates of the person falling into the water in the image recognition and the coordinates of the area where the river surface is located can be realized, thereby calculating the longitude and latitude of the person falling into the water (world coordinates / GPS coordinates), and uploading the longitude and latitude information of the person falling into the water to the surface rescue control and management system.
[0079] S2, the surface rescue robot obtains the coordinates of the world coordinate system Plan a movement path on the water surface until the detection component set on the surface rescue robot senses the person who falls into the water;
[0080] After calculating the longitude and latitude (world coordinates / GPS coordinates) of the person who falls into the water, the surface rescue control and management system sends a rescue command to the surface rescue robot. The surface rescue robot automatically generates a rescue path based on the longitude and latitude of the person who falls into the water provided by the surface rescue control and management system, and cruises autonomously on the water surface. During the cruise, the cruise path is automatically updated according to the changes in the longitude and latitude of the person who falls into the water provided by the surface rescue control and management system. The surface rescue robot keeps approaching the person who falls into the water, and at the same time uses the ship-borne detection components (optical and infrared cameras) to capture the person who falls into the water. When the detection component can capture and identify the person who falls into the water, it will no longer accept the control command of the surface rescue control and management system, and will start autonomous tracking and positioning of the person who falls into the water.
[0081] S3, the surface rescue robot locates the person who falls into the water based on the automatic tracking method until the person who falls into the water is rescued;
[0082] like Figure 4 and 5 As shown, according to the detection component on the water surface rescue robot, an image of a person who falls into the water 1 on the horizontal plane 4 is obtained, and the image is a positioning image of the person who falls into the water 1. The imaging plane 3 of the detection component shows the position 2 of the person who falls into the water 1 in the image. The position and deviation of the person who falls into the water on the water surface are calculated according to the position of the person who falls into the water in the image, wherein the center of the image is used as the position of the camera in the detection component and also as the position of the water surface rescue robot. Therefore, the angle of the person who falls into the water 1 deviating from the center of the image is calculated, and then the position of the person who falls into the water 1 deviating from the center of the image can be determined in combination with the lateral distance between the person who falls into the water 1 and the center of the image. Then, the angle of the person who falls into the water 1 deviating from the center of the image is:
[0083] (10)
[0084] (11)
[0085] in, is the camera focal length, For people who fall into the water The angle of the axis direction away from the center of the image, For people who fall into the water The angle at which the axis deviates from the center of the image. The person who fell into the water in the image The number of pixels that deviate from the center point in the axis direction, The person who fell into the water in the image The number of pixels that deviate from the center point in the axis direction, and The positioning deviation of the person who fell into the water, The imaging plane of the camera in the detection component is The pixel size in the axis direction, The imaging plane of the camera in the detection component is The pixel size in the axis direction.
[0086] When the detection component on the water rescue robot can capture and identify the person who falls into the water, Figure 6 As shown, the process of the surface rescue robot locating the drowning person based on the automatic tracking method is as follows:
[0087] S31, initializing the queue of trajectory points to be tracked And loop variables , the queue of trajectory points to be tracked The system program automatically plans the path tracking trajectory points according to the position of the person who fell into the water. is the total number of tracking points in the queue of trajectory points to be tracked, is the first point in the queue of trajectory points to be tracked. Tracking points;
[0088] S32, traversing the queue of trajectory points to be tracked , to find the Points to be tracked ;
[0089] S33. Directly obtain the real-time position of the surface rescue robot from the longitude and latitude of the ship-borne satellite navigation , based on the real-time position of the surface rescue robot and the position of the next point to be tracked, the target azimuth of the surface rescue robot is calculated And the surface rescue robot and the point to be tracked The distance between , thereby updating the current heading deviation and lateral distance deviation of the surface rescue robot, where the lateral distance deviation is the difference between the current position and the target trajectory point (the point to be tracked ) Distance deviation of connecting lines;
[0090] (11)
[0091] (12)
[0092] in, Indicates the last point to be tracked location, Indicates the real-time position of the surface rescue robot corresponding to the longitude and latitude of the ship-borne satellite navigation. Indicates the next point to be tracked location, Represents the radius of the Earth.
[0093] The essence of the path tracking cruise method for rescuing drowned people is point-by-point tracking, and the basis of point-by-point tracking is heading control. The expected heading during point-by-point tracking needs to be updated according to formula (11) in each cycle, and the distance between the surface rescue robot and the tracking point also needs to be updated in real time using formula (12) to compare with the threshold distance to determine whether the tracking point has been reached.
[0094] S34, using the current heading deviation and lateral distance deviation of the surface rescue robot as inputs of the ship lateral distance controller, and regulating the driving trajectory of the surface rescue robot based on the control amount output by the ship lateral distance controller;
[0095] Heading control is a method often used in ship control. It uses heading deviation as controller input, calculates the control output of the left and right actuators, and acts on the unmanned ship to change its trajectory.
[0096] In order to make the driving trajectory of the surface rescue robot accurately track the target, it is necessary to calculate the number of pixels of the lateral distance deviation between the target and the image center according to the imaging plane. (i.e. the person who fell into the water The number of pixels that deviate from the center point in the axial direction is used to design the ship's lateral distance controller, and the lateral distance deviation As the input of the ship's lateral distance controller, the control output of the left and right drives is calculated to act on the unmanned ship to change its trajectory. The calculation formula for the control output of the ship's lateral distance controller is as follows:
[0097]
[0098]
[0099] in, express The control quantity output by the ship's lateral distance controller at the moment, express The control quantity output by the ship's lateral distance controller at the moment, Indicates the control change. , , Respectively represent the proportional, integral, and differential coefficients of the lateral distance PID controller, express The horizontal distance deviation at the moment, express The horizontal distance deviation at the moment, express Tracking control of water rescue robot to reduce lateral distance deviation The error value is used to control the driving of the surface rescue robot. When the surface rescue robot moves to the position of the person who falls into the water, after reaching the position of the person who falls into the water, the error value in step (10) The rescue conditions are met, making it convenient to rescue people who fall into the water.
[0100] From the empirical values of the above coefficients, for The horizontal distance deviation at the moment.
[0101] S35: Determine whether the water rescue robot is at the point to be tracked after the driving is completed. Is the distance between them less than the set threshold? If so, proceed to step S36; if not, return to step S33;
[0102] S36, then the current tracking point is reached ,Other ,judge Is it less than If yes, then loop into step S32, if not, then rescue the drowning person.
[0103] According to steps S1 to S3, the surface monitoring area is monitored in real time based on the video monitoring system. Once prohibited objects or persons are found in the monitoring area, the acquired images including the prohibited objects or persons are immediately sent to the surface security automatic identification system to process the acquired images, and the obtained GPS coordinates of the prohibited objects or persons are uploaded to the surface rescue control and management system. The surface rescue control and management system sends instructions to the surface rescue robot based on the GPS coordinates, and the surface rescue robot moves to the position of the prohibited objects or persons according to the instructions until the detection component on the surface rescue robot can detect the prohibited objects or persons. The surface rescue robot will subsequently locate the prohibited objects or persons based on the automatic tracking method, and control the movement of the surface rescue robot through the ship's lateral distance controller until the distance between the surface rescue robot and the prohibited objects or persons is within the set threshold, thereby achieving the purpose of rescuing people who fall into the water or expelling those who illegally enter the ship.
[0104] This embodiment first uses a distortion model to correct the camera distortion of the intrinsic parameters of the camera model, so as to improve the accuracy of the conversion between the pixel coordinate system and the world coordinate system, and obtain a more accurate position of the person who falls into the water, thereby providing more accurate information for the rescue of the person who falls into the water and improving the timeliness of the accurate rescue of the person who falls into the water; in addition, the surface rescue robot first uses the converted position of the person who falls into the water to plan the driving trajectory, but due to the position of the person who falls into the water obtained by the camera and the certain floating displacement of the person who falls into the water before the arrival of the surface rescue robot, the initial position is changed. Therefore, when the detection component on the surface rescue robot of this embodiment can detect the person who falls into the water, it will not follow the planned path form, but will instead locate the person who falls into the water based on the automatic tracking method, thereby obtaining the falling position of the person who falls into the water more quickly, thereby improving the timeliness of rescuing the person who falls into the water.
[0105] The above description is only a preferred specific implementation manner of the present invention, but the protection scope of the present invention is not limited thereto. Any technician familiar with the technical field can make equivalent replacements or changes according to the technical scheme and inventive concept of the present invention within the technical scope disclosed by the present invention, which should be covered by the protection scope of the present invention.
Claims
1. An intelligent drowning prevention monitoring and rescue method, characterized in that: The steps include: S1, obtaining a water surface image containing a person falling into the water, and calculating the position of the person falling into the water based on the water surface image; S2. The surface rescue robot drives on the water surface according to the path planned by the surface rescue control and management system according to the position of the person who falls into the water, until the detection component provided on the surface rescue robot senses the person who falls into the water; S3, the surface rescue robot locates the person who falls into the water based on the automatic tracking method until the person who falls into the water is rescued; S31, initializing the queue of trajectory points to be tracked And loop variables , the queue of trajectory points to be tracked The system program automatically plans the path tracking trajectory points according to the position of the person who fell into the water. is the total number of tracking points in the queue of trajectory points to be tracked, is the first point in the queue of trajectory points to be tracked. Tracking points; S32, traversing the queue of trajectory points to be tracked , to find the Points to be tracked ; S33. Directly obtain the real-time position of the surface rescue robot from the longitude and latitude of the ship-borne satellite navigation , based on the real-time position of the surface rescue robot and the next point to be tracked The target azimuth of the surface rescue robot is calculated And the surface rescue robot and the point to be tracked The distance between , thereby updating the current heading deviation and lateral distance deviation of the surface rescue robot; S34, using the current heading deviation and lateral distance deviation of the surface rescue robot as inputs of the ship lateral distance controller, and regulating the driving trajectory of the surface rescue robot based on the control amount output by the ship lateral distance controller; S35: Determine whether the water rescue robot is at the point to be tracked after the driving is completed. Is the distance between them less than the set threshold? If so, proceed to step S36; if not, return to step S33; S36, then the current tracking point is reached ,make ,judge Is it less than If yes, then loop into step S32, if not, then rescue the person who fell into the water.
2. The method for preventing drowning from being detected and rescued according to claim 1, characterized in that: Step S1 specifically includes: S11, calculating the coordinates of the center of the person falling into the water in the water surface image acquired by the camera in the pixel coordinate system; S12. Correct the camera distortion of the intrinsic parameters of the camera model using the distortion model to obtain the camera calibration parameter matrix , through the camera calibration parameter matrix The coordinates in the pixel coordinate system are converted to the coordinates in the world coordinate system, and the coordinates in the world coordinate system correspond to the position of the person who fell into the water; wherein the camera calibration parameter matrix The details are as follows: in, are the scale factor focal lengths of the horizontal and vertical axes in the pixel coordinate system, respectively, is the center point, which is the internal reference of a general camera. Indicates the inclination of the horizontal and vertical axes in the pixel coordinate system.
3. The anti-drowning intelligent monitoring and rescue method according to claim 2 is characterized in that: In step S12, the camera distortion of the camera intrinsic parameters is corrected using the distortion model to obtain the camera calibration parameter matrix , specifically: use The coordinates in the known world coordinate system and the corresponding pixel coordinate system are transformed by linear transformation to obtain each element in the camera projection matrix P; Based on the camera projection matrix P, The matrix of linear equations between the known and calibrated coordinates in the world coordinate system and the corresponding coordinates in the pixel coordinate system ,in, represents the intrinsic parameter matrix of the camera, represents the camera parameters, express A matrix composed of coordinates in the pixel coordinate system; The camera parameters are solved using the least squares method. ; Based on camera parameters Get the camera calibration parameter matrix .
4. The intelligent drowning prevention monitoring and rescue method according to claim 3, characterized in that: In step S12, the camera calibration parameter matrix Convert the pixel coordinates to the world coordinates: In the camera model, a world coordinate system of any spatial point is established. Through the rigid body transformation from the world coordinate system to the camera coordinate system, the perspective projection transformation from the camera coordinate system to the image coordinate system, and the coordinate transformation between the image coordinate system and the pixel coordinate system, the camera calibration parameter matrix is realized. Convert pixel coordinates to world coordinates.
5. The anti-drowning intelligent monitoring and rescue method according to claim 1, characterized in that: In step S33, the target azimuth of the surface rescue robot And the surface rescue robot and the point to be tracked The distance between The calculation formula is as follows: in, Indicates the real-time position of the surface rescue robot corresponding to the longitude and latitude of the ship-borne satellite navigation. Indicates the next point to be tracked location, Represents the radius of the Earth.
6. The method for preventing drowning from being detected and rescued according to claim 5, characterized in that: In step S34, the calculation formula of the control amount output by the ship lateral distance controller is as follows: in, express The control quantity output by the ship's lateral distance controller at the moment, express The control quantity output by the ship's lateral distance controller at the moment, Indicates the control change. , , Respectively represent the proportional, integral, and differential coefficients of the lateral distance PID controller, express The horizontal distance deviation at the moment, express The horizontal distance deviation at the moment, express The horizontal distance deviation at the moment.
Citation Information
Patent Citations
Water surface lifesaving method and system and medium
CN115158606A
Implementation and optimal robustness control method of offshore unmanned rescue boat system
CN116165903A
