A crane operation abnormality monitoring method, system, electronic equipment and medium

Through video image analysis and multi-variable calculation, the target position and movement status in the crane operating area are monitored in real time, and the risk index is calculated, which solves the problem of difficulty in evaluating the dynamic movement of the crane in the existing technology and improves the abnormal monitoring of crane operations. accuracy and safety.

CN118607934BActive Publication Date: 2024-10-29FOSHAN SHUNDE JETONE DIGITAL TECH CO LTD
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
CN202411080322.1
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2024-08-08
Publication Date
2024-10-29
Estimated Expiration
2044-08-08

AI Technical Summary

Technical Problem

Existing crane operation abnormality monitoring methods are difficult to consider the dynamic movement of the crane, resulting in low accuracy in abnormal operation risk assessment and prone to false alarms.

Method used

By obtaining video images of the crane's operating area, target detection is performed to determine the location of the crane, personnel and lifted objects, the traveling speed and direction of the crane are obtained in real time, the movement trajectory is predicted, and the distance change between the personnel and the crane is calculated. Rate, combine multiple parameters to calculate the risk index, and issue an early warning if it exceeds the threshold.

Benefits of technology

It achieves accurate monitoring and assessment of the dynamic abnormal operating behavior of mobile cranes, reduces the risk of personal accidents during operation, improves the accuracy of abnormal monitoring of crane operations, and avoids false alarms.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118607934B_ABST
    Figure CN118607934B_ABST
Patent Text Reader

Abstract

A method, system, electronic device, and medium for monitoring abnormal crane operations are disclosed, relating to the field of image processing technology. The method includes: acquiring video images of the crane's operating area and performing target detection on the video images to determine the crane's position, personnel's position, and the position of the hoisted object; determining a first relative distance based on the crane's and personnel's positions, and determining a second relative distance based on the position of the hoisted object and personnel's positions; acquiring the crane's travel speed and direction, and predicting the crane's trajectory based on the travel speed and direction; determining the rate of change of distance between the personnel and the crane based on the trajectory and personnel's positions; calculating a risk index for the personnel by combining the first relative distance, the second relative distance, the rate of change of distance, and the travel speed; and issuing an abnormal warning for the personnel if the risk index is greater than or equal to a risk threshold. Implementing the technical solution provided in this application improves the accuracy of monitoring abnormal crane operations.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of image processing technology, and in particular to a method, system, electronic equipment and medium for monitoring abnormal crane operation. Background Art

[0002] With the acceleration of urban construction, the use of cranes has become ubiquitous in the construction process of modern construction projects. Cranes are mainly used for vertical transportation and installation of various building materials and equipment. Due to the complex lifting operation environment, the scattered distribution of operators and the movement of cranes, crane operations have certain safety hazards. How to timely discover and warn potential safety risks and reduce casualties and property losses is an important issue in the safety management of crane operations.

[0003] At present, the existing abnormal crane operation monitoring usually monitors the overall image of a fixed range in the crane operation area through video, and issues an early warning when a person is detected in the image. However, in actual applications, since the crane is often in a moving state during the operation process, it is often difficult to consider the dynamic movement of the crane by only monitoring the overall image of a fixed range, and make adaptive adjustments to the assessment of the abnormal crane operation, resulting in errors in the assessment of the risk of abnormal crane operation, which leads to low accuracy of abnormal crane operation monitoring. Summary of the invention

[0004] The present application provides a method, system, electronic equipment and medium for monitoring abnormal crane operation, which have the effect of improving the accuracy of monitoring abnormal crane operation.

[0005] In a first aspect, the present application provides a method for monitoring abnormal crane operation, comprising:

[0006] Acquire a video image of the crane operation area, and perform target detection on the video image to determine the crane position, personnel position, and hoisted object position;

[0007] Determine a first relative distance based on the crane position and the personnel position, and determine a second relative distance based on the hoisted object position and the personnel position;

[0008] Acquire the travel speed and travel direction of the crane in the crane operation area in real time, and predict the movement trajectory of the crane according to the travel speed and the travel direction;

[0009] Determine a rate of change of the distance between the person and the crane according to the movement trajectory and the position of the person;

[0010] Calculate the risk index of the person by combining the first relative distance, the second relative distance, the distance change rate, and the driving speed;

[0011] If the risk index is greater than or equal to the risk threshold, an abnormal warning is issued to the person.

[0012] By adopting the above technical solutions, the target is detected and positioned, and the real-time position information of the crane, personnel and hoisted objects is obtained, which lays a data foundation for subsequent safety monitoring. Based on the target position, the system calculates the distance between the crane and the personnel and the distance between the hoisted object and the personnel, and monitors the spatial constraint relationship between key targets in real time. At the same time, the system continuously detects the movement state of the crane, predicts its movement trend and trajectory, and evaluates whether there is a risk of collision with the personnel. Based on the comprehensive key parameters, the potential dangers in the surrounding environment of the personnel are quantitatively evaluated to obtain the risk index. When the assessed risk index is too high, the relevant personnel are promptly given a safety warning. By combining image analysis with multivariate calculation, real-time safety monitoring and early warning of the operating area can be achieved, which can reduce the risk of personal accidents during the operation process, realize the monitoring and evaluation of the dynamic abnormal operation behavior of the mobile crane, and can update the assessment of the crane risk in real time, make accurate abnormal warnings, and avoid false alarms. During the crane operation process, the movement of the crane will be tracked in real time, and the risk assessment of the personnel in the operating area will be carried out based on the predicted dynamic movement of the crane, which improves the accuracy of abnormal monitoring of crane operation.

[0013] In a second aspect of the present application, a crane operation abnormality monitoring system is provided, the system comprising:

[0014] An image recognition module is used to obtain a video image of the crane operation area, and perform target detection on the video image to determine the crane position, personnel position, and hoisted object position;

[0015] A relative distance determination module, configured to determine a first relative distance based on the crane position and the personnel position, and to determine a second relative distance based on the hoisted object position and the personnel position;

[0016] A movement trajectory determination module is used to obtain the travel speed and travel direction of the crane in the crane operation area in real time, and predict the movement trajectory of the crane according to the travel speed and the travel direction; and determine the change rate of the distance between the personnel and the crane according to the movement trajectory and the personnel position;

[0017] The abnormal warning module is used to calculate the risk index of the person in combination with the first relative distance, the second relative distance, the distance change rate and the driving speed; if the risk index is greater than or equal to the risk threshold, an abnormal warning is issued to the person.

[0018] In a third aspect of the present application, an electronic device is provided, comprising a memory, a processor, and a program stored in the memory and executable on the processor, wherein the program can implement a method for monitoring abnormal crane operation when loaded and executed by the processor.

[0019] In a fourth aspect of the present application, a computer-readable storage medium is provided, wherein the computer-readable storage medium stores a computer program, and when the computer program is executed by a processor, the processor implements a method for monitoring abnormal crane operation.

[0020] In summary, one or more technical solutions provided in the embodiments of the present application have at least the following technical effects or advantages:

[0021] By adopting the technical solution of this application, the target is detected and positioned, and the real-time position information of the crane, personnel and hoisted objects is obtained, which lays a data foundation for subsequent safety monitoring. On the basis of knowing the target position, the system calculates the distance between the crane and the personnel and the distance between the hoisted object and the personnel, and monitors the spatial constraint relationship between key targets in real time. At the same time, the system continuously detects the motion state of the crane, predicts its movement trend and trajectory, and evaluates whether there is a risk of collision with the personnel. Comprehensively combining various key parameters, the potential dangers in the surrounding environment of the personnel are quantitatively evaluated to obtain a risk index. When the assessed risk index is too high, timely safety warnings are issued to relevant personnel. By combining image analysis with multivariate calculations, real-time safety monitoring and early warning of the operating area can be achieved, which can reduce the risk of personal accidents during the operation process, realize the monitoring and evaluation of the dynamic abnormal operation behavior of the mobile crane, and can update the assessment of the crane risk in real time, make accurate abnormal warnings, and avoid false alarms. During the crane operation process, the movement of the crane will be tracked in real time, and the risk assessment of the personnel in the operating area will be carried out based on the predicted dynamic movement of the crane, which improves the accuracy of abnormal monitoring of crane operation. BRIEF DESCRIPTION OF THE DRAWINGS

[0022] Figure 1 It is a flow chart of a crane operation abnormality monitoring method provided in an embodiment of the present application;

[0023] Figure 2 It is a structural schematic diagram of a crane operation abnormality monitoring system provided in an embodiment of the present application;

[0024] Figure 3 It is a structural schematic diagram of an electronic device provided in an embodiment of the present application.

[0025] Description of reference numerals: 300, electronic device; 301, processor; 302, communication bus; 303, user interface; 304, network interface; 305, memory. DETAILED DESCRIPTION

[0026] In order to enable technicians in this field to better understand the technical solutions in this specification, the technical solutions in the embodiments of this specification will be clearly and completely described below in conjunction with the drawings in the embodiments of this specification. Obviously, the described embodiments are only part of the embodiments of this application, not all of the embodiments.

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

[0028] In the description of the embodiments of the present application, the meaning of the term "multiple" refers to two or more. For example, multiple systems refer to two or more systems, and multiple screen terminals refer to two or more screen terminals. In addition, the terms "first" and "second" are used for descriptive purposes only and cannot be understood as indicating or implying relative importance or implicitly indicating the indicated technical features. Thus, the features defined as "first" and "second" may explicitly or implicitly include one or more of the features. The terms "include", "comprise", "have" and their variations all mean "including but not limited to", unless otherwise specifically emphasized.

[0029] The present application embodiment provides a method for monitoring abnormal crane operation. In one embodiment, please refer to Figure 1 , Figure 1 The flowchart of the crane operation abnormality monitoring method provided by the embodiment of the present application can be implemented by a computer program, which can be integrated into an application or run as an independent tool application. The method can also be implemented by a single-chip microcomputer or run on a crane operation abnormality monitoring system based on the von Neumann system. Specifically, the method can include the following steps:

[0030] Step 101: Acquire a video image of the crane operation area, and perform target detection on the video image to determine the crane position, personnel position, and hoisted object position.

[0031] The video image refers to a dynamic image sequence of the crane operation area collected by a video surveillance device. In the embodiment of the present application, the video image can be understood as a dynamic image of the crane, personnel and hoisted objects in the crane operation area collected by multiple video surveillance cameras arranged around the crane operation area.

[0032] The crane operation area refers to the entire range of activities of the crane. In the embodiments of the present application, the crane operation area can be understood as the entire area that needs to be monitored by video, including the space that the crane may pass through and the range of activities of personnel that may be affected by the crane operation.

[0033] The crane position refers to the coordinate position of the crane in the video image. In the embodiment of the present application, the crane position can be understood as the coordinates of the center point of the crane area obtained by performing target detection and recognition on the video image.

[0034] The position of a person refers to the coordinate position of the person in the video image. In the embodiment of the present application, the position of a person can be understood as the coordinates of the center point of the person area obtained by performing target detection and recognition on the video image.

[0035] The position of the hoisted object refers to the coordinate position of the hoisted object in the video image. In the embodiment of the present application, the position of the hoisted object can be understood as the coordinate of the center point of the hoisted object area obtained by performing target detection and recognition on the video image.

[0036] Specifically, a dynamic image sequence containing targets in the crane operation area is collected by video surveillance cameras set around the crane operation area. The crane operation area refers to the entire area that needs to be monitored by video, including the space that the crane may pass through and the range of activities of personnel that may be affected by the crane operation. After obtaining the video image, the image processing algorithm is used to detect the target of the video image, and the crane, personnel and hoisted objects in the video image are identified by matching with the preset contour template, and their precise coordinate positions are determined. Among them, the crane position is the coordinate of the center point of the crane area, the personnel position is the coordinate of the center point of the personnel area, and the hoisted object position is the coordinate of the center point of the hoisted object area. By acquiring video images of the crane operation area and performing target detection, the accurate position information of the crane, personnel and hoisted objects in the area can be continuously and dynamically monitored, providing basic data support for subsequent safety risk assessment and early warning, thereby improving the ability to identify abnormal crane operations.

[0037] Based on the above embodiment, as an optional embodiment, in step 101: performing target detection on the video image to determine the crane position, the personnel position and the hoisted object position, this step may also include the following steps:

[0038] Step 201: performing background difference processing on the video image to obtain a foreground target area in the video image; extracting multiple object contours in the foreground target area based on the pixel values ​​of the pixel points in the foreground target area.

[0039] Among them, background difference processing refers to an image processing technology that differs a video image from a background image to extract a foreground target area. In the embodiment of the present application, background difference processing can be understood as first capturing a background image that does not contain a crane, personnel, and hoisted objects, and then performing a pixel difference comparison between each frame of the input video image and the background image, thereby distinguishing the foreground pixel area containing the target in the video image.

[0040] The foreground target area refers to the pixel area containing the target extracted from the original video image by background difference processing. In the embodiment of the present application, the foreground target area can be understood as the binary area of ​​the foreground target including the crane, personnel and hoisted objects obtained by background difference.

[0041] The pixel value of a pixel refers to the color or brightness value of each pixel in the image. In the embodiment of the present application, the pixel value of a pixel can be understood as the grayscale value or RGB color value of each pixel in the foreground target area.

[0042] The object contour refers to the boundary contour of the object area extracted from the image. In the embodiment of the present application, the object contour can be understood as the contour boundary of the target area such as the crane, personnel and hoisted object extracted from the foreground target area according to the pixel value of the pixel point.

[0043] Specifically, in order to detect independent foreground targets from video images with complex backgrounds, image segmentation and contour extraction are required. By using the background difference method, that is, performing a differential comparison between the background image without the target and the input video image, the static background can be filtered out to obtain a binary area containing foreground targets such as cranes, personnel, and hoisted objects, namely the foreground target area. Then, based on the grayscale or RGB digital pixel value of each pixel in the foreground target area, the chain code tracking is performed by connecting adjacent pixels to determine the boundary, and the contours of multiple discrete objects in the foreground area can be segmented and extracted. The purpose of background difference and contour extraction is to segment the target area from the complex video image and obtain the contour features of the target, which provides a basis for the subsequent accurate identification of the target category.

[0044] Step 202: Match the contours of each object with preset contour features to determine the crane, personnel, and hoisted objects in the video image.

[0045] The preset contour features refer to the standard contour shape features of different target categories extracted in advance. In the embodiments of the present application, the preset contour features can be understood as the contour samples of three types of targets, namely, cranes, personnel, and hoisted objects, obtained in advance, and the characteristic parameters of these sample contours are extracted as standard templates, including contour area, perimeter, curvature and other information.

[0046] Specifically, after obtaining the outline of the target in the video image, it is necessary to determine the target category corresponding to the outline, use the outline matching method to perform target recognition, collect outline samples of cranes, personnel and hoisted objects, extract their outline feature parameters such as outline area, perimeter, curvature, and establish standard preset outline feature templates for these three types of targets. Then, each object outline extracted from the video image is matched with the preset outline feature template one by one, and the similarity between its outline feature parameters and the standard template is calculated. If the similarity is higher than the set threshold, it is determined that the target corresponding to the object outline belongs to the matching category. After contour matching, the crane, personnel and hoisted object targets in the video image can be effectively identified.

[0047] Based on the above embodiment, as an optional embodiment, in step 202: matching the contours of each object with the preset contour features to determine the crane, personnel and hoisted objects in the video image, this step may also include the following steps:

[0048] Step 212: Calculate the similarity between each contour feature and the preset contour feature, the preset contour feature includes a preset crane feature, a preset personnel feature, and a preset hoisting object feature; if the similarity between the contour feature and the preset crane feature is greater than or equal to the preset similarity, mark the contour feature as a crane.

[0049] The preset crane features refer to the characteristic parameters of the crane standard profile extracted in advance. In the embodiment of the present application, the preset crane features can be understood as collecting the crane sample profile in advance, and extracting its profile geometric features such as profile area, perimeter, curvature, etc., to construct a standard crane profile feature template.

[0050] Preset personnel features refer to feature parameters of a standard personnel profile extracted in advance. In the embodiments of the present application, preset personnel features can be understood as collecting personnel sample profiles in advance and extracting their profile geometric features such as profile area, perimeter, curvature, etc. to construct a standard personnel profile feature template.

[0051] The preset lifting object features refer to the feature parameters of the standard lifting object profile extracted in advance. In the embodiment of the present application, the preset lifting object features can be understood as collecting the lifting object sample profile in advance, and extracting its profile geometric features such as profile area, perimeter, curvature, etc., to construct a standard lifting object profile feature template.

[0052] The preset similarity refers to a pre-set threshold value for determining the similarity between the two. In the embodiment of the present application, the preset similarity can be understood as a predetermined threshold value for determining the similarity between the detected target contour feature and the standard template feature. If the similarity between the two is higher than this threshold value, the match is considered successful.

[0053] Specifically, in order to identify different targets in video images, it is necessary to perform classification judgment through the method of contour feature matching. The contour features of each detected target contour are extracted, including parameters such as area, perimeter, curvature, etc. Then these contour features are matched one by one with the pre-established contour feature template, where the preset contour feature template contains standard crane features, personnel features and hoisted object features. During matching, the similarity or correlation coefficient between the contour feature parameters is calculated. If the similarity between the features of a contour and the crane feature template is higher than the set threshold, the target corresponding to the contour is determined to be a crane. Through this judgment process, the personnel and hoisted objects corresponding to the contour can also be judged. The purpose of contour matching and recognition is to improve the accuracy of target detection. By extracting features from the standard template for contour matching, the target category in the video image can be effectively judged, and the crane, personnel and hoisted object targets can be accurately identified.

[0054] Step 222: If the similarity between the profile feature and the preset person feature is greater than or equal to the preset similarity, the profile feature is marked as a person.

[0055] Specifically, the feature parameters of each detected target outline are extracted, and then these outline features are matched one by one with the pre-established standard personnel outline feature template. The similarity or correlation coefficient between the feature parameters is calculated during matching. If the similarity between a to-be-matched outline and the personnel feature template is higher than the pre-set similarity threshold, it can be determined that the target corresponding to the outline is a person. By matching the outline with the personnel feature template, the personnel target in the video frame can be effectively identified, so that the system can accurately detect the operating personnel in the image.

[0056] Step 232: If the similarity between the contour feature and the preset hoisting object feature is greater than or equal to the preset similarity, the contour feature is marked as a hoisting object.

[0057] Specifically, in order to accurately identify the target of the hoisted object in the video image, it is necessary to use the method of contour feature matching for judgment. Extract the characteristic parameters of each detected target contour, and then match these contour features with the pre-established standard hoisted object contour feature template one by one. Calculate the similarity or correlation coefficient between the characteristic parameters during matching. If the similarity between a contour to be matched and the hoisted object feature template is higher than the pre-set similarity threshold, it can be determined that the target corresponding to the contour is a hoisted object. The reason for the need for contour matching and recognition is to improve the detection accuracy of the hoisted object target in the video image. By performing contour matching with the hoisted object feature template, the hoisted object target in the video frame can be effectively identified, so that the system can accurately detect the hanging object in the image.

[0058] Step 203: In the video image, the coordinates of the center point of the crane are used as the crane position, the coordinates of the center point of the personnel are used as the personnel position, and the coordinates of the center point of the hoisted object are used as the hoisted object position.

[0059] The center point coordinates refer to the coordinate position of the geometric center point of the target area. In the embodiment of the present application, the center point coordinates can be understood as the pixel coordinates or actual space coordinates of the geometric center point of the crane area, personnel area and hoisting object area calculated by image processing.

[0060] Specifically, after identifying the target areas of cranes, personnel and hoisted objects in the video image, it is necessary to determine the precise spatial coordinate positions of each target in the image. By calculating the geometric center point coordinates of each target area, the center point coordinates of the crane area are used as the position of the crane in the current video image, that is, the crane position; the center point coordinates of the personnel area are used as the position of the personnel in the current video image, that is, the personnel position; the center point coordinates of the hoisted object area are used as the position of the hoisted object in the current video image, that is, the hoisted object position. The center point coordinates of each target are extracted to accurately obtain the spatial position of each target in continuous video frames. These position information will be used for subsequent motion tracking analysis of the target and calculation of the relative distance between targets. By obtaining the center point coordinates of the target area, the position information of each target in the image can be continuously and accurately obtained, providing data support for subsequent target positioning, motion prediction and safety risk judgment.

[0061] Step 102: Determine a first relative distance based on the crane position and the personnel position, and determine a second relative distance based on the hoisted object position and the personnel position.

[0062] The first relative distance refers to the spatial distance between the crane and the personnel. In the embodiment of the present application, the first relative distance can be understood as the actual distance value between the crane and the personnel calculated based on the crane position coordinates and the personnel position coordinates located in the video image.

[0063] The second relative distance refers to the spatial distance between the hoisted object and the person. In the embodiment of the present application, the second relative distance can be understood as the actual distance value between the hoisted object and the person calculated based on the hoisted object position coordinates and the person position coordinates located in the video image.

[0064] Specifically, after obtaining the position coordinates of the crane, personnel and hoisted objects in the video image, it is necessary to calculate the relative distance information between key targets. Based on the extracted crane position and personnel position, for example, the Euclidean distance formula is used to calculate the actual spatial distance between the two as the first relative distance. Based on the acquired hoisted object position and personnel position, the Euclidean distance formula is used to calculate the actual spatial distance between the two as the second relative distance. The purpose of calculating the first relative distance and the second relative distance is to obtain the spatial geometric relationship between the crane and the personnel, and between the hoisted object and the personnel, which is used to subsequently determine whether the distance between the targets is too close and thus poses a safety hazard. By calculating the relative distance between key targets, the spatial relationship between targets can be continuously known, providing a parameter basis for the system to issue safety warnings and formulate subsequent control instructions.

[0065] Step 103: Acquire the travel speed and travel direction of the crane in the crane operation area in real time, and predict the movement trajectory of the crane based on the travel speed and travel direction.

[0066] The driving speed refers to the moving speed of the crane in the working area. In the embodiment of the present application, the driving speed can be understood as the distance moved by the crane per unit time calculated based on the change in the crane position by processing continuous video frames, indicating the real-time moving speed of the crane.

[0067] The driving direction refers to the direction of movement of the crane in the working area. In the embodiment of the present application, the driving direction can be understood as the direction angle or direction trend of the crane movement calculated based on the change of the crane position by processing continuous video frames, indicating the direction state of the crane movement.

[0068] The moving trajectory refers to the predicted movement path of the crane in the future. In the embodiment of the present application, the moving trajectory can be understood as the possible movement route of the crane in the next period of time calculated based on the real-time speed and direction parameters of the crane.

[0069] Specifically, in order to achieve safe monitoring of the crane, it is necessary to obtain the real-time status information of the crane. By processing continuous video frames to extract the position change of the crane in the work area, the driving speed and driving direction of the crane are calculated as the parameters of the current motion state of the crane. Then, based on these two parameters, the kinematic model is used to predict the movement trajectory of the crane in the future time period. The speed, direction and predicted trajectory of the crane are obtained in order to determine its movement trend and assess whether it will collide with personnel or equipment. By monitoring the real-time status of the crane and predicting its movement trend, safety hazards can be predicted in time.

[0070] Based on the above embodiment, as an optional embodiment, in step 103: predicting the moving trajectory of the crane according to the driving speed and the driving direction, this step may also include the following steps:

[0071] Step 301: Decompose the driving speed into a horizontal speed component and a vertical speed component; determine a total prediction duration and multiple prediction interval durations in the total prediction duration.

[0072] The horizontal velocity component refers to the component of the crane's travel speed in the horizontal direction. In the embodiment of the present application, it can be understood as the horizontal movement rate of the crane on the plane projection of the working area. The horizontal velocity component is used to calculate the displacement increment of the crane in the horizontal direction within the prediction time, and then predict the movement trajectory of the crane on the horizontal plane.

[0073] The vertical velocity component refers to the component of the crane's travel speed in the vertical direction. In the embodiment of the present application, it can be understood as the movement rate of the crane in the three-dimensional space of the working area in a direction perpendicular to the horizontal plane. The vertical velocity component is used to calculate the displacement increment of the crane in the vertical direction within the predicted time, and then predict the vertical component of the crane's motion trajectory in three-dimensional space.

[0074] The total prediction duration refers to the total time range for which the crane's movement trajectory needs to be predicted. In the embodiment of the present application, it can be understood that starting from the current moment, the system needs to predict in advance the length of time for the crane's movement trajectory in the future. The total prediction duration is used to determine the time span of the predicted crane trajectory. Combined with the crane's speed, acceleration and other motion parameters, the crane's movement displacement and path within this time range can be calculated.

[0075] The prediction interval duration refers to dividing the total prediction duration into multiple small time intervals. In the embodiment of the present application, it can be understood that the total time range to be predicted is divided into a series of continuous small time periods, and the length of each small time period is the prediction interval duration. The prediction interval duration is used to calculate the displacement increment and motion state of the crane in each small time period step by step within the total prediction duration, and then superimpose these small displacements to finally obtain the motion trajectory prediction of the crane within the total time range.

[0076] Specifically, the speed of the crane can be obtained through video analysis or other sensor means. Then, according to the driving direction of the crane, the speed value is decomposed into a horizontal speed component in the horizontal direction and a vertical speed component in the vertical direction. This vector decomposition can be calculated using trigonometric functions. It is also necessary to determine the total prediction duration and the multiple prediction interval durations within the prediction duration. The total prediction duration refers to the time range in which the crane trajectory needs to be predicted, which can be set according to the actual application scenario, such as 10 seconds, 30 seconds, etc. The prediction interval duration is to divide the total duration into multiple small time intervals, such as one interval every 0.5 seconds. Selecting a reasonable prediction interval duration can improve the time resolution and accuracy of trajectory prediction. By decomposing the driving speed into two directional components, and setting the total prediction duration and prediction interval duration, it lays the foundation for the subsequent calculation of displacement and prediction of moving trajectory based on speed components. This processing method comprehensively considers the two-dimensional characteristics and time variation laws of crane motion, which helps to improve the accuracy of moving trajectory prediction.

[0077] Step 302: For each prediction interval duration, a horizontal displacement is determined based on the horizontal velocity component, and a vertical displacement is calculated based on the vertical velocity component.

[0078] The horizontal displacement refers to the change in the position of the crane in the horizontal direction within the prediction interval. In the embodiment of the present application, it can be understood as the movement displacement of the crane in the horizontal direction of the plane of the operating area within the time period calculated based on the horizontal velocity component of the crane and the prediction interval.

[0079] The vertical displacement refers to the change in the position of the crane in the vertical direction within the prediction interval. In the embodiment of the present application, it can be understood as the movement displacement of the crane in the vertical direction of the operating area within the time period calculated based on the vertical velocity component of the crane and the prediction interval.

[0080] Specifically, for each prediction interval, based on the previously obtained horizontal velocity component, the incremental displacement of the crane in the horizontal direction during this time period is calculated. Usually, the horizontal velocity component can be multiplied by the time value of the prediction interval to obtain the horizontal displacement. Based on the vertical velocity component, the incremental displacement of the crane in the vertical direction during this time period is calculated. The calculation method is similar to that of the horizontal direction, multiplying the vertical velocity component by the prediction interval. The above steps are repeated according to the length of each prediction interval, and the horizontal and vertical displacements of the crane at different time points can be obtained. This step-by-step method of calculating horizontal and vertical displacements can more accurately capture the actual motion state of the crane in three-dimensional space, avoiding the possible cumulative displacement errors that may exist in directly predicting the overall trajectory.

[0081] Step 303: Calculate the crane positions at multiple time points in sequence based on the crane position at the current time point, the horizontal displacement and the vertical displacement of each prediction interval.

[0082] Specifically, after calculating the horizontal displacement and vertical displacement of the crane in each prediction interval, it is necessary to accumulate these displacements to the current position of the crane to obtain the new position coordinates of the crane at the next time point. This is done so that a series of new position coordinate points of the crane within the entire prediction time range can be gradually calculated based on the initial position of the crane and the displacement increment in each time period. Through this series of coordinate points, the actual motion trajectory of the crane can be depicted. By obtaining the current three-dimensional position coordinates of the crane as the initial position. Then, the horizontal displacement calculated in the first prediction interval is accumulated to the current horizontal coordinate of the crane, and the vertical displacement is accumulated to the current vertical coordinate to obtain the new three-dimensional position coordinates of the crane at this time point. The newly obtained position coordinates are used as the initial position of the next prediction interval, and the above steps are repeated to accumulate the horizontal and vertical displacements in this time period to obtain the new position coordinates of the crane at the next time point. Iterate in this way until the preset total prediction time is reached, and a set of a series of three-dimensional position coordinate points of the crane within the entire prediction time range can be obtained. By determining the crane's position at different points in time, it helps to analyze and monitor the crane's specific position at different points in time, so as to better assess the potential risk changes in the location of personnel and improve the timeliness and accuracy of abnormal monitoring.

[0083] Step 304: Connect the crane positions at each time point to obtain the movement trajectory of the crane.

[0084] Specifically, a series of three-dimensional coordinate points are sorted in chronological order, and then linear interpolation or other curve fitting algorithms are used to connect two adjacent coordinate points with line segments or curves. By repeating this process, all position coordinate points can be connected in sequence, and finally a continuous three-dimensional space curve is formed, which reflects the actual movement trajectory of the crane within the predicted time range. This method of connecting discrete coordinate points into a trajectory curve can avoid the defect of only giving a series of discrete points and not being able to intuitively display the movement trajectory of the crane. The trajectory curve can reflect the continuity and smoothness of the crane movement and is closer to the actual movement state. After obtaining the movement trajectory of the crane, the system can combine the geographic information data of the operating area, the location of personnel, etc., to visualize and overlay the trajectory, so as to timely discover whether the location of the personnel is at risk of being covered by the movement trajectory of the crane. By connecting discrete coordinate points to obtain a continuous movement trajectory curve, the movement state of the crane can be understood more clearly and intuitively.

[0085] Step 104: Determine the rate of change of the distance between the personnel and the crane according to the movement trajectory and the personnel position.

[0086] The distance change rate refers to the rate of change of the distance between the person and the crane relative to time. In the embodiment of the present application, it can be understood as a dynamic parameter describing the speed of distance change by calculating the distance value between the person and the crane at different time points within the predicted time range of the crane movement trajectory and taking the derivative of the distance value.

[0087] Specifically, the three-dimensional position coordinate data of all personnel in the working area can be obtained through a positioning system or other means. Then the spatial position coordinates of each personnel are compared and calculated with the predicted trajectory of the crane. For each time point, the Euclidean distance between the two is calculated based on the three-dimensional coordinates of the crane at that time point and the three-dimensional coordinates of the personnel. In this way, the actual distance value between the personnel and the crane at that time point can be obtained. By repeating this process, a series of changes in the distance value between the personnel and the crane within the entire trajectory prediction time range of the crane can be obtained. Furthermore, the distance value can be mathematically processed to calculate the distance change rate, that is, the rate of change of the distance value relative to time. The size of the distance change rate can reflect the speed of change of the distance between the personnel and the crane, thereby evaluating whether the distance between the two is changing drastically or moving in a smaller range. By analyzing the distance change rate, when the crane is approaching the personnel, if it is found that the distance change rate between a certain person and the crane becomes larger, that is, the relative position of the personnel and the crane is changing significantly, reflecting that the crane is approaching the personnel significantly, it may mean that there is a certain safety risk in the position of the personnel, and it is necessary to issue an early warning. When the crane is moving away from the personnel, if it is found that the distance change rate between a certain person and the crane becomes larger, that is, the relative position of the personnel and the crane is changing significantly, reflecting that the crane is moving away from the personnel significantly, indicating that the safety risk of the personnel is reduced.

[0088] Based on the above embodiment, as an optional embodiment, in step 104: determining the rate of change of the distance between the personnel and the crane according to the movement trajectory and the personnel position, this step may also include the following steps:

[0089] Step 401: select a plurality of sampling points at preset time intervals on the moving trajectory, and determine the distance from the personnel position to each sampling point.

[0090] The preset time interval refers to the time interval value used when sampling on the crane moving trajectory. In the embodiment of the present application, it can be understood as a time value pre-set according to actual needs, which is used to sample equidistantly at this time interval on the entire moving trajectory of the crane to obtain a series of representative three-dimensional space sampling points.

[0091] The sampling points refer to a series of representative three-dimensional spatial coordinate points obtained by sampling equidistantly at preset time intervals on the crane's moving trajectory. In the embodiment of the present application, it can be understood as a set of sampling coordinate points with time and space position information obtained by sampling the three-dimensional coordinates corresponding to different time points of the crane's moving trajectory at preset time intervals.

[0092] Specifically, multiple sampling points with preset time intervals are selected on the moving trajectory of the crane, and the distances from the personnel position to these sampling points are calculated respectively. The moving trajectory of the crane is a continuous three-dimensional space curve. If the distance between the entire trajectory and the personnel position is directly calculated, the calculation amount is large and not intuitive enough. Therefore, sampling can be performed on the trajectory at preset time intervals to obtain a series of representative sampling points, and then the distances from the personnel position to these sampling points are calculated respectively, so as to approximately evaluate the minimum distance relationship between the personnel and the entire trajectory. By performing equidistant sampling on the moving trajectory of the crane at preset time intervals, such as 10 seconds, a series of representative three-dimensional space sampling points are obtained. Then, for each personnel position in the operating area, its three-dimensional coordinates are respectively calculated with the above-mentioned sampling points for spatial distance calculation to obtain the Euclidean distance value from the personnel position to each sampling point. The minimum value of these distance values ​​represents the shortest distance from the personnel position to the entire trajectory. Through this sampling method, the workload of distance calculation can be reasonably reduced, the calculation efficiency can be improved, and the minimum distance relationship between the personnel and the trajectory can also be more accurately approximated.

[0093] Step 402: At each sampling point, calculate the distance difference between any two adjacent sampling points to obtain a plurality of distance differences.

[0094] The distance difference refers to the distance difference between the personnel position and two adjacent sampling points. In the embodiment of the present application, it can be understood that for any two adjacent sampling points on the crane movement trajectory, the distance values ​​from the personnel position to the two sampling points are calculated respectively, and then the difference is obtained by subtracting the distance value of the previous sampling point from the distance value of the latter sampling point.

[0095] Specifically, the obtained sampling point sequence is numbered in chronological order, such as p1, p2, p3...pn. Taking the position of a certain person in the working area as an example, the distance value d1 from the person to the first sampling point p1 is calculated. Next, the distance value d2 from the person to the adjacent second sampling point p2 is calculated. The difference between d2 and d1 is recorded as d2-d1, which is the distance difference between the person's position and the first two sampling points p1 and p2. Then, the distance value d3 from the person to the third sampling point p3 is calculated, and the distance difference is recorded as d3-d2, which is the distance difference between the person's position and p2 and p3. By analogy, repeating this process, a set of distance difference sequences between the person's position and all adjacent sampling points can be obtained. By analyzing the size and direction of these distance differences, the dynamic change trend of the personnel position from the crane trajectory can be evaluated. When the crane drives away from the personnel, if the absolute value of multiple consecutive distance differences is larger, it indicates that the crane is moving away from the personnel significantly, and the farther the personnel is from the trajectory, the lower the risk. If the absolute value of multiple consecutive distance differences is smaller, it indicates that the crane is moving away from the personnel slightly. Similarly, the farther the personnel is from the trajectory, but compared with the crane moving away from the personnel significantly, there is a higher risk when the crane moves away from the personnel slowly, and an early warning needs to be issued. On the contrary, when the crane drives towards the personnel, if the absolute value of multiple consecutive distance differences is larger, it indicates that the crane is approaching the personnel significantly, and the closer the personnel is to the trajectory, the higher the risk. If the absolute value of multiple consecutive distance differences is smaller, it indicates that the crane is approaching the personnel slightly. Similarly, the closer the personnel is to the trajectory, but compared with the crane approaching the personnel quickly, there is a lower risk when the crane approaches the personnel slowly.

[0096] Step 403: Divide each distance difference by a preset time interval to obtain a plurality of instantaneous distance change rates; and use the average value of each instantaneous distance change rate as the distance change rate between the personnel and the crane.

[0097] Specifically, a series of distance differences between the calculated personnel position and adjacent sampling points are divided by the preset time interval value, thereby obtaining a series of instantaneous distance change rate values ​​representing the distance change rate. For example, the first distance difference is divided by the time interval value to obtain the first instantaneous distance change rate value, which represents the rate of change of the distance between the personnel position and the first and second sampling points; the second distance difference is divided by the time interval value to obtain the second instantaneous distance change rate value, which represents the rate of change of the distance between the personnel position and the second and third sampling points; and so on, until the last distance difference. In this way, a series of instantaneous distance change rate values ​​are obtained, reflecting the rate of change of the personnel distance trajectory in different time periods. Since the instantaneous rate of change may fluctuate to a certain extent, in order to more accurately characterize the overall trend, it is necessary to average all the instantaneous rate of change values. The average value obtained is the final distance change rate result, which is used to characterize the overall change trend and change rate of the distance between the personnel and the crane. When the crane is driving away from the personnel, if the absolute value of the distance change rate is large, it means that the crane is moving away from the personnel at a large scale, and the crane is getting farther and farther away from the personnel. Compared with slowly moving away from the personnel, the crane poses a smaller risk to the personnel; if the absolute value of the distance change rate is small, it means that the crane is moving away from the personnel slowly. Similarly, the crane is moving away from the personnel, but compared with the crane moving away from the personnel quickly, the crane moving away from the personnel at a small scale poses a greater risk to the personnel. When the crane is driving towards the personnel, if the absolute value of the distance change rate is large, it means that the crane is approaching the personnel at a large scale. The closer the crane is to the personnel, the greater the risk; if the absolute value of the distance change rate is small, it means that the crane is slowly approaching the personnel. Similarly, the crane is getting closer and closer to the personnel, but compared with the crane moving away from the personnel at a large scale, the crane moving away from the personnel at a small scale poses a smaller risk. By introducing the dynamic parameter of distance change rate, this process can quantify the magnitude of changes in the positions of personnel and cranes, thereby making a more accurate assessment of the potential risks of the personnel's location.

[0098] Step 105: Calculate the risk index of the person based on the first relative distance, the second relative distance, the distance change rate, and the driving speed; if the risk index is greater than or equal to the risk threshold, issue an abnormal warning to the person.

[0099] The risk index refers to a quantitative indicator that comprehensively reflects the potential danger level of the personnel's position. The risk index is a value that quantifies the personnel's safety risk. In the embodiment of the present application, it can be understood as a value obtained by weighting and calculating multiple key factors that affect the safety of personnel operations, such as the relative distance between the personnel and the crane trajectory, the rate of change of the distance, the crane travel speed, etc., according to a pre-set weight rule.

[0100] The risk threshold refers to a pre-set critical value. In the embodiment of the present application, it can be understood as a criterion value for the risk index. When the calculated risk index is greater than or equal to the risk threshold, it indicates that the safety risk of the person's location has exceeded the acceptable range and an abnormal warning needs to be issued.

[0101] Specifically, in order to conduct personnel safety warning, it is necessary to establish a risk assessment formula, and use the calculated first relative distance, second relative distance, distance change rate and crane travel speed as model inputs. After risk calculation, a risk index representing the potential danger level of personnel to the crane and hoisted objects is obtained. If the risk index is greater than or equal to the preset safety threshold, it is considered that the personnel has a safety hazard and an abnormal warning is issued to the personnel. The mathematical formula for establishing the risk index is to conduct a quantitative risk assessment of the environment around the personnel. By comprehensively calculating the risk index through multiple parameters, the potential dangers of the crane and hoisted objects around the personnel can be measured, quantitative monitoring of the safety status of the personnel can be achieved, and personnel in danger can be warned to avoid injury accidents.

[0102] Based on the above embodiment, as an optional embodiment, in step 105: combining the first relative distance, the second relative distance, the distance change rate and the driving speed to calculate the risk index of the person, this step may also include the following steps:

[0103] Step 501: Substitute the first relative distance, the second relative distance, the distance change rate and the driving speed into a preset formula to obtain the risk index of the personnel; wherein, when the crane drives away from the personnel, the preset formula is:

[0104] ;

[0105] When the crane is moving towards a person, the preset formula is:

[0106] ;

[0107] In the formula, Represents the risk index of a person, represents the benchmark risk index, represents the weight coefficient of the first relative distance, represents the first relative distance, represents the weight coefficient of the second relative distance, represents the second relative distance, The weight coefficient representing the rate of change of distance, represents the rate of change of distance, Represents the directional coefficient of the driving speed in the i-th direction, represents the weight coefficient of driving speed, Indicates the driving speed, A base quantity that indicates direction.

[0108] The preset formula refers to a mathematical formula for calculating a person's risk index. In the embodiment of the present application, the preset formula can be understood as a multivariate analysis formula including factors such as the first relative distance, the second relative distance, the distance change rate, and the driving speed. The preset formula is used to quantitatively calculate and evaluate the risk index of a person. By substituting the actual detection data, the risk index of the person can be calculated.

[0109] To determine whether the crane is moving towards or away from a person, first the real-time position of the crane can be obtained through the moving trajectory, and then the position vector between the real-time position of the crane and the position of the person is calculated. By analyzing the length changes of these vectors in several consecutive frames of data, it can be observed that the decrease in the length of the vector indicates that the crane is moving towards the person, while the increase in the length indicates that the crane is moving away from the person. In addition, the moving trajectory of the crane includes the direction of the crane. By judging the direction of travel, if the direction of the crane is towards the person, it can be determined that the crane is moving towards the person, and if the direction of the crane is opposite to the position of the person, it can be determined that the crane is moving away from the person.

[0110] It should be noted that the risk index is used to assess the risk situation when the crane is moving away from or towards the person at the current moment, and the risk index is only related to the driving status of the crane at the current moment. If the movement trajectory shows that the crane first moves away from the person and then approaches the person, or first approaches the person and then moves away from the person, to calculate the risk index of the person during this process, it is necessary to divide the crane into the time period when it moves towards the person and the time period when it moves away from the person, calculate the risk index corresponding to these two time periods respectively, and find the average value to obtain the risk index of the person.

[0111] Specifically, in order to obtain the risk index of a person, a risk calculation formula needs to be established. A risk calculation formula that takes multiple variables into account is established in advance, in which the first relative distance, the second relative distance, the rate of change of the two distances, and the crane travel speed are used as formula input parameters. Then the real-time values ​​of these parameters obtained by monitoring are substituted into the formula for calculation to obtain the risk index of the person's current environment. The risk calculation formula is established to evaluate and quantify potential dangerous factors in the surrounding area. By calculating the risk index through a preset formula, it is possible to achieve quantitative risk measurement of dangerous factors such as cranes and hoisted objects in the environment surrounding the person, so that the system can monitor the safety status of the person in real time.

[0112] The formula consists of two parts. The first part describes the comprehensive impact of the first relative distance, the second relative distance and the distance change rate on the risk index. and the weight coefficient of the second relative distance , these are the coefficients used to adjust the weight of relative distance in risk calculation, corresponding to the two distance square terms in the formula, and the weight coefficients are determined by a large amount of experimental data. and the second relative distance These two variables represent two different relative distances, referring to the distance from a person to different objects or locations. , which is the rate of change of distance The adjustment factor of the influence degree in the formula. Distance change rate Indicates the rate of change of relative distance, which reflects the change of the distance between the personnel and the crane position. When the crane moves towards the personnel, The 1 in this section is used to ensure that When the denominator is zero, it is always greater than zero to prevent division by zero errors and ensure the numerical stability of the formula. The denominator will not approach zero, ensuring the validity of the calculation results.

[0113] Since the crane and personnel move in different directions, the distance change rate There are positive and negative values, so set the absolute value It is used to reflect the change in the distance between the personnel and the crane. If the crane is heading towards the personnel, the distance change rate Increase, The larger the value, the more severe the distance change, the larger the denominator, and the larger the overall expression. The value of becomes smaller, the benchmark risk index With this expression The difference between the parts will become larger when the distance change rate Reduce, The smaller the value, the smoother the distance change, the smaller the denominator, and the overall expression The value of becomes larger, the benchmark risk index With this expression The overall expression indicates that the greater the distance change rate, the more dramatic the change in position between the personnel and the crane, and the crane is approaching the personnel quickly, which will cause greater risks. On the contrary, if the distance change rate is smaller, it means that the position between the personnel and the crane is changing slowly, and the crane is approaching the personnel slowly, which will cause less risks.

[0114] If the crane is moving away from the person, when the distance change rate Increase, The larger the value, the more severe the distance change, the larger the denominator, and the larger the overall expression. The value of becomes larger, the benchmark risk index With this expression The difference between the parts will become smaller when the distance change rate Reduce, The smaller the value, the smoother the distance change. The overall expression The value of becomes smaller, the benchmark risk index Subtract the expression The overall expression indicates that the greater the distance change rate, the more dramatic the change in position between the personnel and the crane, and the crane is moving away from the personnel quickly, and the risk will be smaller. On the contrary, if the distance change rate is smaller, it means that the change in position between the personnel and the crane is relatively slow, and the crane is moving away from the personnel slowly. At this time, the risk to the personnel is greater than when the crane moves away from the personnel quickly.

[0115] This section provides the combined effect of the two relative distances, through the square term and the weight coefficient and Adjust their contributions. If and Increase, overall expression The value of becomes larger, the benchmark risk index Subtract the expression or The smaller the difference between the two parts, the higher the risk index. The smaller, if and Reduce, the overall expression or The value of becomes smaller, the benchmark risk index Subtract the expression or The greater the difference between the two parts, the higher the risk index. The overall expression indicates that the larger the first relative distance and the second relative distance, the farther the distance between the personnel and the crane and the hoisted object, and the smaller the risk, while the smaller the first relative distance and the second relative distance, the closer the distance between the personnel and the crane and the hoisted object, and the greater the risk.

[0116] The second part describes the influence of driving speed on the risk index. Indicates the directional coefficient or influence factor in the i-th direction or factor. The value can reflect the importance of different directions or factors. The value means that the direction or factor is more important in risk assessment. The summation part in the formula represents the summation of the driving speed components in all directions from 1 to n, taking into account the influence of multiple directions or factors, and the influence of each direction or factor is calculated by the following fractional expression.

[0117] Travel speed Indicates the travel speed of the crane during operation. The larger the crane is, the greater the denominator is. The larger the value of becomes smaller, the benchmark risk index Subtract the expression The greater the difference between the two parts, the higher the risk index. The larger the driving speed, The smaller the denominator, The smaller the value of becomes larger, the benchmark risk index Subtract the expression The smaller the difference between the two parts, the higher the risk index. The overall expression indicates that when the crane is driving towards a person, the faster the crane is traveling, the faster the crane is approaching the person, and the greater the risk to the person. The slower the crane is traveling, the slower the crane is approaching the person, and the smaller the risk to the person.

[0118] On the contrary, when the crane is moving away from the person, the driving speed The larger the denominator, The larger the value of becomes smaller, the benchmark risk index Subtract the expression The smaller the difference between the two parts, the higher the risk index. The smaller the speed, the The smaller the denominator, The smaller the value of becomes larger, the benchmark risk index Subtract the expression The greater the difference between the two parts, the higher the risk index. The larger the value, the overall expression indicates that when the crane is moving away from the personnel, the greater the speed of the crane, reflecting that the crane is moving away from the personnel quickly, the smaller the risk to the personnel; the smaller the speed of the crane, reflecting that the crane is moving away from the personnel slowly, the greater the risk to the personnel compared to moving away from the personnel quickly.

[0119] Indicates the weight coefficient of driving speed, which is used to adjust the impact of driving speed on risk index. Values ​​will amplify driving speed The impact of speed on the risk index is more significant. Increase, indicating that the relative influence of this direction or factor increases. This part of the formula is mainly used to comprehensively consider the relative influence of multiple directions or factors and adjust them through speed factors. , as well as The value of can flexibly reflect the risk assessment results in different situations.

[0120] The benchmark risk index in the formula is a preset larger value to ensure Always greater than or The value of this part, It can be adjusted based on historical monitoring data of the crane operation area.

[0121] Based on the above embodiment, as an optional embodiment, in step 101: obtaining a video image of the crane operation area, and performing target detection on the video image to determine the crane position, the personnel position, and the hoisted object position, after this step, the following steps may also be included:

[0122] Step 601: Acquire a reference position of a preset reference object in a video image, where the preset reference object is at least one of a plate, a container, and a vehicle.

[0123] The preset reference objects refer to some fixed reference objects selected in advance in the video surveillance scene. In the embodiment of the present application, they can be understood as some objects such as piles of plates, containers or parked vehicles that are fixed in position, regular in shape and easy to identify in the venue.

[0124] The reference position refers to a base reference point used to construct a video image coordinate system. In the embodiment of the present application, it can be understood as a specific pixel coordinate position of a preset reference object, such as a plate pile, a container or a vehicle in a video image.

[0125] Specifically, some reference objects with fixed positions, regular shapes and easy identification are pre-selected in the monitoring area, such as plate piles, containers or vehicles. Then, the outlines of these reference objects are extracted from the video screen using image processing techniques such as edge detection and image segmentation, and their pixel coordinate positions on the image are calculated as the origin or reference point of the reference coordinate system. For example, the circumscribed rectangle of the plate pile or container can be detected, and its center can be used as the reference position coordinate; or the rectangular outline of the vehicle body can be detected, and its center can be set as the reference position, etc. The reference position coordinate can be accurately obtained through computer vision algorithms. When the reference position coordinate is obtained, the known actual size of the reference object can be established to correspond to its pixel size on the image, and then the conversion relationship between the image coordinate system and the actual physical coordinate system can be determined. On this basis, the known reference scale can be used to perform size measurement, motion trajectory tracking and other analysis on other moving targets in the video image, greatly improving the accuracy of target recognition and measurement.

[0126] Step 602: Based on the crane position and the reference position, determine the relative position of the crane and a preset reference object.

[0127] Specifically, the pixel coordinate position of the crane in the video screen at the current moment is obtained through video detection and tracking algorithms. The crane position coordinates are transformed with the previously obtained reference position coordinates, and they are uniformly mapped to the same coordinate system. Since the conversion relationship between the image coordinate system and the real-world coordinate system has been established, the pixel coordinates of the crane and the reference object can be converted into three-dimensional actual physical coordinates respectively. Then, based on the actual three-dimensional coordinates of the crane and the reference object, vector operations and spatial geometry calculations are used to solve the relative position relationship between the two, including relative distance, azimuth, etc. By continuously tracking and updating the crane position and calculating the relative position of the crane and the reference object in real time, the distance and position change trend between the two can be dynamically monitored, so that potential distance hazards can be discovered in time and safety warnings can be issued in advance.

[0128] Step 603: In the multiple frames of continuous video images, determine whether the relative positions are the same; if the relative positions are not the same, determine that the crane is in a moving state, and send a prompt message to the crane operation area.

[0129] Among them, multiple continuous frames refer to multiple continuous single-frame images in a video sequence. In the embodiment of the present application, it can be understood as a series of frame images captured continuously in the video surveillance screen, which constitute the basic unit of the dynamic video screen.

[0130] Prompt information refers to information sent to operators to remind them to pay attention or warn them of danger. In the embodiment of the present application, it can be understood as a visual or sound warning signal sent by the system to the crane operation area when the system detects a change in the crane's movement state or movement trajectory. Prompt information is used to promptly remind operators to pay attention to the movement of the crane, thereby strengthening safety precautions and avoiding potential dangers.

[0131] Specifically, in the continuous multi-frame images of the video image, the relative position coordinates of the crane and the reference object in each frame are calculated and temporarily stored. The continuous multi-frame images are actually the basic units that constitute the video sequence. By analyzing them, the change information of the target in the time series can be obtained. The relative position coordinates between adjacent frames are compared. If it is found that the relative position between two frames has changed, it can be determined that the crane is in a moving state during the time period of these two frames. If the relative position coordinates of multiple continuous frames remain unchanged, it means that the crane is stationary during this time period. When it is detected that the crane changes from static to moving, or the trajectory changes during the movement, the system will automatically send visual or sound prompt information to the crane operation area, such as popping up a warning window on the display screen, playing an alarm sound, etc., to remind the operator to pay attention to the movement of the crane and strengthen safety precautions. The content of the prompt information includes the crane's movement status, movement direction, potential danger level, etc., to help operators accurately understand the dynamic situation.

[0132] Reference Figure 2 , is a crane operation abnormality monitoring system provided by an embodiment of the present application, the system comprises: an image recognition module, a relative distance determination module, a movement trajectory determination module, and an abnormality warning module, wherein:

[0133] An image recognition module is used to obtain video images of the crane operation area and perform target detection on the video images to determine the crane position, personnel position, and hoisted object position;

[0134] A relative distance determination module, used to determine a first relative distance based on a crane position and a personnel position, and to determine a second relative distance based on a hoisted object position and a personnel position;

[0135] The movement trajectory determination module is used to obtain the travel speed and direction of the crane in the crane operation area in real time, and predict the movement trajectory of the crane based on the travel speed and direction; determine the change rate of the distance between the personnel and the crane based on the movement trajectory and the personnel position;

[0136] The abnormal warning module is used to calculate the risk index of the personnel by combining the first relative distance, the second relative distance, the distance change rate and the driving speed; if the risk index is greater than or equal to the risk threshold, an abnormal warning is issued to the personnel.

[0137] On the basis of the above embodiment, the abnormal warning module is further used to substitute the first relative distance, the second relative distance, the distance change rate and the driving speed into a preset formula to obtain the risk index of the personnel; wherein, when the crane drives away from the personnel, the preset formula is:

[0138] ;

[0139] When the crane is moving towards a person, the preset formula is:

[0140] ;

[0141] In the formula, Represents the risk index of a person, represents the benchmark risk index, represents the weight coefficient of the first relative distance, represents the first relative distance, represents the weight coefficient of the second relative distance, represents the second relative distance, The weight coefficient representing the rate of change of distance, represents the rate of change of distance, Represents the directional coefficient of the driving speed in the i-th direction, represents the weight coefficient of driving speed, Indicates the driving speed, A base quantity that indicates direction.

[0142] On the basis of the above embodiments, the image recognition module is also used to perform background difference processing on the video image to obtain the foreground target area in the video image; based on the pixel values ​​of the pixel points in the foreground target area, multiple object contours in the foreground target area are extracted; each object contour is matched with a preset contour feature to determine the crane, personnel and hoisted objects in the video image; in the video image, the center point coordinates of the crane are used as the crane position, the center point coordinates of the personnel are used as the personnel position, and the center point coordinates of the hoisted object are used as the hoisted object position.

[0143] Based on the above embodiment, the image recognition module is also used to calculate the similarity between each contour feature and the preset contour feature, the preset contour features including preset crane features, preset personnel features and preset lifting object features; if the similarity between the contour feature and the preset crane feature is greater than or equal to the preset similarity, the contour feature is marked as a crane; if the similarity between the contour feature and the preset personnel feature is greater than or equal to the preset similarity, the contour feature is marked as a personnel; if the similarity between the contour feature and the preset lifting object feature is greater than or equal to the preset similarity, the contour feature is marked as a lifting object.

[0144] On the basis of the above embodiment, the movement trajectory determination module is also used to decompose the driving speed into a horizontal speed component and a vertical speed component; determine the total prediction duration and multiple prediction interval durations in the total prediction duration; for each prediction interval duration, determine the horizontal displacement based on the horizontal speed component, and calculate the vertical displacement based on the vertical speed component; calculate the crane position at multiple time points in turn according to the crane position at the current time point of the crane, the horizontal displacement and the vertical displacement of each prediction interval duration; connect the crane positions at each time point to obtain the movement trajectory of the crane.

[0145] On the basis of the above embodiment, the movement trajectory determination module is also used to select multiple sampling points with preset time intervals on the movement trajectory, and determine the distance from the personnel position to each sampling point; at each sampling point, calculate the distance difference between any two adjacent sampling points to obtain multiple distance differences; divide each distance difference by the preset time interval to obtain multiple instantaneous distance change rates; and use the average value of each instantaneous distance change rate as the distance change rate between the personnel and the crane.

[0146] Based on the above embodiment, the image recognition module is also used to obtain the reference position of a preset reference object in the video image, where the preset reference object is at least one of a plate, a container and a vehicle; based on the crane position and the reference position, the relative position of the crane and the preset reference object is determined; in multiple continuous frames of the video image, it is judged whether the relative position is the same; if the relative position is not the same, it is determined that the crane is in a moving state, and a prompt message is issued to the crane operation area.

[0147] It should be noted that: when the device provided in the above embodiment realizes its function, only the division of the above functional modules is used as an example. In actual application, the above functions can be assigned to different functional modules as needed, that is, the internal structure of the device is divided into different functional modules to complete all or part of the functions described above. In addition, the device and method embodiments provided in the above embodiment belong to the same concept, and the specific implementation process is detailed in the method embodiment, which will not be repeated here.

[0148] The present application also discloses an electronic device. Figure 3 , Figure 3 The electronic device 300 may include: at least one processor 301 , at least one network interface 304 , a user interface 303 , a memory 305 , and at least one communication bus 302 .

[0149] The communication bus 302 is used to realize the connection and communication between these components.

[0150] The user interface 303 may include a display interface and a camera interface. Optionally, the user interface 303 may also include a standard wired interface and a wireless interface.

[0151] The network interface 304 may optionally include a standard wired interface or a wireless interface (such as a WI-FI interface).

[0152] Among them, the processor 301 may include one or more processing cores. The processor 301 uses various interfaces and lines to connect various parts in the entire server, and executes various functions of the server and processes data by running or executing instructions, programs, code sets or instruction sets stored in the memory 305, and calling data stored in the memory 305. Optionally, the processor 301 can be implemented in at least one hardware form of digital signal processing (Digital Signal Processing, DSP), field programmable gate array (Field-Programmable Gate Array, FPGA), and programmable logic array (Programmable Logic Array, PLA). The processor 301 can integrate one or a combination of a central processing unit (Central Processing Unit, CPU), a graphics processing unit (Graphics Processing Unit, GPU) and a modem. Among them, the CPU mainly processes the operating system, user interface diagrams and applications, etc.; the GPU is responsible for rendering and drawing the content to be displayed on the display screen; the modem is used to process wireless communications. It can be understood that the above-mentioned modem may not be integrated into the processor 301, and it can be implemented separately through a chip.

[0153] Among them, the memory 305 may include a random access memory (Random Access Memory, RAM) and may also include a read-only memory (Read-Only Memory). Optionally, the memory 305 includes a non-transitory computer-readable storage medium. The memory 305 can be used to store instructions, programs, codes, code sets or instruction sets. The memory 305 may include a program storage area and a data storage area, wherein the program storage area may store instructions for implementing an operating system, instructions for at least one function (such as a touch function, a sound playback function, an image playback function, etc.), instructions for implementing the above-mentioned various method embodiments, etc.; the data storage area may store data involved in the above-mentioned various method embodiments, etc. The memory 305 may optionally also be at least one storage device located away from the aforementioned processor 301. Refer to Figure 3 The memory 305 as a computer storage medium may include an operating system, a network communication module, a user interface module and an application program of a crane operation abnormality monitoring method.

[0154] exist Figure 3 In the electronic device 300 shown, the user interface 303 is mainly used to provide an input interface for the user and obtain the data input by the user; and the processor 301 can be used to call the application program of a crane operation abnormality monitoring method stored in the memory 305, and when executed by one or more processors 301, the electronic device 300 executes one or more methods in the above-mentioned embodiments. It should be noted that for the aforementioned method embodiments, for the sake of simple description, they are all expressed as a series of action combinations, but those skilled in the art should know that the present application is not limited by the described order of actions, because according to the present application, certain steps can be performed in other orders or simultaneously. Secondly, those skilled in the art should also know that the embodiments described in the specification are all preferred embodiments, and the actions and modules involved are not necessarily required for the present application.

[0155] In the above embodiments, the description of each embodiment has its own emphasis. For parts that are not described in detail in a certain embodiment, reference can be made to the relevant descriptions of other embodiments.

[0156] In the several embodiments provided in this application, it should be understood that the disclosed devices can be implemented in other ways. For example, the device embodiments described above are only schematic, such as the division of units, which is only a logical function division. There may be other division methods in actual implementation, such as multiple units or components can be combined or integrated into another system, or some features can be ignored or not executed. Another point is that the mutual coupling or direct coupling or communication connection shown or discussed can be through some service interfaces, and the indirect coupling or communication connection of devices or units can be electrical or other forms.

[0157] The units described as separate components may or may not be physically separated, and the components shown as units may or may not be physical units, that is, they may be located in one place or distributed on multiple network units. Some or all of the units may be selected according to actual needs to achieve the purpose of the solution of this embodiment.

[0158] In addition, each functional unit in each embodiment of the present application may be integrated into one processing unit, or each unit may exist physically separately, or two or more units may be integrated into one unit. The above-mentioned integrated unit may be implemented in the form of hardware or in the form of software functional units.

[0159] If the integrated unit is implemented in the form of a software functional unit and sold or used as an independent product, it can be stored in a computer-readable memory. Based on this understanding, the technical solution of the present application, or the part that contributes to the prior art, or all or part of the technical solution can be embodied in the form of a software product, which is stored in a memory and includes several instructions for a computer device (which can be a personal computer, server or network device, etc.) to execute all or part of the steps of the various embodiments of the present application. The aforementioned memory includes: various media that can store program codes, such as USB flash drives, mobile hard drives, magnetic disks or optical disks.

[0160] The above are only exemplary embodiments of the present disclosure and cannot be used to limit the scope of the present disclosure. That is, any equivalent changes and modifications made according to the teachings of the present disclosure are still within the scope of the present disclosure. After considering the disclosure of the specification and the truth of practice, those skilled in the art will easily think of other embodiments of the present disclosure.

[0161] This application is intended to cover any variation, use or adaptation of the present disclosure, which follows the general principles of the present disclosure and includes common knowledge or customary technical means in the art not recorded in the present disclosure. The description and examples are to be regarded as exemplary only.

Claims

1. A method for monitoring abnormal crane operation, characterized in that: include: Acquire a video image of the crane operation area, and perform target detection on the video image to determine the crane position, personnel position, and hoisted object position; Based on the position of the crane and the position of the personnel, a first relative distance is determined, and based on the position of the hoisted object and the position of the personnel, a second relative distance is determined; the travel speed and travel direction of the crane in the crane operation area are acquired in real time, and the movement trajectory of the crane is predicted according to the travel speed and the travel direction; the change rate of the distance between the personnel and the crane is determined according to the movement trajectory and the position of the personnel; the risk index of the personnel is calculated by combining the first relative distance, the second relative distance, the distance change rate and the travel speed; If the risk index is greater than or equal to the risk threshold, an abnormal warning is issued to the person.

2. The crane operation abnormality monitoring method according to claim 1, characterized in that: The step of calculating the risk index of the person by combining the first relative distance, the second relative distance, the distance change rate and the travel speed comprises: substituting the first relative distance, the second relative distance, the distance change rate and the travel speed into a preset formula to obtain the risk index of the person; wherein, when the crane drives away from the person, the preset formula is: When the crane drives towards the person, the preset formula is: Wherein, R represents the risk index of the personnel, R0 represents the baseline risk index, a represents the weight coefficient of the first relative distance, D1 represents the first relative distance, b represents the weight coefficient of the second relative distance, D2 represents the second relative distance, c represents the weight coefficient of the distance change rate, ΔD represents the distance change rate, d i represents the direction coefficient of the driving speed in the i-th direction, e represents the weight coefficient of the driving speed, V represents the driving speed, and n represents the reference number of the direction.

3. The crane operation abnormality monitoring method according to claim 1, characterized in that: The target detection on the video image to determine the crane position, personnel position and hoisted object position includes: performing background difference processing on the video image to obtain a foreground target area in the video image; extracting multiple object contours in the foreground target area based on the pixel values ​​of the pixel points in the foreground target area; matching each object contour with a preset contour feature to determine the crane, personnel and hoisted object in the video image; in the video image, using the center point coordinates of the crane as the crane position, the center point coordinates of the personnel as the personnel position and the center point coordinates of the hoisted object as the hoisted object position.

4. The crane operation abnormality monitoring method according to claim 3 is characterized in that: The matching of the contours of each object with preset contour features to determine the crane, personnel and hoisted object in the video image includes: calculating the similarity between the contour features of each object contour and the preset contour features, the preset contour features including preset crane features, preset personnel features and preset hoisted object features; if the similarity between the contour features of the object contour and the preset crane features is greater than or equal to the preset similarity, marking the contour features as a crane; if the similarity between the contour features of the object contour and the preset personnel features is greater than or equal to the preset similarity, marking the contour features as a personnel; if the similarity between the contour features of the object contour and the preset hoisted object features is greater than or equal to the preset similarity, marking the contour features as a hoisted object.

5. The crane operation abnormality monitoring method according to claim 1, characterized in that: The method of predicting the moving trajectory of the crane based on the driving speed and the driving direction includes: decomposing the driving speed into a horizontal speed component and a vertical speed component; determining a total prediction duration and a plurality of prediction interval durations in the total prediction duration; for each prediction interval duration, determining a horizontal displacement based on the horizontal speed component, and calculating a vertical displacement based on the vertical speed component; calculating the crane position at a plurality of time points in sequence based on the crane position at the current time point of the crane, the horizontal displacement and the vertical displacement of each prediction interval duration; and connecting the crane positions at each of the time points to obtain the moving trajectory of the crane.

6. The crane operation abnormality monitoring method according to claim 1, characterized in that: The method of determining the rate of change of the distance between the personnel and the crane based on the moving trajectory and the personnel position includes: selecting a plurality of sampling points with preset time intervals on the moving trajectory, and determining the distance from the personnel position to each of the sampling points; at each of the sampling points, calculating the distance difference between any two adjacent sampling points to obtain a plurality of distance differences; dividing each of the distance differences by the preset time interval to obtain a plurality of instantaneous distance change rates; and taking the average of each of the instantaneous distance change rates as the rate of change of the distance between the personnel and the crane.

7. The crane operation abnormality monitoring method according to claim 1, characterized in that: The method further includes: obtaining a video image of a crane operation area, performing target detection on the video image, and determining the crane position, personnel position, and hoisted object position; obtaining a reference position of a preset reference object in the video image, wherein the preset reference object is at least one of a plate, a container, and a vehicle; determining a relative position between the crane and the preset reference object based on the crane position and the reference position; determining whether the relative positions are the same in multiple continuous frames of the video image; if the relative positions are not the same, determining that the crane is in a moving state, and sending a prompt message to the crane operation area.

8. A crane operation abnormality monitoring system, characterized in that: The system includes: an image recognition module, which is used to obtain a video image of a crane operation area, and perform target detection on the video image to determine the crane position, the personnel position and the hoisted object position; a relative distance determination module, which is used to determine a first relative distance based on the crane position and the personnel position, and to determine a second relative distance based on the hoisted object position and the personnel position; a movement trajectory determination module, which is used to obtain the driving speed and driving direction of the crane in the crane operation area in real time, and predict the movement trajectory of the crane according to the driving speed and the driving direction; determine the distance change rate between the personnel and the crane according to the movement trajectory and the personnel position; an abnormal warning module, which is used to calculate the risk index of the personnel in combination with the first relative distance, the second relative distance, the distance change rate and the driving speed; if the risk index is greater than or equal to the risk threshold, an abnormal warning is issued to the personnel.

9. An electronic device, characterized in that: It includes a processor, a memory, a user interface and a network interface, the memory is used to store instructions, the user interface and the network interface are used to communicate with other devices, and the processor is used to execute the instructions stored in the memory so that the electronic device executes a crane operation abnormality monitoring method as described in any one of claims 1-7.

10. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores instructions, and when the instructions are executed, a crane operation abnormality monitoring method as described in any one of claims 1-7 is executed.

Citation Information

Patent Citations

  • Three-dimensional visual tower crane operation early warning method, system and equipment and storage medium

    CN117765181A

  • Collision avoidance

    US20090083100A1