Method, device, equipment and system for obtaining work area boundary of construction machinery
By installing multiple cameras on construction machinery to acquire images of the fenced area and detect the pose of the calibration plate, and combining the fence segmentation results, the fence boundary is reconstructed, which solves the problem of inaccurate fence recognition in complex construction sites and improves the safety of construction machinery operation.
Patent Information
- Application Number
- CN202611086981.5
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2026-07-21
- Publication Date
- 2026-11-27
AI Technical Summary
In complex construction site environments, existing technologies struggle to accurately identify the true distance and orientation of fences relative to construction machinery, resulting in a high false detection rate and an inability to effectively prevent the risk of personnel or vehicles entering the work area or construction machinery colliding with fences.
By installing multiple cameras on engineering machinery, images of the fenced area are acquired and the pose of the calibration plate is detected. Combined with the fence segmentation results, the fence boundary is reconstructed. Using the geometric constraints and pose information provided by the calibration plate, accurate identification of the fence boundary is achieved.
It improves the accuracy of fence boundary identification, reduces safety risks in the operation of construction machinery, and ensures the safe operation of construction machinery within the isolated area.
Smart Images

Figure CN123181559A_ABST
Abstract
Description
Technical Field
[0001] This application relates to the field of computer vision technology, specifically to a method, apparatus, equipment, and system for obtaining the boundary of the working area of engineering machinery. Background Technology
[0002] In scenarios such as mines, ports, material yards, infrastructure construction, and closed testing grounds, remote-controlled or automated construction machinery often operates in environments where personnel, vehicles, stockpiles, and temporary facilities are mixed. To reduce the risks of personnel accidentally entering, vehicles approaching, and collisions occurring during the operation of automated equipment, it is usually necessary to demarcate a dedicated work area on-site and place physical or movable fencing around the edge of the work area to ensure that automated or remote-controlled construction machinery operates within a relatively isolated area.
[0003] However, mobile fences are frequently affected by handling, squeezing, vehicle traffic, wind, uneven ground, and construction adjustments on construction sites, which may lead to problems such as missing fence panels, gaps between adjacent fences, fence collapse, fences being too close to vehicles, and fences being obstructed by materials. If the construction machinery is still operating in automatic or remote control mode, personnel or other vehicles may enter the work area from a neutral position, or the construction machinery may collide with the fence during turning, rotation, lifting, or braking.
[0004] In related technologies, on-site safety management largely relies on simple fence target detection. However, using images alone for fence detection is susceptible to false positives due to complex construction site backgrounds, mud, dust, lighting variations, and fence shape differences. Furthermore, it's difficult to consistently obtain the true distance and orientation of the fence relative to construction machinery, resulting in low fence recognition accuracy. Therefore, a detection solution capable of accurately identifying fence boundaries in complex environments is needed.
[0005] The above statements are for the purpose of providing background information in relation to this application only and do not necessarily constitute prior art. Summary of the Invention
[0006] The purpose of this application is to provide a method, apparatus, device, and system for obtaining the boundary of the operating area of engineering machinery. To provide a basic understanding of some aspects of the disclosed embodiments, a brief summary is given below. This summary is not intended as a general description, nor is it intended to identify key / important components or describe the scope of protection of these embodiments. Its sole purpose is to present some concepts in a simple form as a prelude to the detailed description that follows.
[0007] According to one aspect of the embodiments of this application, a method for obtaining the boundary of the operating area of engineering machinery is provided, including: Acquire images of the construction machinery's operating area captured by multiple cameras mounted on the construction machinery; Obtain the pose of the calibration plate in the image; Detect and segment fence instances in the image to obtain fence segmentation results; the calibration plate is pre-set on the fence of the engineering machinery operation area. Based on the pose of the calibration plate and the fence segmentation result, the fence boundary of the engineering machinery operation area is obtained.
[0008] In some embodiments of this application, obtaining the pose of the calibration plate in the image includes: Obtain the calibration board region in the image, and extract feature points from the calibration board region; The pose of the calibration plate is obtained based on the feature points.
[0009] In some embodiments of this application, the feature points include at least one of the following: corner points, center points, coded block vertices, and direction identifier endpoints; the extraction of feature points from the calibration board region includes: The calibration plate region is processed using a pre-trained artificial neural network model to output a feature heatmap; The feature heatmap is processed by fitting sub-pixel corner points or circle centers; For areas obscured or contaminated by mud, outliers are removed using RANSAC, consistency constraints, and coding verification.
[0010] In some embodiments of this application, obtaining the pose of the calibration plate based on the feature points includes: After transforming the poses from multiple cameras to the mechanical coordinate system, a weighted fusion is performed. The weights are determined by the angle of view, distance, number of feature points, reprojection error, and image quality. If there are multiple calibration plates on the same fence segment, the orientation, bending or tilting state of the fence segment can be estimated by the pose consistency of the multiple calibration plates.
[0011] In some embodiments of this application, before the weighted fusion is performed after transforming the poses from multiple cameras to the machine coordinate system, the step of obtaining the pose of the calibration plate based on the feature points further includes: Minimize the sum of robust reprojection errors for each feature point; Output the rotation matrix, translation vector, reprojection mean square error, and pose covariance estimate of the calibration board relative to the camera.
[0012] In some embodiments of this application, detecting and segmenting fence instances in the image to obtain fence segmentation results includes: The fence panels, fence rods, fence bases and fence mesh in the image are subjected to target detection and instance segmentation. The fence segmentation result is output, which includes fence instance bounding box, fence segmentation mask, contour, edge direction, endpoint candidate and visible length. The method further includes: Obtain the calibration plate segmentation mask; If the calibration plate segmentation mask is adjacent to or overlaps with the fence segmentation mask, and the calibration plate normal and the fence main direction satisfy a preset angle range, then the calibration plate is determined to belong to the fence segment. For a fence section that is continuous with a known fence segment but has not been fitted with a calibration plate, the boundary of the fence section is inferred by using the scale and orientation provided by the adjacent calibration plates and the fence segmentation mask.
[0013] In some embodiments of this application, obtaining the fence boundary of the engineering machinery operating area based on the pose of the calibration plate and the fence segmentation result includes: The known geometric calibration plate on the fence provides size and pose constraints, and the fence instance segmentation results provide visibility range and endpoint constraints. The size and pose constraints of the calibration plate are fused with the fence instance segmentation results to reconstruct the fence boundary and determine the closure / distance risk.
[0014] In some embodiments of this application, obtaining the fence boundary of the mechanical operation area based on the pose of the calibration plate and the fence segmentation result includes: The association between fence instances and calibration boards is completed based on image spatial overlap, distance, relative position, calibration board ID, fence endpoint direction, and 3D geometric consistency. Based on the aforementioned association, each fence instance is converted into a line segment, polyline, short boundary fragment, or grid occupied area in the coordinate system; the pose of the calibration plate is used to provide local planar and scale constraints for the fence, and the fence segmentation mask is used to provide visibility range and endpoint constraints; For a single fence segment, its left and right endpoints are estimated based on the center of the calibration plate, the fence installation offset, the fence inspection edge, and the standard width of the fence. For multiple adjacent fence segments, the fence boundary is constructed based on the endpoint distance, directional angle, and image continuity.
[0015] In some embodiments of this application, the method further includes: The fence boundary is closed and gaps are measured to determine whether it completely surrounds the construction machinery or the pre-set work area.
[0016] In some embodiments of this application, the closure determination of the fence boundary includes: Use the endpoints of the fence segments as nodes and the visible fence segments as edges, and connect adjacent endpoints according to spatial proximity. If a fence boundary ring exists and that ring surrounds the mechanical safety envelope or the pre-defined work area, then the fence is considered closed. If the distance between any adjacent endpoints is greater than the gap threshold, or if there is an open chain that cannot form a closed loop, or if the closed loop does not include the engineering machinery or work area, then the fence is determined to have a gap.
[0017] In some embodiments of this application, the closure determination of the fence boundary includes: The fence segmentation results and calibration plate pose are projected onto the ground plane to form the fence occupancy grid. The fence-occupied grid is subjected to connected component analysis, morphological connection, and contour extraction to obtain the processing result; If, in the processing result, the area occupied by the fence cannot form a closed outline that surrounds the mechanical safety envelope, or if there is an opening with a width exceeding a threshold in a preset direction, a gap alarm will be output.
[0018] In some embodiments of this application, the method further includes: Calculate the minimum distance from the mechanical safety envelope to the fence boundary to determine whether the fence is too close to the construction machinery; Combining confidence level, continuous frame results, and alarm strategy, the system outputs information on fence integrity, fence gaps, fence too close, calibration board failure, or camera obstruction.
[0019] According to another aspect of the embodiments of this application, a device for obtaining the boundary of an engineering machinery operating area is provided, comprising: The image acquisition module is used to acquire images of the working area of the construction machinery, which are collected by multiple cameras installed on the construction machinery. The calibration board pose acquisition module is used to acquire the pose of the calibration board in the image; The detection and segmentation module is used to detect and segment fence instances in the image to obtain fence segmentation results; the calibration plate is pre-set on the fence of the engineering machinery operation area. The fence boundary acquisition module is used to acquire the fence boundary of the engineering machinery operation area based on the pose of the calibration plate and the fence segmentation result.
[0020] According to another aspect of the embodiments of this application, an electronic device is provided, including a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the processor executes the computer program to implement the method for obtaining the boundary of the engineering machinery operation area as described in any embodiment of this application.
[0021] According to another aspect of the embodiments of this application, a system for obtaining the boundary of an engineering machinery operation area is provided, including a multi-camera group, multiple calibration plates, and electronic equipment as described in the embodiments of this application; the multi-camera group includes multiple cameras mounted on the engineering machinery; the multiple calibration plates are disposed on the fence of the engineering machinery operation area.
[0022] According to another aspect of the embodiments of this application, a computer-readable storage medium is provided, on which a computer program is stored, the computer program being executed by a processor to implement the method for obtaining the boundary of the engineering machinery operation area as described in any embodiment of this application.
[0023] One aspect of the technical solution provided in this application embodiment may include the following beneficial effects: The method for obtaining the boundary of the construction machinery operation area provided in this application embodiment acquires images of the construction machinery operation area collected by multiple cameras installed on the construction machinery, obtains the pose of a calibration plate in the image, detects and segments fence instances in the image, and obtains fence segmentation results. The calibration plate is pre-set on the fence of the construction machinery operation area. Based on the pose of the calibration plate and the fence segmentation results, the fence boundary of the construction machinery operation area is obtained, thereby enabling accurate identification of the fence boundary in complex sites. The obtained fence boundary of the construction machinery operation area has high accuracy, improving the safety of construction machinery operation.
[0024] The above description is merely an overview of the technical solutions of the embodiments of this application. In order to better understand the technical means of the embodiments of this application and to implement them in accordance with the contents of the specification, and to make the above and other objects, features and advantages of the embodiments of this application more obvious and understandable, specific implementation methods of this application are described below. Attached Figure Description
[0025] To more clearly illustrate the technical solutions in the embodiments or related technologies of this application, the drawings used in the description of the embodiments or related technologies will be briefly introduced below. Obviously, the drawings described below are only some embodiments recorded in this application. For those skilled in the art, other drawings can be obtained based on these drawings without creative effort.
[0026] Figure 1 This diagram illustrates the relative position of an engineering machinery operation area boundary acquisition system and a fence according to an embodiment of this application.
[0027] Figure 2 A schematic diagram of feature points on the calibration plate and the calibration plate coordinate system is shown in one embodiment of this application.
[0028] Figure 3A flowchart illustrating a method for obtaining the boundary of an engineering machinery operating area according to an embodiment of this application is shown.
[0029] Figure 4 A flowchart illustrating the acquisition of the pose of the calibration plate in the image is shown according to one embodiment of this application.
[0030] Figure 5 A schematic diagram of a fence with a closed gap is shown according to one embodiment of this application.
[0031] Figure 6 A structural block diagram of an engineering machinery operation area boundary acquisition device according to an embodiment of this application is shown.
[0032] Figure 7 A block diagram of an electronic device structure according to an embodiment of this application is shown.
[0033] Figure 8 A schematic diagram of a computer-readable storage medium according to an embodiment of this application is shown. Detailed Implementation
[0034] To make the objectives, technical solutions, and advantages of this application clearer, the application will be further described below with reference to the accompanying drawings and specific embodiments. It should be understood that the specific embodiments described herein are merely illustrative and not intended to limit the scope of this application. All other embodiments obtained by those skilled in the art based on the embodiments in this application without inventive effort are within the scope of protection of this application.
[0035] It will be understood by those skilled in the art that, unless otherwise defined, all terms used herein (including technical and scientific terms) have the same meaning as commonly understood by one of ordinary skill in the art to which this application pertains. It should also be understood that terms such as those defined in general dictionaries should be understood to have a meaning consistent with their meaning in the context of the prior art, and should not be interpreted in an idealized or overly formal sense unless specifically defined as herein.
[0036] In related technologies, on-site safety management largely relies on simple fence target detection. However, using images alone for fence detection is susceptible to false positives due to complex construction site backgrounds, mud, dust, lighting variations, and fence shape differences. Furthermore, it's difficult to consistently obtain the true distance and orientation of the fence relative to construction machinery, resulting in low fence recognition accuracy. Therefore, a detection solution capable of accurately identifying fence boundaries in complex environments is needed.
[0037] To address the problems existing in related technologies, this application provides a method for obtaining the boundary of an engineering machinery operation area. The method involves acquiring images of the engineering machinery operation area captured by multiple cameras mounted on the engineering machinery, obtaining the pose of a calibration plate in the images, detecting and segmenting fence instances in the images, and obtaining fence segmentation results. The calibration plate is pre-set on the fence of the engineering machinery operation area. Based on the pose of the calibration plate and the fence segmentation results, the fence boundary of the engineering machinery operation area is obtained. This enables accurate identification of fence boundaries in complex environments, resulting in high accuracy of the obtained fence boundary for the engineering machinery operation area and improving the safety of engineering machinery operations.
[0038] The following description, in conjunction with the accompanying drawings, describes a method, apparatus, equipment, and system for obtaining the boundary of an engineering machinery operating area according to embodiments of this application.
[0039] One embodiment of this application provides a boundary acquisition system for engineering machinery operating areas. The system may include a multi-camera group, multiple calibration plates, and a processing device. The processing device includes a vision computing unit, an alarm interlocking unit, and a configuration and recording unit.
[0040] A multi-camera group includes multiple cameras mounted on construction machinery used for construction operations. If the multi-camera group includes multiple cameras, these cameras are positioned at different locations on the construction machinery. The cameras in the multi-camera group can include at least one of pinhole cameras, wide-angle cameras, and fisheye cameras. For example, the multi-camera group can include multiple pinhole cameras positioned at the front, rear, left, and right of the construction machinery. The multi-camera group is used to acquire images of fences and calibration plates, with the acquisition area covering the near-field region surrounding the construction machinery. Each camera captures images of the surrounding environment in a direction away from the construction machinery.
[0041] Fences are used to enclose the work area of construction machinery to prevent unauthorized personnel or machinery from entering the work area, thereby reducing potential hazards. The construction machinery operates within the fenced-off work area. Fences can be rigid metal fences, mobile plastic fences, water-filled barriers, combinations of warning posts and crossbars, mesh fences, folding fences, or temporary guardrails. Different fence types can correspond to different fence detection categories and geometric parameters, such as standard width, height, end point positions, and calibration plate installation offset. The system can require a calibration plate to be installed on each fence panel, or it can require a calibration plate to be installed every few fence panels, and the intermediate fence panels are supplemented by the fence segmentation results. When each camera takes images of the surrounding environment in a direction away from the construction machinery, it can capture images of the fence around the construction machinery.
[0042] A calibration board, mounted on a fence, can be installed on fence poles, fence panels, or fence bases. The calibration board has known dimensions, known feature point coordinates, directional coding, and an optional ID, providing identifiable measurement and directional references in complex construction site environments. The calibration board can be a single large board, a combination of multiple small boards, a double-layer board, a coding board with directional arrows, or an integrated structure with a fence warning sign. Feature points can be black and white checkerboard patterns, dot matrix, concentric circles, QR codes / AprilTags, asymmetrical patterns, reflective dot matrix, or passive / active luminescent points. For nighttime operations, supplementary lighting can be added to the camera side, or reflective / fluorescent materials can be applied to the calibration board; for muddy environments, raised edges and hydrophobic coatings can improve cleanability. The calibration board employs redundant features and a dirt-resistant design, maintaining a certain level of availability under dust, mud, and partial obstruction conditions, and actively outputting a degradation alarm when unusable. The calibration board is not an ordinary QR code or ordinary camera calibration board, but a special visual anchor point for the fence designed for the polluted environment of construction sites. It has redundant features, direction / ID information and geometric constraints on the fence installation offset.
[0043] The visual computing unit is used to run detection, segmentation, feature point extraction, PnP, fusion and alarm logic, and outputs fence pose, closure status, distance status and fault status.
[0044] The alarm interlock unit is used for audible and visual alarms, remote control prompts, and vehicle controller deceleration or shutdown interfaces. It triggers risk handling when the fence is incomplete, too close, or the perception is degraded.
[0045] The configuration and recording unit is used to save camera intrinsic and extrinsic parameters, calibration board specifications, thresholds, alarm history and image evidence, supporting on-site deployment, verification and accident tracing.
[0046] The cameras in the multi-camera group are arranged around the construction machinery. Each camera undergoes pre-calibration of its intrinsic parameters and its extrinsic parameters from the camera coordinate system to the machine coordinate system are obtained through calibration of the construction machinery. A physical fence is placed at the edge of the work area, and several specially designed calibration plates are fixed on the fence panels, fence rods, or fence bases. The calibration plates have known physical dimensions, known feature point coordinates, orientation markings, and optional unique codes, enabling the vision algorithm to extract feature points from the complex construction site background and solve the pose of the calibration plate relative to the camera.
[0047] The visual computing unit performs calibration board detection, fence detection, and instance segmentation on images acquired by multiple camera groups. For the calibration board, the calibration board instance region and visible feature points are first obtained. Then, based on the known feature point coordinates in the calibration board coordinate system, the position and pose of the calibration board in the camera coordinate system are solved using PnP or homography decomposition methods suitable for planar targets, and the reprojection error is minimized through nonlinear optimization. For the fence, the fence instance bounding box, segmentation mask, edges, endpoints, and visible length are obtained. Subsequently, the calibration board pose is associated with the fence instance, and combined with the installation constraints between the fence and the calibration board, the fence boundary is reconstructed into the machine coordinate system or the ground bird's-eye view coordinate system.
[0048] Construction machinery includes, but is not limited to, excavators, scrapers, loaders, bulldozers, graders, and other mechanical equipment.
[0049] refer to Figure 1 As shown, in a specific example, the construction machinery operation area boundary acquisition system may include four cameras 1, six calibration plates 2, and a processing unit 3. The four cameras 1 are mounted on the construction machinery 4, located in the front, rear, left, and right directions respectively. The six calibration plates 2 are set on the fence 5. The processing unit 3 is used to run detection, segmentation, feature point extraction, PnP, fusion, and alarm logic, outputting the fence pose, closure status, distance status, and fault status. It is used for audible and visual alarms, remote control prompts, vehicle controller deceleration or shutdown interfaces, triggering risk handling when the fence is incomplete, too close, or the perception is degraded, and storing camera intrinsic and extrinsic parameters, calibration plate specifications, thresholds, alarm history, and image evidence, supporting on-site deployment, verification, and accident tracing.
[0050] This system determines the presence of two core risks based on the reconstructed fence boundary: first, whether the fence forms an effective closed boundary and completely surrounds the work area. If there are gaps exceeding a threshold between the endpoints of adjacent fence segments, or if the boundary map cannot form a closed loop containing the construction machinery or work area, the fence is deemed incomplete. Second, whether the fence is too close to the construction machinery. If the closest distance from the machinery's safety envelope to the fence boundary is less than a safety threshold, the fence is deemed too close. These judgments can be combined with multi-camera fusion results, calibration board confidence, fence segmentation confidence, and continuous frame temporal voting to generate alarm levels.
[0051] In this article, the following letters represent the following meanings: The mechanical coordinate system V represents a coordinate system fixed on the engineering machinery, used to represent the outer envelope of the machinery, the safety envelope, camera extrinsic parameters, and the fence boundary; The camera coordinate system C represents the independent imaging coordinate system of each camera. Both pinhole cameras and fisheye cameras can participate in the calculation through the corresponding projection model. The calibration plate coordinate system B represents a coordinate system fixed on the calibration plate plane, in which feature points have known two-dimensional or three-dimensional coordinates. The fence boundary S is a set of boundaries composed of each fence segment, fence endpoint, and fence plane / line segment in the mechanical coordinate system or the ground coordinate system. The safety envelope E is a two-dimensional or three-dimensional envelope obtained by expanding the geometry, motion error, braking distance and safety margin of the engineering machinery. Gap g is the open distance between the endpoints of adjacent fence segments that are not covered by the fence, or a broken edge in a closed topology.
[0052] The i-th feature point on the calibration board is denoted as P_i=(X_i,Y_i,0) in the calibration board coordinate system B, and its image observation point is denoted as u_i. For pinhole or fisheye cameras, combining the camera intrinsic parameters K, distortion parameters D, rotation R, and translation t, the observation equation can be established using the projection function u_i=π(K,D,R,t,P_i). The goal of solving the calibration board pose is to minimize the robust reprojection error of all visible feature points and output T_cb, which is the transformation from the calibration board coordinate system to the camera coordinate system. Combining this with the camera extrinsic parameters T_vc, we can obtain T_vb=T_vc•T_cb, thus unifying the calibration board and associated fence segments into the machine coordinate system V. Feature points are points in the image with drastic changes in grayscale values or large edge curvature, used to identify target objects and support image matching algorithms. (Reference) Figure 2 As shown, Figure 2 A schematic diagram of feature points on a calibration plate and a calibration plate coordinate system is shown in one embodiment of this application. The horizontal axis of the coordinate system is represented by Xb, the vertical axis by Yb, and the origin by Ob.
[0053] The calibration plate, as a measurement component, provides visible, identifiable, and solvable geometric anchor points for the fence's attitude during the operation of engineering machinery. The calibration plate can be rectangular, square, rounded rectangle, or other shapes adapted to the fence members. Its plane contains several high-contrast feature points, such as center points, corner points, checkerboard corner points, concentric circles, AprilTag / ArUco type coded blocks, barcodes, directional arrows, or combinations thereof. The position of each feature point in the calibration plate coordinate system is determined by the design dimensions and stored in the system configuration.
[0054] To adapt to dusty and mud-splashed environments, the calibration board can employ a high-contrast background color, reflective film, fluorescent coating, infrared reflective material, dirt-resistant transparent protective layer, raised or recessed geometric textures, a wipeable surface, and multiple sets of redundant feature points. Even if some areas are obscured by mud, the system can still estimate the calibration board's pose as long as the number and geometric distribution of visible feature points meet the solution conditions. When there are insufficient feature points or the error is too large, the system outputs a decrease in confidence or a calibration board failure status.
[0055] The relative installation relationship between the calibration plate and the fence can be preset. For example, the plane of the calibration plate can be parallel to the main plane of the fence, and the center of the calibration plate can have a fixed offset relative to the lower edge of the fence or the post; or the calibration plate can be fixed to the fence members by clips, bolts, magnets, or clamps, so that there is a fixed transformation T_fb between the coordinate system of the calibration plate and the local coordinate system of the fence. After the visual algorithm obtains T_vb, the local plane, orientation, baseline, or endpoint position of the fence can be calculated by T_vf = T_vb•T_bf.
[0056] Cameras can be mounted at the front, rear, left, right, diagonally, on the roof, or around the cab of construction machinery. For large loaders, excavators, mining trucks, pavers, and other equipment, four-lens, six-lens, or more cameras can be selected based on blind spots and the range of motion of the operating mechanism. The camera's field of view should cover the near-field safety area of the construction machinery and the locations where fences may appear; adjacent camera fields of view should preferably have overlapping areas to allow for cross-verification of the same fence section or the same calibration plate.
[0057] Before deployment, intrinsic parameter calibration is performed on each camera to obtain focal length, principal point, and distortion parameters. Fisheye cameras can use isometric, equal solid angle, or Kannala-Brandt fisheye models; pinhole cameras can use radial / tangential distortion models. Subsequently, extrinsic parameters of each camera to the machine coordinate system are obtained through engineering machinery calibration or tooling calibration. During operation, the vision computing unit unifies the calibration board pose and fence boundary observed by each camera to the machine coordinate system or ground-based bird's-eye view coordinate system based on the camera's intrinsic and extrinsic parameters.
[0058] The camera can use synchronous acquisition or quasi-synchronous acquisition combined with timestamp compensation. For low-speed operation scenarios of construction machinery, quasi-synchronous acquisition is usually sufficient for static fence detection; for scenarios where construction machinery moves quickly or the fence boundary is very close, temporal compensation can be performed by combining the speed, turning angle, braking status of the construction machinery or the visual pose of the previous frame.
[0059] The calibration board detection model and the fence segmentation model can be trained using data collected on-site. Training data should ideally cover sunny days, cloudy days, nighttime with supplemental lighting, backlighting, dust, mud, rain, different distances, different viewing angles, different fence types, and different occlusion ratios. For calibration board feature points, the board area, key points, ID area, and orientation can be labeled simultaneously; for fences, fence instance masks, endpoints, and abnormal states can be labeled. After model deployment, false positives and false negatives can be fed back for continuous optimization.
[0060] Another embodiment of this application provides a method for obtaining the boundary of an engineering machinery operation area, applicable to the engineering machinery operation area boundary obtaining system of any embodiment of this application, referencing... Figure 3 As shown, the method may include steps S10-S40: S10. Acquire images of the working area of the construction machinery by multiple cameras installed on the construction machinery.
[0061] The image was captured by cameras mounted on the construction machinery; multiple cameras are mounted on the machinery. These multiple cameras may include at least one of pinhole cameras and fisheye cameras, which can be adapted to different construction machinery shapes and field of view requirements.
[0062] In related technologies, there are also solutions that rely on fixed monitoring for fence detection. However, fixed monitoring is difficult to follow the movement of construction machinery and cannot obtain the fence boundary in real time based on the real-time position of the construction machinery. In this embodiment, the camera is installed on the construction machinery, thereby enabling real-time acquisition of the fence boundary based on the real-time position of the construction machinery. This further improves the accuracy of fence boundary acquisition and can better assist the construction machinery in determining the position and distance of the fence relative to itself, thereby improving the safety of construction machinery operations.
[0063] S20. Obtain the pose of the calibration plate in the image.
[0064] Before obtaining the pose of the calibration board in the image, image preprocessing can be performed. Distortion correction or equivalent projection processing is performed on the input images from each camera, and exposure compensation, white balance normalization, dehazing / dust removal enhancement, motion blur evaluation, and image quality assessment are performed according to scene requirements. Fisheye images can be detected directly in the original fisheye domain, or they can be expanded into a perspective view or bird's-eye view candidate region for detection; as long as the final projection model is consistent with the model used for pose solving, it is acceptable. After preprocessing, the pose of the calibration board in the image is obtained from the preprocessed image.
[0065] For example, refer to Figure 4 As shown, obtaining the pose of the calibration plate in the image may include steps S201-S202: S201. Obtain the calibration plate region in the image, and extract feature points from the calibration plate region.
[0066] For example, the feature points include at least one of the following: corner points, center points, coded block vertices, and direction identifier endpoints; extracting feature points from the calibration board region includes: The calibration plate region is processed using a pre-trained artificial neural network model to output a feature heatmap; The feature heatmap is processed by fitting sub-pixel corner points or circle centers; For areas obscured or contaminated by mud, outliers are removed using RANSAC, consistency constraints, and coding verification.
[0067] S202. Obtain the pose of the calibration plate based on the feature points.
[0068] For example, obtaining the pose of the calibration plate based on the feature points includes: transforming the poses from multiple cameras to the mechanical coordinate system and then performing weighted fusion, where the weights are determined by the angle of view, distance, number of feature points, reprojection error, and image quality; if there are multiple calibration plates on the same fence segment, the orientation, bending, or tilting state of the fence segment is estimated by the pose consistency of the multiple calibration plates.
[0069] For example, before weighted fusion after transforming the poses of multiple cameras to the mechanical coordinate system, the step of obtaining the pose of the calibration board based on the feature points further includes: minimizing the sum of robust reprojection errors of each feature point; and outputting the rotation matrix, translation vector, reprojection mean square error, and pose covariance estimate of the calibration board relative to the camera.
[0070] For example, minimizing the sum of robust reprojection errors for each feature point may include minimizing the sum of robust kernel function values for each feature point.
[0071] In a specific example, when performing calibration board detection, segmentation, and feature point extraction, the calibration board region is first located from the image using object detection, semantic segmentation, or instance segmentation models, resulting in the calibration board detection box, segmentation mask, and class confidence score. Subsequently, feature points are extracted within this region, including corner points, center points, coded block vertices, and direction marker endpoints. For calibration boards with unique IDs, the ID and direction information can also be identified to determine the correspondence between feature points and known points in the calibration board coordinate system. To improve robustness, a combination of traditional image processing and deep learning keypoint detection can be used to extract feature points. For example, a neural network can be used to output a feature heatmap, followed by sub-pixel corner point or center point fitting to improve localization accuracy. For areas obscured or contaminated by mud, outliers are removed using RANSAC, consistency constraints, and coding verification. The calibration board confidence score is calculated based on the number of visible points, the area of point distribution, coding verification results, and reprojection error.
[0072] In a specific example, since the feature points of the calibration board are located on the same plane, initialization can be performed using planar PnP (Perspective-n-Point), IPPE (Infinitesimal Plane-based Pose Estimation), homography decomposition, or EPnP (Efficient Perspective-n-Point), followed by nonlinear optimization. The optimization objective can be written as: minimizing Σρ(||u_i-π(K,D,R,t,P_i)||²), where ρ is a robust kernel function such as Huber or Tukey, used to reduce the influence of outlier feature points. The optimization outputs estimates of the calibration board's rotation R_cb, translation t_cb, reprojection mean square error, and pose covariance relative to the camera.
[0073] When multiple cameras simultaneously observe the same calibration plate, the poses from the multiple cameras can be transformed to the mechanical coordinate system and then weighted and fused. The weights can be determined by the viewing angle, distance, number of feature points, reprojection error, and image quality. If multiple calibration plates exist on the same fence segment, the orientation and bending or tilting state of the fence segment can be further estimated by the pose consistency of the multiple calibration plates.
[0074] By using a calibration plate to provide known geometric scales, fence detection results in ordinary images are converted into measurable boundaries in a mechanical coordinate system, which facilitates the calculation of true distances and gap lengths.
[0075] S30. Detect and segment fence instances in the image to obtain fence segmentation results.
[0076] The calibration board is pre-installed on the fence of the engineering machinery operating area. In the field of computer vision, in instance segmentation, an instance refers to a countable, independent single object within the same semantic class. A fence instance is an instance of the fence.
[0077] For example, detecting and segmenting fence instances in the image to obtain fence segmentation results includes: performing target detection and instance segmentation on fence panels, fence rods, fence bases, and fence meshes in the image, and outputting fence segmentation results. The fence segmentation results include fence instance bounding boxes, fence segmentation masks, contours, edge directions, endpoint candidates, and visible lengths.
[0078] For example, object detection and instance segmentation are performed on fence panels, fence poles, fence bases, or fence meshes in an image, outputting fence instance bounding boxes, segmentation masks, contours, edge directions, endpoint candidates, and visible lengths. The segmentation model can use architectures based on convolutional networks, Transformers, or lightweight real-time networks, and can also perform ROI cropping based on the area near the calibration board to reduce interference from the construction site background.
[0079] The method may further include: obtaining a calibration plate segmentation mask; if the calibration plate segmentation mask is adjacent to or overlaps with the fence segmentation mask, and the calibration plate normal and the fence main direction satisfy a preset angle range, then the calibration plate is determined to belong to the fence segment.
[0080] Specifically, the association between a fence instance and a calibration board can be based on image spatial overlap, distance, relative position, calibration board ID, fence endpoint direction, and 3D geometric consistency. For example, if the calibration board segmentation mask is adjacent to or overlaps with the fence segmentation mask, and the calibration board normal and the fence main direction satisfy a preset angle range, then the calibration board is considered to belong to that fence segment.
[0081] For a fence section that is continuous with a known fence segment but has not been fitted with a calibration plate, the boundary of the fence section is inferred by using the scale and orientation provided by the adjacent calibration plates and the fence segmentation mask.
[0082] By employing a dual constraint of calibration boards and fencing division, the probability of misidentifying other linear objects as fences in complex construction site backgrounds is reduced. It can simultaneously determine whether the fence completely encloses the work area and whether the fence is too close to the construction machinery, covering two key safety risks associated with automated and remote-controlled construction machinery on site.
[0083] S40. Based on the pose of the calibration plate and the fence segmentation result, obtain the fence boundary of the engineering machinery operation area.
[0084] For example, obtaining the fence boundary of the engineering machinery operation area based on the pose of the calibration plate and the fence segmentation result may include: using a known geometric calibration plate on the fence to provide size and pose constraints, and then combining the fence instance segmentation result to provide visibility range and endpoint constraints, fusing the size and pose constraints of the calibration plate with the fence instance segmentation result, reconstructing the fence boundary and determining closure / distance risk.
[0085] For example, obtaining the fence boundary of the engineering machinery operation area based on the pose of the calibration plate and the fence segmentation result includes: S401. Associating fence instances with calibration boards based on image spatial overlap, distance, relative position, calibration board ID, fence endpoint direction, and 3D geometric consistency; S402. Based on the association, each fence instance is converted into a line segment, polyline, short boundary fragment, or grid occupied area in the coordinate system; the pose of the calibration plate is used to provide local planar and scale constraints of the fence, and the fence segmentation mask is used to provide visibility range and endpoint constraints. S403. For a single fence segment, estimate its left and right endpoints based on the center of the calibration plate, the fence installation offset, the fence detection edge, and the standard width of the fence. S404. For multiple adjacent fence segments, construct the fence boundary based on the endpoint distance, directional angle, and image continuity.
[0086] For example, in the fence geometry reconstruction and closure determination process, each fence instance is converted into a line segment, polyline, short boundary fragment, or grid-occupied area in either the machine coordinate system or the ground-based bird's-eye view coordinate system. The calibration plate pose provides local planar and scale constraints for the fence, while the fence segmentation mask provides visibility and endpoint constraints. For a single fence segment, its left and right endpoints can be estimated based on the calibration plate center, fence installation offset, fence detection edge, and standard fence width; for multiple adjacent fence segments, a fence boundary map can be constructed based on endpoint distance, orientation angle, and image continuity.
[0087] During the movement of construction machinery, multiple frames of fence boundary results can be accumulated into a local map. If the construction machinery slowly patrols along the fence for a full circle, the system can obtain a more complete boundary of the work area and use this boundary as a reference for subsequent real-time detection. During operation, the current frame observation is matched with the local fence map. If a section of the fence is found to have disappeared, moved, or a new gap has appeared relative to the map, an anomaly is output.
[0088] For example, a graph structure method can be used for closure determination, including: treating the endpoints of fence segments as nodes and visible fence segments as edges, connecting adjacent endpoints according to spatial proximity; if a fence boundary loop exists, and this loop encloses the mechanical safety envelope or a preset work area, then the fence is determined to be closed. If the distance between any adjacent endpoints is greater than the gap threshold Gmax, or if there is an open chain that cannot form a closed loop, or if the closed loop does not include the engineering machinery / work area, then a gap is determined to exist in the fence, i.e., a gap g exists in the fence. (Reference) Figure 5 As shown, Figure 5 This diagram illustrates a fence with a closed gap according to an embodiment of this application. Construction machinery 4 is located inside a safety envelope 6. The nearest distance between the nearest calibration plate 2 adjacent to the gap g and the safety envelope 6 is d. The safety envelope 6 defines the safe operating range of the construction machinery. The distance between the fence and the construction machinery is determined based on the nearest distance d. An alarm is issued when the following conditions are met in N consecutive frames: the nearest distance d is less than the safety threshold Dsafe, indicating the fence is too close to the construction machinery; or, a gap g exists in the fence, indicating the fence is not closed.
[0089] For example, a bird's-eye view grid method can also be used for closure determination. This method includes: projecting the fence segmentation result and the calibration plate pose onto the ground plane to form a fence occupancy grid; performing connected component analysis, morphological connection, and contour extraction on the fence occupancy grid; and outputting a gap alarm if the fence occupancy area cannot form a closed contour that surrounds the mechanical safety envelope, or if there is an opening with a width exceeding a threshold in a preset direction. The graph structure method and the grid method can be used individually or mutually verified.
[0090] In this example, the calibration board planar PnP results are fused with the fence instance segmentation results. The calibration board provides scale and pose, while the segmentation results provide the fence visibility and endpoints, thereby reconstructing the fence boundary. Fence integrity is determined by the boundary map / occupancy grid closure in a machine coordinate system or bird's-eye view coordinate system, rather than simply relying on the number of fences or detection boxes in the image.
[0091] In some implementations, the method may further include: S50. Perform closure determination and gap measurement on the fence boundary to determine whether it completely surrounds the construction machinery or the pre-set work area.
[0092] Related technologies only detect the presence of fences, without performing closed topology detection. This embodiment's solution performs closure determination and gap measurement on the fence boundary to determine whether it completely surrounds the construction machinery or a pre-defined work area. If multiple fence sections are detected, it further determines whether these sections connect to form a closed boundary surrounding the work area, thus further defining the safe operating range of the construction machinery and improving its operational safety.
[0093] For example, determining the closure of a fence boundary may include: using the endpoints of a fence segment as nodes and the visible fence segment as edges, connecting adjacent endpoints according to spatial proximity; if a fence boundary loop exists and the loop encloses the mechanical safety envelope or a preset work area, then the fence is determined to be closed; if the distance between any adjacent endpoints is greater than a gap threshold, or if there is an open chain that cannot form a closed loop, or if the closed loop does not include the engineering machinery or work area, then the fence is determined to have a gap.
[0094] For example, determining the closure of a fence boundary may include: projecting the fence segmentation result and the calibration plate pose onto the ground plane to form a fence occupancy grid; performing connected component analysis, morphological connection, and contour extraction on the fence occupancy grid to obtain a processing result; if the fence occupancy area cannot form a closed contour that surrounds the mechanical safety envelope in the processing result, or if there is an opening with a width exceeding a threshold in a preset direction, a gap alarm is output.
[0095] For example, the method may further include: S60. Calculate the minimum distance from the safety envelope of the machinery to the boundary of the fence, and determine whether the fence is too close to the construction machinery.
[0096] S70 combines confidence level, continuous frame results, and alarm strategy to output information on fence integrity, fence gaps, fence too close, calibration board failure, or camera obstruction status.
[0097] In one example, the process for determining the distance from construction machinery to the fence includes: the machinery safety envelope E can be determined by the machinery's shape, the outer edge of its tires or tracks, the turning radius of its superstructure, the working range of its bucket or boom, positioning error, braking distance, and safety margin. In two dimensions, E can be represented as an expanded polygon of the construction machinery on the ground plane; in three dimensions, E can be represented as the spatial envelope of the construction machinery and its working devices. The fence boundary S can be represented as a ground line segment, a vertical plane segment, or a fence-occupied volume with a height range. The minimum distance from the machinery safety envelope to the fence boundary is calculated as d = min distance(E,S). When d is less than the safety threshold Dsafe, the fence is determined to be too close to the construction machinery. Dsafe can be configured according to the machinery type, operating mode, vehicle speed, turning radius, braking performance, and on-site safety rules. For example, a smaller threshold can be used for low-speed static operations, while a larger threshold can be used for automatic driving, reversing, or turning operations. To avoid frequent jitter, the system can set entry and exit thresholds to form hysteresis and require confirmation of an alarm after M consecutive frames meet the conditions.
[0098] Table 1 Alarm Event Judgment Criteria and Output Settings
[0099] Referring to Table 1, the alarm mechanism can be divided into three levels: alert, warning, and mandatory interlock. The alert level is used for single-frame low confidence warnings, minor local occlusion, or fence approach warnings; the warning level is used for multiple consecutive frames detecting gaps or excessively close distances; the mandatory interlock level is used for fences that are clearly not closed, severely insufficient distances, critical camera failures, or construction machinery that is about to enter a dangerous state. Alarm outputs may include cab audio and visual alerts, remote control pop-ups, cloud platform recordings, vehicle controller speed limit / stop signals, and timestamped evidence images.
[0100] To reduce false alarms, consecutive frame voting and confidence fusion can be employed. For example, an alarm is only confirmed if the same risk condition is met in at least M of the most recent N frames; if the calibration board pose is stable but the fence segment is lost for a short time, the previous valid fence boundary can be maintained and the confidence level can be allowed to decay over time; if different cameras output conflicting values for the same fence segment, the observation with smaller reprojection error, more correct viewing angle, closer distance, and no obstructions should be prioritized. If reliable observations cannot be recovered continuously, the system does not directly assume safety but instead outputs a perception degradation alarm.
[0101] The alarm logic combines confidence level and continuous frame determination, which can reduce false alarms caused by false detection of a single frame, and at the same time avoid misjudging safety when a failure is detected.
[0102] A specific example of the method involves the following steps: Cameras are installed around the construction machinery, and camera intrinsic parameters, distortion, and extrinsic parameters from the camera to the machinery coordinate system are calibrated. Specialized calibration plates are installed on the physical fence of the work area to be formed, and the specifications, feature point coordinates, orientation codes, and installation offsets from the fence of each calibration plate are recorded or automatically identified. Before the construction machinery enters automatic or remote control operation mode, the vision computing unit acquires multi-camera images and performs image quality checks. Calibration plates are detected in the images, visible feature points are extracted, and the pose of the calibration plates in the camera coordinate system is solved using planar PnP or homography decomposition, then transformed to the machinery coordinate system. Fence instances in the images are detected and segmented, fence edges, endpoints, and visible lengths are extracted, and fence instances are associated with corresponding calibration plates. Based on the calibration plate pose, fence installation constraints, and fence segmentation results, the fence boundary is reconstructed in the machinery coordinate system or bird's-eye view coordinate system. Closure judgment and gap measurement are performed on the fence boundary to determine whether it completely surrounds the construction machinery or the preset work area. The minimum distance from the machinery safety envelope to the fence boundary is calculated to determine whether the fence is too close to the construction machinery. The system combines confidence level, continuous frame results, and alarm strategies to output statuses such as fence integrity, fence gaps, fence too close, calibration board failure, or camera obstruction.
[0103] In a specific example, fisheye cameras are installed in the front, rear, left, and right directions of a remote-controlled loader, and a movable metal fence is set up around the machine. A specially designed calibration plate is installed every one or two fence sections. Before operation begins, the vision computing unit scans the surrounding images, solves the pose of each visible calibration plate, and generates the fence boundary around the machine based on the fence segmentation results. If the boundary loop is not closed or the gap between the endpoints of a fence on one side is greater than 0.5 meters, the direction of the gap is indicated on the remote control; if the closest distance from the machine's safety envelope to the fence boundary is less than 1.0 meter, the machine is restricted from approaching in that direction. In another example, pinhole wide-angle cameras are installed around the cab of an automated excavator, and the fence sections have a standard width. A calibration plate is installed at the center of each fence section. The algorithm calculates the left and right endpoints of the fence section based on the calibration plate pose and the standard width of the fence section, and then uses a fence segmentation mask to correct the endpoint positions. When a fence section collapses or is removed, the distance between adjacent calibration plates and the segmentation result no longer meet the standard width continuity constraint, and the system outputs a fence anomaly. When mud splashing causes partial occlusion of a calibration board, the system can still use the visible center and corner points of the coded block to solve the pose. If the reprojection error is slightly high but still below the threshold, the system reduces the weight of that calibration board and continues to make judgments by combining the fusion results of adjacent cameras or adjacent calibration boards; if the number of feature points is insufficient and cannot be recovered for several consecutive frames, a calibration board failure and perception degradation alarm is output, prompting the site to be cleaned or the fence to be checked.
[0104] This embodiment uses a vehicle-mounted camera as the primary sensing method. A calibration plate with known geometric features is deployed on the fence. The calibration plate provides metric pose constraints, and combined with fence detection / segmentation results, it determines whether the work area is completely surrounded by the physical fence and whether the fence encroaches on the safety distance of the construction machinery. This embodiment enables the construction machinery to obtain the relative position, orientation, integrity, and safety distance status of the fence in its own coordinate system in real time. It outputs alarm or interlock signals when the fence is not closed, has gaps, is too close to the construction machinery, or visual perception fails. This embodiment's work area fence detection scheme based on vehicle-mounted vision and fence calibration plates enables the construction machinery to obtain the relative position, orientation, integrity, and safety distance status of the fence in its own coordinate system in real time. It outputs alarm or interlock signals when the fence is not closed, has gaps, is too close to the construction machinery, or visual perception fails.
[0105] The technical solution of this embodiment does not limit the specific deep learning model, number of cameras, type of calibration board pattern, fence material, or alarm threshold. As long as the fence pose is obtained through known geometric visual markers on the fence, and the fence closure and safe distance for engineering machinery are determined in combination with the fence visual detection results, it can be considered an equivalent implementation of this technical idea. The calibration board can also be replaced with multiple independent visual markers, actively emitting markers, reflective dot matrix, or three-dimensional markers with a known spatial arrangement; the fence boundary reconstruction can also adopt different expression methods such as line segment diagrams, grid diagrams, occupied polygons, implicit curves, or local maps.
[0106] The technical solution of this embodiment can be combined with other safety perception methods, such as ultrasonic waves, millimeter-wave radar, lidar, UWB, RTK, electronic fences, or manual verification, but these methods are not necessary conditions for realizing this solution. The core solution lies in using vehicle-mounted vision and fence calibration boards to form a quantifiable identification of the fence boundary, and thereby determine the fence integrity and distance risk.
[0107] The technical solution of this embodiment utilizes a specially designed calibration plate deployed on a physical fence, enabling the vehicle-mounted vision system to obtain the quantified position and orientation of the fence in complex construction site environments. Combined with fence detection and segmentation results, it determines the fence's closure integrity and the safe distance between the construction machinery and the fence. This solution not only detects the presence of a fence in the image but also uses the calibration plate on the fence to solve for the quantified pose of related fence components, thereby completing closure and distance judgments. This solution incorporates confidence fusion, temporal voting, and degradation alarm mechanisms to address issues such as multi-camera setups, fisheye field of view, occlusion contamination, and temporal fluctuations. This makes the solution more suitable for on-site deployment of construction machinery and for safety monitoring of remote-controlled and automated construction machinery operating areas. It features flexible deployment, relatively controllable cost, and strong interpretability.
[0108] The description of the various embodiments above tends to emphasize the differences between the various embodiments. The similarities or similarities between them can be referred to, and for the sake of brevity, they will not be repeated here.
[0109] refer to Figure 6 As shown, another embodiment of this application provides a device for obtaining the boundary of an engineering machinery operating area, including: The image acquisition module is used to acquire images of the working area of the construction machinery, which are collected by multiple cameras installed on the construction machinery. The calibration board pose acquisition module is used to acquire the pose of the calibration board in the image; The detection and segmentation module is used to detect and segment fence instances in the image to obtain fence segmentation results; the calibration plate is pre-set on the fence of the engineering machinery operation area. The fence boundary acquisition module is used to acquire the fence boundary of the engineering machinery operation area based on the pose of the calibration plate and the fence segmentation result.
[0110] For example, the calibration board pose acquisition module includes: A calibration board region acquisition unit is used to acquire the calibration board region in the image; A feature point extraction unit is used to extract feature points from the calibration plate region; The pose acquisition unit is used to acquire the pose of the calibration plate based on the feature points.
[0111] For example, the feature points include at least one of the following: corner points, center points, coded block vertices, and direction identifier endpoints; the feature point extraction unit includes: The heatmap acquisition sub-unit is used to process the calibration board region with a pre-trained artificial neural network model and output a feature heatmap. A heatmap processing unit is used to process the feature heatmap by fitting sub-pixel corner points or circle centers; The outlier removal unit is used to remove outliers from areas that are obscured or contaminated by mud using RANSAC, consistency constraints, and coding verification.
[0112] For example, the pose acquisition unit includes: The fusion subunit is used to transform the poses from multiple cameras to the mechanical coordinate system and then perform weighted fusion. The weights are determined by the view angle, distance, number of feature points, reprojection error and image quality. The estimation sub-unit is used to estimate the orientation, bending, or tilting state of the fence segment by the pose consistency of multiple calibration plates if there are multiple calibration plates on the same fence segment.
[0113] For example, the pose acquisition unit includes: Minimize sub-units to minimize the sum of robust reprojection errors for each feature point; The output sub-unit is used to output the rotation matrix, translation vector, reprojection mean square error, and pose covariance estimate of the calibration board relative to the camera. The fusion subunit is used to transform the poses from multiple cameras to the mechanical coordinate system and then perform weighted fusion. The weights are determined by the view angle, distance, number of feature points, reprojection error and image quality. The estimation sub-unit is used to estimate the orientation, bending, or tilting state of the fence segment by the pose consistency of multiple calibration plates if there are multiple calibration plates on the same fence segment.
[0114] For example, the detection segmentation module is further specifically used for: The fence panels, fence rods, fence bases and fence mesh in the image are subjected to target detection and instance segmentation. The fence segmentation result is output, which includes fence instance bounding box, fence segmentation mask, contour, edge direction, endpoint candidate and visible length. Obtain the calibration plate segmentation mask; if the calibration plate segmentation mask is adjacent to or overlaps with the fence segmentation mask, and the calibration plate normal and the fence main direction satisfy a preset angle range, then determine that the calibration plate belongs to the fence segment; For a fence section that is continuous with a known fence segment but has not been fitted with a calibration plate, the boundary of the fence section is inferred by using the scale and orientation provided by the adjacent calibration plates and the fence segmentation mask.
[0115] For example, the fence boundary acquisition module is further specifically used for: The association between fence instances and calibration boards is completed based on image spatial overlap, distance, relative position, calibration board ID, fence endpoint direction, and 3D geometric consistency. Based on the aforementioned association, each fence instance is converted into a line segment, polyline, short boundary fragment, or grid occupied area in the coordinate system; the pose of the calibration plate is used to provide local planar and scale constraints for the fence, and the fence segmentation mask is used to provide visibility range and endpoint constraints; For a single fence segment, its left and right endpoints are estimated based on the center of the calibration plate, the fence installation offset, the fence inspection edge, and the standard width of the fence. For multiple adjacent fence segments, the fence boundary is constructed based on the endpoint distance, directional angle, and image continuity.
[0116] Exemplarily, the device may further include: The judgment module is used to determine the closure of the fence boundary and measure any gaps, to determine whether it completely surrounds the construction machinery or the preset work area.
[0117] For example, the determination module includes a determination unit, which is used to determine the closure of the fence boundary; the determination unit is further specifically used to: take the endpoints of the fence segment as nodes, take the visible fence segment as edges, and connect adjacent endpoints according to spatial proximity; if there is a fence boundary loop, and the loop surrounds the mechanical safety envelope or the preset work area, then the fence is determined to be closed; if the distance between any adjacent endpoints is greater than the gap threshold, or there is an open chain that cannot form a closed loop, or the closed loop does not include the engineering machinery or the work area, then the fence is determined to have a gap.
[0118] For example, the determination module includes a determination unit, which is used to determine the closure of the fence boundary; the determination unit is further specifically used to: project the fence segmentation result and the calibration plate pose onto the ground plane to form a fence occupancy grid; perform connected component analysis, morphological connection and contour extraction on the fence occupancy grid to obtain the processing result; if the fence occupancy area cannot form a closed contour that surrounds the mechanical safety envelope in the processing result, or if there is an opening with a width exceeding a threshold in a preset direction, then a gap alarm is output.
[0119] Exemplarily, the device may further include: The calculation and judgment module is used to calculate the minimum distance from the mechanical safety envelope to the fence boundary and to determine whether the fence is too close to the construction machinery. The information output module is used to combine confidence level, continuous frame results and alarm strategy to output information on fence integrity, fence gaps, fence too close, calibration board failure or camera obstruction status.
[0120] The engineering machinery operation area boundary acquisition device of this application embodiment can accurately identify the fence boundary in complex sites, and the obtained engineering machinery operation area fence boundary has high accuracy, thereby improving the safety of engineering machinery operation.
[0121] The description of the various embodiments above tends to emphasize the differences between the various embodiments. The similarities or similarities between them can be referred to, and for the sake of brevity, they will not be repeated here.
[0122] Another embodiment of this application provides an electronic device including a memory, a processor, and a computer program stored in the memory and executable on the processor, the processor executing the computer program to implement the method of any of the above embodiments.
[0123] refer to Figure 7As shown, the electronic device 10 may include: a processor 100, a memory 101, a bus 102 and a communication interface 103. The processor 100, the communication interface 103 and the memory 101 are connected through the bus 102. The memory 101 stores a computer program that can run on the processor 100. When the processor 100 runs the computer program, it executes the method provided in any of the foregoing embodiments of this application.
[0124] The memory 101 may include high-speed random access memory (RAM), and may also include non-volatile memory, such as at least one disk storage device. Communication between the device network element and at least one other network element is achieved through at least one communication interface 103 (which may be wired or wireless), such as the Internet, wide area network, local area network, metropolitan area network, etc.
[0125] Bus 102 can be an ISA bus, PCI bus, or EISA bus, etc. The bus can be divided into address bus, data bus, control bus, etc. Memory 101 is used to store programs. After receiving an execution instruction, processor 100 executes the program. The methods disclosed in any of the foregoing embodiments of this application can be applied to processor 100, or implemented by processor 100.
[0126] Processor 100 may be an integrated circuit chip with signal processing capabilities. In implementation, each step of the above method can be completed by the integrated logic circuitry in the hardware of processor 100 or by instructions in software form. The processor 100 may be a general-purpose processor, including a Central Processing Unit (CPU), a Network Processor (NP), etc.; it may also be a Digital Signal Processor (DSP), an Application-Specific Integrated Circuit (ASIC), an Off-the-shelf Programmable Gate Array (FPGA), or other programmable logic devices, discrete gate or transistor logic devices, or discrete hardware components. It can implement or execute the methods, steps, and logic block diagrams disclosed in the embodiments of this application. The general-purpose processor may be a microprocessor or any conventional processor. The steps of the methods disclosed in the embodiments of this application can be directly embodied in the execution of a hardware decoding processor, or executed by a combination of hardware and software modules in the decoding processor. The software modules may reside in random access memory, flash memory, read-only memory, programmable read-only memory, electrically erasable programmable memory, registers, or other mature storage media in the art. The storage medium is located in memory 101. The processor 100 reads the information in memory 101 and, in conjunction with its hardware, completes the steps of the above method.
[0127] The electronic devices and methods provided in the embodiments of this application are based on the same inventive concept and have the same beneficial effects as the methods they employ, operate, or implement.
[0128] Another embodiment of this application provides a boundary acquisition system for construction machinery operation area, including a multi-camera group, multiple calibration plates, and electronic equipment according to any embodiment of this application; the multi-camera group includes multiple cameras, which are mounted on the construction machinery; the multiple calibration plates are set on the fence of the construction machinery operation area.
[0129] The engineering machinery operation area boundary acquisition system provided in this application embodiment is based on the same inventive concept as the method provided in this application embodiment, and has the same beneficial effects as the method it adopts, operates or implements.
[0130] Another embodiment of this application provides a computer-readable storage medium having a computer program stored thereon, which is executed by a processor to implement the methods of any of the above embodiments. Reference Figure 8 As shown, the computer-readable storage medium is an optical disc 20, on which a computer program (i.e., a program product) is stored. When the computer program is run by a processor, it executes the methods provided in any of the aforementioned embodiments.
[0131] It should be noted that examples of computer-readable storage media may also include, but are not limited to, phase-change memory (PRAM), static random access memory (SRAM), dynamic random access memory (DRAM), other types of random access memory (RAM), read-only memory (ROM), electrically erasable programmable read-only memory (EEPROM), flash memory or other optical and magnetic storage media, which will not be elaborated here.
[0132] The computer-readable storage medium provided in the above embodiments of this application and the method provided in the embodiments of this application are based on the same inventive concept and have the same beneficial effects as the methods adopted, run or implemented by the applications stored therein.
[0133] It should be noted that: The term "module" is not intended to be limited to a specific physical form. Depending on the application, a module can be implemented as hardware, firmware, software, and / or a combination thereof. Furthermore, different modules may share common components or even be implemented using the same components. Clear boundaries may or may not exist between different modules.
[0134] The algorithms and displays provided herein are not inherently related to any particular computer, virtual device, or other equipment. Various general-purpose devices can also be used with the examples based on this. The required structure for constructing such devices is obvious from the above description. Furthermore, this application is not directed to any particular programming language. It should be understood that the content of this application described herein can be implemented using various programming languages, and the above description of specific languages is for the purpose of disclosing the best mode of implementation of this application.
[0135] It should be understood that although the steps in the flowcharts of the accompanying figures are shown sequentially as indicated by the arrows, these steps are not necessarily executed in the order indicated by the arrows. Unless explicitly stated herein, there is no strict order restriction on the execution of these steps, and they can be executed in other orders. Moreover, at least some steps in the flowcharts of the accompanying figures may include multiple sub-steps or multiple stages. These sub-steps or stages are not necessarily completed at the same time, but can be executed at different times, and their execution order is not necessarily sequential, but can be performed alternately or in turn with other steps or at least some of the sub-steps or stages of other steps.
[0136] The above embodiments merely illustrate the implementation methods of this application, and while the descriptions are relatively specific and detailed, they should not be construed as limiting the scope of this application. It should be noted that those skilled in the art can make various modifications and improvements without departing from the concept of this application, and these all fall within the protection scope of this application. Therefore, the protection scope of this application should be determined by the appended claims.
Claims
1. A method for obtaining the boundary of an engineering machinery operating area, characterized in that, include: Acquire images of the construction machinery's operating area captured by multiple cameras mounted on the construction machinery; Obtain the pose of the calibration plate in the image; Detect and segment fence instances in the image to obtain fence segmentation results; The calibration plate is pre-installed on the fence of the engineering machinery operating area; Based on the pose of the calibration plate and the fence segmentation result, the fence boundary of the engineering machinery operation area is obtained.
2. The method according to claim 1, characterized in that, The step of obtaining the pose of the calibration plate in the image includes: Obtain the calibration board region in the image, and extract feature points from the calibration board region; The pose of the calibration plate is obtained based on the feature points.
3. The method according to claim 2, characterized in that, The feature points include at least one of the following: corner points, center points, coded block vertices, and direction identifier endpoints; the extraction of feature points from the calibration board region includes: The calibration plate region is processed using a pre-trained artificial neural network model to output a feature heatmap; The feature heatmap is processed by fitting sub-pixel corner points or circle centers; For areas obscured or contaminated by mud, outliers are removed using RANSAC, consistency constraints, and coding verification.
4. The method according to claim 2, characterized in that, The step of obtaining the pose of the calibration plate based on the feature points includes: After transforming the poses from multiple cameras to the engineering machinery coordinate system, a weighted fusion is performed. The weights are determined by the angle of view, distance, number of feature points, reprojection error, and image quality. If there are multiple calibration plates on the same fence segment, the orientation, bending or tilting state of the fence segment can be estimated by the pose consistency of the multiple calibration plates.
5. The method according to claim 4, characterized in that, Before the weighted fusion of the poses from multiple cameras to the engineering machinery coordinate system, the step of obtaining the pose of the calibration plate based on the feature points further includes: Minimize the sum of robust reprojection errors for each feature point; Output the rotation matrix, translation vector, reprojection mean square error, and pose covariance estimate of the calibration board relative to the camera.
6. The method according to claim 1, characterized in that, The process of detecting and segmenting fence instances in the image to obtain fence segmentation results includes: The fence panels, fence rods, fence bases and fence mesh in the image are subjected to target detection and instance segmentation. The fence segmentation result is output, which includes fence instance bounding box, fence segmentation mask, contour, edge direction, endpoint candidate and visible length. The method further includes: Obtain the calibration plate segmentation mask; If the calibration plate segmentation mask is adjacent to or overlaps with the fence segmentation mask, and the calibration plate normal and the fence main direction satisfy a preset angle range, then the calibration plate is determined to belong to the fence segment. For a fence section that is continuous with a known fence segment but has not been fitted with a calibration plate, the boundary of the fence section is inferred by using the scale and orientation provided by the adjacent calibration plates and the fence segmentation mask.
7. The method according to claim 1, characterized in that, The step of obtaining the fence boundary of the engineering machinery operation area based on the pose of the calibration plate and the fence segmentation result includes: The known geometric calibration plate on the fence provides size and pose constraints, and the fence instance segmentation results provide visibility range and endpoint constraints. The size and pose constraints of the calibration plate are fused with the fence instance segmentation results to reconstruct the fence boundary and determine the closure / distance risk.
8. The method according to claim 1, characterized in that, The step of obtaining the fence boundary of the engineering machinery operation area based on the pose of the calibration plate and the fence segmentation result includes: The association between fence instances and calibration boards is completed based on image spatial overlap, distance, relative position, calibration board ID, fence endpoint direction, and 3D geometric consistency. Based on the aforementioned association, each fence instance is converted into a line segment, polyline, short boundary fragment, or grid occupied area in the coordinate system; the pose of the calibration plate is used to provide local planar and scale constraints for the fence, and the fence segmentation mask is used to provide visibility range and endpoint constraints; For a single fence segment, its left and right endpoints are estimated based on the center of the calibration plate, the fence installation offset, the fence inspection edge, and the standard width of the fence. For multiple adjacent fence segments, the fence boundary is constructed based on the endpoint distance, directional angle, and image continuity.
9. The method according to claim 1, characterized in that, The method further includes: The fence boundary is closed and gaps are measured to determine whether it completely surrounds the construction machinery or the pre-set work area.
10. The method according to claim 9, characterized in that, The determination of fence boundary closure includes: Use the endpoints of the fence segments as nodes and the visible fence segments as edges, and connect adjacent endpoints according to spatial proximity. If a fence boundary ring exists and that ring surrounds the mechanical safety envelope or the pre-defined work area, then the fence is considered closed. If the distance between any adjacent endpoints is greater than the gap threshold, or if there is an open chain that cannot form a closed loop, or if the closed loop does not include the engineering machinery or work area, then the fence is determined to have a gap.
11. The method according to claim 9, characterized in that, The determination of fence boundary closure includes: The fence segmentation results and calibration plate pose are projected onto the ground plane to form the fence occupancy grid. The fence-occupied grid is subjected to connected component analysis, morphological connection, and contour extraction to obtain the processing result; If, in the processing result, the area occupied by the fence cannot form a closed outline that surrounds the mechanical safety envelope, or if there is an opening with a width exceeding a threshold in a preset direction, a gap alarm will be output.
12. The method according to any one of claims 1-11, characterized in that, The method further includes: Calculate the minimum distance from the mechanical safety envelope to the fence boundary to determine whether the fence is too close to the construction machinery; Combining confidence level, continuous frame results, and alarm strategy, the system outputs information on fence integrity, fence gaps, fence too close, calibration board failure, or camera obstruction.
13. The method according to any one of claims 1-11, characterized in that, The calibration board has known dimensions, known feature point coordinates, orientation codes, and optional IDs, which are used to provide identifiable measurement and orientation references.
14. A device for obtaining the boundary of an engineering machinery operating area, characterized in that, include: The image acquisition module is used to acquire images of the working area of the construction machinery, which are collected by multiple cameras installed on the construction machinery. The calibration board pose acquisition module is used to acquire the pose of the calibration board in the image; The detection and segmentation module is used to detect and segment fence instances in the image to obtain fence segmentation results. The calibration plate is pre-installed on the fence of the engineering machinery operating area; The fence boundary acquisition module is used to acquire the fence boundary of the engineering machinery operation area based on the pose of the calibration plate and the fence segmentation result.
15. An electronic device, characterized in that, The method includes a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the processor executes the computer program to implement the method for obtaining the boundary of the engineering machinery operation area as described in any one of claims 1-13.
16. A system for obtaining the boundary of an engineering machinery operating area, characterized in that, It includes a multi-camera group, multiple calibration plates, and the electronic equipment as described in claim 15; the multi-camera group includes multiple cameras mounted on the construction machinery; the multiple calibration plates are set on the fence of the construction machinery's operating area.
17. A computer-readable storage medium having a computer program stored thereon, characterized in that, The computer program is executed by a processor to implement the method for obtaining the boundary of the engineering machinery operation area as described in any one of claims 1-13.
