Mobile ct alignment method, device and equipment based on double two-dimensional code

By leveraging weak pose information from dual QR codes and preset image plane offset priors, combined with multi-scale detection and temporal fusion, sustainable positioning and closed-loop alignment of mobile CT in complex environments were achieved. This solved the problem of automatic alignment failure caused by occlusion, low light, and jitter, and improved the success rate and robustness of mobile CT.

CN123159376APending Publication Date: 2026-11-24SAINUO WEISHENG SCI & TECH BEIJING
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202611147268.7
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2026-07-30
Publication Date
2026-11-24

AI Technical Summary

Technical Problem

In environments such as wards, ICUs, and emergency rooms, mobile CT scanners may encounter issues such as obstruction, low light, reflection, and vibration, leading to incomplete detection of QR code corner points. Existing technologies cannot effectively estimate pose, resulting in interruptions in the automatic alignment process.

Method used

A dual-QR code-based approach is adopted to obtain weak pose information, narrow the search range by using a pre-defined image plane offset prior relationship, perform multi-scale candidate detection and temporal fusion, extract local structural features, and achieve sustainable localization and closed-loop alignment.

Benefits of technology

It significantly improves the success rate and robustness of automatic alignment of mobile CT in complex scenarios such as occlusion, low light, and shaking, ensuring the stability and safety of positioning.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN123159376A_ABST
    Figure CN123159376A_ABST
Patent Text Reader

Abstract

The mobile CT alignment method, apparatus, and device based on dual QR codes provided in this disclosure include: acquiring a target image containing a first QR code and a second QR code; acquiring the number of corner points of the first QR code in the target image; when the number of corner points of the first QR code is less than a preset number of corner points, determining the weak pose information of the first QR code based on the position information of each positioning corner point in the target image; determining the region of interest (ROI) of the second QR code in the target image based on the weak pose information of the first QR code and a preset image plane offset prior relationship between the first QR code and the second QR code; performing multi-scale candidate detection on the second QR code within the ROI, extracting the local structural features of the second QR code, and determining a single-frame candidate score for the target image; performing temporal fusion on the single-frame candidate scores corresponding to the target image and calculating a comprehensive confidence score; and determining a translation and / or rotation operation when the comprehensive confidence score reaches a preset threshold.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This invention relates to the field of CT scanning technology and related technical fields, specifically to a mobile CT alignment method, apparatus, and device based on dual QR codes. Background Technology

[0002] When mobile CT (Computed Tomography) equipment is used in clinical settings such as wards, intensive care units (ICUs), and emergency rooms, automatic spatial alignment between the scanning gantry and the scanning bed is required before each scan. A visual positioning solution based on dual QR codes uses two fixed QR code labels on the equipment. After image recognition and pose calculation, the motion mechanism is driven to complete the automatic alignment.

[0003] However, mobile CT scanners operate in environments with distinct characteristics. In wards, ICUs, and emergency rooms, objects such as IV stands, monitors, and bed rails often obstruct the view, creating complex lighting conditions (including low light, glare, and shadows). Furthermore, equipment movement and operation inevitably involve vibration. These factors frequently result in the incomplete detection of corner points on the initial QR code—for example, a corner might be obscured by an IV tube, or a corner might be unrecognizable due to glare. Current technologies, when dealing with insufficient corner points on the initial QR code, typically use "successful decoding" or "complete corner point detection" as prerequisites for pose estimation. If the number of corner points is insufficient, positioning fails, interrupting the entire automatic alignment process, lacking the ability to estimate pose based on only partial corner points. Summary of the Invention

[0004] In view of this, the embodiments described herein provide a mobile CT alignment method based on dual QR codes, which improves the success rate of automatic alignment in mobile CT.

[0005] Firstly, according to the content of this disclosure, a mobile CT alignment method based on dual QR codes is provided, including: Acquire a target image containing a first QR code and a second QR code, wherein the first QR code and the second QR code are arranged on a mobile CT device according to a preset fixed external parameter relationship; The number of corner points of the first QR code in the target image is obtained. When the number of corner points of the first QR code is less than the preset number of corner points, the weak pose information of the first QR code is determined according to the position information of each positioning corner point in the target image. The weak pose information includes the center position, scale and / or rotation angle of the first QR code in the target image. Based on the weak pose information of the first QR code and the preset image plane offset prior relationship between the first QR code and the second QR code, the region of interest of the second QR code in the target image is determined. Within the region of interest, multi-scale candidate detection is performed on the second QR code to extract local structural features of the second QR code and determine the single-frame candidate score of the target image; Temporal fusion is performed on the single-frame candidate scores corresponding to the target image to calculate the comprehensive confidence level; When the overall confidence level reaches a preset threshold, the target center position, target scale, and target angle of the second QR code in the two-dimensional image coordinate system are determined based on the region of interest of the second QR code in the target image. Then, based on the target center position, target scale, and target angle and the actual center position, actual scale, and actual angle of the second QR code in the two-dimensional image coordinate system, translation and / or rotation operations are determined.

[0006] In some embodiments of this disclosure, obtaining the number of corner points of the first QR code in the target image includes: The target image is preprocessed, wherein the preprocessing includes distortion correction and / or contrast enhancement; Candidate detection is performed on the preprocessed target image, and the number of corner points of the first QR code is determined based on the candidate detection results. The candidate detection includes edge detection, connected component filtering, and / or corner template matching.

[0007] In some embodiments of this disclosure, determining the weak pose information of the first QR code based on the position information of each positioning corner point in the target image includes: Based on the position information of each positioning corner point in the target image, the circumscribed contour of the first QR code in the target image is determined; The center position of the first QR code is determined based on the circumscribed contour; The scale of the first QR code is calculated based on the boundary dimensions of the circumscribed contour; The rotation angle of the first QR code is calculated based on the direction of the target edge in the circumscribed contour.

[0008] In some embodiments of this disclosure, determining the region of interest (ROI) of the second QR code in the target image based on the weak pose information of the first QR code and a preset image plane offset prior relationship between the first QR code and the second QR code includes: Obtain a preset image plane offset prior relationship between the first QR code and the second QR code on a two-dimensional image plane, wherein the preset image plane offset prior relationship includes a preset relative offset and a preset scale ratio coefficient; The relative offset is determined based on the rotation angle of the first QR code and the preset relative offset. Based on the relative offset and the center position of the first QR code, predict the predicted center position of the second QR code; Based on the scale of the first QR code and a preset scale ratio coefficient, predict the scale of the second QR code. The region of interest of the second QR code is determined based on the predicted center location and the predicted scale.

[0009] In some embodiments of this disclosure, the step of performing multi-scale candidate detection on the second QR code within the region of interest, extracting local structural features of the second QR code, and determining a single-frame candidate score for the target image includes: Based on the image information of the region of interest, an image pyramid is constructed, and the image pyramid is sampled at multiple scales. Edge detection is performed on the sampled images at each scale to extract edge information; Based on the edge information, a connected component analysis is performed, and second candidate connected regions are selected according to geometric constraints. The geometric constraint score of each second candidate connected region is then determined. Local structure verification is performed on the selected second candidate connected regions, and a local structure verification score is determined for each second candidate connected region. The local structure verification includes Finder template matching and / or black and white rhythm feature matching. Based on the geometric constraint score and the local structure verification score, determine the single-frame candidate score for each of the second candidate connected regions; Based on the single-frame candidate scores of each of the second candidate connected regions, the single-frame candidate score with the highest score is selected as the single-frame candidate score of the target image.

[0010] In some embodiments of this disclosure, the step of performing temporal fusion on the single-frame candidate scores corresponding to the target image and calculating the comprehensive confidence score includes: The temporal score of the target image is determined using a Kalman filter or a particle filter. The overall confidence level of the target image is determined based on the single-frame candidate score corresponding to the target image and the temporal score.

[0011] In some embodiments of this disclosure, the method further includes: An alarm signal is issued when the overall confidence level of the target images in consecutive target frames is lower than a preset threshold.

[0012] In some embodiments of this disclosure, before obtaining the number of corner points of the first QR code in the target image, the method further includes: After the mobile CT equipment is assembled, multiple calibration images containing the first QR code and the second QR code are acquired; The pose information of the first QR code and the pose information of the second QR code are detected in the calibration image, respectively. Based on the pose information of the first QR code and the pose information of the second QR code, a preset image plane offset prior relationship between the first QR code and the second QR code on the two-dimensional image plane is determined.

[0013] Secondly, according to this disclosure, a mobile CT alignment device based on dual QR codes is provided, comprising: The target image acquisition module is used to acquire a target image containing a first QR code and a second QR code, wherein the first QR code and the second QR code are arranged on the mobile CT device according to a preset fixed external parameter relationship. The position information determination module is used to obtain the number of corner points of the first QR code in the target image. When the number of corner points of the first QR code is less than the preset number of corner points, the weak pose information of the first QR code is determined according to the position information of each positioning corner point in the target image. The weak pose information includes the center position, scale and / or rotation angle of the first QR code in the target image. The region of interest determination module is used to determine the region of interest of the second QR code in the target image based on the weak pose information of the first QR code and the preset image plane offset prior relationship between the first QR code and the second QR code. The candidate scoring determination module is used to perform multi-scale candidate detection on the second QR code within the region of interest, extract the local structural features of the second QR code, and determine the single-frame candidate score of the target image. The confidence calculation module is used to perform temporal fusion on the single-frame candidate scores corresponding to the target image and calculate the comprehensive confidence score. The alignment module is used to determine the target center position, target scale, and target angle of the second QR code in the two-dimensional image coordinate system based on the region of interest of the second QR code in the target image when the overall confidence level reaches a preset threshold, and to determine translation and / or rotation operations based on the target center position, target scale, and target angle and the actual center position, actual scale, and actual angle of the second QR code in the two-dimensional image coordinate system.

[0014] Thirdly, according to this disclosure, a computer device is provided, comprising: One or more processors; Storage device for storing one or more programs. When the one or more programs are executed by the one or more processors, the one or more processors implement the method as described in any of the first aspects.

[0015] Fourthly, according to this disclosure, a computer-readable storage medium is provided having a computer program stored thereon that, when executed by a processor, implements the methods described in any of the first aspects.

[0016] The mobile CT alignment method based on dual QR codes provided in this disclosure does not declare positioning failure when the first QR code fails to output a complete six-degree-of-freedom pose due to insufficient corner points caused by factors such as occlusion, low light, reflection, or jitter. Instead, it uses the detected partial corner point information to output weak pose information including center position, scale, and rotation angle. Based on this weak pose and combined with the preset offset and scale ratio priors of the first and second QR codes on the image plane, the region of interest of the second QR code is predicted through planar rotation transformation, thereby narrowing the search range from the entire image to a local area, solving the problem of lack of prior constraints in target search under weak observation conditions. Furthermore, the local structural features of the second QR code are effectively extracted through multi-scale candidate detection, and then through temporal fusion... The segment adaptive reduction of the current frame observation weight and the increase of the motion prediction weight effectively suppresses the interference of observation noise on positioning stability under weak pose reference. On this basis, when the comprehensive confidence level meets the standard, the center position deviation, scale deviation and angle deviation between the current image and the desired image are calculated based on the locked desired image features. Based on the center position deviation, scale deviation and angle deviation, the corresponding values ​​of translation and / or rotation operations required by the CT scanning equipment are determined, and the mobile CT equipment is controlled to perform alignment operations. This achieves sustainable positioning and closed-loop alignment without relying on complete pose in complex clinical situations where the first QR code corner points are insufficient. It significantly improves the success rate, robustness and clinical safety of mobile CT automatic alignment in scenarios such as occlusion, low light, reflection and jitter.

[0017] The above description is merely an overview of the technical solutions of the embodiments of this application. In order to better understand the technical means of the embodiments of this application and to implement them in accordance with the contents of the specification, and to make the above and other objects, features and advantages of the embodiments of this application more obvious and understandable, specific implementation methods of this application are described below. Attached Figure Description

[0018] To more clearly illustrate the technical solutions of the embodiments of this disclosure, the accompanying drawings of the embodiments will be briefly described below. It should be understood that the drawings described below only relate to some embodiments of this disclosure and are not intended to limit this disclosure, wherein: Figure 1 This is a flowchart illustrating a mobile CT alignment method based on dual QR codes provided in an embodiment of this disclosure; Figure 2 This is a schematic diagram of the structure of a mobile CT alignment device based on dual QR codes provided in an embodiment of this disclosure; Figure 3This is a schematic diagram of the structure of a computer device provided in an embodiment of this disclosure.

[0019] In the accompanying diagram, markers with the same last two digits correspond to the same elements. It should be noted that the elements in the diagram are schematic and not drawn to scale. Detailed Implementation

[0020] To make the objectives, technical solutions, and advantages of the embodiments of this disclosure clearer, the technical solutions of the embodiments of this disclosure will be clearly and completely described below with reference to the accompanying drawings. Obviously, the described embodiments are only some, not all, of the embodiments of this disclosure. All other embodiments obtained by those skilled in the art based on the described embodiments of this disclosure without creative effort are also within the scope of protection of this disclosure.

[0021] Unless otherwise defined, all terms used herein (including technical and scientific terms) shall have the same meaning as commonly understood by one of ordinary skill in the art to which this subject matter pertains. It will be further understood that terms such as those defined in commonly used dictionaries shall be interpreted as having the meaning consistent with their meaning in the context of the specification and in the relevant art, and shall not be interpreted in an idealized or overly formal form unless otherwise explicitly defined herein. As used herein, the statement of “connecting” or “coupling” two or more parts together shall mean that these parts are directly joined together or joined through one or more intermediate components.

[0022] The term "embodiment" as used herein means that a particular feature, structure, or characteristic described in connection with an embodiment may be included in at least one embodiment of this application. The appearance of the phrase "embodiment" in various places throughout the specification does not necessarily refer to the same embodiment, nor is it a separate or alternative embodiment mutually exclusive with other embodiments. It will be explicitly and implicitly understood by those skilled in the art that the embodiments described herein can be combined with other embodiments.

[0023] In this article, the terms "or" or "or" are merely a way of describing the relationship between related objects, indicating that there can be three kinds of relationships. For example, A or B can mean that only A exists, both A and B exist, or only B exists.

[0024] Furthermore, in all embodiments of this disclosure, terms such as “first” and “second” are used only to distinguish one component (or part of a component) from another component (or another part of a component).

[0025] In the description of this application, unless otherwise stated, "multiple" means two or more (including two), and similarly, "multiple groups" means two or more (including two groups).

[0026] To enable those skilled in the art to better understand the present application, the technical solutions in the embodiments of the present application will be clearly and completely described below with reference to the accompanying drawings.

[0027] In view of the problems existing in the prior art, this disclosure provides a mobile CT automatic alignment method based on dual QR codes. Figure 1 This is a flowchart illustrating an automatic alignment method for mobile CT based on dual QR codes provided in an embodiment of this disclosure, as shown below. Figure 1 As shown, the mobile CT automatic alignment method based on dual QR codes includes: S110. Obtain the target image containing the first QR code and the second QR code.

[0028] The first and second QR codes are arranged on the mobile CT device according to a preset fixed external parameter relationship.

[0029] One possible implementation involves placing a first QR code on the scanning gantry of a mobile CT scanner and a second QR code on the side of the scanning bed. The relative positions and orientations between the first and second QR codes are precisely calibrated at the factory to form a fixed extrinsic parameter relationship (including rotation matrix and translation vector). An image acquisition device (such as a monocular camera) is mounted on the scanning gantry to acquire target images containing the QR codes in real time.

[0030] S120. Obtain the number of corner points of the first QR code in the target image. When the number of corner points of the first QR code is less than the preset number of corner points, determine the weak pose information of the first QR code based on the position information of each positioning corner point in the target image.

[0031] The weak pose information includes the center position, scale, and / or rotation angle of the first QR code in the target image.

[0032] The preset number of corner points is four. When the number of corner points of the second QR code in the acquired target image is two or three, the weak pose information of the first QR code is determined based on the position information of each positioning corner point in the target image.

[0033] In a specific implementation, obtaining the number of corner points of the first QR code in the target image includes: preprocessing the target image, wherein the preprocessing includes distortion correction and / or contrast enhancement; performing candidate detection on the preprocessed target image, and determining the number of corner points of the first QR code based on the candidate detection results, wherein the candidate detection includes edge detection, connected component filtering and / or corner template matching.

[0034] After obtaining the target image containing the first QR code and the second QR code in step S110, the target image is first preprocessed. The preprocessing includes distortion correction and / or contrast enhancement. Distortion correction is performed based on the intrinsic parameter matrix and distortion parameters obtained from the offline calibration of the camera, and is used to correct the influence of the camera's lens radial distortion and tangential distortion on the geometric accuracy of the acquired target image.

[0035] After preprocessing the target image, candidate detection is performed on the preprocessed target image to determine the number of corner points of the first QR code based on the candidate detection results. The candidate detection includes edge detection, connected component filtering, and / or corner template matching.

[0036] Specifically, firstly, edge information and boundary information of the QR code in the preprocessed target image are extracted using an edge detection operator (such as the Canny operator). Then, connected component analysis is performed based on the edge information to determine multiple first initial connected regions. First candidate connected regions that conform to the geometric features of the first QR code are selected from the first initial connected regions. Finally, the image information of the positioning corner points of the first QR code is verified by positioning corner template matching.

[0037] In a specific implementation, extracting edge information from the preprocessed target image using an edge detection operator (such as the Canny operator) includes: first, smoothing the preprocessed target image using a Gaussian filter; then, calculating the gradient magnitude and gradient direction of each pixel in the smoothed target image using the Sobel operator; subsequently, performing non-maximum suppression on the gradient magnitude along the gradient direction of each pixel in the target image to obtain single-pixel edges; and finally, performing edge determination on the non-maximum suppressed target image using double-threshold hysteresis thresholding to generate a binary edge map.

[0038] In a specific implementation, the process of performing connected component analysis based on edge information to determine multiple first initial connected regions, and then selecting first candidate connected regions that conform to the geometric features of the first QR code from these first initial connected regions, includes: performing connected component analysis based on an edge binary map to determine multiple first initial connected regions; extracting the geometric features of each first initial connected region, including area, circumscribed rectangle size, rectangularity, aspect ratio, compactness, and / or convex hull ratio; comparing the geometric features of each first initial connected region with preset geometric features (e.g., a square); and eliminating connected regions whose geometric features do not meet the corresponding preset geometric features, thereby selecting first candidate connected regions that conform to the geometric features of the first QR code.

[0039] In the first candidate connected region after geometric feature constraint screening, the preset image information of the positioning corner points is used to match and verify whether each first candidate connected region contains the positioning corner point of the first QR code. The preset image information of the positioning corner point has significant structural features. When the QR code content is partially obscured, the preset image information of the positioning corner point can often still be identified. The preset image information of the positioning corner point has specific structural features: it consists of an outer black module (7×7), a middle white module (5×5), and an inner black module (3×3), with a black-white width ratio of 2:2:3:2:2.

[0040] Therefore, in a specific implementation, the process of verifying whether the first candidate connected region includes the positioning corner of the first QR code by matching the preset image information of the positioning corner includes: sliding a detection window with a preset step size within the outer rectangle of the first candidate connected region; extracting the binarized pattern within the detection window at each detection window position; performing pixel projection on the binarized pattern along the horizontal and vertical directions respectively to obtain the horizontal projection vector and the vertical projection vector; binarizing the horizontal projection vector and the vertical projection vector respectively, extracting the edge positions of alternating black and white, and calculating the black and white width ratio of each segment; when the black and white width ratios in both the horizontal and vertical directions satisfy the ratio of 2:2:3:2:2, it is determined that the detection window contains a positioning corner of the first QR code. Through the above method, it is sequentially determined whether each first candidate connected region is a positioning corner of the first QR code.

[0041] After determining the number of corner points of the first QR code based on the first candidate connected region, if the number of corner points of the first QR code is less than the preset number of corner points, then the weak pose information of the first QR code is determined based on the position information of each corner point in the target image.

[0042] In a specific implementation, determining the weak pose information of the first QR code based on the position information of each positioning corner point in the target image includes: determining the circumscribed contour of the first QR code in the target image based on the position information of each positioning corner point in the target image; determining the center position of the first QR code based on the circumscribed contour; calculating the scale of the first QR code based on the boundary dimensions of the circumscribed contour; and calculating the rotation angle of the first QR code based on the target edge direction in the circumscribed contour.

[0043] When determining the position information of each corner point in the target image, for example, after determining the position information of two or three corner points, the average coordinates of all detected corner points of the first QR code in the image coordinate system are first taken to obtain the center position of the first QR code. Then, the scale of the first QR code is calculated. Specifically, when there are three detected corner points of the first QR code, a fourth virtual corner point is completed using a square prior, and the average length of the four sides connected to the four corner points is calculated as the scale of the first QR code. When there are two adjacent corner points of the first QR code, the Euclidean distance between the two adjacent corner points is used as the scale of the first QR code. When there are two diagonal corner points of the first QR code, the distance between the diagonal corner points is divided by the square root of two as the scale of the first QR code. Then, the rotation angle of the first QR code is calculated. Specifically, based on the position information of any two adjacent corner points of the first QR code, the angle between the line segment connecting any two adjacent corner points and the horizontal axis of the two-dimensional image coordinate system is determined, which is the rotation angle of the first QR code.

[0044] S130. Based on the weak pose information of the first QR code and the preset image plane offset prior relationship between the first QR code and the second QR code, determine the region of interest of the second QR code in the target image.

[0045] In a specific implementation, the region of interest (ROI) of the second QR code in the target image is determined based on the weak pose information of the first QR code and a preset image plane offset prior relationship between the first and second QR codes. This includes: obtaining a preset image plane offset prior relationship between the first and second QR codes on a two-dimensional image plane, wherein the preset relative offset includes a preset relative offset and a preset scale ratio coefficient; determining a relative offset based on the rotation angle of the first QR code and the preset relative offset; predicting the predicted center position of the second QR code based on the relative offset and the center position of the first QR code; predicting the predicted scale of the second QR code based on the scale of the first QR code and the preset scale ratio coefficient; and determining the ROI of the second QR code based on the predicted center position and the predicted scale.

[0046] After obtaining the center position, rotation angle, and scale of the first QR code in the target image in step S120, the first QR code and the second QR code are first rotated to the target image pose by a preset relative offset on the two-dimensional image plane according to the rotation angle of the first QR code, wherein the relative offset satisfies: =

[0047] in, This is a preset relative offset between the first and second QR codes on the two-dimensional image plane. The rotation angle of the first QR code. This is the relative offset.

[0048] Then, the predicted center position of the second QR code is predicted based on the relative offset after rotation. At this time, the predicted center position of the second QR code satisfies: ( , )=( + , + ) in,( , () is the center position of the first QR code, ( , () represents the predicted center position of the second QR code.

[0049] Then, based on the scale of the first QR code and a preset scale ratio coefficient, the predicted scale of the second QR code is predicted. The predicted scale of the second QR code satisfies the following:

[0050] in, The size of the first QR code, The prediction scale for the second QR code. This is the preset scale ratio coefficient.

[0051] Finally, based on the predicted center location and prediction scale of the second QR code, the region of interest (ROI) of the second QR code is determined. Specifically, the region of interest is first determined based on the prediction scale. Using a preset magnification factor (ranging from 2.5 to 3.0, preferably 2.8) as the basic unit, the width and height of the region of interest (with the same width and height dimensions) of the second QR code are calculated. Then, the predicted center position of the second QR code is used as the basis for the calculation. , Using the geometric reference, the position information of two adjacent positioning corner points in the second QR code is determined. Finally, based on the position information of the two adjacent positioning corner points in the second QR code and the width or height of the region of interest of the second QR code, the region of interest of the second QR code is determined.

[0052] In the mobile CT alignment method based on dual QR codes provided in this embodiment, since the number of corner points of the first QR code in the acquired target image is less than the preset number of corner points, it is impossible to accurately determine the first transformation matrix of the first QR code from the three-dimensional world coordinate system to the two-dimensional image coordinate system. In this case, by acquiring the weak pose information of the first QR code, the region of interest (ROI) of the second QR code in the target image is determined based on this weak pose information. However, since errors accumulate when predicting the weak pose information of the first QR code—the estimation error of the weak pose itself and the calibration error of the first and second QR codes in the two-dimensional image coordinate system—if a small preset magnification factor is still used, the ROI may not include the complete second QR code. Therefore, the magnification factor is increased to 2.5 to 3.0 times.

[0053] Before this implementation method is executed, the method further includes: after the mobile CT device is assembled, acquiring a calibration image containing multiple first and second QR codes; detecting the pose information of the first and second QR codes in the calibration images respectively; and determining a preset image plane offset prior relationship between the first and second QR codes on the two-dimensional image plane based on the pose information of the first and second QR codes.

[0054] Specifically, after the mobile CT equipment is assembled, it is placed in a standard environment with no obstructions and good lighting to ensure that the first and second QR codes are within the field of view of the image acquisition device. Then, the image acquisition device (such as a camera) is controlled to take multiple (e.g., dozens to hundreds) calibration images from different distances and angles, each containing a clear and complete first and second QR codes. For each acquired calibration image, the complete pose information of the first and second QR codes in the calibration image is detected and obtained, including the center position, scale, and rotation angle. For each calibration image, the center position offset and scale ratio between the first and second QR codes are calculated. Then, the average of the center offset and scale ratio calculated for all calibration images is taken to obtain the preset prior relationship of the image plane offset between the first and second QR codes on the two-dimensional image plane.

[0055] S140. Within the region of interest, perform multi-scale candidate detection on the second QR code, extract the local structural features of the second QR code, and determine the single-frame candidate score of the target image.

[0056] In a specific implementation, within the region of interest, multi-scale candidate detection is performed on the second QR code to extract local structural features and determine the single-frame candidate score of the target image. This includes: constructing an image pyramid based on the image information of the region of interest, and performing multi-scale sampling on the image pyramid; performing edge detection on the sampled images at each scale and extracting edge information; performing connected component analysis based on the edge information, and filtering second candidate connected regions according to geometric constraints, and determining the geometric constraint score of each second candidate connected region; performing local structure verification on the filtered second candidate connected regions and determining the local structure verification score of each second candidate connected region, wherein the local structure verification includes Finder template matching and / or black and white rhythm feature matching; determining the single-frame candidate score of each second candidate connected region based on the geometric constraint score and the local structure verification score; and selecting the highest single-frame candidate score as the single-frame candidate score of the target image based on the single-frame candidate scores of each second candidate connected region.

[0057] After determining the region of interest (ROI) of the second QR code in step S130, a Gaussian pyramid construction strategy is first employed to construct an image pyramid. Specifically, the ROI image is used as the bottom layer G0 of the pyramid, and a preset scale factor α (preferably α=0.8) and total number of layers L are used. For the k-th layer image Gk, the previous layer Gk is first processed... 1. Perform Gaussian filtering to suppress high-frequency aliasing, then downsample or resample by a scale factor α to generate an image pyramid with decreasing resolution.

[0058] Then, contrast enhancement is performed on each image layer to overcome interference from low light and reflections. The Canny operator is used to calculate gradient magnitude and direction, and non-maximum suppression is applied to refine edges to a single pixel width. In the hysteresis thresholding stage, high and low thresholds are dynamically adjusted based on the scale factor of the current pyramid layer (higher resolution, higher threshold; lower resolution, lower threshold) to maintain the stability of edge response at different distances. After edge extraction, morphological closing operations are further used to connect and repair edge breaks caused by occlusion, forming multiple second initial connected regions.

[0059] Then, based on geometric constraints (generally a square), second candidate connected regions are selected from the second initial connected regions. The area deviation, aspect ratio deviation, and normalized position distance relative to the predicted center position of the second QR code are calculated for each second candidate connected region. Each index is mapped to a sub-score in the [0,1] interval. The five sub-scores are then weighted and fused according to preset weights to output the geometric constraint score of each second candidate connected region.

[0060] Among them, the area deviation of the second candidate connected region refers to the ratio of the area of ​​the formed second candidate connected region to the area of ​​the preset image information corresponding to the positioning corner point; the aspect ratio deviation of the second candidate connected region refers to the ratio of the aspect ratio of the formed second candidate connected region to the aspect ratio of the preset image information corresponding to the positioning corner point; and the normalized position distance of the second candidate connected region relative to the prediction center refers to the distance information between the center position of the second candidate connected region and the prediction center position of the second QR code in the two-dimensional image coordinate system. Based on the obtained area deviation, aspect ratio deviation, and normalized position distance relative to the prediction center of each second candidate connected region, the sub-scores and normalized sub-scores of the area deviation, aspect ratio deviation, and normalized position distance relative to the prediction center of each second candidate connected region are determined.

[0061] Finally, the horizontal and vertical grayscale projection sequences within the second candidate connected regions are extracted to check whether they satisfy the black-and-white width ratio of 2:2:3:2:2. The local structure verification score of each second candidate connected region is determined, and the single-frame candidate score of each second candidate connected region is determined based on the geometric constraint score and the local structure verification score. Finally, the single-frame candidate score with the highest single-frame candidate score is selected as the single-frame candidate score of the target image.

[0062] S150. Perform temporal fusion on the candidate scores of the single frame corresponding to the target image and calculate the comprehensive confidence level.

[0063] In a specific implementation, temporal fusion is performed on the single-frame candidate scores corresponding to the target image to calculate the comprehensive confidence level, including: using a Kalman filter or a particle filter to determine the temporal score of the target image; and determining the comprehensive confidence level of the target image based on the single-frame candidate scores and the temporal scores corresponding to the target image.

[0064] Since there are multiple second candidate connected regions determined in step S140, and the center position, scale and orientation of different second candidate connected regions are different, it is necessary to determine which second candidate connected region is the second QR code trajectory. At this time, by comparing the relationship between the center position and orientation of each second candidate connected region and the center position and orientation of the target image, the temporal score of each second candidate connected region is determined, and finally the one with the highest temporal score is selected as the temporal score of the target image.

[0065] Finally, the overall confidence level of the target image is determined by weighting the single-frame candidate scores and temporal scores corresponding to the target image.

[0066] S160. When the overall confidence level reaches a preset threshold, the target center position, target scale, and target angle of the second QR code in the two-dimensional image coordinate system are determined based on the region of interest of the second QR code in the target image. The translation and / or rotation operations are determined based on the target center position, target scale, and target angle and the actual center position, actual scale, and actual angle of the second QR code in the two-dimensional image coordinate system.

[0067] The actual center position, actual scale, and actual angle of the second QR code in the two-dimensional image coordinate system are the center position, scale, and angle of the second QR code in the acquired target image.

[0068] When the overall confidence level reaches a preset threshold, it indicates that the predicted center position and predicted scale of the second QR code, based on the weak pose information of the first QR code and the preset prior relationship of image plane offset between the first and second QR codes, are accurate. That is, the predicted center position and predicted scale of the second QR code are used as the target center position and target scale. At this time, based on the target center position and target scale of the second QR code, the target angle of the second QR code in the two-dimensional image coordinate system can be determined. Based on the acquired target image, the actual center position, actual scale, and actual angle of the second QR code in the two-dimensional image coordinate system can be obtained. By calculating the center position difference between the target center position and the actual center position, the scale difference between the target scale and the actual scale, and the angle difference between the target angle and the actual angle, the corresponding values ​​of the translation and / or rotation operations required by the CT scanning equipment are determined, and the moving CT equipment is controlled to perform alignment operations.

[0069] It should be noted that, in this process, based on the target center position and target scale of the second QR code, the target angle of the second QR code in the two-dimensional image coordinate system can be determined. This includes: based on the target center position and target scale of the second QR code, the target position information of the four positioning corner points of the second QR code can be determined; and the angle between the line segment determined by the target coordinate information of any two adjacent positioning corner points of the second QR code and the horizontal axis of the two-dimensional image coordinate system is obtained, which is the target rotation angle of the second QR code.

[0070] Based on the above embodiments, in some embodiments of this disclosure, an alarm signal is issued when the overall confidence level of the target images of consecutive target frames is lower than a preset threshold.

[0071] The mobile CT alignment method based on dual QR codes provided in this disclosure does not declare positioning failure when the first QR code fails to output a complete six-degree-of-freedom pose due to insufficient corner points caused by factors such as occlusion, low light, reflection, or jitter. Instead, it uses the detected partial corner point information to output weak pose information including center position, scale, and rotation angle. Based on this weak pose and combined with the preset offset and scale ratio priors of the first and second QR codes on the image plane, the region of interest of the second QR code is predicted through planar rotation transformation, thereby narrowing the search range from the entire image to a local area, solving the problem of lack of prior constraints in target search under weak observation conditions. Furthermore, the local structural features of the second QR code are effectively extracted through multi-scale candidate detection, and then through temporal fusion... The segment adaptive reduction of the current frame observation weight and the increase of the motion prediction weight effectively suppresses the interference of observation noise on positioning stability under weak pose reference. On this basis, when the comprehensive confidence level meets the standard, the center position deviation, scale deviation and angle deviation between the current image and the desired image are calculated based on the locked desired image features. Based on the center position deviation, scale deviation and angle deviation, the corresponding values ​​of translation and / or rotation operations required by the CT scanning equipment are determined, and the mobile CT equipment is controlled to perform alignment operations. This achieves sustainable positioning and closed-loop alignment without relying on complete pose in complex clinical situations where the first QR code corner points are insufficient. It significantly improves the success rate, robustness and clinical safety of mobile CT automatic alignment in scenarios such as occlusion, low light, reflection and jitter.

[0072] Based on the above embodiments, this disclosure also provides a mobile CT alignment device based on dual QR codes. Figure 2 This is a schematic diagram of the structure of a mobile CT alignment device based on dual QR codes provided in an embodiment of this disclosure, as shown below. Figure 2 As shown, the mobile CT alignment device based on dual QR codes includes: The target image acquisition module 210 is used to acquire a target image containing a first QR code and a second QR code, wherein the first QR code and the second QR code are arranged on the mobile CT device according to a preset fixed external parameter relationship. The position information determination module 220 is used to obtain the number of corner points of the first QR code in the target image. When the number of corner points of the first QR code is less than the preset number of corner points, the weak pose information of the first QR code is determined according to the position information of each positioning corner point in the target image. The weak pose information includes the center position, scale and / or rotation angle of the first QR code in the target image. The region of interest determination module 230 is used to determine the region of interest of the second QR code in the target image based on the weak pose information of the first QR code and the preset image plane offset prior relationship between the first QR code and the second QR code. The candidate scoring determination module 240 is used to perform multi-scale candidate detection on the second QR code within the region of interest, extract the local structural features of the second QR code, and determine the single-frame candidate score of the target image. The confidence calculation module 250 is used to perform temporal fusion of the candidate scores of a single frame corresponding to the target image and calculate the comprehensive confidence. Alignment module 260 is used to determine the target center position, target scale, and target angle of the second QR code in the two-dimensional image coordinate system based on the region of interest of the second QR code in the target image when the overall confidence level reaches a preset threshold, and to determine translation and / or rotation operations based on the target center position, target scale, and target angle and the actual center position, actual scale, and actual angle of the second QR code in the two-dimensional image coordinate system.

[0073] The mobile CT alignment device based on dual QR codes provided in this embodiment does not declare positioning failure when the first QR code is unable to output a complete six-degree-of-freedom pose due to insufficient corner points caused by factors such as occlusion, low light, reflection, or jitter. Instead, it uses the detected partial corner point information to output weak pose information including center position, scale, and rotation angle. Based on this weak pose and combined with the preset offset and scale ratio priors of the first and second QR codes on the image plane, the region of interest of the second QR code is predicted through planar rotation transformation, thereby narrowing the search range from the entire image to a local area, solving the problem of lack of prior constraints in target search under weak observation conditions. Furthermore, the local structural features of the second QR code are effectively extracted through multi-scale candidate detection, and then through temporal fusion... The segment adaptive reduction of the current frame observation weight and the increase of the motion prediction weight effectively suppresses the interference of observation noise on positioning stability under weak pose reference. On this basis, when the comprehensive confidence level meets the standard, the center position deviation, scale deviation and angle deviation between the current image and the desired image are calculated based on the locked desired image features. Based on the center position deviation, scale deviation and angle deviation, the corresponding values ​​of translation and / or rotation operations required by the CT scanning equipment are determined, and the mobile CT equipment is controlled to perform alignment operations. This achieves sustainable positioning and closed-loop alignment without relying on complete pose in complex clinical situations where the first QR code corner points are insufficient. It significantly improves the success rate, robustness and clinical safety of mobile CT automatic alignment in scenarios such as occlusion, low light, reflection and jitter.

[0074] In some embodiments of this disclosure, obtaining the number of corner points of the first QR code in the target image includes: The target image is preprocessed, wherein the preprocessing includes distortion correction and / or contrast enhancement; Candidate detection is performed on the preprocessed target image, and the number of corner points of the first QR code is determined based on the candidate detection results. The candidate detection includes edge detection, connected component filtering, and / or corner template matching.

[0075] In some embodiments of this disclosure, determining the weak pose information of the first QR code based on the position information of each positioning corner point in the target image includes: Based on the position information of each positioning corner point in the target image, the circumscribed contour of the first QR code in the target image is determined; The center position of the first QR code is determined based on the circumscribed contour; The scale of the first QR code is calculated based on the boundary dimensions of the circumscribed contour; The rotation angle of the first QR code is calculated based on the direction of the target edge in the circumscribed contour.

[0076] In some embodiments of this disclosure, determining the region of interest (ROI) of the second QR code in the target image based on the weak pose information of the first QR code and a preset image plane offset prior relationship between the first QR code and the second QR code includes: Obtain a preset image plane offset prior relationship between the first QR code and the second QR code on a two-dimensional image plane, wherein the preset image plane offset prior relationship includes a preset relative offset and a preset scale ratio coefficient; The relative offset is determined based on the rotation angle of the first QR code and the preset relative offset. Based on the relative offset and the center position of the first QR code, predict the predicted center position of the second QR code; Based on the scale of the first QR code and a preset scale ratio coefficient, predict the scale of the second QR code. The region of interest of the second QR code is determined based on the predicted center location and the predicted scale.

[0077] In some embodiments of this disclosure, the step of performing multi-scale candidate detection on the second QR code within the region of interest, extracting local structural features of the second QR code, and determining a single-frame candidate score for the target image includes: Based on the image information of the region of interest, an image pyramid is constructed, and the image pyramid is sampled at multiple scales. Edge detection is performed on the sampled images at each scale to extract edge information; Based on the edge information, a connected component analysis is performed, and second candidate connected regions are selected according to geometric constraints. The geometric constraint score of each second candidate connected region is then determined. Local structure verification is performed on the selected second candidate connected regions, and a local structure verification score is determined for each second candidate connected region. The local structure verification includes Finder template matching and / or black and white rhythm feature matching. Based on the geometric constraint score and the local structure verification score, determine the single-frame candidate score for each of the second candidate connected regions; Based on the single-frame candidate scores of each of the second candidate connected regions, the single-frame candidate score with the highest score is selected as the single-frame candidate score of the target image.

[0078] In some embodiments of this disclosure, the step of performing temporal fusion on the single-frame candidate scores corresponding to the target image and calculating the comprehensive confidence score includes: The temporal score of the target image is determined using a Kalman filter or a particle filter. The overall confidence level of the target image is determined based on the single-frame candidate score corresponding to the target image and the temporal score.

[0079] In some embodiments of this disclosure, the method further includes: An alarm signal is issued when the overall confidence level of the target images in consecutive target frames is lower than a preset threshold.

[0080] In some embodiments of this disclosure, before obtaining the number of corner points of the first QR code in the target image, the method further includes: After the mobile CT equipment is assembled, multiple calibration images containing the first QR code and the second QR code are acquired; The pose information of the first QR code and the pose information of the second QR code are detected in the calibration image, respectively. Based on the pose information of the first QR code and the pose information of the second QR code, a preset image plane offset prior relationship between the first QR code and the second QR code on the two-dimensional image plane is determined.

[0081] This application also provides a computer device, please refer to 3 for details. Figure 3 This is a basic structural block diagram of the computer device in this embodiment.

[0082] The computer device includes a memory 510 and a processor 520 that are interconnected via a system bus. It should be noted that only a computer device with components 510-520 is shown in the figure; however, it should be understood that it is not required to implement all the shown components, and more or fewer components may be implemented alternatively. Those skilled in the art will understand that the computer device described herein is a device capable of automatically performing numerical calculations and / or information processing according to pre-set or stored instructions, and its hardware includes, but is not limited to, microprocessors, application-specific integrated circuits (ASICs), field-programmable gate arrays (FPGAs), digital signal processors (DSPs), embedded devices, etc.

[0083] Computer devices can include desktop computers, laptops, handheld computers, and cloud servers. These devices allow for human-computer interaction with users through keyboards, mice, remote controls, touchpads, or voice-activated devices.

[0084] The memory 510 includes at least one type of readable storage medium, including non-volatile memory or volatile memory, such as flash memory, hard disk, multimedia card, card-type memory (e.g., SD or DX memory), random access memory (RAM), read-only memory (ROM), erasable programmable read-only memory (EPROM), electrically erasable programmable read-only memory (EEPROM), programmable read-only memory (PROM), magnetic memory, magnetic disk, optical disk, etc. RAM may include static RAM or dynamic RAM. In some embodiments, the memory 510 may be an internal storage unit of a computer device, such as the hard disk or memory of the computer device. In other embodiments, the memory 510 may also be an external storage device of the computer device, such as a plug-in hard disk, smart media card (SMC), secure digital (SD) card, or flash card equipped on the computer device. Of course, the memory 510 may include both internal storage units and external storage devices of the computer device. In this embodiment, the memory 510 is typically used to store the operating system and various application software installed on the computer device, such as the program code of the method described above. In addition, the memory 510 may also be used to temporarily store various types of data that have been output or will be output.

[0085] The processor 520 is typically used to perform the overall operation of a computer device. In this embodiment, the memory 510 is used to store program code or instructions, including computer operation instructions. The processor 520 is used to execute the program code or instructions stored in the memory 510 or to process data, such as program code that runs the methods described above.

[0086] In this article, the bus can be an Industry Standard Architecture (ISA) bus, a Peripheral Component Interconnect (PCI) bus, or an Extended Industry Standard Architecture (EISA) bus, etc. This bus system can be divided into address bus, data bus, control bus, etc. For ease of illustration, only one thick line is used to represent it in the diagram, but this does not mean that there is only one bus or one type of bus.

[0087] Another embodiment of this application also provides a computer-readable medium, which may be a computer-readable signal medium or a computer-readable medium. A processor in a computer reads computer-readable program code stored in the computer-readable medium, enabling the processor to execute the functional actions specified in each step or combination of steps in the above method; and to generate means for implementing the functional actions specified in each block or combination of blocks in the block diagram.

[0088] Computer-readable media include, but are not limited to, electronic, magnetic, optical, electromagnetic, infrared memory or semiconductor systems, devices or apparatuses, or any suitable combination thereof, wherein the memory is used to store program code or instructions, the program code including computer operation instructions, and the processor is used to execute the program code or instructions of the above-described methods stored in the memory.

[0089] The definitions of memory and processor can be found in the description of the foregoing computer device embodiments, and will not be repeated here.

[0090] In the several embodiments provided in this application, it should be understood that the disclosed systems, apparatuses, and methods can be implemented in other ways. For example, the apparatus embodiments described above are merely illustrative; for instance, the division of modules or units is only a logical functional division, and in actual implementation, there may be other division methods. For example, multiple units or components may be combined or integrated into another system, or some features may be ignored or not executed. Furthermore, the coupling or direct coupling or communication connection shown or discussed may be through some interfaces; the indirect coupling or communication connection between apparatuses or units may be electrical, mechanical, or other forms.

[0091] In the various embodiments of this application, the functional units or modules can be integrated into one processing unit, or each unit can exist physically separately, or two or more units can be integrated into one unit. The integrated unit can be implemented in hardware or as a software functional unit.

[0092] If the integrated unit is implemented as a software functional unit and sold or used as an independent product, it can be stored in a computer-readable storage medium. Based on this understanding, the technical solution of this application, in essence, or the part that contributes to the prior art, or all or part of the technical solution, can be embodied in the form of a software product. This computer software product is stored in a storage medium and includes several instructions to cause a computer device (which may be a personal computer, server, or network device, etc.) or processor to execute all or part of the steps of the methods of the various embodiments of this application. The aforementioned storage medium includes various media capable of storing program code, such as USB flash drives, portable hard drives, read-only memory (ROM), random access memory (RAM), magnetic disks, or optical disks.

[0093] Unless otherwise expressly indicated by the context, the singular form of words used herein and in the appended claims includes the plural form, and vice versa. Thus, when referring to the singular, the plural form of the corresponding term is generally included. Similarly, the terms “comprising” and “including” shall be interpreted as including rather than exclusively. Likewise, the terms “including” and “or” shall be interpreted as including unless such interpretation is expressly prohibited herein. Where the term “example” is used herein, particularly when it follows a set of terms, the “example” is merely exemplary and illustrative and should not be considered exclusive or extensive.

[0094] Further aspects and scope of adaptation become apparent from the description provided herein. It should be understood that various aspects of this application may be implemented individually or in combination with one or more other aspects. It should also be understood that the descriptions and specific embodiments herein are for illustrative purposes only and are not intended to limit the scope of this application.

[0095] Several embodiments of this disclosure have been described in detail above. However, it is obvious that those skilled in the art can make various modifications and variations to the embodiments of this disclosure without departing from the spirit and scope of this disclosure. The scope of protection of this disclosure is defined by the appended claims.

Claims

1. A mobile CT alignment method based on double two-dimensional code, characterized in that, include: Acquire a target image containing a first QR code and a second QR code, wherein the first QR code and the second QR code are arranged on a mobile CT device according to a preset fixed external parameter relationship; The number of corner points of the first QR code in the target image is obtained. When the number of corner points of the first QR code is less than the preset number of corner points, the weak pose information of the first QR code is determined according to the position information of each positioning corner point in the target image. The weak pose information includes the center position, scale and / or rotation angle of the first QR code in the target image. Based on the weak pose information of the first QR code and the preset image plane offset prior relationship between the first QR code and the second QR code, the region of interest of the second QR code in the target image is determined. Within the region of interest, multi-scale candidate detection is performed on the second QR code to extract local structural features of the second QR code and determine the single-frame candidate score of the target image; Temporal fusion is performed on the single-frame candidate scores corresponding to the target image to calculate the comprehensive confidence level; When the overall confidence level reaches a preset threshold, the target center position, target scale, and target angle of the second QR code in the two-dimensional image coordinate system are determined based on the region of interest of the second QR code in the target image. Then, based on the target center position, target scale, and target angle and the actual center position, actual scale, and actual angle of the second QR code in the two-dimensional image coordinate system, translation and / or rotation operations are determined.

2. The method of claim 1, wherein, The step of obtaining the number of corner points of the first QR code in the target image includes: The target image is preprocessed, wherein the preprocessing includes distortion correction and / or contrast enhancement; Candidate detection is performed on the preprocessed target image, and the number of corner points of the first QR code is determined based on the candidate detection results. The candidate detection includes edge detection, connected component filtering, and / or corner template matching.

3. The method according to claim 1, characterized in that, The step of determining the weak pose information of the first QR code based on the position information of each positioning corner point in the target image includes: Based on the position information of each positioning corner point in the target image, the circumscribed contour of the first QR code in the target image is determined; The center position of the first QR code is determined based on the circumscribed contour; The scale of the first QR code is calculated based on the boundary dimensions of the circumscribed contour; The rotation angle of the first QR code is calculated based on the direction of the target edge in the circumscribed contour.

4. The method according to claim 1, characterized in that, The step of determining the region of interest (ROI) of the second QR code in the target image based on the weak pose information of the first QR code and the preset image plane offset prior relationship between the first QR code and the second QR code includes: Obtain a preset image plane offset prior relationship between the first QR code and the second QR code on a two-dimensional image plane, wherein the preset image plane offset prior relationship includes a preset relative offset and a preset scale ratio coefficient; The relative offset is determined based on the rotation angle of the first QR code and the preset relative offset. Based on the relative offset and the center position of the first QR code, predict the predicted center position of the second QR code; Based on the scale of the first QR code and a preset scale ratio coefficient, predict the scale of the second QR code. The region of interest of the second QR code is determined based on the predicted center location and the predicted scale.

5. The method according to claim 1, characterized in that, The step of performing multi-scale candidate detection on the second QR code within the region of interest, extracting local structural features of the second QR code, and determining single-frame candidate scores for the target image includes: Based on the image information of the region of interest, an image pyramid is constructed, and the image pyramid is sampled at multiple scales. Edge detection is performed on the sampled images at each scale to extract edge information; Based on the edge information, a connected component analysis is performed, and second candidate connected regions are selected according to geometric constraints. The geometric constraint score of each second candidate connected region is then determined. Local structure verification is performed on the selected second candidate connected regions, and a local structure verification score is determined for each second candidate connected region. The local structure verification includes Finder template matching and / or black and white rhythm feature matching. Based on the geometric constraint score and the local structure verification score, determine the single-frame candidate score for each of the second candidate connected regions; Based on the single-frame candidate scores of each of the second candidate connected regions, the single-frame candidate score with the highest score is selected as the single-frame candidate score of the target image.

6. The method according to claim 1, characterized in that, The step of performing temporal fusion on the single-frame candidate scores corresponding to the target image and calculating the comprehensive confidence score includes: The temporal score of the target image is determined using a Kalman filter or a particle filter. The overall confidence level of the target image is determined based on the single-frame candidate score corresponding to the target image and the temporal score.

7. The method according to claim 1, characterized in that, The method further includes: An alarm signal is issued when the overall confidence level of the target images in consecutive target frames is lower than a preset threshold.

8. The method according to claim 1, characterized in that, Before obtaining the number of corner points of the first QR code in the target image, the method further includes: After the mobile CT equipment is assembled, multiple calibration images containing the first QR code and the second QR code are acquired; The pose information of the first QR code and the pose information of the second QR code are detected in the calibration image, respectively. Based on the pose information of the first QR code and the pose information of the second QR code, a preset image plane offset prior relationship between the first QR code and the second QR code on the two-dimensional image plane is determined.

9. A mobile CT alignment device based on dual QR codes, characterized in that, include: The target image acquisition module is used to acquire a target image containing a first QR code and a second QR code, wherein the first QR code and the second QR code are arranged on the mobile CT device according to a preset fixed external parameter relationship. The position information determination module is used to obtain the number of corner points of the first QR code in the target image. When the number of corner points of the first QR code is less than the preset number of corner points, the weak pose information of the first QR code is determined according to the position information of each positioning corner point in the target image. The weak pose information includes the center position, scale and / or rotation angle of the first QR code in the target image. The region of interest determination module is used to determine the region of interest of the second QR code in the target image based on the weak pose information of the first QR code and the preset image plane offset prior relationship between the first QR code and the second QR code. The candidate scoring determination module is used to perform multi-scale candidate detection on the second QR code within the region of interest, extract the local structural features of the second QR code, and determine the single-frame candidate score of the target image. The confidence calculation module is used to perform temporal fusion on the single-frame candidate scores corresponding to the target image and calculate the comprehensive confidence score. The alignment module is used to determine the target center position, target scale, and target angle of the second QR code in the two-dimensional image coordinate system based on the region of interest of the second QR code in the target image when the overall confidence level reaches a preset threshold, and to determine translation and / or rotation operations based on the target center position, target scale, and target angle and the actual center position, actual scale, and actual angle of the second QR code in the two-dimensional image coordinate system.

10. A computer device, characterized in that, include: One or more processors; Storage device for storing one or more programs. When the one or more programs are executed by the one or more processors, the one or more processors implement the method as described in any one of claims 1 to 8.