A wharf bagged material hoisting safety detection method based on deep learning
By using deep learning-based target detection and normalized area ratio methods, the safety monitoring problem in the hoisting scenario of bagged materials at the dock was solved, enabling accurate determination of the material status and accurate alarm for personnel intrusion, thus improving the reliability and efficiency of hoisting safety detection.
Patent Information
- Application Number
- CN202611474120.4
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2026-09-21
- Publication Date
- 2026-11-20
AI Technical Summary
Existing technologies are insufficient for achieving real-time, all-weather, all-area safety monitoring in port bagged material hoisting scenarios. They suffer from issues such as perspective misalignment, dynamic changes in camera viewing angle, distortion of detection signals caused by the rotation of suspended materials, and false alarms due to personnel approaching during the material landing phase. Consequently, they fail to meet the comprehensive requirements for hoisting safety monitoring.
Using a deep learning-based approach, detection frames for personnel, bagged materials, and trucks are obtained from video frames through object detection. Rotational immunization is performed using the ratio of long to short sides and the normalized area ratio. Combined with sliding window trend analysis, the expansion of the detection frames and the identification of dangerous areas are adaptively adjusted to achieve accurate determination of material status and accurate alarm for personnel intrusion.
It achieves immunity to rotation interference in the determination of suspended rotating materials landing, avoiding false alarms and missed alarms, ensuring the reliability and efficiency of safety detection, adapting to different bag types and scene changes, and providing full coverage of hazardous area monitoring.
Smart Images

Figure CN123142171A_ABST
Abstract
Description
Technical Field
[0001] This invention relates to the field of target detection technology, and in particular to a method and system for safety detection of bagged materials being hoisted at a dock based on deep learning. Background Technology
[0002] In bulk cargo handling operations at the dock, gantry cranes (hereinafter referred to as gantry cranes) use slings to lift bagged materials between trucks on shore and ship holds. Lifting operations involve the large-scale movement of heavy objects at heights; if materials fall from heights or collide with personnel in the work area, it can cause serious personal injury accidents. Currently, safety management of dock lifting operations mainly relies on manual on-site supervision and fixed physical isolation measures (such as fences and warning lines). Manual supervision is limited by the continuity of attention and the scope of monitoring, making it impossible to achieve real-time monitoring of the entire area around the clock; physical isolation is a static protection measure and cannot adaptively adjust to the dynamic changes in lifting operations; traditional video surveillance systems only provide passive recording functions and lack intelligent analysis and automatic alarm capabilities.
[0003] Furthermore, existing computer vision-based hoisting safety inspection solutions are ill-suited to the complexity of port bagged material hoisting scenarios, specifically in the following four aspects: Firstly, there's the perspective distortion problem under an oblique, overhead view. Existing solutions mostly determine intrusion risk by calculating whether the material detection frame intersects with the personnel detection frame. This solution is only effective when the camera is shooting vertically overhead. However, dock surveillance cameras are usually installed on gantry crane arms with an oblique overhead view. Objects in the image exhibit significant perspective distortion, and distant ground personnel and nearby overhead materials may visually overlap in the two-dimensional image. Directly using intersection determination will generate a large number of false alarms.
[0004] Secondly, there's the issue of dynamic viewing angles as the camera moves with the gantry crane. Existing solutions are mostly applicable to indoor hoisting scenarios where the camera position is fixed, using pre-defined fixed alarm zones for intrusion detection. However, in a dock scenario, the docking positions of ships and trucks are not fixed, and the gantry crane needs to move along the track and rotate its boom to align with the work position. The camera moves synchronously with the gantry crane arm, and the background and viewing angle of the monitoring image continuously change. Solutions based on fixed area division or fixed reference frames are completely ineffective in this scenario.
[0005] Thirdly, there is the issue of signal distortion caused by the rotation of suspended materials. During suspended transport, bagged materials rotate freely around the sling. This oblique rotation within the image plane, when the material's major axis approaches the diagonal of the detection frame, can cause the area of the circumscribed frame to expand to several times its actual projected area. This results in significant fluctuations in the detection frame area even when the distance between the material and the camera remains constant. If area-based signals are used to determine the material's height above the ground and its landing status, a single area benchmark will become completely ineffective. It may even misinterpret the area reduction caused by rotation as the material landing, causing the system to stop alarming during transport and resulting in serious safety oversights.
[0006] Fourth, the issue of the rationale for personnel approaching during the material landing phase. Most hoisting scenarios employ continuous alarms throughout the entire hoisting process. However, in actual dockside operations involving bagged materials, personnel need to approach and manually adjust the material's posture to ensure accurate stacking as it nears the landing position. This near-ground adjustment is a normal process; mechanically classifying it as a dangerous intrusion will lead to frequent false alarms, severely impacting operational efficiency and reducing alarm reliability.
[0007] In summary, existing technical solutions are insufficient to meet the comprehensive needs of bagged material lifting operations at docks, necessitating a targeted lifting safety detection technology. Therefore, this paper proposes a deep learning-based method and system for safety detection of bagged material lifting at docks. Summary of the Invention
[0008] The purpose of this invention is to solve the problems in the prior art by proposing a deep learning-based method and system for safety detection of bagged materials at docks.
[0009] A deep learning-based safety inspection method for hoisting bagged materials at a dock includes the following steps: S1. Obtain the real-time video stream captured by the surveillance camera; S2. Perform target detection on the video frame to obtain the personnel detection box, bagged material detection box and truck detection box in the current frame; S3. Determine whether the bagged material has left the truck and entered the lifting state based on the positional relationship between the bagged material detection frame and the truck detection frame; S4. After the bagged material has left the truck, the rotation posture of the bagged material is divided into a bonding group or an inclined group according to the ratio of the length and short side of the bagged material detection frame. The bonding group and the inclined group maintain the area benchmark respectively. The inter-group ratio coefficient is calibrated online by the area jump before and after the group switching, and the two groups of area benchmarks are refreshed crosswise. The two groups of area benchmarks are normalized to the area of the current frame detection frame to obtain the normalized area ratio that is immune to suspension rotation. S5. Divide the height into levels according to the vertical coordinates of the center point of the bagged material detection frame, expand the detection frame in three directions according to the level, and take the lower part to construct an inscribed ellipse as the danger judgment area. S6. Flow splitting determination based on normalized area ratio: When the normalized area ratio is less than or equal to the first threshold, it is determined that the bagged material has been placed on the ground and enters the ground locking state; when the normalized area ratio is greater than the second threshold, personnel intrusion is detected; when the normalized area ratio is between the first threshold and the second threshold, the changing trend of the normalized area ratio is analyzed through a sliding window, and the material is confirmed to have been placed on the ground and entered the ground locking state based on the trend characteristics. S7. When multiple consecutive frames detect that a person is in a danger zone, an alarm is triggered and the alarm information is uploaded.
[0010] Preferably, step S3 includes: Calculate the intersection-over-union ratio (IoU) of the bagged material inspection boxes and the truck inspection boxes:
[0011] in, For bagged material inspection frames, For truck detection frames; like It was determined that the bagged materials were still on the truck and had not been lifted. When continuous frame If no truck is detected, confirm that the bagged material has left the truck and proceed to the next step.
[0012] Preferably, in step S4, the rotational orientation of the bagged material is divided into a bonding group or an inclined group based on the ratio of the length to the short side of the bagged material detection frame, including: Calculate the ratio of the length to the short side of the detection box in the current frame. Take the median of the ratio of the long side to the short side of multiple consecutive frames. Used as a reference value for smoothing; The maximum value of the ratio of the longer side to the shorter side observed during the continuous tracking operation. and minimum value Calculate the group median And set a hysteresis threshold. ; The grouping rule is: currently in the fit group At that time, if Then switch to the angled group Currently in the slanted group At that time, if Switch back to the bonding group Otherwise, keep the original grouping unchanged.
[0013] Preferably, in step S4, the online calibration of the inter-group ratio coefficient includes: Let the frame in which the packet handover occurs be the 1st frame. For each frame, take the area of the detection box in at least one frame before the handover and the area of the detection box in at least one frame after the handover, and calculate the median area before and after the handover. , ; Calculate candidate values for the inter-group proportional coefficient based on the switching direction. :
[0014]
[0015] Validation of candidate values: only when group switching occurs K Completed within the frame, and the change in the ordinate of the center point of the detection box before and after the switch is less than the threshold. When a candidate value is adopted, the median of all adopted candidate values is used as the current between-group ratio coefficient. .
[0016] Preferably, in step S4, the two sets of area references are cross-updated, including: Adhesive set and Inclined group Maintain their respective area benchmarks 、 This refers to the historical maximum area of the detection frame in this group; After each frame detection, if the area of the detection box in the current frame... If the area is greater than the area benchmark of its group, then update the benchmark of that group; After any set of baselines is updated, the ratios are calculated based on the inter-group proportions. Simultaneously refresh another set of benchmarks, the bonding group. When updating the group datum, refresh the oblique group datum to the original datum. and The larger one in the group will have its matching group reference updated to the original reference when the oblique group reference is updated. and The larger one.
[0017] Preferably, step S5 includes: Height grading: Based on the ordinate of the center point of the bagged material detection frame. Perform altitude classification and set high-altitude thresholds. Near-ground threshold The median value for each tier is:
[0018] The grading rule is: when When the material is at a high altitude, it is determined that the material is in a high-altitude position. When the material is near the ground, it is determined that the material is in a near-ground position; when At that time, it was determined that the material was hollow, in which For high-end hollow, It is a low-end hollow structure; where the value satisfies ; The detection frame is expanded in three directions: left, right and downward, according to the height level of the material. The higher the level, the greater the vertical downward expansion ratio. Construction of the inscribed ellipse below the grade: Construct an inscribed ellipse for the lower part of the expanded detection box as the danger determination area.
[0019] Preferably, step S6 includes: when the bagged material has been confirmed to have left the truck and is no longer at high altitude, according to the normalized area ratio Three scenarios will be handled: First scenario: If , If the first area threshold is reached, it is determined that the material has landed, enters the land-locking state, and stops the alarm. After the landing latch is established, the system stops alarming for bagged materials until it automatically releases the latch when any of the following new round of operations is detected: (1) a truck is detected in the screen; (2) the normalized area ratio is continuous. Frame exceeds the second area threshold ; The second scenario: If ,or and At that time, among them There is a risk of falling, so an intrusion check is being conducted. Personnel intrusion detection: Sequentially determine whether there is an intersection between the personnel detection box and the elliptical danger area. If there is an intersection, the personnel is determined to be in the danger area. The third scenario: If Then, proceed to determine the landing trend.
[0020] Preferably, the grounded latch state further includes a fault-tolerant mechanism: (1) No bagged material was detected continuously. During frame time, maintain the existing decision state unchanged; (2) If no bagged material is detected after a preset time, the area benchmarks of the two groups are cleared and the inter-group ratio coefficient ρ is retained for reuse. (3) The area reference will not be reset even if the timeout period is exceeded while the material is still on the truck.
[0021] Preferably, the landing trend determination process is as follows: Maintenance length is sliding window Used to record recent Normalized area of the frame:
[0022] When there are at least 3 frames of data in the window, divide the window into two parts according to time sequence, and calculate the mean for each part. and Then calculate the area change ratio:
[0023] according to With fluctuation threshold The comparison results are used to determine the three-branch state: The frame is falling, indicating that the material has not yet landed; The frame is stable, indicating that the material may have already landed. The frame is a recovery frame, determined to be either a material posture rotation or a detected fluctuation; The cumulative number of stable frames is calculated, and the number of consecutive stable frames reaches a preset threshold. The system determines that the material has landed stably and entered the landing lock-in state. Before the conditions for confirmation of landing are met, the determination of personnel intrusion will still be based on the second scenario. when leave When the interval is reached, the stable frame count, unstable frame count, and sliding window data are automatically cleared to zero.
[0024] This invention also discloses a deep learning-based safety detection system for hoisting bagged materials at a dock, comprising: The image acquisition module is used to acquire real-time video streams from monitoring cameras deployed on the rotating platform of the gantry crane. The cameras move synchronously with the gantry crane arm. The target detection module is used to perform target detection on video frames and obtain the detection boxes for people, bagged materials, and trucks in the current frame; The hazardous area intrusion determination module is used to determine whether bagged materials have left the truck and entered the lifting state based on the positional relationship between the bagged material detection frame and the truck detection frame; it is used to divide the area of the current frame's bagged material detection frame by the area benchmark of its group to obtain the normalized area ratio that is immune to suspension rotation; it is used to perform height grading based on the vertical coordinates of the center point of the bagged material detection frame, expand the detection frame in three directions according to the grading, and construct an inscribed ellipse with the lower part as the hazardous determination area, and determine whether there is an intersection between each personnel detection frame and the hazardous determination area; it is used to perform flow diversion determination based on the normalized area ratio; The alarm generation and upload module is used to trigger an alarm when multiple consecutive frames detect personnel in a danger zone, and upload the alarm information to the safety management platform. Compared with existing technologies, the advantages of this invention are: 1. This invention adopts a rotational immune area normalization method based on the ratio of long and short sides. The system automatically calculates the area during operation, and can adapt to different bag types without manual calibration. Moreover, the normalized area ratio only reflects the change in distance between the material and the camera, fundamentally eliminating the interference of rotation on the landing determination and avoiding safety omissions caused by misjudgment of landing due to rotation or lockout silence during transportation.
[0025] 2. This invention first expands the detection frame in stages according to the height of the material in the image, with the expansion ratio being larger for higher positions, in order to cover a larger fall hazard range; then, only the lower half of the expanded detection frame is used to construct an inscribed ellipse as the hazard judgment area. By judging whether the personnel detection frame intersects with this elliptical area, intrusion judgment is made. While ensuring full coverage of the high-altitude hazard range, it effectively avoids false alarms of distant personnel caused by perspective misalignment caused by tilted overhead shots.
[0026] 3. This invention employs a sliding window trend analysis-based landing determination, latching, and adaptive reset mechanism. By recording the normalized area ratio through a sliding window and comparing the changing trends of the average values in the first and second halves of the window, it accurately determines whether materials have landed, thus resolving the issue of false alarms related to reasonable personnel approach during the near-ground phase. Attached Figure Description
[0027] Figure 1 This is a schematic diagram of the detection method in this invention.
[0028] Figure 2 This is a structural block diagram of the detection system in this invention.
[0029] Figure 3 This is a grouping diagram of material states in this invention.
[0030] Figure 4 This is a diagram of hazardous areas for material grading in this invention. Detailed Implementation
[0031] To facilitate understanding of this application and to make the above-mentioned objectives, features and advantages of this application more apparent, the specific embodiments of this application will be described in detail below with reference to the accompanying drawings.
[0032] Reference Figure 1-4 As shown, a deep learning-based safety inspection method for hoisting bagged materials at a dock includes the following steps: Step S1: Acquire the real-time video stream captured by the surveillance camera. High-definition network cameras are mounted on the rotating platform of a gantry crane. The cameras move synchronously with the crane arm, ensuring that the field of view covers the entire process of bagged materials being lifted from a truck on shore and unloaded into the ship's hold. After receiving the task start / stop command, the system retrieves the camera's configuration information from the safety management platform and creates an independent stream acquisition subprocess for each camera: decoding based on the RTSP real-time streaming protocol, retaining only the latest frame each time to prevent frame accumulation due to network jitter; the decoded image frames are written to shared memory between processes for the detection execution thread to read, thus decoupling stream acquisition from detection.
[0033] To address the frequent video signal interruptions in the dock environment, the stream acquisition subprocess employs a two-layer loop fault tolerance mechanism: the inner loop performs frame acquisition; if frame acquisition fails or completely repetitive frames are read consecutively, a video stream anomaly is determined, and the process switches to the outer loop; the outer loop rebuilds the stream connection after a video stream anomaly, employing an incremental backoff strategy for reconnection waiting time: the reconnection waiting time increases linearly with the number of consecutive reconnections, and the waiting time for the nth reconnection is the product of the base waiting time and the number of consecutive reconnections n; once this product reaches its maximum duration, the reconnection waiting time no longer increases; if continuous normal operation exceeds a set duration after a reconnection, the number of consecutive reconnections n is reset to zero. During a video stream anomaly, the detection execution thread skips the inference and alarm determination for that video stream, only continuing after the normal state is restored, avoiding the freezing of the screen in the danger determination process and thus preventing false alarms.
[0034] Step S2: Perform object detection on the video frame to obtain the detection boxes for people, bagged materials, and trucks in the current frame. A YOLOv8s-based detection architecture was used, and a dedicated model was trained using labeled data from a dockside bagged material handling scenario. The model was used to detect three categories: person, bagged material, and truck. After exporting the model to ONNX format, it was converted to FP16 precision using TensorRT for accelerated inference. The engine integrated the NMS operator during export. (Note: The last sentence appears to be incomplete and possibly refers to a different topic.) The original image of the frame is Its width and height are respectively 、 ,right The preprocessing is as follows: Proportional scaling and padding: Calculate the scaling ratio in the width direction separately. Scaling ratio in the height direction Take the smaller of the two values as the scaling ratio. ,in 、 These are the input dimensions for the model; Zoom to ,in They are respectively The result is rounded to the nearest integer; then, a constant gray border is applied to the scaled image, symmetrically on the top and bottom, and left and right sides, with the fill amounts on both sides being:
[0035] During inference, the image frame is scaled and padded to the model input size before being sent to the engine. The output detection box coordinates are mapped back to the original image coordinate system in reverse process of scaling and padding to obtain the final detection result.
[0036] Record No. In the frame inference results, the detection box for bagged materials is... ,in The coordinates of the top left corner The coordinates are the bottom right corner; the truck detection box is... ; detected in the image Individual detection boxes, denoted as ,in An integer greater than or equal to 1. For any person detection box... (in greater than or equal to 1 and less than or equal to 1 (integers), the basic parameters are calculated from the detection box:
[0037]
[0038]
[0039] in , These are the width and height of the detection frame, respectively; the coordinates of the center point of the detection frame are... , For area, The center point of the detection frame Coordinates. Only the detection bounding box with the highest confidence is retained for each target class to avoid multiple detection bounding boxes for the same target interfering with subsequent judgments.
[0040] Step S3: Determine whether the bagged material has left the truck and entered the lifting state based on the positional relationship between the bagged material detection frame and the truck detection frame. Calculate the intersection-over-union ratio (IoU) of the bagged material inspection boxes and the truck inspection boxes:
[0041] like If the system determines that the bagged material is still on the truck and has not been lifted, no alarm will be triggered. To prevent false alarms caused by brief missed inspections of the truck, a continuous frame confirmation mechanism is implemented: only when consecutive frames are checked... frame Only when the truck is not detected is it confirmed that the bagged material has actually left the truck, and the subsequent alarm determination process begins.
[0042] Step S4: After the bagged material has left the truck, the rotational posture of the bagged material is divided into a bonding group or an inclined group according to the ratio of the length and short side of the bagged material detection frame. The bonding group and the inclined group maintain the area benchmark, and the inter-group ratio coefficient is calibrated online by using the area jump before and after the group switching, and the two groups of area benchmarks are refreshed crosswise. The two groups of area benchmarks are normalized to the area of the current frame detection frame to obtain the normalized area ratio that is immune to suspension rotation.
[0043] Specifically, to address the issue of drastic changes in the width of the detection frame and distortion of the area signal caused by rotation around the sling during the suspended transport of bagged materials, the area signal is normalized using the following steps: Calculation and smoothing of the ratio of the length to the short side: Calculate the ratio of the length to the short side of the detection box in the current frame. This refers to the ratio of the longer side to the shorter side of the detection box; the ratios of the longer and shorter sides of the most recent three frames are used to form a smooth window, and the median value within the window is taken. As The reference value is used to suppress detection box jitter (i.e., small fluctuations in the position of the detection box between consecutive frames).
[0044] Hysteresis grouping: Continuously track the maximum value of the ratio of the longer to shorter side observed during the operation. and minimum value Calculate the group median ( When the value is 1, the detection box is square, and the area expansion is the greatest. The detection frame should fit the cement bag perfectly, and a hysteresis threshold should be set. That is, different thresholds are used for entering and exiting groups, and a buffer zone is formed between the two thresholds to prevent frequent group switching caused by detection box jitter; The grouping rule is: currently in the fit group At that time, if Then switch to the angled group Currently in the slanted group At that time, if Switch back to the bonding group Otherwise, the original grouping remains unchanged; frames with less than 3 frames in the smoothing window at the start of each operation do not participate in grouping and baseline updates; after obtaining the first effective smoothing length-to-short side ratio, it is compared with the group median to determine the initial grouping, and the hysteresis mechanism takes effect from the second determination.
[0045] Online calibration of inter-group ratio coefficients: Since rotation is a fast process while descent is a slow process, the distance between the material and the camera remains approximately constant before and after group switching. The area jump before and after switching reflects the area ratio relationship between the two groups at the same distance. The specific calibration steps are as follows: (1) Let the frame in which the packet handover occurs be the 1st frame. Frame, take the area of the detection box of the two frames before the switch. Area of the detection box in the two frames after the switch Calculate the median area before and after the switch. , ; (2) Calculate the candidate values of the inter-group proportional coefficient based on the switching direction.
[0046]
[0047]
[0048] in, For the oblique group Compared to the bonding set Candidate values for the area ratio coefficient; when the bagged material is placed upright and the detection frame fits its outline, the ratio of the long side to the short side is large, and it is recorded as the fitting group; when the material is placed obliquely and rotated, and the detection frame is close to a square (the ratio of the long side to the short side is close to 1), the area of its outer frame expands compared to the fitting state, and it is recorded as the oblique group, as shown in the attached figure. Figure 3 As shown.
[0049] (3) Validate the candidate values and update the proportional coefficient: only when the grouping is switched. K The candidate value is adopted when the frame is completed, and the ordinate of the center point of the detection box before and after the switch is used. Change less than threshold Otherwise, discard; take the median of the candidate values adopted in each iteration as the current inter-group ratio coefficient. .
[0050] Area benchmark maintenance and cross refresh: Glue group and Inclined group Each group maintains its own area benchmark, which is the historical maximum area of that group of detection frames, denoted as . 、 The specific maintenance and refresh rules are as follows: (1) Continuous updating of the baseline: When the bagged material is on the truck, it is close to the ground and far from the camera, so the detection frame area is small; after hoisting, the material is lifted towards the camera, and the area gradually increases, reaching its maximum when it is hoisted to the highest position; then the material descends towards the ship's hold, and the area gradually decreases. Therefore, the area baseline is not limited to a fixed time of collection, but is tracked frame by frame throughout the hoisting process: after each frame detection, if the area of the detection frame in the current frame is updated... If the area is greater than the area benchmark of its group, then the benchmark for that group is updated. By continuously taking the historical maximum value, the area benchmark automatically converges to the area of the detection frame when the material is hoisted to its highest position, thus normalizing the area ratio. It is approximately 1 when the material is at its highest position, and continues to decrease as the material descends.
[0051] Cross refresh: After any set of baselines is updated, refresh is performed according to the inter-group ratio. Simultaneously update another set of benchmarks to prevent them from becoming outdated due to prolonged lack of direct observation; Adhesive group When updating the group datum, refresh the oblique group datum to the original datum. and The larger one in the group will have its matching group reference updated to the original reference when the oblique group reference is updated. and The larger one, To trigger an update of the current frame detection box area, The calibrated intergroup proportion coefficient.
[0052] (2) Unmarked rollback: If If online calibration has not yet been completed and the material is in the inclined group, then a preset empirical coefficient will be used. Normalize and maintain the alarm until the first valid calibration is completed.
[0053] Normalized area ratio calculation: The area of the detection box in the current frame is normalized according to the area benchmark of its group to obtain the normalized area ratio for immunity to dangling rotation.
[0054] After normalization It only reflects the change in distance between the material and the camera, serving as an input signal for subsequent height and landing determination.
[0055] Step S5: Divide the height into levels according to the vertical coordinates of the center point of the bagged material detection frame, expand the detection frame in three directions according to the level, and construct an inscribed ellipse from the lower part as the danger judgment area.
[0056] (1) Height classification: based on the ordinate of the center point of the bagged material detection frame. Perform altitude classification and set high-altitude thresholds. Near-ground threshold The median value for each tier is:
[0057] The grading rule is: when When the material is at a high altitude, it is determined that the material is in a high-altitude position. When the material is near the ground, it is determined that the material is in a near-ground position; when At that time, it was determined that the material was hollow, in which For high-end hollow, It is a low-end hollow structure; where the value satisfies .
[0058] (2) Detection frame expansion in stages: The detection frame is expanded in three directions—left, right, and downward—according to the height level of the material. The coordinates of the expanded detection frame are:
[0059] in, 、 、 To define the coordinates of the left, right, and bottom boundaries of the expanded detection box, To expand the horizontal ratio, To expand vertically downwards; high altitude. Hollow high-end Hollow low-end The alarm stops when the material is close to the ground; the horizontal expansion ratio of the material is the same, and the higher the position, the greater the vertical downward expansion ratio, so as to cover the dangerous area where the falling path is longer and the impact scattering range is wider when falling from a height.
[0060] (3) Construction of the inscribed ellipse below the grading: To address the perspective misalignment issue caused by tilted overhead shots, only the lower part of the expanded detection frame is used to construct the inscribed ellipse (i.e., the complete ellipse located in the lower half of the detection frame, hereinafter referred to as the semi-elliptical danger zone), which serves as the final danger assessment area (as shown in the attached figure). Figure 4 (Medium elliptical region); Let the longitudinal upper boundary of the elliptical region be... Determine using the following formula:
[0061] in, The following is the proportion used below; high altitude sampling. ,in The value range is (0,1), ensuring that the danger zone covers the impact area; the hollow area is... That is, taken from the vertical midpoint The entire lower half of the ellipse; the ellipse parameters are:
[0062] in, , These are the x-coordinate and y-coordinate of the circle's center, respectively. The horizontal half-axis Vertical half-axis.
[0063] Step S6: Perform a flow splitting determination based on the normalized area ratio. Height division reflects the vertical position of the material in the image, while normalized area ratio reflects the relative distance between the material and the camera. The combination of the two describes the transportation status of the material.
[0064] Diversion determination: When bagged material has been confirmed to have left the truck and is no longer in a high-load position, it is determined based on the normalized area ratio. Three scenarios will be handled: First scenario: If (First area threshold) indicates that the material has moved away from the camera and is located at the bottom of the cabin. It is determined that the material has landed and enters the landing latch state (i.e., it continues to remain in a non-alarm state until the reset condition is met before it is released), and the alarm stops.
[0065] After the landing latch is established, the system stops alarming for bagged materials until it automatically releases the latch when any of the following new round of operations is detected: (1) a truck is detected in the screen; (2) the normalized area ratio is continuous. Frame exceeds the second area threshold .
[0066] The fault tolerance mechanism includes: (1) if the number of bagged materials not detected is less than 10 for several consecutive periods. (1) When the frame is in time, the existing judgment state remains unchanged to avoid occasional missed detections that could cause state confusion; (2) If bagged materials are not detected for more than 15 minutes, the two sets of area benchmarks are cleared to adapt to the differences in material sizes of different ships, and the inter-group ratio coefficient is adjusted. (3) The area reference is not reset even if the timeout is over while the material is still on the truck, so as to ensure that the reference is always available during the effective operation.
[0067] The second scenario: If (Second area threshold), or and At that time, among them This indicates that the material area is still large or still in a high position, posing a risk of falling, and thus warrants a determination of personnel intrusion.
[0068] Personnel intrusion detection: Sequentially check the personnel detection boxes (in greater than or equal to 1 and less than or equal to 1 If an integer (a) intersects with the elliptical danger zone, the person is determined to be in the danger zone. Specifically, the distance from the center of the ellipse to the person detection frame is taken as the value of the integer (a) to the ellipse. nearest point ,Right now Take the closest one within the x-coordinate range of the personnel detection frame. value Take the closest value within the range of vertical coordinates The value of , if the point satisfies the elliptic criterion:
[0069] It is determined that the personnel detection frame and the elliptical danger zone intersect.
[0070] The third scenario: If This indicates that the material has entered the near-ground transition zone during the descent. Continue to decrease, after landing The area ratio of a single frame is too low to distinguish between "still decreasing" and "already landed" based on the area ratio of a single frame alone, so the process of determining the landing trend begins.
[0071] The process for determining the landing trend is as follows: Sliding window and trend feature calculation: maintenance length is sliding window Used to record recent Normalized area of the frame:
[0072] Since the window stores normalized areas, it does not need to be zeroed when materials rotate or switch groups within that range, maintaining continuous trend judgment. When there are at least three frames of data within the window, the window is divided into two parts based on time sequence, and the average value is calculated for each part. and Then calculate the area change ratio:
[0073] in, This is the average of the first half of the window. This is the average of the second half. 0 indicates an overall reduction in area, meaning the material is descending. This indicates that the area is stable, meaning the material has landed. This indicates an abnormal increase in area, usually due to material rotation or detection fluctuations.
[0074] Three-branch state determination: based on With fluctuation threshold The comparison results divide the current frame into three categories: Falling frame – the area continues to shrink, but the material has not yet landed; A stable frame indicates that the area fluctuation is within the noise range, and the material may have already fallen to the ground. Recovery frame - Abnormally increased area, determined to be material posture rotation or detection fluctuation.
[0075] State machine accumulation and landing confirmation: The number of unstable frames accumulated during the falling frame period, and the number of consecutive unstable frames reaches the zeroing threshold. The stable frame count is reset, and the intrusion detection continues according to the second scenario in the traffic splitting determination; the number of stable frames is accumulated, and the number of consecutive stable frames reaches a certain threshold. Upon determining that the material has landed stably, the system enters a landing latch state; the rise frame resets the stabilization frame count to prevent material rotation from being mistakenly identified as landing. Before the landing confirmation condition is met, the system continues to perform intrusion detection according to the second scenario. leave When the interval is reached, the stable frame count, unstable frame count, and sliding window data are automatically cleared to zero.
[0076] Step S7: When multiple consecutive frames detect that a person is in a danger zone, an alarm is triggered and the alarm information is uploaded.
[0077] When continuous An alarm is triggered when personnel are detected in a danger zone. During each alarm cooldown period, the system collects all intrusion frames, i.e., video frames that detect personnel in danger zones. Personnel detection boxes, bagged material detection boxes, and semi-elliptical danger zones are marked on each frame, generating an annotated alarm image. The alarm image is uploaded to the MinIO object storage via multi-threading, and the alarm information is sent to the security management platform via HTTP POST.
[0078] This invention also proposes a deep learning-based safety detection system for hoisting bagged materials at a dock, comprising: The image acquisition module is used to acquire real-time video streams from monitoring cameras deployed on the rotating platform of the gantry crane. The cameras move synchronously with the gantry crane arm. The target detection module is used to perform target detection on video frames and obtain the detection boxes for people, bagged materials, and trucks in the current frame; The hazardous area intrusion determination module is used to determine whether bagged materials have left the truck and entered the lifting state based on the positional relationship between the bagged material detection frame and the truck detection frame; it is used to divide the area of the current frame's bagged material detection frame by the area benchmark of its group to obtain the normalized area ratio that is immune to suspension rotation; it is used to perform height grading based on the vertical coordinates of the center point of the bagged material detection frame, expand the detection frame in three directions according to the grading, and construct an inscribed ellipse with the lower part as the hazardous determination area, and determine whether there is an intersection between each personnel detection frame and the hazardous determination area; it is used to perform flow diversion determination based on the normalized area ratio; The alarm generation and upload module is used to trigger an alarm when multiple consecutive frames detect that a person is in a dangerous area, and upload the alarm information to the safety management platform.
[0079] Example Step 1: Image Acquisition and Annotation Video data is collected throughout the entire process of cement bags being lifted from the truck, transported by air, entered the ship's hold, and finally landed and untied. In this embodiment, three categories are detected: people, cement bags, and trucks.
[0080] Because the docking locations of ships at the wharf are not fixed, there are many types of cement bags, and truck models and docking methods vary, and hoisting operations occur irregularly 24 hours a day, data collection needs to fully cover the above variables to ensure the model's accuracy in recognizing various working conditions. Specifically, data collection will be conducted from the following two dimensions: (1) Coverage of hoisting status: Coverage of all hoisting statuses of cement bags, including those parked on trucks, lifted off the ground, suspended in the air (including various rotational postures), entering the ship's cabin, critical landing status, and unhung status; (2) Scene diversity coverage: Data is collected separately according to the cement bag type, lighting conditions, operation time period, weather conditions, ship cabin type, transportation direction, truck type and parking direction, hoisting method, etc., to ensure that the dataset covers the vast majority of actual hoisting conditions.
[0081] The labeling strategy is as follows: cement bags are only labeled after they are lifted; cement bags parked on trucks or not in a suspended state are not labeled; people and trucks are labeled in full; images of the suspended state and pure background images are included in the training set as negative samples to enhance the model's ability to distinguish easily confused states.
[0082] In this embodiment, the final training set consists of 4378 images, including 2715 images containing cement bags and truck targets, and 1663 background images and images of cement bags not being hung up.
[0083] Step 2: In the target detection module, obtain the detection frames of people, cement bags and trucks in the video frame.
[0084] In this embodiment, the video frames acquired by the image acquisition module are preprocessed to a model input size of 736×416 and then fed into the YOLOv8s object detection model for inference. This model is trained on the training set constructed in step 1 and converted into a TensorRT engine with FP16 precision. The engine has a built-in NMS operator and directly outputs the bounding box coordinates, class, and confidence score of each object. Only the bounding box with the highest confidence score is retained for each object class. For example, in this embodiment, the inference result is: cement bag bounding box. , Truck detection box , Personnel detection box , 。
[0085] Cement bag test frame Calculate the basic parameters as an example:
[0086]
[0087]
[0088]
[0089] Step 3: In the intrusion detection module of the dangerous area, determine the lifting status. In this embodiment, the detection frames obtained in step 2 are used as input to calculate the intersection-union ratio (IUU) between the cement bag detection frames and the truck detection frames. For example, in one experiment, the first... Frame capture of cement bag detection frame Truck inspection box The crossover-union ratio can be calculated: The intersection region is determined by the larger of the left boundaries of the two detection boxes and the smaller of the right boundaries in the horizontal direction. In the vertical direction, the larger of the upper boundaries of the two detection boxes and the smaller of the lower boundaries are taken as the result. :
[0090]
[0091]
[0092] at this time The system determines that the cement bag and the truck are intersecting at this point, and temporarily treats it as not being lifted, suppressing the alarm and resetting the departure confirmation count. Subsequently... Frame: 1 The horizontal values [380, 1053, 910] in the first frame (cement bag detection frame) and [1101, 682, 1974, 1440] in the second frame do not overlap. Similarly, the horizontal values [380, 1053] and [1101, 1974] in the third frame (cement bag detection frame) and [1236, 679, 2120, 1440] in the fourth frame (cement bag detection frame) and [1351, 683, 2178, 1436] in the fifth frame (cement bag detection frame) also do not overlap. The cross-joint ratio (CLURR) of these three consecutive frames is 0, satisfying the consecutive frame confirmation mechanism. Once it is determined that the cement bag has truly left the truck, the subsequent alarm determination process begins.
[0093] Step 4: In the danger zone intrusion determination module, perform rotational attitude grouping and area normalization.
[0094] In this embodiment, rotational attitude grouping and area normalization are performed according to the following process: First, the length-to-short side ratio is calculated from the detection frames of the cement bags output in step 2. The median of the most recent three frames is used for smoothing to suppress detection box jitter. Then, the rotation attitude is divided into a fitting group or an oblique group according to the hysteresis threshold. Frames with incomplete smoothing windows do not participate in grouping and baseline updates. The area baseline is maintained independently for each group. When a group switching is detected, the inter-group ratio coefficient is calibrated online using the area jump before and after the switching. The two sets of benchmarks are then refreshed crosswise; finally, the area of the current frame detection box is divided by the area benchmark of its group to obtain the normalized area ratio of rotational immunity. The initial group median is set to a default value of 1.30. During the operation, it self-calibrates based on the maximum observed ratio of the longer to shorter side. In this embodiment, after convergence... Hysteresis threshold , The specific process is as follows: (1) Calculation and smoothing of the ratio of the long side to the short side: The ratio of the long side to the short side of the detection box in each frame is calculated and smoothed by taking the median of 3 frames. The measured data in this embodiment is shown in the table below: Table 1. Representative sampling frame data after the cement bag is lifted.
[0095] Among them, the If the frame smoothing window is less than 3 frames, it will not participate in the grouping. In order to avoid writing the near square expansion frame at the moment of lifting into the bonding group reference, no area reference will be updated. The first effective smoothing value is obtained for the frame. The initial group is determined to be an oblique group, and its area of 449565 pixels is used to establish the benchmark for the oblique group. .
[0096] (2) Lag grouping: frame Maintain the slanted group; the first frame The values are 1.302 and 1.359 respectively, both falling into the hysteresis band [1.278, 1.378]. Keeping the skewed group unchanged prevents frequent switching when the attitude is near the group boundary. frame Switch to the bonding group; frame Within the hysteresis zone, the bonding group remains unchanged.
[0097] (3) Online calibration of intergroup proportionality coefficients: arrive When a switch occurs from the angled group to the mating group, the median area of the two frames before and after the switch is taken:
[0098]
[0099]
[0100] Switching the center point ordinates The value changed from 616.5 to 571.3, with a change of approximately... At this point, the cement bag is in the descent phase and the distance to the camera changes significantly, failing to meet the calibration prerequisite of "the distance remains approximately constant before and after the switch." Therefore, this candidate value is discarded. Remain in an uncalibrated state.
[0101] For example, in the horizontal transport phase of another hoisting operation, before the switch, two adjacent frames of cement bags were in an inclined group, with detection frame areas of 454062 and 389298 pixels respectively. After the switch, the detection frame areas of two adjacent frames were 396245 and 388332 pixels respectively. Calculate the median area before and after the switch:
[0102]
[0103] The average ordinate of the center point before and after the switch is approximately 266.5 pixels and 262.5 pixels, respectively, a change of approximately 4 pixels. Furthermore, the switching is completed within one frame, and the candidate value is adopted:
[0104] As candidates are switched multiple times during the operation, ρ takes the median of the candidates and gradually converges. (4) Area benchmark maintenance and cross-update: The frame-fitting group baseline was established by direct observation. ;No. The frame detection box area of 321498 exceeds the benchmark, update Due to this stage Before calibration is completed, cross-refreshing will not be performed to prevent uncalibrated coefficients from contaminating the benchmark.
[0105] (5) Normalized area ratio calculation: Divide the area of the current frame detection box by the area reference of its group, for example... frame:
[0106] The normalized area ratios for each frame are shown in Table 1; to frame It is still greater than the second area threshold. The entire process is in the transportation alarm judgment branch.
[0107] Step 5: In the dangerous area intrusion detection module, perform height classification and dangerous area construction, and perform personnel intrusion detection; In this embodiment, the normalized area ratio obtained from step 4 The system uses detection frame parameters to classify cement bags by height, expands detection frames by grade, constructs hazardous areas, and determines personnel intrusion based on the intersection of personnel detection frames and hazardous areas. For example, the cement bag detection frame B = (458, 272, 932, 915).
[0108] First, based on the ordinate of the center point of the bagged material detection frame... Perform altitude classification and set high-altitude thresholds. Near-ground threshold The median value for each tier is:
[0109] The detection box B = (458, 272, 932, 915), and the ordinate of its center point is:
[0110] satisfy It was determined to be a high-end, mid-range structure; the normalized area ratio of this frame... =0.948, which is greater than the second area threshold. This indicates that the cement bag area is still large and there is a risk of it falling. The detection frame needs to be expanded and a dangerous area needs to be constructed. The personnel involved need to be identified as having intruded.
[0111] Secondly, according to the expansion ratio of hollow high-end... Expand the detection frame in three directions: left, right, and downward.
[0112] An inscribed ellipse is constructed in the lower portion of the expanded detection frame as the final hazard determination area. The area below the hollow gear position is used in proportion. The vertical upper boundary of the elliptical region is:
[0113] The parameters of the inscribed ellipse are:
[0114] Person detection box in this frame Given the ellipse coordinates (881, 686, 947, 798), take the point p = (881, 798) on it that is closest to the center of the ellipse (695, 818.5), and substitute it into the ellipse criterion:
[0115] The point falls within the ellipse, meaning the personnel detection frame intersects with the elliptical danger zone. Therefore, the person is determined to be in the danger zone. At this time, the cement bag is suspended in the hollow, and the person is working close to the material, which constitutes a genuine dangerous intrusion.
[0116] Take a frame showing a person near the material drop point as a control, and use it as the cement bag detection frame. , Construct an ellipse using the same method ( =673.5, , =232, (This is the personnel detection box in the frame.) =(310,934,398,1040), its horizontal range [310,398] does not intersect with the horizontal range of the ellipse [441.5,905.5], so it is not considered dangerous. Ground personnel working near the material drop point are outside the ellipse danger zone and will not be falsely alarmed.
[0117] Step 6: In the intrusion detection module of the dangerous area, determine the landing trend; In this embodiment, frame Enter Transition range, maintenance length Sliding window records normalized area ratio The window is divided into two halves frame by frame to calculate the area change ratio. The process is determined using a three-branch state machine, and the process data is shown in the table below: Table 2: Representative Sampling Frame Data of Hollow Cement Bag Transportation
[0118] Among them, for example Frame, mean of the first half of the window The mean of the second half 476, area change ratio This is recorded as a falling frame and the stability count is reset. When the cement bag is close to the drop position, the falling speed slows down and the area stabilizes for two consecutive frames. However, the state machine recognizes that the area is still slowly falling and does not mistake the brief stability during the fall for landing. frame The number of consecutive stable frames reached It was determined that the cement bag had landed stably.
[0119] Step 7: In the dangerous area intrusion detection module, perform ground latching and automatic reset. In this embodiment, as can be seen from step 6, in At frame 1, the system determines that the cement bag has landed and locks it in a non-alarm state. Afterwards, the system will not alarm when workers approach and move or adjust the cement bag. During the locking period, as shown in Table 3, the cement bag rotates in place due to the torsion of the sling. Frame length to short side ratio The ratio decreased continuously from 1.764 to 1.055, while the detection box area expanded from 138,320 pixels to 243,774 pixels. Since normalization eliminated the effect of rotational area expansion, the normalized area ratio during this period was at its highest at only [value missing]. The frame value of 0.598 is consistently below the reset threshold. =0.6, and does not meet the requirement of "more than 10 consecutive frames". The system maintained the latched state and did not experience any false resets or alarms due to rotation, as required by the reset condition. During latching, the system continuously performed grouping and calibration. When the frame switches to the skew group The change is approximately 8.2 pixels, lower than , It was adopted and both sets of benchmarks were updated cross-referenced.
[0120] If a truck is detected in the frame during latching, or if the normalized area exceeds 10 consecutive frames... The system automatically releases the latch and resets all states, entering a new round of hoisting operation testing.
[0121] Table 3: Data Table of Cement Bag Landing Latch Sampling Frames
[0122] Step 8: In the alarm generation and upload module, generate and upload alarms. In this embodiment, step 5 determines that a person is in a dangerous area in a single frame. If a continuous [frame] is reached... If a frame indicates that a person is in a dangerous area, an alarm is triggered. The system collects all intrusion frames within the cooling cycle, annotates the personnel detection box, cement bag detection box, and semi-elliptical dangerous area frame by frame, generates an alarm image, and uploads it to the MinIO object storage via multi-threading. At the same time, the alarm time, type, camera IP, and image access path are sent to the security management platform via HTTP POST. If only one frame of intrusion is detected, the system records the intrusion frame but does not trigger an alarm, which can effectively filter out single-frame intrusions caused by a person passing by briefly.
[0123] As is known from common technical knowledge, this invention can be implemented through other embodiments that do not depart from its spirit or essential characteristics. Therefore, the disclosed embodiments described above are merely illustrative in all respects and are not the only ones. All modifications within the scope of this invention or its equivalents are included in this invention.
Claims
1. A deep learning-based safety detection method for hoisting bagged materials at a dock, characterized in that, Includes the following steps: S1. Obtain the real-time video stream captured by the surveillance camera; S2. Perform target detection on the video frame to obtain the personnel detection box, bagged material detection box and truck detection box in the current frame; S3. Determine whether the bagged material has left the truck and entered the lifting state based on the positional relationship between the bagged material detection frame and the truck detection frame; S4. After the bagged material has left the truck, the rotation posture of the bagged material is divided into a bonding group or an inclined group according to the ratio of the length and short side of the bagged material detection frame. The bonding group and the inclined group maintain the area benchmark respectively. The inter-group ratio coefficient is calibrated online by the area jump before and after the group switching, and the two groups of area benchmarks are refreshed crosswise. The two groups of area benchmarks are normalized to the area of the current frame detection frame to obtain the normalized area ratio that is immune to suspension rotation. S5. Divide the height into levels according to the vertical coordinates of the center point of the bagged material detection frame, expand the detection frame in three directions according to the level, and take the lower part to construct an inscribed ellipse as the danger judgment area. S6. Flow splitting determination based on normalized area ratio: When the normalized area ratio is less than or equal to the first threshold, it is determined that the bagged material has been placed on the ground and enters the ground locking state; when the normalized area ratio is greater than the second threshold, personnel intrusion is detected; when the normalized area ratio is between the first threshold and the second threshold, the changing trend of the normalized area ratio is analyzed through a sliding window, and the material is confirmed to have been placed on the ground and entered the ground locking state based on the trend characteristics. S7. When multiple consecutive frames detect that a person is in a dangerous area, an alarm is triggered and the alarm information is uploaded.
2. The method for safety detection of bagged materials hoisting at a dock based on deep learning according to claim 1, characterized in that: Step S3 includes: Calculate the intersection-over-union ratio (IoU) of the bagged material inspection boxes and the truck inspection boxes: in, For bagged material inspection frames, For truck detection frames; like It was determined that the bagged materials were still on the truck and had not been lifted. When continuous frame If no truck is detected, confirm that the bagged material has left the truck and proceed to the next step.
3. The method for safety detection of bagged materials hoisting at a dock based on deep learning according to claim 1, characterized in that: In step S4, the rotational orientation of the bagged material is divided into a bonding group or an inclined group based on the ratio of the length to the short side of the bagged material detection frame, including: Calculate the ratio of the length to the short side of the detection box in the current frame. Take the median of the ratio of the long side to the short side of multiple consecutive frames. Used as a reference value for smoothing; The maximum value of the ratio of the longer side to the shorter side observed during the continuous tracking operation. and minimum value Calculate the group median And set a hysteresis threshold. ; The grouping rule is: currently in the fit group At that time, if Then switch to the angled group Currently in the slanted group At that time, if Switch back to the bonding group Otherwise, keep the original grouping unchanged.
4. The method for safety detection of bagged materials hoisting at a dock based on deep learning according to claim 3, characterized in that: In step S4, the online calibration of the inter-group ratio coefficient includes: Let the frame in which the packet handover occurs be the 1st frame. For each frame, take the area of the detection box in at least one frame before the handover and the area of the detection box in at least one frame after the handover, and calculate the median area before and after the handover. , ; Calculate candidate values for the inter-group proportional coefficient based on the switching direction. : Validation of candidate values: only when group switching occurs K Completed within the frame, and the change in the ordinate of the center point of the detection box before and after the switch is less than the threshold. When a candidate value is adopted, the median of all adopted candidate values is used as the current inter-group ratio coefficient. .
5. The method for safety detection of bagged materials hoisting at a dock based on deep learning according to claim 4, characterized in that: In step S4, the two sets of area benchmarks are cross-updated, including: Adhesive set and Inclined group Maintain their respective area benchmarks 、 This refers to the historical maximum area of the detection frame in this group; After each frame detection, if the area of the detection box in the current frame... If the area is greater than the area benchmark of its group, then update the benchmark of that group; After any set of baselines is updated, the ratios are calculated based on the inter-group proportions. Simultaneously refresh another set of benchmarks, the fitting group When updating the group datum, refresh the oblique group datum to the original datum. and The larger one in the group will have its matching group reference updated to the original reference when the oblique group reference is updated. and The larger one.
6. The method for safety detection of bagged materials hoisting at a dock based on deep learning according to claim 1, characterized in that: Step S5 includes: Height grading: Based on the ordinate of the center point of the bagged material detection frame. Perform altitude classification and set high-altitude thresholds. Near-ground threshold The median value for each tier is: The grading rule is: when When the material is at a high altitude, it is determined that the material is in a high-altitude position. When the material is near the ground, it is determined that the material is in a near-ground position; when At that time, it was determined that the material was hollow, in which For high-end hollow, It is a low-end hollow structure; where the value satisfies ; The detection frame is expanded in three directions: left, right and downward, according to the height level of the material. The higher the level, the greater the vertical downward expansion ratio. Construction of the inscribed ellipse below the grade: Construct an inscribed ellipse for the lower part of the expanded detection box as the danger determination area.
7. The method for safety detection of bagged materials hoisting at a dock based on deep learning according to claim 1, characterized in that: Step S6 includes: when the bagged material has been confirmed to have left the truck and is no longer at high altitude, according to the normalized area ratio... Three scenarios will be handled: First scenario: If , If the first area threshold is reached, it is determined that the material has landed, enters the land-locking state, and stops the alarm. After the landing latch is established, the system stops alarming for bagged materials until it automatically releases the latch when any of the following new round of operations is detected: (1) a truck is detected in the screen; (2) the normalized area ratio is continuous. Frame exceeds the second area threshold ; The second scenario: If ,or and At that time, among them There is a risk of falling, so an intrusion check is being conducted. Personnel intrusion detection: Sequentially determine whether there is an intersection between the personnel detection box and the elliptical danger area. If there is an intersection, the personnel is determined to be in the danger area. The third scenario: If Then, proceed to determine the landing trend.
8. A deep learning-based safety detection method for hoisting bagged materials at a dock, as described in claim 7, is characterized in that: The latched state also includes a fault-tolerance mechanism: (1) No bagged material was detected continuously. During frame time, maintain the existing decision state unchanged; (2) If no bagged material is detected after a preset time, the area benchmarks of the two groups are cleared and the inter-group ratio coefficient ρ is retained for reuse. (3) The area reference will not be reset even if the timeout period is exceeded while the material is still on the truck.
9. A deep learning-based safety detection method for hoisting bagged materials at a dock, as described in claim 7, is characterized in that: The process for determining the landing trend is as follows: Maintenance length is sliding window Used to record recent Normalized area of the frame: When there are at least 3 frames of data in the window, divide the window into two parts according to time sequence, and calculate the mean for each part. and Then calculate the area change ratio: according to With fluctuation threshold The comparison results are used to determine the three-branch state: The frame is falling, indicating that the material has not yet landed; The frame is stable, indicating that the material may have already landed. The frame is a recovery frame, determined to be either a material posture rotation or a detected fluctuation; The cumulative number of stable frames is calculated, and the number of consecutive stable frames reaches a preset threshold. The material is determined to have landed stably and entered the land-locking state. Before the conditions for confirmation of landing are met, the determination of personnel intrusion will still be based on the second scenario. when leave When the interval is reached, the stable frame count, unstable frame count, and sliding window data are automatically cleared to zero.
10. A deep learning-based safety detection system for hoisting bagged materials at a dock, characterized in that: include: The image acquisition module is used to acquire real-time video streams from monitoring cameras deployed on the rotating platform of the gantry crane. The cameras move synchronously with the gantry crane arm. The target detection module is used to perform target detection on video frames and obtain the detection boxes for people, bagged materials, and trucks in the current frame; The hazardous area intrusion determination module is used to determine whether the bagged material has left the truck and entered the lifting state based on the positional relationship between the bagged material detection frame and the truck detection frame; it is used to divide the area of the current frame bagged material detection frame by the area benchmark of its group to obtain the normalized area ratio immune to suspension rotation; it is used to classify the height according to the vertical coordinate of the center point of the bagged material detection frame, expand the detection frame in three directions according to the level, and take the lower part to construct an inscribed ellipse as the hazardous determination area, and determine whether there is an intersection between each personnel detection frame and the hazardous determination area; Used for determining flow splitting based on normalized area ratio; The alarm generation and upload module is used to trigger an alarm when multiple consecutive frames detect that a person is in a dangerous area, and upload the alarm information to the safety management platform.
