An external composite target and anti-occlusion detection and calibration system for micro robots

By using a compact Tag-Chess-Ring composite calibration board with both positive and negative phases and a three-segment detection method in a miniature visual servo system, the problem of high-precision camera parameter and pose estimation under small field of view and occlusion conditions was solved, achieving high-precision calibration and stable feedback in complex environments.

CN123160679APending Publication Date: 2026-11-24ZHEJIANG UNIV
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202611336596.1
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2026-08-31
Publication Date
2026-11-24

AI Technical Summary

Technical Problem

Existing micro visual servo systems struggle to achieve high-precision camera parameter and pose estimation under conditions of small field of view, partial occlusion, and clutter interference. Existing calibration boards lack local identity encoding, sub-pixel features, and continuous edge geometric constraints. Detection methods lack multi-level constraints, and calibration methods rely on reliable detection results while detection quality depends on existing parameters, leading to false detections and parameter drift.

Method used

A compact Tag-Chess-Ring composite calibration board with both positive and negative phases is adopted. Combined with a three-stage hierarchical detection method, the search range is constrained by the local identity information through the coding identification of local calibration units, the integration of checkerboard corner points and circular ring edges, and the detection quality and parameter stability are improved through a detection-screening-joint optimization iterative process.

Benefits of technology

It effectively filters reliable observations in complex micro scenes, improves the availability, detection reliability and calibration robustness of small field of view, is suitable for high-precision camera parameter and pose estimation in micro visual servo systems, is applicable to real complex workbench environments, and provides stable camera parameter and pose results for attitude perception and closed-loop visual feedback.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN123160679A_ABST
    Figure CN123160679A_ABST
Patent Text Reader

Abstract

This invention discloses an external composite target for microrobots and an anti-occlusion detection and calibration system. The target consists of multiple local calibration units arranged in a checkerboard array, each unit co-located and integrating an coded identification area, a checkerboard corner area, and a circular geometric area. The method includes: detecting and merging coded identifiers in grayscale and inverted images respectively; estimating pixel scale, predicting the diameter of the circular ring, and generating a local region of interest; sub-pixel refinement and bias gating after checkerboard corner projection prediction; fitting multiple candidate ellipses within the local region of interest, selecting the best by gating score, and refining edge points; forming an effective observation set by consistency screening; constructing an objective function using point feature reprojection residuals and circular ring edge residuals; jointly optimizing camera parameters, distortion parameters, reference pose, system spatial mapping, and frame-by-frame corrections, and iterating until convergence. This invention can still achieve high-precision calibration and pose perception under small field of view, local occlusion, and clutter interference.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This invention belongs to the field of microrobots, specifically relating to an external composite target for microrobots and an anti-occlusion detection and calibration system. Background Technology

[0002] Miniature visual servo systems are commonly used in microrobots, micromanipulation platforms, precision assembly, fiber optic / optoelectronic device alignment, circuit board or chip assembly, medical robot bench experiments, and other small-scale, high-precision operation scenarios. In these systems, the camera is not only used for image observation but also needs to perform functions such as camera parameter calibration, local feature detection, spatial pose estimation, target localization, environmental perception, and closed-loop feedback. Because the camera's field of view is small and the structure is dense in miniature environments, and the working area often contains fixtures, cables, optical fibers, probes, workpiece edges, reflections, dust, and other non-calibrated objects, the vision system must simultaneously meet requirements such as recognition within a small field of view, recovery from local occlusion, filtering under clutter interference, and high-precision feedback.

[0003] Existing visual calibration boards typically include ordinary checkerboard patterns, coded marker boards, coded checkerboard-type calibration boards, and dot or ring-type calibration boards. Ordinary checkerboard patterns offer high corner point localization accuracy, but their patterns are repetitive and lack local identification coding, usually requiring a relatively complete checkerboard area to recover corner point numbers and global correspondences. When the camera's field of view is small, the calibration board is only partially visible, or the calibration board is obstructed by fixtures, cables, dust, reflections, and debris, checkerboard patterns are prone to corner point loss, numbering failures, and unstable global correspondences. This problem arises because ordinary checkerboard patterns primarily rely on continuous, regular corner point topology, rather than on the identification information carried by each local region itself.

[0004] Encoded marker boards can provide local IDs, coarse corner points, center positions, and scale information, making them suitable for establishing the correspondence between image features and the calibration board coordinate system under locally visible conditions. However, the main advantage of coded markers lies in recognition and coarse localization. If corner points are relied upon alone as the primary observations for high-precision calibration and pose estimation, they are easily affected by edge blurring, pixel noise, perspective distortion, printing errors, and local contamination, making it difficult to fully meet the micrometer-level feedback requirements in miniature visual servoing. Encoded checkerboard-type calibration boards combine coded markers with checkerboard corner points, thus balancing local identity recognition and corner point localization accuracy to some extent. Compared to ordinary checkerboards, this type of scheme has better local visibility and can also utilize checkerboard corner points to improve calibration accuracy. However, the main geometric observations of this type of scheme are still concentrated on discrete corner points. For small field-of-view, partially occluded, and cluttered scenes in miniature visual servoing, relying solely on discrete point features may still be affected by single-point detection errors, false corner points, local reflections, and occlusion contamination. When images contain fixture edges, cable edges, fiber optic end faces, pad boundaries, or other high-contrast textures, ordinary corner detection is prone to false detections, affecting subsequent camera parameter estimation and pose calculation. Furthermore, such sparse image features can easily introduce feature sparsity problems due to insufficient image features in occluded environments, leading to multiple camera solutions, singular poses, or large pose calculation errors. This is because discrete corner points lack continuous geometric redundancy, and a single erroneous corner point may directly enter the reprojection error optimization process.

[0005] Dot or ring-type calibration boards can provide continuous edge information. Compared to a single discrete corner point, a ring edge can be constrained by multiple edge pixels, resulting in higher geometric information content and local stability. However, when using a dot or ring array alone, the local identity encoding capability is weak, and candidate matching difficulties can easily arise under conditions of small field of view or partial occlusion. Furthermore, for ring features to be used for high-precision calibration, they need to be matched with the camera projection model, distortion model, and edge observation quality. If ring observations are used directly when camera parameters are unreliable, edges are occluded or contaminated, or cluttered edges are mixed into the candidates, distortion errors, edge extraction errors, and pose errors may be incorporated into the same optimization process, affecting calibration stability. The reason for this problem is that although ring features have high information content, their accuracy depends on a correct camera model, reliable candidate selection, and reasonable residual modeling.

[0006] From the perspective of calibration board design, existing calibration boards often focus on solving only a single problem: ordinary checkerboards emphasize corner accuracy, coded marker boards emphasize local recognition, coded checkerboard-type calibration boards emphasize the combination of "coding + corner points," and ring or dot calibration boards emphasize continuous edges. While these solutions are applicable in conventional scenarios, they lack a composite calibration board design that compactly integrates local identity encoding, sub-pixel features, and continuous edge geometric constraints into a single local unit, addressing the small field of view, local occlusion, clutter interference, and micrometer-level feedback requirements in micro-visual servoing. Consequently, when the calibration board is only partially visible or partially occluded, existing solutions often struggle to simultaneously guarantee "knowing which local area it is," "obtaining high-precision point observations within that area," and "further verifying geometric consistency using continuous edges."

[0007] From the perspective of detection methods, existing detection processes mostly employ single-feature detection or full-image feature search. Checkerboard detection typically searches for regular arrays of corner points in an image; coded marker detection mainly outputs IDs, corner points, and coarse pose; ring detection usually requires searching for edges and contours over a large image area. These methods achieve good results in clean, complete, and unobstructed calibration images, but in actual micro-worktables or micro-assembly environments, there are often workpieces, fixtures, wires, optical fibers, probes, needles, device stages, pads, reflective spots, droplets, dust, or other non-calibration structures near the calibration plate. These foreign objects can create false corner points, false edges, and local occlusions. If the detection algorithm directly searches for corner points or rings in the entire image, it is easy to mistake the edges of foreign objects or background textures for valid calibration features, thereby contaminating camera parameters, extrinsic parameters, and pose estimation results.

[0008] The aforementioned detection problems stem from the fact that existing detection processes typically lack multi-level constraints guided by local identity information. For miniature visual servoing systems, detection should not simply search for a single feature across the entire image. Instead, it should first determine the identity and scale of local units, then define the local search area, and subsequently perform fine-tuning of corner points and edge refinement within that area. Effective observations should be selected based on information such as ID, ROI, size, shape, center distance, and geometric residuals. Otherwise, in images with significant clutter and occlusion, a single detector struggles to distinguish between genuinely labeled features and false features formed by foreign objects.

[0009] From the perspective of calibration methods, existing camera calibration typically uses point or circular features acquired in a single instance as input, solving for camera intrinsic parameters and distortion parameters by minimizing reprojection errors. This method is relatively mature under conditions of good image quality, a complete calibration board, and reliable feature detection, but it still has shortcomings for miniature visual servo systems. First, high-precision calibration relies on reliable detection results, which in turn rely on existing camera parameters, coarse pose estimation, and local geometric priors; the two are not entirely independent. Second, if the initial camera parameters are coarse, directly using all targets obtained from a single detection for calibration can easily include occluded corner points, clutter edges, erroneous circular candidate rings, or low-quality local units in the optimization. Third, once contamination observations enter the calibration system, camera parameters, distortion parameters, and pose estimation will be affected, further reducing the reliability of subsequent detection and localization. Problems may arise in dynamic calibration when dealing with camera parameter drift, placing extremely high demands on subsequent continuous dynamic calibration methods.

[0010] Therefore, in miniature visual servoing, a single detection or calibration is insufficient to meet high-precision requirements. A more reasonable calibration method should be based on the detection results, while simultaneously improving detection quality through updated calibration parameters. Specifically, the system can first run detection using coarse camera parameters and a coarse pose model to obtain visible coded markers, checkerboard corners, and circular edge observations; then, invalid targets are eliminated based on occlusion, clutter, residuals, and geometric consistency; subsequently, the remaining valid targets are fed into the joint optimization of camera parameters, distortion parameters, and pose; after obtaining new camera parameters, these are used as coarse parameters for the next round of detection and screening. After multiple rounds of detection-screening-joint optimization iterations, detection quality and camera parameters improve each other until camera pose, external trajectory errors, or parameter changes tend to stabilize.

[0011] In summary, current technologies still lack a complete visual benchmark and calibration scheme for miniature visual servoing, addressing challenges such as small field of view, local occlusion, clutter interference, and high-precision feedback. This scheme should simultaneously provide local identity encoding, sub-pixel features, and continuous edge geometric constraints in the calibration board structure; in the detection method, it should utilize local ID, scale, and ROI to limit the search range, avoiding false feature interference caused by full-image blind detection; and in the calibration method, it should construct an effective observation set based on the detection results and gradually obtain stable, high-precision camera parameters through an iterative process of detection-filtering-joint optimization. Summary of the Invention

[0012] The purpose of this invention is to address the problems existing in the prior art and provide an external composite target and an anti-occlusion detection and calibration system for microrobots. Specifically, this invention proposes a compact Tag-Chess-Ring composite calibration board with both positive and negative phases, and a corresponding three-segment hierarchical micron-level detection method and a high-precision camera calibration system. This composite calibration board integrates AprilTag encoding, checkerboard corner points, and ring edge co-location into a single compact local unit, enabling each locally visible region to simultaneously possess identity encoding, scale estimation, ROI constraints, sub-pixel features, and continuous edge geometric constraints. During the calibration process, the system first runs a three-segment detection with coarse parameters to eliminate occluded and contaminated targets. Then, the remaining valid observations are fed into the joint optimization of camera parameters and pose. The optimized camera parameters continue to serve as coarse parameters for the next round of detection, iterating repeatedly until pose evaluation or parameter changes stabilize. In this way, the system can filter reliable observations from partially incomplete and disturbed images in complex micro-scenes, providing stable feedback for high-precision camera calibration, dynamic platform attitude perception, environmental perception, and closed-loop visual servoing.

[0013] The specific technical solution adopted in this invention is as follows:

[0014] In a first aspect, the present invention provides an external composite target for a microrobot. The external composite target includes multiple local calibration units arranged in a checkerboard array on a calibration board plane. Each local calibration unit co-located and integrated an coded identification area, a checkerboard corner area, and a circular geometric area. The coded identification area is used to provide the unit number, center, corner point, and scale of the local calibration unit. The checkerboard corner area is used to provide sub-pixel features, and the circular geometric area is used to provide continuous edge geometric constraints.

[0015] As a preferred embodiment of the first aspect above, the local calibration unit is a square unit, with the coding identification area, the circular geometric area, and the checkerboard corner point area arranged concentrically from the center outwards; the coding identification area is a square coding mark set at the center of the local calibration unit; the circular geometric area is a ring surrounding the coding identification area; the checkerboard corner point area is composed of the four checkerboard corner points of the square unit; preferably, the external composite target adopts a mixed positive and negative phase layout, with the black and white polarities of adjacent local calibration units being opposite.

[0016] Secondly, the present invention provides an anti-occlusion detection and calibration method for an external composite target for a microrobot using any of the solutions in the first aspect described above, wherein the method uses preset initial camera parameters and initial distortion parameters as initial values, including:

[0017] S1. Acquire multiple frames of images covering at least one local calibration unit in the external composite target. Perform coding identification detection on the grayscale image and the inverted image of each frame image respectively. Merge the detection results and remove duplicates according to the unit number to obtain the unit number, center of the coding identification, and corner point of the coding identification of each local calibration unit.

[0018] S2. First, estimate the pixel scale based on the corner coordinates of the coded identifier. Based on the estimated pixel scale and the actual size ratio between the annular geometric area and the coded identifier area, predict the expected pixel diameter of the annular ring. Then, generate a local region of interest covering the predicted annular ring with the center of the coded identifier as the center.

[0019] S3. Based on the current coarse pose and camera parameters, project the checkerboard corner points in the calibrated target coordinate system onto the image to obtain the predicted position. Perform sub-pixel thinning in a local window near the predicted position, and remove or reduce the weight of corner points whose deviation from the predicted position exceeds the threshold to obtain point feature observations.

[0020] S4. Extract multiple edge contours within the local region of interest and fit them one by one to obtain multiple candidate ellipses. Perform size and shape gating on each candidate ellipse according to the expected pixel diameter. Score each candidate ellipse according to the distance and size deviation between the center of the candidate ellipse and the center of the coded identifier. Select the target ellipse with the highest score and refine the edge points to obtain the observation of the circular edge.

[0021] S5. Based on the consistency of cell number, region of interest, size, shape, reprojection residual, and annular edge residual, the observations of each frame are screened, and observations that are occluded or contaminated are removed or downweighted to form an effective set of observations.

[0022] S6. Based on the effective observation set, construct an objective function using the reprojection residual of the point feature observation and the ring edge residual of the ring edge observation, and jointly optimize the camera parameters, distortion parameters, reference pose, system spatial mapping parameters and frame-by-frame pose correction amount.

[0023] S7. Use the parameters obtained from the joint optimization as new coarse parameters, and repeat steps S1 to S6 until the convergence condition is met, and output the final camera parameters and pose results.

[0024] As a preferred embodiment of the second aspect above, in step S2, the pixel scale is the average pixel side length of the four sides of the quadrilateral formed by connecting the four corner points of the coded identifier area, and when the average pixel side length of a local calibration unit is less than a preset minimum scale, the corresponding local calibration unit does not participate in subsequent detection; the expected pixel diameter is the product of the average pixel side length and the ratio of the actual diameter of the annular geometric area to the actual side length of the coded identifier area; the local region of interest is a square area centered on the center of the coded identifier, and the half-side length of the square area is the larger of a preset lower limit value and the expected pixel diameter scaled according to a preset ratio.

[0025] As a preferred embodiment of the second aspect above, in step S3, the projection method of the checkerboard corner points is as follows: the checkerboard corner points in the calibration target coordinate system are projected onto the image according to the current coarse pose, camera parameters and distortion parameters to obtain the predicted position; the sub-pixel thinning is the least squares thinning based on image gradient constraints within a local window near the predicted position.

[0026] As a preferred embodiment of the second aspect above, in step S4, the method for extracting the edge contour and fitting an ellipse is as follows: smoothing and edge detection are performed sequentially on the image block of the local region of interest to extract the contour, and an ellipse is fitted to the contour whose number of contour points meets the preset requirements; the size and shape gating includes: the length of the major axis and the length of the minor axis of the candidate ellipse are respectively within a preset ratio range based on the expected pixel diameter, and the ratio of the major axis to the minor axis is less than a preset axis ratio threshold; the scoring is obtained by calculating the distance between the center of the candidate ellipse and the center of the coded identifier, and the absolute value of the deviation of the major axis of the candidate ellipse relative to the expected pixel diameter, taking the negative value of both and then weighted summing them.

[0027] As a preferred embodiment of the second aspect above, in step S5, a confidence level is defined for each observation. The confidence level is determined by factors corresponding to the reliability of number decoding, whether the observation is located within the predicted region of interest, size consistency, shape and edge continuity, and residual rationality. Observations with a confidence level greater than a confidence threshold and a residual corresponding to the observation type less than a residual threshold are included in the effective observation set. The residual corresponding to the observation type being a ring edge observation is the ring edge residual, and the residual corresponding to the observation type being a point feature observation is the reprojection residual. The ring edge residual is the distance residual from the ring edge observation point to the predicted conic section.

[0028] As a preferred embodiment of the second aspect above, in step S6, the objective function is obtained by weighted summation of the point feature error term, the circular edge error term, and the regularization term of the frame-by-frame pose correction: based on the effective observation set, nonlinear least squares solution is used to jointly optimize the camera parameters, distortion parameters, reference pose, system spatial mapping parameters, and frame-by-frame pose correction; wherein the point feature error term uses the reprojection residual of the point feature observation as the error quantity, and the reprojection residual of the point feature observation is the difference between the pixel position of the point feature observation and its predicted position obtained by reprojection according to the current camera parameters and pose; the circular edge error term uses the circular edge residual of the circular edge observation as the error quantity, which is the Sampson distance from the circular edge observation point to the predicted conic section; the pose of each frame is determined by the reference pose, system spatial mapping parameters, and frame-by-frame pose correction.

[0029] As a preferred embodiment of the second aspect above, in step S7, the convergence condition includes at least one of the following: the change in camera parameters is less than a first threshold, the change in distortion parameters is less than a second threshold, the change in pose is less than a third threshold, the change in residual is less than a fourth threshold, the change in external trajectory evaluation error is less than a fifth threshold, and the condition is continuously satisfied for a preset number of rounds.

[0030] Thirdly, the present invention provides an anti-occlusion detection and calibration system for an external composite target for a microrobot, comprising functional modules constructed by a computer program, the functional modules being configured to implement the anti-occlusion detection and calibration method described in any of the second aspects above.

[0031] Compared with the prior art, the present invention has the following advantages:

[0032] First, this invention improves the usability of small field of view through Tag–Chess–Ring composite local units. Each local unit simultaneously possesses ID, sub-pixel corner points, and circular edge constraints. When the calibration target is only locally visible, the system can still recover the global correspondence through local units and obtain sufficient point and edge features.

[0033] Second, this invention improves detection reliability under complex lighting and local contamination conditions through a forward and reverse phase layout. The system processes forward and reverse images simultaneously and performs ID deduplication, thereby increasing the probability of detecting local markers under conditions of reflection, shadow, black-and-white polarity changes, and local contamination.

[0034] Third, this invention reduces false detections of clutter by using tag-guided ROIs. Chess and Ring detection do not blindly search the entire map, but are performed in local areas determined by tag identity, center, and scale, reducing the risk of false detections caused by fixtures, cables, optical fibers, pads, dust, and reflective edges from both structural and algorithmic perspectives.

[0035] Fourth, this invention supplements discrete corner point observations with continuous ring edge constraints. The ring edge provides multi-pixel continuous geometric information, which, together with the checkerboard corner points, forms richer calibration constraints, improving the stability of camera parameters and pose estimation.

[0036] Fifth, this invention improves calibration robustness through anti-interference observation screening. The system performs ID, ROI, size, shape, center distance, and residual consistency checks on observations, and removes or downweights occluded and contaminated targets to avoid a small number of erroneous observations from polluting global camera parameters.

[0037] Sixth, this invention improves camera parameter stability through alternating detection and calibration iterations. The system first uses coarse parameters to detect and screen valid targets, then uses these valid targets to jointly optimize camera parameters; the optimization results continue to serve as coarse parameters for the next round of detection. Through multiple iterations, detection quality and camera parameters improve each other, reducing the impact of a single erroneous detection on the final calibration result.

[0038] Seventh, this invention is suitable for real and complex workbench environments in miniature vision servoing. It is applicable to scenarios where there are workpieces, cables, optical fibers, probes, fixtures, pads, dust, droplets, and reflections near the calibration board, making it more suitable for practical engineering applications than ordinary calibration methods that are only applicable to clean and complete calibration images.

[0039] Eighth, the camera parameters and pose results output by this invention can be directly used for attitude perception, environment perception, and closed-loop visual feedback. The calibration results are not only used for offline camera calibration, but also for moving platform positioning, external reference coordinate updating, trajectory correction, workpiece alignment, and visual servo error calculation. Attached Figure Description

[0040] Figure 1 A planar schematic diagram of an external composite target used in microrobots;

[0041] Figure 2 This is a schematic diagram illustrating the steps of the anti-occlusion detection and calibration method;

[0042] Figure 3 This is a schematic diagram of the structure of a computer electronic device;

[0043] Figure 4 A schematic diagram of the detection results when using an external composite calibration target;

[0044] Figure 5 The detection trajectories are for different sizes and shapes under the conditions of empty plate / vertical operation;

[0045] Figure 6 The detection trajectories are for different sizes and shapes under the condition of an empty plate / horizontal working condition;

[0046] Figure 7For detection trajectories of different scales and shapes under occlusion / vertical conditions;

[0047] Figure 8 For detection trajectories of different sizes and shapes under occlusion / horizontal conditions. Detailed Implementation

[0048] To make the above-mentioned objects, features, and advantages of the present invention more apparent and understandable, specific embodiments of the present invention will be described in detail below with reference to the accompanying drawings. Many specific details are set forth in the following description to provide a thorough understanding of the present invention. However, the present invention can be practiced in many other ways different from those described herein, and those skilled in the art can make similar modifications without departing from the spirit of the present invention. Therefore, the present invention is not limited to the specific embodiments disclosed below. Technical features in various embodiments of the present invention can be combined accordingly without mutual conflict.

[0049] In the description of this invention, it should be understood that the terms "first" and "second" are used only for descriptive purposes and should not be construed as indicating or implying relative importance or implicitly specifying the number of indicated technical features. Therefore, a feature defined as "first" or "second" may explicitly or implicitly include at least one of that feature.

[0050] This invention provides an external composite target for microrobots and its anti-occlusion detection and calibration method. This method employs forward and reverse phase coding marker detection, tag-guided local interest region constraint, checkerboard corner point sub-pixel refinement, circular edge refinement, anti-interference observation screening, and alternating iterations of detection-screening-joint optimization to obtain high-precision camera parameters and pose results under conditions of small field of view, partial occlusion, and clutter interference. The core technical problems solved by this method can be summarized as follows:

[0051] First, addressing the issue that calibration boards in miniature visual servoing systems are only partially visible under small field-of-view conditions, this invention provides a composite calibration target structure that is locally identifiable, locally localizable, and locally fine-tunable. Existing checkerboard or ordinary dot arrays struggle to stably recover global correspondences when only a local area is visible; this invention integrates coded identifiers, checkerboard corner points, and circular edges within the same local unit, enabling the camera to obtain local identity, scale, ROI, point features, and edge constraints even when only a local area of ​​the calibration target is visible.

[0052] Second, to address the issue of false corners, false edges, and incorrect candidates easily generated when the calibration board is obstructed by fixtures, cables, optical fibers, probes, dust, reflections, and debris, a hierarchical detection method that is resistant to obstruction and debris interference is provided. This method does not directly search all corners and rings across the entire map. Instead, it first determines the identity and search range of local units through coded identifiers, then performs fine-tuning of checkerboard corners and ring edges within that local area, and filters valid observations through geometric consistency.

[0053] Third, to address the challenge of a single calibration feature simultaneously satisfying local recognition, high-precision localization, and continuous geometric verification, a compact Tag-Chess-Ring composite local unit with both positive and negative phases is provided. The Tag is used for identity recognition, scale estimation, and ROI anchoring; the Chess is used for point feature supplementation and sub-pixel localization; and the Ring is used to provide continuous edge or conic section geometric constraints. Together, these three elements improve the observation reliability in complex micro-scenes.

[0054] Fourth, to address the problem of matching circular or dot-like features under conditions of no identity encoding, small field of view, and occlusion, a tag-anchored method for circular detection and refinement is provided. The circular rings in this invention are not isolated rings, but are bound to local tag units, possessing prior information on ID, center, scale, and ROI, thereby reducing the risk of false detections caused by cluttered edges or irrelevant circular structures.

[0055] Fifth, to address the problem that high-precision calibration relies on reliable detection, which in turn depends on existing coarse camera parameters and pose priors, an iterative camera calibration method of detection-screening-joint optimization is provided. This method first runs a three-stage detection using coarse camera parameters to eliminate occluded and contaminated targets, and then feeds the remaining valid observations into the joint optimization of camera parameters and pose. The optimized camera parameters continue to serve as coarse parameters for the next round of detection, and the iteration is repeated until the camera pose, external trajectory error, or parameter changes tend to stabilize.

[0056] Sixth, to address the issue that abnormal observations caused by occlusion, reflection, local contamination, and debris may contaminate camera parameters, an effective target screening mechanism based on observation confidence and robust residuals is provided. The system filters valid observations based on ID consistency, ROI consistency, size consistency, shape consistency, center distance, edge integrity, reprojection residual, and ring edge residual, and removes or downweights unreliable targets.

[0057] Seventh, addressing the need for high-precision camera parameters, moving platform attitude perception, and environmental perception in microrobots, micro-assemblies, and micro-visual servoing tasks, this invention provides a complete system that can simultaneously perform camera calibration, attitude perception, external reference updates, and closed-loop visual feedback. This invention not only obtains camera parameters offline but also utilizes a composite calibration target to provide stable visual feedback during subsequent operation, enabling moving platform positioning, environmental perception, trajectory correction, and closed-loop control.

[0058] The following section will provide a detailed description of the external composite target for microrobots and the anti-occlusion detection and calibration system of this invention.

[0059] In a preferred embodiment of the present invention, an external composite target for a microrobot is provided. The external composite target includes multiple local calibration units arranged in a checkerboard array on a calibration board plane. Each local calibration unit co-located an integrated coding identification area, a checkerboard corner area, and a circular geometric area. The coding identification area is used to provide the unit number, center, corner point, and scale of the local calibration unit. The checkerboard corner area is used to provide sub-pixel features, and the circular geometric area is used to provide continuous edge geometric constraints.

[0060] It should be noted that the aforementioned external composite target is a patterned planar calibration plate that can be mounted on static platforms, microscopic stages, robot bases, assembly fixtures, PCBs, chip carriers, fiber optic array fixtures, optoelectronic packaging reference surfaces, or experimental platforms for detection and calibration in conjunction with a camera. The surface target pattern on the calibration plate can be manufactured using planar printing, photolithography, laser etching, metal etching, glass chrome plates, ceramic substrates, PCB copper foil patterns, or other high-precision processing methods.

[0061] It should be noted that co-location integration means that the coded identification area, checkerboard corner area, and circular geometric area share the cell number, scale, local region of interest, and geometric relationships within the same local calibration cell, rather than being independently distributed. The reason for this design is that when the camera's field of view is small and the calibration target is only partially visible, as long as a complete local calibration cell is seen, the cell's identity, scale, sub-pixel features, and continuous edge constraints can be obtained simultaneously without relying on the global topology of the entire calibration target. Thus, the global correspondence can still be recovered under locally visible conditions.

[0062] It should be noted that the encoded identification area can use AprilTag, ArUco, CALTag, ChArUco or other planar markers with ID; the annular geometric area can use a single ring, concentric ring, solid circle, hollow circle, elliptical ring, dot or other closed edge graphics; the checkerboard corner point area can use a standard checkerboard, local checkerboard, cross corner point, rounded corner checkerboard or other corner point structure that can be positioned at sub-pixel level.

[0063] In addition, the composite calibration target can adopt a normal phase layout, an anti-phase layout, or a mixed normal and anti-phase layout; the mixed normal and anti-phase layout is preferred to improve the detection success rate under complex lighting, local contamination and reflective conditions.

[0064] See Figure 1 The diagram illustrates a preferred hybrid layout for an external composite target, showing its planar arrangement. The internal local calibration units are square units, with a coding area, a circular geometric area, and a checkerboard corner area arranged concentrically from the center outwards. The coding area is a square coding mark located at the center of each local calibration unit. The circular geometric area is a ring surrounding the coding area. The checkerboard corner area consists of the four corner points of each square unit. Furthermore, this external composite target employs a hybrid layout, where the positive phase units use a dark background with light-colored graphics, and the negative phase units use a light background with dark-colored graphics. These two layouts alternate in a checkerboard array, ensuring that the black and white polarities of corresponding local areas in adjacent local calibration units with the same relative position are opposite. For example, if the coding identifier area of ​​a positive phase cell is black with white code, then the adjacent cell is a negative phase cell, and the coding identifier area of ​​the negative phase cell is white with black code. If the non-overlapping area between the circular geometric area and the checkerboard corner area of ​​the positive phase cell is black, then this area of ​​the adjacent negative phase cell is white; the same applies to other areas. The reason for this design is that under complex lighting conditions such as reflection, shadow, local contamination, or changes in black-and-white polarity, if the marker detection fails under either polarity, the adjacent cell with the opposite polarity may still be detected. Combining the positive and negative detection paths can significantly improve the overall detection rate of local cells.

[0065] It should be noted that, regarding the aforementioned "concentric nested arrangement from the center outwards," it should be understood that, unlike the other two regions, the checkerboard corner point area is not a continuous graphic region, but rather discrete corner points at the four corners of a square unit. These four checkerboard corner points are distributed with the unit center as the center of symmetry, and their average centroid coincides with the center of the coding identification area and the center of the annular geometric area. Therefore, the checkerboard corner point area is also geometrically symmetrical with the unit center as the center of symmetry, and can be considered as a concentric nested arrangement from the center outwards with the coding identification area and the annular geometric area.

[0066] Based on the aforementioned external composite target for microrobots, this invention further provides an anti-occlusion detection and calibration method for external composite targets used in microrobots. This method obtains high-precision camera parameters and pose results under conditions of small field of view, partial occlusion, and clutter interference through alternating iterations of positive and negative phase coding marker detection, tag-guided local interest region constraints, checkerboard corner point sub-pixel refinement, circular edge refinement, anti-interference observation screening, and detection-screening-joint optimization. The implementation of this method is described in detail below.

[0067] like Figure 2 As shown, in a preferred embodiment of the present invention, the method for anti-occlusion detection and calibration of an external composite target for a microrobot uses preset initial camera parameters and initial distortion parameters as initial values, and specifically performs the following steps S1 to S7:

[0068] S1. Acquire multiple frames of images covering at least one local calibration unit in the external composite target. Perform encoding and identification detection on the grayscale image and the inverted image of each frame image respectively. Merge the detection results and remove duplicates according to the unit number to obtain the unit number, center of the encoding and identification, and corner points of the encoding and identification for each local calibration unit.

[0069] It should be noted that the aforementioned coded marker detection refers to decoding and recognizing planar markers within the coded marker area, outputting the marker's identification number, the pixel coordinates of its four corner points, and the detection center. This process can be accomplished using the AprilTag library. The detector first finds quadrilaterals similar to the markers, then corrects the sampling and decodes the unit number, and provides the sub-pixel coded marker corner points and the coded marker center. Each frame of the image needs to be converted to grayscale first, and then the grayscale image is inverted pixel by pixel to obtain an inverted image. Both the grayscale image and the inverted image need to be detected. The two detection paths are independent of each other and can be executed either serially or in parallel. In this embodiment, the two detection paths are executed in parallel to reduce the latency per frame.

[0070] S2. First, estimate the pixel scale based on the corner coordinates of the coded identifier. Based on the estimated pixel scale and the actual size ratio between the annular geometric area and the coded identifier area, predict the expected pixel diameter of the annular ring. Then, generate a local region of interest covering the predicted annular ring with the center of the coded identifier as the center.

[0071] In one embodiment of the present invention, in step S2 above, the pixel scale is the average pixel side length of the four sides of the quadrilateral formed by connecting the four corner points of the coded identifier area, and when the average pixel side length of a local calibration unit is less than a preset minimum scale, the corresponding local calibration unit does not participate in subsequent detection; the expected pixel diameter is the product of the average pixel side length and the ratio of the actual diameter of the annular geometric area to the actual side length of the coded identifier area; the local region of interest is a square area centered on the center of the coded identifier, and the half-side length of the square area is the larger of a preset lower limit value and the expected pixel diameter scaled according to a preset ratio.

[0072] It should be noted that the aforementioned pixel scale is essentially the imaging scale of the current frame. The actual side length of the coded marker is a known fixed physical size on the target, and its pixel side length in the image varies with camera distance and pose. Therefore, in this invention, the average pixel side length is used to measure how many pixels correspond to per millimeter. Since the actual size ratio between the annular geometric region and the coded marker region is fixed, this scale can be used to predict the pixel diameter that the annulus should have in this frame, thereby generating a locally interested region of appropriate size. In this embodiment, the preset minimum scale is 8 pixels, the preset lower limit is 25 pixels, and the preset ratio is 0.9, that is, the half-side length is the larger of 25 pixels and 0.9 times the expected pixel diameter, to ensure that the locally interested region completely covers the predicted annulus without being too small.

[0073] S3. Based on the current coarse pose and camera parameters, project the checkerboard corner points in the calibrated target coordinate system onto the image to obtain the predicted position. Perform sub-pixel thinning in a local window near the predicted position, and remove or reduce the weight of corner points whose deviation from the predicted position exceeds the threshold to obtain point feature observations.

[0074] It should be noted that the aforementioned current coarse pose is obtained by random sampling consensus estimation (RANSAC) based on the correspondence between the coded corner points and the known positions in the calibration target coordinate system. In the embodiments of the present invention, the current coarse pose can be obtained by random sampling consensus estimation, that is, by using the three-dimensional-two-dimensional correspondence of the coded corner points to perform perspective pose solving with random sampling consensus RANSAC, so as to obtain a robust coarse pose.

[0075] In one embodiment of the present invention, in step S3, the projection method of the checkerboard corner points is as follows: the checkerboard corner points in the calibration target coordinate system are projected onto the image according to the current coarse pose, camera parameters and distortion parameters to obtain the predicted position; the sub-pixel thinning is the least squares thinning based on image gradient constraints within a local window near the predicted position.

[0076] It should be noted that the size of the aforementioned local window increases with the increase of the pixel scale and needs to be limited within a preset window size range. In the embodiments of the present invention, the local window size win is obtained by multiplying the preset scaling factor win_scale by the median med of the pixel scale of each local calibration unit in the current frame and adding a preset bias win_bias: win = lround(win_scale × med + win_bias), where lround is the floor function, and the local window size win needs to be limited between the preset minimum window win_min and the preset maximum window win_max, i.e., limited to [win_min, win_max]. The reason for this is that when the distance between the camera and the calibration target changes, the texture scale of the corner neighborhood changes synchronously, and the window that adapts to the pixel scale can make sub-pixel refinement applicable at different working distances.

[0077] In one embodiment of the present invention, when the predicted position is obtained by projection, visibility screening is also required. That is, the following screening operations are performed on the point feature observation: corner points not located in front of the camera are removed, corner points that exceed the field of view in the normalized sensor domain are removed, and corner points that exceed the image boundary after distorted projection are removed, so as to retain the projected position of the corner point as the predicted position. The deviation between the refined position and the predicted position is calculated and compared with a preset threshold (2 pixels in this embodiment). Corner points exceeding the threshold are considered to be possibly from the edge of clutter, the edge of occlusion, or the false corner point and are removed. Because when there are clamp edges, cable edges, fiber end faces, pad boundaries, or other high-contrast textures in the image, ordinary corner point detection is prone to false detection. Therefore, the present invention uses the predicted position of coarse pose projection as the anchor point and the deviation gating screening to constrain the sub-pixel refinement to the vicinity of the position where the corner point appears, so that a single erroneous corner point will not directly enter the subsequent reprojection error optimization.

[0078] S4. Extract multiple edge contours within the local region of interest and fit them one by one to obtain multiple candidate ellipses. Perform size and shape gating on each candidate ellipse according to the expected pixel diameter. Score each candidate ellipse based on the distance and size deviation between the center of the candidate ellipse and the center of the coded identifier. Select the target ellipse with the highest score and refine the edge points to obtain the observation of the ring edge.

[0079] In one embodiment of the present invention, step S4, the method for extracting the edge contour and fitting an ellipse, is as follows: smoothing and edge detection are performed sequentially on the image block of the local region of interest to extract the contour, and an ellipse is fitted to the contour with the number of contour points meeting the preset requirements; the size and shape gating includes: the length of the major axis and the length of the minor axis of the candidate ellipse are respectively within a preset ratio range based on the expected pixel diameter, and the ratio of the major axis to the minor axis is less than a preset axis ratio threshold; the scoring is obtained by calculating the distance between the center of the candidate ellipse and the center of the coded identifier, and the absolute value of the deviation of the major axis of the candidate ellipse relative to the expected pixel diameter, taking the negative value of both and then weighted summing them.

[0080] The various parameters in the above process can be optimized and adjusted according to actual conditions. In a preferred embodiment of the present invention, Gaussian filtering is used for smoothing, the Canny operator is used for edge detection, and the preset requirement for the number of contour points is no less than 80 points; the major axis is between 0.5 and 2.2 times the expected pixel diameter, the minor axis is between 0.2 and 1.5 times the expected pixel diameter, and the preset axis ratio threshold is 4.0; the weight of the distance item in the scoring is 1, and the weight coefficient of the size deviation item is 0.05, that is, the score is the sum of the negative value of the center distance and 0.05 times the negative value of the size deviation.

[0081] It should be noted that the aforementioned edge point refinement refers to performing sub-pixel edge search along the normal of the target ellipse, and refitting the ellipse with the searched sub-pixel edge points. The specific implementation can employ existing refinement schemes. In this embodiment, edge points are uniformly sampled along the circumference of the target ellipse. For each sampled point, the edge position satisfying the gradient threshold is searched along the ellipse normal within a preset search half-width with a sub-pixel step size. The search half-width is an adaptive value between 4 pixels and 0.06 times the desired pixel diameter, the search step size is 0.5 pixels, and the minimum gradient threshold is 6. The searched sub-pixel edge points are then refitted into an ellipse as the final annular edge observation.

[0082] It should be noted that this embodiment uses ellipse fitting instead of standard circle fitting for the ring edge because, under perspective projection, the ring on the calibration target plane is only imaged as a perfect circle when the camera's optical axis is perpendicular to the calibration target plane. However, in micro-visual servoing, the relative posture of the camera and the calibration target is arbitrary, and a spatial circle, after perspective projection, is generally imaged as an ellipse (generally a conic section), not a standard circle. Furthermore, in this step, since there may be multiple high-contrast contours such as clamp edges and cable edges within the local region of interest, it is necessary to fit each one to form multiple candidate ellipses. Size and shape gating is then performed using the expected pixel diameter, and scoring and selection are performed using the distance and size deviation from the center of the coded marker. This reliably locks the true ring from multiple candidates. Further edge point refinement elevates the ring edge from an integer pixel contour to a sub-pixel edge point set, providing multi-pixel continuous geometric constraints rather than a single center point observation, thus significantly increasing the amount of information in the calibration constraints.

[0083] S5. Based on the consistency of cell number, region of interest, size, shape, reprojection residual, and annular edge residual, the observations of each frame are screened, and observations that are occluded or contaminated are removed or downweighted to form an effective observation set.

[0084] In one embodiment of the present invention, in step S5, a confidence level is defined for each observation. The confidence level is determined by factors corresponding to the reliability of number decoding, whether the observation is located within the predicted region of interest, size consistency, shape and edge continuity, and residual rationality. Observations with a confidence level greater than a confidence threshold and a residual corresponding to the observation type less than a residual threshold are included in the effective observation set. The residual corresponding to the observation type being a ring edge observation is the ring edge residual, and the residual corresponding to the observation type being a point feature observation is the reprojection residual. The ring edge residual is the distance residual from the ring edge observation point to the predicted conic section.

[0085] It should be noted that the aforementioned confidence level can be determined by multiplying the factors of number decoding reliability, region of interest consistency, size consistency, shape and edge continuity, and residual rationality, or it can be equivalently achieved by sequentially gating the above factors. In the embodiments of the present invention, the latter method is recommended, that is, for the observation of the ring edge, firstly, an ellipse is fitted to its edge point set. When the mean or standard deviation of the normalized radial error of the edge point relative to the fitted ellipse exceeds the corresponding threshold, the ring edge observation is removed; then, the edge points are compared with the projection curve predicted according to the current pose, and edge points with deviations exceeding the upper bound are removed by iterative sigma truncation. When the number or proportion of retained edge points is lower than the corresponding threshold, the ring edge observation is removed; finally, the angular coverage range of the retained edge points in the circumferential direction of the ellipse is counted, and the ring edge observation is removed when the coverage range is less than the preset coverage threshold.

[0086] It is also necessary to clarify here that "occlusion" refers to the feature of a local calibration unit being partially obscured by non-calibration objects such as fixtures or cables, resulting in incomplete observations; for example, only part of the arc of a ring is exposed. "Contamination" refers to the feature not being obscured, but the observed value being damaged or interfered with by factors such as reflections, stains, or the inclusion of foreign objects at the edges, such as false corners or false ring edges. This invention does not assume that all detection results are reliable, but rather uses the above-mentioned multiple consistency constraints to screen valid observations, thereby ensuring the reliability of the results.

[0087] Furthermore, due to the insufficient number of effective observations in a single frame, it becomes difficult to accurately extract valuable information subsequently. Therefore, in one embodiment of the present invention, frame-level filtering is also included: when the number of point feature observations in a single frame image is less than a preset lower limit for the number of points, or the number of observations of the ring edge is less than a preset lower limit for the number of rings, the frame is discarded and subsequent processes are not performed.

[0088] S6. Based on the effective observation set, construct an objective function using the reprojection residual of the point feature observation and the ring edge residual of the ring edge observation, and jointly optimize the camera parameters, distortion parameters, reference pose, system spatial mapping parameters and frame-by-frame pose correction.

[0089] In an embodiment of the present invention, in step S6, the objective function is obtained by weighted summation of a point feature error term, a circular edge error term, and a regularization term for frame-by-frame pose correction. Based on the effective observation set, nonlinear least squares is used to jointly optimize the camera parameters, distortion parameters, reference pose, system spatial mapping parameters, and frame-by-frame pose correction. The point feature error term uses the reprojection residual of the point feature observation as the error quantity, which is the difference between the pixel position of the point feature observation and its predicted position obtained by reprojection according to the current camera parameters and pose. The circular edge error term uses the circular edge residual of the circular edge observation as the error quantity, which is the Sampson distance from the circular edge observation point to the predicted conic section. The pose of each frame is determined by the reference pose, system spatial mapping parameters, and frame-by-frame pose correction.

[0090] It should be noted that the aforementioned system spatial mapping parameters are matrix parameters that map the incremental driving input of the moving platform into spatial displacement. The pose of each frame is determined by the reference pose, the system spatial mapping parameters, and the frame-by-frame pose correction. Specifically, the rotation of each frame is the synthesis of the frame-by-frame rotation correction and the rotation of the reference pose; the translation of each frame is the displacement resulting from the interaction of the rotation of the reference pose, the system spatial mapping matrix, and the input increment of the moving platform relative to the reference position, superimposed with the translation of the reference pose and the frame-by-frame translation correction. Thus, the main pose is determined by the known kinematic input of the moving platform, and the frame-by-frame correction only absorbs various small deviations, enabling the joint optimization to converge stably under strong constraints.

[0091] It should be noted that the Sampson distance mentioned above is the approximate geometric distance from the point to the predicted conic section after normalization by its first-order gradient, and its calculation formula belongs to the prior art.

[0092] In addition, in embodiments of the present invention, the point feature error term and the circular edge error term are preferably weighted by a robust kernel function, wherein the robust kernel function may be Huber, Cauchy, Tukey or other robust kernels.

[0093] Furthermore, in embodiments of the present invention, the aforementioned nonlinear least squares solution method may employ Levenberg-Marquardt, Gauss-Newton, Trust Region, Bundle Adjustment, sparse least squares, or other nonlinear least squares solution methods. Moreover, during the solution process, if necessary, one or more additional regularization terms may be set from anchor point translation, adjacent frame smoothing, spatial mapping prior, reference pose prior, camera parameter prior, and distortion soft constraint prior to suppress ill-conditioned solutions.

[0094] It should be noted that the moving platform in this invention is a precision motion platform that carries the external composite target (i.e., the external composite calibration target) and can move relative to the base. In this embodiment, it is a three-axis nanometer displacement stage, and the input position of each axis is obtained from the platform position reading. Give, The input increment of the i-th frame relative to the reference position is mapped to the platform's displacement in space via the system spatial mapping parameter U. The calibration target is fixed on the moving platform; therefore, the pose of each frame is determined by the reference pose, the spatial displacement, and the frame-by-frame pose correction. In other application scenarios, the external composite calibration target can also be mounted on a static platform, microscopic stage, robot base, external reference frame, or assembly fixture, serving as a static reference, preoperative calibration object, or fixture reference.

[0095] S7. Use the parameters obtained from the joint optimization as new coarse parameters, and repeat steps S1 to S6 until the convergence condition is met, and output the final camera parameters and pose results.

[0096] In an embodiment of the present invention, in step S7, the convergence condition includes at least one of the following: the change in camera parameters is less than a first threshold, the change in distortion parameters is less than a second threshold, the change in pose is less than a third threshold, the change in residual is less than a fourth threshold, the change in external trajectory evaluation error is less than a fifth threshold, and the condition is continuously satisfied for a preset number of rounds.

[0097] It should be noted that, in the embodiments of the present invention, the first iteration can be forced to use the original initialized camera parameters as the initial values ​​to avoid mistakenly taking the existing calibration results as the iteration starting point. During the iteration process, the change in camera parameters being less than a first threshold can be used as the main convergence criterion, and the iteration is stopped early when the criterion is met. The specific number of iteration rounds can be a fixed number or automatically stopped by the convergence criterion, preferably stopping after 7 to 8 rounds.

[0098] In summary, high-precision calibration relies on reliable detection, which in turn relies on existing camera parameters and pose priors. This invention couples the two together by using coarse parameters to detect and screen effective observations, then using the effective observations for joint optimization, and using the optimized results as the coarse parameters for the next round of detection in multiple iterations. This improves the detection quality and camera parameters, greatly reducing the impact of a single erroneous detection on the final calibration result.

[0099] In addition, in one embodiment of the present invention, after the methods described in S1 to S7 above are completed, an online application step can be executed, and the specific application method is as follows:

[0100] After calibration, the final camera parameters are used to perform detection and filtering corresponding to steps S1 to S7 on each frame of the online-acquired image. The pose is solved by minimizing the point feature residuals and the ring edge residuals based on the effective observation set. Specifically, the initial pose can be solved first using the effective point feature observations. Then, using the initial pose as the initial value, the point feature reprojection residuals and the ring edge residuals are jointly optimized to obtain the pose correction amount, which is then superimposed as the output pose. When the number of effective observations is insufficient, the spatial distribution degrades, or the residuals exceed the threshold, low-confidence information is output, or resampling, repositioning, reference update, or loop closure pause is triggered. The final output pose result can be used in scenarios such as camera calibration, moving platform attitude perception, tool positioning, workpiece positioning, environmental perception, visual servoing, trajectory correction, and error monitoring.

[0101] To better enable those skilled in the art to understand the technical solution, the implementation process and technical effects of the methods described in S1 to S7 above will be specifically demonstrated below through an embodiment.

[0102] Example

[0103] This embodiment provides an anti-occlusion detection and calibration system for an external composite target used in microrobots, implementing the methods described in S1-S7 above. The system includes: a compact Tag-Chess-Ring composite calibration target with both front and back phases, an image acquisition module, a coarse detection module for front and back phase tags, a local ROI generation module, a Chess sub-pixel fine detection module, a Ring edge refinement module, an anti-interference observation and screening module, a detection-calibration alternating iterative module, a camera parameter and pose joint optimization module, and a posture perception and visual feedback output module. The various functional modules in this system cooperate with each other to achieve the methods described in steps S1-S7 above.

[0104] Furthermore, it should be noted that each of the above functional modules is essentially a computer program module or software functional module. For example... Figure 3 As shown, the system operates based on a computer electronic device, which includes a memory and a processor;

[0105] The memory is used to store computer programs;

[0106] The processor is used to call various functional modules to implement the above-described method for anti-occlusion detection and calibration of external composite targets for microrobots, as described in S1 to S7, when executing the computer program.

[0107] The following is a detailed description of the specific implementation of the entire system.

[0108] The basic process of this system can be represented as follows:

[0109]

[0110]

[0111] in, For the first Frame image, The final optimized camera parameters, distortion parameters, reference pose, and system space mapping parameters are obtained.

[0112] The following section introduces the entire method and the external composite target it depends on.

[0113] 1. External composite calibration target structure

[0114] The composite calibration target of this invention consists of multiple compactly arranged local calibration units, and the planar layout of its target pattern is as follows: Figure 1As shown, each local calibration unit includes an coded identifier area, a checkerboard corner point area, and a circular geometric area. The coded identifier area provides the local unit ID, coarse corner point, center position, and scale information; the checkerboard corner point area provides sub-pixel-level discrete point features; the circular geometric area provides continuous edges, elliptical parameters, or conic section geometric constraints; and the positive-negative phase layout enhances the detection success rate under complex lighting conditions, local contamination, reflection, and black-and-white polarity changes.

[0115] A single local calibration unit can be represented as:

[0116] in, For local unit number (ID) For encoding the set of corner points, For the set of corner points of the chessboard, This is a set of circular edges or conic curves. In this embodiment, the coding identification area uses AprilTag planar markings, and the circular geometric area uses a single ring concentric with the coding identification, with an actual ring diameter of 4mm. Multiple local calibration units are arranged in a checkerboard array, with adjacent units having opposite black and white polarities.

[0117] The composite target is characterized by its compactness, co-location, redundancy, and verifiability. It integrates multiple observations within a small field of view, simultaneously possessing ID, point features, and edge features within the same local unit. Therefore, each candidate observation can be verified using its ID, region of interest (ROI), size, shape, and residuals, and the remaining observations can still be utilized even in cases of local occlusion.

[0118] 2. Coarse detection module for forward and reverse tags

[0119] Let the input image be The corresponding grayscale image obtained after conversion is The inverted image is Therefore, positive and negative phase encoded tag detection are performed separately, as follows:

[0120]

[0121]

[0122] In the formula: This indicates the detection of encoded identifiers.

[0123] After merging the test results, duplicates are removed by ID:

[0124]

[0125] In the formula: This indicates that the operation of retaining a unique ID is performed.

[0126] The detection result for each tag is represented as follows:

[0127]

[0128] in, The four corner points are used as the encoding identifiers. This serves as the detection center. In this embodiment, the positive and negative phase detections are performed independently and in parallel, and only one detection result is retained for the same number after merging. Furthermore, an exclusion list is established for numbers pre-marked as unreliable, and these numbers are not included in subsequent processing.

[0129] This module outputs: ;

[0130] That is, the local ID, center, corner points, and pixel scale, which are used for subsequent ROI generation and local refinement.

[0131] 3. Tag-based scaling and local ROI generation module

[0132] For the detected first Each coded identifier is a tag, and its four corner points are defined as follows:

[0133]

[0134] The corresponding lengths of the four sides are:

[0135]

[0136]

[0137]

[0138]

[0139] The corresponding average pixel side length is:

[0140]

[0141] If satisfied If the local unit scale is too small or the detection is unreliable, it will not proceed to further detection. The smallest scale... Take 8 pixels.

[0142] Let the actual side length of Tag be... The actual diameter of the ring is The expected pixel diameter of the annulus is:

[0143]

[0144] Tag Center Construct the ROI with the center as the center:

[0145]

[0146]

[0147] In this embodiment, the following can be adopted:

[0148]

[0149] in The lower limit of half the side length, This is the scaling factor for the desired pixel diameter. Additionally, when the width or height of a local region of interest is less than 50 pixels, ring detection for that unit is abandoned.

[0150] 4. Chess subpixel fine detection module

[0151] Let the checkerboard corner points in the calibration target coordinate system be:

[0152]

[0153] Based on the current coarse pose and camera parameters Predict its image location:

[0154]

[0155] In the formula: For the camera projection function containing distortion; For the camera intrinsic parameter matrix, These are distortion parameters; current coarse pose. The corner points are obtained by random sampling consistency estimation based on the 3D-2D correspondence of the coded corner points. In this embodiment, during projection, corner points not located in front of the camera are first removed, then corner points exceeding the field of view are removed in the normalized sensor domain, and finally the projection is performed on the image according to the distortion model, and corner points exceeding the image boundary are removed. The projected positions of the corner points are retained as the predicted positions.

[0156] Construct a local window near the predicted location:

[0157]

[0158] Sub-pixel corner points can be obtained through local least squares thinning:

[0159]

[0160] in, The local window radius, pixels within the window Image gradient at that location, The window weight is defined as follows: In this embodiment, the local window size is determined by multiplying a preset scaling factor by the median of the average pixel side length of each local unit in the current frame, plus a preset offset, and is limited to between a preset minimum window and a preset maximum window.

[0161] If the deviation between the candidate corner point and the predicted position exceeds the threshold:

[0162]

[0163] The corner point is then considered to likely originate from the edge of clutter, an occluding edge, or a false corner point, and is therefore discarded or downweighted. The threshold in this embodiment... Take 2 pixels.

[0164] Residual characteristics of checkerboard corner points:

[0165]

[0166] The function of this module is to transform the local area after coarse tag localization into high-precision point feature observation.

[0167] 5. Ring edge finishing module

[0168] exist Extracting a local image patch:

[0169]

[0170] Perform smoothing and edge detection:

[0171]

[0172] Extracting contours:

[0173]

[0174] For candidate contours Fitting an ellipse:

[0175]

[0176] in, As the candidate ellipse center, For major and minor axes, This is the direction angle.

[0177] definition:

[0178] For the first The length of the major axis of each candidate ellipse;

[0179] For the first The length of the minor axis of each candidate ellipse;

[0180] Candidate ellipses must satisfy:

[0181]

[0182] In this embodiment, the above parameters =0.5、 =2.2、 =0.2、 =1.5、 =4.0, and only fits ellipses to contours with at least 80 contour points.

[0183] Let the center of the ring predicted by the Tag center be... The candidate scores are:

[0184]

[0185] in, This is the dimensional deviation weighting coefficient, which is set to 0.05 in this embodiment.

[0186] Select the candidate ellipse with the highest score as the optimal target ellipse:

[0187]

[0188] In addition, to ensure edge accuracy, the edge points of the target ellipse need to be refined: a sub-pixel edge search is performed along the normal of the target ellipse. In this embodiment, 840 points are uniformly sampled along the circumference of the target ellipse. For each sampled point, the edge position with a gradient of not less than 6 is searched along the normal within the search half-width with a step size of 0.5 pixels. The search half-width is an adaptive value between 4 pixels and 0.06 times the expected pixel diameter. The ellipse is refitted with the sub-pixel edge points obtained from the search, and the set of its sub-pixel edge points is used as the edge observation of the ring.

[0189] 6. Geometric Residual Module for Circular Ring Edges

[0190] The first in the calibration target coordinate system Each annulus can be parameterized as follows:

[0191]

[0192] in, Center of the ring Let be the radius of the annulus.

[0193] Project it onto the image:

[0194]

[0195] Let the observed edge points be:

[0196]

[0197] The residual at the edge of the annulus is:

[0198]

[0199] This residual can be used for subsequent joint calibration. If some edge points are obstructed, reflected, or contaminated by debris, they can be removed through residual gating.

[0200]

[0201] Edge points that meet the criteria are added to the valid observation set, while edge points that do not meet the criteria are removed or downweighted.

[0202] 7. Anti-interference observation screening module

[0203] The system performs each observation (Including point feature observations and ring edge observations) Define confidence level:

[0204]

[0205] in:

[0206] ID decoding and deduplication reliability;

[0207] : Whether the observation is located within the predicted region of interest (ROI);

[0208] Is the size close to the expected size?

[0209] Are the shape, aspect ratio, and edge continuity reasonable?

[0210] Whether the reprojection residual or the annular edge residual is reasonable.

[0211] Based on the above confidence level, all observations obtained by merging point feature observations and ring edge observations can be analyzed. After screening, the valid observation set is as follows:

[0212]

[0213] The corresponding set of outlier observations is:

[0214]

[0215] It should be noted that the confidence level mentioned above can be directly calculated using multiplication and used to filter the valid observation set. However, in this embodiment, for ease of program execution, the confidence level is implemented using an equivalent cascaded gating method: For annular edge observations, firstly, an ellipse is fitted to the set of edge points. When the mean or standard deviation of the normalized radial error of the edge points relative to the fitted ellipse exceeds a corresponding threshold, the annular edge observation is removed. Then, the edge points are compared with the projection curve predicted based on the current pose, and edge points with deviations exceeding the upper bound are removed by iterative sigma truncation. When the number or proportion of retained edge points is lower than a corresponding threshold, the annular edge observation is removed. Finally, the angular coverage range of the retained edge points in the circumferential direction of the ellipse is calculated. If the coverage range is insufficient, the annular edge observation is removed. For frame-level observations, if the number of feature observations per frame is less than 6, the frame is discarded.

[0216] When the calibration board is partially obstructed by fixtures, cables, optical fibers, probes, pads, dust, droplets, reflections, or other non-calibrated objects, the system does not assume that all test results are reliable, but rather filters effective observations through the above multiple constraints.

[0217] 8. Detection-Screening-Joint Optimization Iterative Calibration Module

[0218] The calibration method of this invention is based on three-stage detection results and adopts an alternating iterative process of detection-screening-joint optimization.

[0219] Let the first The parameters in the round iteration are:

[0220]

[0221] in, For camera internal parameters, For distortion parameters, For system space mapping, This is the reference pose (base pose). For frame-by-frame minor adjustments.

[0222] Step 1: Run the test with the current coarse parameters:

[0223]

[0224] in:

[0225]

[0226] Step 2: Remove obstructed and contaminated targets:

[0227]

[0228] Step 3: Joint optimization based on effective observations:

[0229]

[0230] Step 4: Use the optimization results as coarse parameters for the next round:

[0231]

[0232] The optimized process is thus formed as follows:

[0233]

[0234] In this embodiment, the first iteration is required to use the original initialized camera parameters as initial values, and existing calibration results are not allowed to be used as initial values ​​for the 0th iteration. Furthermore, in this embodiment, the system can terminate after 7-8 rounds of detection-screening-joint optimization iterations, or iterate until the convergence condition is met.

[0235] 9. Camera parameter and pose joint optimization module

[0236] This module jointly optimizes the camera model, nanostation spatial mapping, and pose per frame. The camera model includes intrinsic parameters. and distortion parameters Nano-Taiwan Frame input increment is Through the global matrix Mapped to spatial displacement. Frame pose is defined as

[0237]

[0238]

[0239] The parameters to be optimized are:

[0240]

[0241] in, For the first The data segment index to which the frame belongs. Input for the reference position of the moving platform.

[0242] Point features are represented using reprojection residuals, while the ring edges are represented using the Sampson distance residuals from the point to the predicted conic section. Distortion-free normalized edge points are then used. and predicting the cone matrix The squared Sampson distance is:

[0243]

[0244] Here, the subscripts 1 and 2 represent the two components of the gradient vector. To prevent extremely small numbers from being divided by zero.

[0245] Finally, a weighted nonlinear least squares objective function is constructed using point residuals, circular Sampson residuals, and small-modification regularization terms for each frame. Stable camera parameters and pose results are obtained through detection-screening-joint optimization iteration.

[0246] The joint optimization objective is:

[0247]

[0248] The point feature error is:

[0249]

[0250] The edge error of the ring is:

[0251]

[0252]

[0253] The frame-by-frame minor correction regularization term is:

[0254]

[0255] in, , , The weights of each error term, , , , The corresponding noise standard deviation, For robust kernel functions, this embodiment uses a pseudo-Huber kernel; other embodiments may use Huber, Cauchy, Tukey, or other robust kernels. The annular edge residuals are converted to pixel equivalents based on the focal length mean before optimization and weighted according to the quality weights of each observation. The solution method uses nonlinear least squares, such as Levenberg-Marquardt or sparse Bundle Adjustment.

[0256] 10. Convergence Determination Module

[0257] The system can determine convergence based on changes in camera parameters, distortion parameters, pose, internal residuals, and external evaluation errors.

[0258] Camera intrinsic parameter changes:

[0259]

[0260] Changes in distortion parameters:

[0261]

[0262] Change in pose:

[0263]

[0264] Internal residual variation:

[0265]

[0266] If an external truth value or external evaluation trajectory exists, then calculate:

[0267]

[0268]

[0269] when:

[0270]

[0271]

[0272]

[0273]

[0274] If the conditions are met for several consecutive rounds, the camera parameters and pose evaluation are considered to have stabilized, and the current parameters are output as the final camera parameters. In this embodiment, the main convergence criterion is that the change in camera parameters is less than a first threshold, and the iteration is stopped early if this criterion is met.

[0275] 11. Online attitude perception and feedback output module

[0276] After calibration, the system outputs:

[0277]

[0278] It can also output the pose of the external calibration target, camera, or moving platform during the online detection phase.

[0279]

[0280] Or the camera's own pose (ego pose):

[0281]

[0282] in, For calibrating the target or world reference coordinate system, Let be the camera coordinate system.

[0283] During online positioning, the system uses the valid observation set:

[0284]

[0285] Solution:

[0286]

[0287] In this embodiment, the online solution first uses effective point feature observation to solve the initial pose, and then uses the initial pose as the initial value to jointly optimize the pose correction amount using the point feature reprojection residual and the ring edge residual. The correction amount is then superimposed on the initial pose and output.

[0288] If the number of valid observations is insufficient, the spatial distribution is degraded, or the residual exceeds the threshold, a low confidence level will be output, or resampling, camera repositioning, workbench reference update, or closed-loop pause will be triggered.

[0289] 12. Complete Execution Steps of the Method of the Invention

[0290] Based on the above functional modules, the method of the present invention can call each module to execute a complete detection, calibration and application process according to the following steps:

[0291] The first step is to deploy an external composite calibration target.

[0292] The composite calibration target is fixed to a static platform, microscopic stage, robot base, assembly fixture, PCB, chip carrier, fiber array fixture, optoelectronic packaging reference surface, or experimental platform. It should be noted that during calibration, the external composite calibration target can be fixed to a moving platform and move with it; the input increment in the pose model is the position reading increment of the moving platform. In the application scenario after calibration, the external composite calibration target can also be fixed to a static reference such as a static platform, microscopic stage, robot base, or assembly fixture, in which case the target is used as a static reference.

[0293] The second step is to input the initial coarse camera parameters. Given the initial... and coarse pose or reference pose parameters This step is the initialization input when the system starts. The initial coarse parameters are given externally or preset by the system and serve as the initial values ​​for the subsequent detection-screening-joint optimization iterative process. The first iteration is based on these initial values ​​to execute steps three through eight.

[0294] The third step is to perform coarse tag detection for both the input and inverted images. Tag detection is performed on both the input and inverted images, the detection results are merged, and duplicates are removed by ID. In this step, the image acquisition module acquires multiple frames of images covering at least one local calibration unit in the external composite target. The coarse tag detection module performs coded tag detection on the grayscale image and inverted image of each frame, merges the results, removes duplicates by number, and outputs the number of each local calibration unit, the center of the coded tag, the corner points of the coded tag, and the pixel scale.

[0295] The fourth step is to generate a local Region of Interest (ROI). Based on the pixel lengths of the four sides of the tag, the scale is estimated, and the pixel diameter of the ring is predicted according to the actual size ratio of the ring, thus generating the ROI. This step is performed by the local ROI generation module: using the center of the coded tag as the center, and taking the larger of the half-side length (a preset lower limit value) and the expected pixel diameter of the ring scaled according to a preset ratio, a square local region of interest covering the predicted ring is generated.

[0296] The fifth step is to perform Chess fine-tuning. Checkerboard corner points are extracted within the local region anchored by the tag, and sub-pixel thinning and positional consistency checks are performed. This step is executed by the Chess sub-pixel fine-tuning module: based on the current coarse pose and camera parameters, the checkerboard corner points in the calibrated target coordinate system are projected onto the image to obtain predicted positions. Sub-pixel thinning is performed within a local window near the predicted positions based on image gradient constraints. Corner points whose deviation from the predicted positions exceeds a threshold are discarded or downweighted, and point feature observations are output.

[0297] Step 6: Perform Ring post-refinement. Extract the ring edge from the ROI, and perform contour extraction, ellipse fitting, candidate selection, and ring edge residual calculation. This step is performed by the Ring ring edge post-refinement module and the Ring edge geometric residual module: extract multiple edge contours within the local region of interest and fit them one by one to obtain multiple candidate ellipses. After gating and scoring based on size and shape, the target ellipse is selected. Sub-pixel refinement is performed on the edge points along the normal of the target ellipse, and the distance residual from the ring edge observation point to the predicted conic section is calculated, outputting the ring edge observation.

[0298] The seventh step is to perform anti-interference observation screening. This involves removing occluded targets, low-quality corner points, pseudo-circular edges, and residual abnormal observations to form a valid observation set. This step is performed by the anti-interference observation screening module: based on the reliability of numbering and decoding, consistency of region of interest, size consistency, shape and edge continuity, and residual rationality, observations in each frame are screened, removing or downweighting occluded or contaminated observations to form a valid observation set.

[0299] Step 8: Perform joint optimization of camera parameters and pose. Utilizing valid point features and circular edge observations, optimize camera intrinsic parameters, distortion parameters, reference pose, system spatial mapping, and frame-by-frame correction terms. This step is executed by the joint optimization module: constructing an objective function using the reprojection residuals from point feature observations and the circular edge residuals from circular edge observations, and performing weighted nonlinear least squares joint optimization on camera parameters, distortion parameters, reference pose, system spatial mapping parameters, and frame-by-frame pose corrections.

[0300] The ninth step is to feed the optimization results back to the next round of testing. (Using the updated...) As coarse parameters for the next round of detection, the detection, screening, and optimization processes are repeated. This step is executed by the detection-calibration alternating iterative module: the parameters obtained from the joint optimization are fed back as new coarse parameters to the detection and screening in steps three through seven, forming an alternating iterative closed loop of detection-screening-joint optimization.

[0301] Step 10: Convergence Determination. When the changes in camera parameters, pose, internal residuals, or external trajectory evaluation errors meet the stability conditions, the final camera parameters are output. This step is executed by the convergence determination module: the changes in camera parameters, distortion parameters, pose, residuals, and external trajectory evaluation errors are compared with their respective thresholds. Convergence is determined when these conditions are met for several consecutive rounds, and the final camera parameters and pose results are output.

[0302] Step 11, Online Application. High-precision detection, attitude perception, environmental reference update, moving platform localization, or closed-loop visual feedback are performed using the final parameters. This step is executed by the attitude perception and visual feedback output module: For each frame of image acquired online, detection and filtering corresponding to steps three through seven are performed, and pose is solved based on the effective observation set; when the number of effective observations is insufficient, the spatial distribution degrades, or the residual exceeds a threshold, low-confidence information is output, or resampling, relocalization, reference update, or closed-loop pause is triggered.

[0303] It should be noted that for the detection task, only steps one through eight are performed, and step eight is used to obtain the camera pose only by jointly optimizing the image features.

[0304] To verify the spatial perception accuracy of the method described in this embodiment, the detected three-dimensional trajectory was evaluated. The experimental data included two sets of conditions: an empty calibration plate and a occluded calibration plate. Each set contained data with different directions, trajectory shapes, and trajectory scales. The trajectory directions included those perpendicular to the calibration plate and those horizontal to the calibration plate. The trajectory shapes included Circle, Square, Star, and Octahedron. The trajectory scales included 100, 1000, 5000, and 10000 micrometers.

[0305] Each trajectory data point includes a Feature trajectory detected by the system and a GT_new reference trajectory obtained after joint calibration. The Feature trajectory represents the spatial detection result output by the method of this invention, while the GT_new trajectory serves as a reference trajectory for accuracy evaluation. The position unit is micrometers. In the experiment, the camera trajectory and the ground truth trajectory are first matched according to the timestamp. Then, each trajectory is individually aligned using a scale-free rigid body alignment (only rotation and translation are allowed). Finally, the absolute positioning error and the repeatability error are calculated.

[0306] Figure 4A schematic diagram of the detection results in an exemplary application of an external composite calibration target is shown, demonstrating that the present invention can accurately identify information on each local unit.

[0307] Figure 5 , Figure 6 , Figure 7 and Figure 8 The results of the detection trajectory are shown under four types of working conditions: detection trajectories of different scales and shapes under the empty plate / vertical condition, detection trajectories of different scales and shapes under the empty plate / horizontal condition, detection trajectories of different scales and shapes under the occluded / vertical condition, and detection trajectories of different scales and shapes under the occluded / horizontal condition. Each figure simultaneously displays four trajectory shapes: Circle, Square, Star, and Octahedron, covering four trajectory scales: 100, 1000, 5000, and 10000. This set of figures demonstrates that the detection and calibration results of this invention are not limited to a single trajectory or a single scale, but can output continuous and stable spatial trajectories under various trajectory shapes, various motion ranges, and different working conditions. Moreover, from... Figures 5 to 8 It can be seen that the detection trajectory can maintain the basic geometric shape of the target trajectory. It can show accuracy in small-scale scenes, and the lines almost overlap in large-scale scenes.

[0308] In addition, the experiment first matched the camera trajectory and the ground truth trajectory according to the timestamp. Then, a scale-free rigid body alignment was performed on each trajectory individually, allowing only rotation and translation. This step was used to eliminate the global coordinate system difference between the two trajectories, while preserving the scale and shape errors of the trajectory itself.

[0309] This experiment primarily evaluates two types of errors. Absolute positioning error is used to evaluate the overall spatial consistency between the detected trajectory and the reference trajectory. After rigid body alignment, the three-dimensional Euclidean distance between the camera trajectory position and the ground truth position in each frame is calculated, and the mean, RMSE, and std are calculated.

[0310] Repeatability error is used to evaluate the stability of the same phase point in multi-cycle repetitive motion. For repetitive trajectories, the detection trajectory is rearranged according to the number of cycles and phase; for the same phase point, the average position over multiple cycles is calculated, and then the three-dimensional distance of each cycle at that phase relative to the average position is statistically analyzed. This index is not directly compared with the true value, but rather evaluates the consistency of the detection results themselves in repetitive motion. Based on the statistics of all trajectory data, the absolute positioning accuracy and repeatability accuracy under the two working conditions of Empty and Moto are shown in Table 1 below:

[0311] Table 1

[0312] Group absolute mean / µm Absolute RMSE / µm absolute std / µm Repeat mean / µm Repeated RMSE / µm Repeat std / µm Empty board 6.85 8.30 4.69 4.33 5.13 2.74 Obstruction 7.96 9.51 5.20 5.55 6.48 3.34

[0313] As shown in Table 1, under the unsupported board condition, the system's absolute positioning RMSE is 8.30µm, and the repeatability RMSE is 5.13µm; under the occluded condition, the system's absolute positioning RMSE is 9.51µm, and the repeatability RMSE is 6.48µm. Under both conditions, the absolute positioning error and repeatability error are both within the ten-micrometer range. The repeatability error is smaller than the absolute positioning error, indicating that the detection trajectory has high stability during multi-turn in-phase motion; the absolute positioning error further reflects system-level errors such as camera parameters, distortion parameters, reference coordinate relationships, spatial mapping, and trajectory geometric consistency.

[0314] It should be noted that the above are some preferred embodiments of the present invention, but are not intended to limit the invention. Those skilled in the art can make various changes and modifications without departing from the spirit and scope of the invention. Therefore, all technical solutions obtained by equivalent substitution or equivalent transformation fall within the protection scope of the present invention.

Claims

1. An external composite target for a micro robot, characterized by, The external composite target includes multiple local calibration units arranged in a checkerboard array on the calibration plate plane. Each local calibration unit shares an integrated coding identification area, a checkerboard corner area, and a circular geometric area. The coding identification area is used to provide the unit number, center, corner point, and scale of the local calibration unit. The checkerboard corner area is used to provide sub-pixel features, and the circular geometric area is used to provide continuous edge geometric constraints.

2. The external composite target for a micro robot according to claim 1, wherein The local calibration unit is a square unit, with the coding identification area, the circular geometric area, and the checkerboard corner point area arranged concentrically from the center outwards; the coding identification area is a square coding mark set at the center of the local calibration unit; the circular geometric area is a ring surrounding the coding identification area; the checkerboard corner point area is composed of the four checkerboard corner points of the square unit; preferably, the external composite target adopts a mixed positive and negative phase layout, and the black and white polarities in two adjacent local calibration units are opposite.

3. The method for anti-occlusion detection and calibration using the external composite target for microrobot as claimed in claim 1, wherein, The method uses preset initial camera parameters and initial distortion parameters as initial values, including: S1. Acquire multiple frames of images covering at least one local calibration unit in the external composite target. Perform coding identification detection on the grayscale image and the inverted image of each frame image respectively. Merge the detection results and remove duplicates according to the unit number to obtain the unit number, center of the coding identification, and corner point of the coding identification of each local calibration unit. S2. First, estimate the pixel scale based on the corner coordinates of the coded identifier. Based on the estimated pixel scale and the actual size ratio between the annular geometric area and the coded identifier area, predict the expected pixel diameter of the annular ring. Then, generate a local region of interest covering the predicted annular ring with the center of the coded identifier as the center. S3. Based on the current coarse pose and camera parameters, project the checkerboard corner points in the calibrated target coordinate system onto the image to obtain the predicted position. Perform sub-pixel thinning in a local window near the predicted position, and remove or reduce the weight of corner points whose deviation from the predicted position exceeds the threshold to obtain point feature observations. S4. Extract multiple edge contours within the local region of interest and fit them one by one to obtain multiple candidate ellipses. Perform size and shape gating on each candidate ellipse according to the expected pixel diameter. Score each candidate ellipse according to the distance and size deviation between the center of the candidate ellipse and the center of the coded identifier. Select the target ellipse with the highest score and refine the edge points to obtain the observation of the circular edge. S5. Based on the consistency of cell number, region of interest, size, shape, reprojection residual, and annular edge residual, the observations of each frame are screened, and observations that are occluded or contaminated are removed or downweighted to form an effective set of observations. S6. Based on the effective observation set, construct an objective function using the reprojection residual of the point feature observation and the ring edge residual of the ring edge observation, and jointly optimize the camera parameters, distortion parameters, reference pose, system spatial mapping parameters and frame-by-frame pose correction amount. S7. Use the parameters obtained from the joint optimization as new coarse parameters, and repeat steps S1 to S6 until the convergence condition is met, and output the final camera parameters and pose results.

4. The anti-occlusion detection and calibration method of claim 3, wherein, In step S2, the pixel scale is the average pixel side length of the four sides of the quadrilateral formed by connecting the four corner points of the coded identifier area. When the average pixel side length of a local calibration unit is less than a preset minimum scale, the corresponding local calibration unit does not participate in subsequent detection. The expected pixel diameter is the product of the average pixel side length and the ratio of the actual diameter of the annular geometric area to the actual side length of the coded identifier area. The local region of interest is a square area centered on the center of the coded identifier, and the half-side length of the square area is the larger of a preset lower limit value and the expected pixel diameter scaled according to a preset ratio.

5. The anti-occlusion detection and calibration method of claim 3, wherein, In step S3, the projection method of the checkerboard corner points is as follows: the checkerboard corner points in the calibration target coordinate system are projected onto the image according to the current coarse pose, camera parameters and distortion parameters to obtain the predicted position; the sub-pixel thinning is the least squares thinning based on image gradient constraints within a local window near the predicted position.

6. The anti-occlusion detection and calibration method of claim 3, wherein, In step S4, the method for extracting the edge contour and fitting an ellipse is as follows: smoothing and edge detection are performed sequentially on the image block of the local region of interest to extract the contour, and an ellipse is fitted to the contour with the number of contour points meeting the preset requirements; the size and shape gating includes: the length of the major axis and the length of the minor axis of the candidate ellipse are respectively within a preset ratio range based on the expected pixel diameter, and the ratio of the major axis to the minor axis is less than a preset axis ratio threshold; the score is obtained by calculating the distance between the center of the candidate ellipse and the center of the coded identifier, and the absolute value of the deviation of the major axis of the candidate ellipse relative to the expected pixel diameter, taking the negative value of both and then weighted summing them.

7. The anti-occlusion detection and calibration method of claim 3, wherein, In step S5, a confidence level is defined for each observation. The confidence level is determined by factors corresponding to the reliability of number decoding, whether the observation is located in the region of interest for prediction, size consistency, shape and edge continuity, and residual rationality. Observations with a confidence level greater than the confidence level threshold and a residual corresponding to the observation type less than the residual threshold are included in the effective observation set. The residual corresponding to the observation type of the ring edge observation is the ring edge residual, and the residual corresponding to the observation type of the point feature observation is the reprojection residual; the ring edge residual is the distance residual from the ring edge observation point to the predicted conic section.

8. The anti-occlusion detection and calibration method of claim 3, wherein, In step S6, the objective function is obtained by weighted summation of the point feature error term, the circular edge error term, and the regularization term of the frame-by-frame pose correction. Based on the effective observation set, nonlinear least squares solution is used to jointly optimize the camera parameters, distortion parameters, reference pose, system spatial mapping parameters, and frame-by-frame pose correction. The point feature error term uses the reprojection residual of the point feature observation as the error quantity, which is the difference between the pixel position of the point feature observation and its predicted position obtained by reprojection according to the current camera parameters and pose. The circular edge error term uses the circular edge residual of the circular edge observation as the error quantity, which is the Sampson distance from the circular edge observation point to the predicted conic section. The pose of each frame is determined by the reference pose, system spatial mapping parameters, and frame-by-frame pose correction.

9. The anti-occlusion detection and calibration method of claim 3, wherein, In step S7, the convergence condition includes at least one of the following: the change in camera parameters is less than a first threshold, the change in distortion parameters is less than a second threshold, the change in pose is less than a third threshold, the change in residual is less than a fourth threshold, the change in external trajectory evaluation error is less than a fifth threshold, and the condition is met continuously for a preset number of rounds.

10. An anti-occlusion detection and calibration system for an external composite target of a micro robot, characterized in that, It includes functional modules constructed by computer programs, the functional modules being configured to implement the anti-occlusion detection and calibration method as described in any one of claims 3 to 9.