Registration method, registration component, electronic device and readable storage medium

By setting marking points and recognition patterns on the registration tooling and combining the camera to obtain image data, the problem of inconsistent accuracy between the positioning device and the positioning target is solved, and a high-precision conversion relationship and a flexible registration method are achieved, which is suitable for positioning targets of different shapes.

CN119992034BActive Publication Date: 2025-09-26BEIJING GALAXY CIRCUMFERENCE TECH CO LTD
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
CN202311472734.5
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2023-11-07
Publication Date
2025-09-26
Estimated Expiration
2043-11-07

AI Technical Summary

Technical Problem

In the case where the positioning device and the positioning target are made of plastic or resin, the processing technology and the structural design accuracy are inconsistent, resulting in poor conversion relationship accuracy and the introduction of large errors.

Method used

By setting a first marking point and an identification pattern on the registration tooling, and setting a second marking point and an identification pattern on the positioning target, using a camera to obtain image data, determining the conversion relationship between the positioning target and the positioning device, and using metal materials to manufacture the registration tooling to improve accuracy.

Benefits of technology

It reduces the accuracy problem introduced by tooling parameters, achieves high-precision conversion relationships, improves the flexibility and efficiency of the registration method, is suitable for positioning targets of different shapes, and eliminates the problem of poor processing accuracy of plastics or resins.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119992034B_ABST
    Figure CN119992034B_ABST
Patent Text Reader

Abstract

The present invention discloses a registration method, a registration component, an electronic device, and a readable storage medium, belonging to the field of computer processing technology. The registration method includes: setting a first marking point and a first recognition pattern on a registration tool, and determining spatial data of the first marking point; setting a second marking point and a positioning device on a positioning target, and determining spatial data of the second marking point, wherein the positioning device includes a second recognition pattern; acquiring image data through a camera, and determining spatial data of the first recognition pattern and a second recognition pattern based on the image data; and determining first conversion data between the spatial data of the positioning target and the spatial data of the positioning device based on the spatial data of the first recognition pattern and the second recognition pattern, the spatial data of the first marking point, and the spatial data of the second marking point.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the field of computer processing technology, and in particular to a registration method, a registration component, an electronic device and a readable storage medium. Background Art

[0002] The registration process is to obtain the conversion relationship between one coordinate system and another coordinate system through a certain algorithm.

[0003] When using a camera to locate the positioning target, the position and posture of the positioning device on the positioning target is always obtained through the camera's image data, and then the positioning target and the positioning device are processed by tooling, and the conversion relationship between the coordinate system of the positioning target and the coordinate system of the positioning device is obtained through the tooling parameters.

[0004] However, in some cases, both the positioning device and the positioning target can only be made of plastic or resin. Based on this, due to the limitations of the manufacturing materials, the processing technology of the positioning device and the multiple processing steps of the integrated processing of the positioning target and positioning device often lead to processing accuracy not matching the structural design accuracy, resulting in large errors in the use of processing parameters (for example, errors of 1-2mm). As a result, the conversion relationship between the positioning target and the positioning device obtained through tooling parameters will not be accurate enough, introducing large errors in the subsequent positioning and navigation process. Summary of the Invention

[0005] In order to solve at least one aspect of the above-mentioned problems and defects in the prior art, an embodiment of the present invention provides a registration method, a registration component, an electronic device and a readable storage medium to solve the problem of poor accuracy in determining conversion relationships through tooling parameters.

[0006] An object of the present invention is to provide a registration method.

[0007] Another object of the present invention is to provide a registration component.

[0008] Another object of the present invention is to provide an electronic device.

[0009] Another object of the present invention is to provide a readable storage medium.

[0010] According to one aspect of the present invention, there is provided a registration method, comprising:

[0011] Setting a first marking point and a first recognition pattern on the registration tool, and determining spatial data of the first marking point;

[0012] Setting a second marking point and a positioning device on the positioning target and determining spatial data of the second marking point, wherein the positioning device includes a second recognition pattern;

[0013] Image data is acquired through a camera, and spatial data of a first recognition pattern and spatial data of a second recognition pattern are determined based on the image data; first conversion data between the spatial data of the positioning target and the spatial data of the positioning device are determined based on the spatial data of the first recognition pattern, the spatial data of the second recognition pattern, the spatial data of the first marking point, and the spatial data of the second marking point.

[0014] In some embodiments, acquiring image data through a camera and determining spatial data of the first recognition pattern and spatial data of the second recognition pattern based on the image data includes:

[0015] Aligning a first marking point of the registration tool with a second marking point of the positioning target, acquiring image data of the first marking point and the second marking point when the first marking point and the second marking point are aligned through a camera, and acquiring spatial data of a first recognition pattern and a second recognition pattern when the first marking point and the second marking point are aligned through the image data;

[0016] Determining first conversion data between spatial data of the positioning target and spatial data of the positioning device based on spatial data of the first recognition pattern, spatial data of the second recognition pattern, spatial data of the first marking point, and spatial data of the second marking point includes:

[0017] Converting the spatial data of the first marking point into spatial data in a second recognition pattern coordinate system of the positioning device based on the spatial data of the first recognition pattern and the spatial data of the second recognition pattern;

[0018] The first conversion data between the spatial data of the positioning target and the spatial data of the positioning device is determined based on the spatial data in the second recognition pattern coordinate system and the spatial data of the second marking point.

[0019] In some embodiments, the spatial data of the first marking point includes the position coordinates of the first marking point in the first recognition pattern coordinate system;

[0020] The spatial data of the second marking point includes the position coordinates of the second marking point in the positioning target coordinate system;

[0021] The spatial data of the first recognition pattern includes a posture matrix of the first recognition pattern;

[0022] The spatial data of the second recognition pattern includes a posture matrix of the second recognition pattern.

[0023] In some embodiments, the registration tooling includes a registration plate,

[0024] The first marking point includes at least one first marking point, and the second marking point includes at least one second marking point.

[0025] The number of at least one first marking point on the registration plate is the same as the number of at least one second marking point on the positioning target, the at least one first marking point is set corresponding to the at least one second marking point, and the second conversion data between the position coordinates of the at least one first marking point in the first recognition pattern coordinate system and the position coordinates of the at least one second marking point in the positioning target coordinate system is determined.

[0026] In some embodiments, converting the spatial data of the first marking point into spatial data in the second recognition pattern coordinate system of the positioning device includes:

[0027] Determine the position coordinates of the at least one first marking point in the camera coordinate system using the position coordinates of the at least one first marking point in the first recognition pattern coordinate system and the posture matrix of the first recognition pattern;

[0028] The position coordinates of at least one second marking point in the second recognition pattern coordinate system are determined using the position coordinates of the at least one first marking point in the camera coordinate system, the posture matrix of the second recognition pattern, and the second conversion data.

[0029] In some embodiments, determining first conversion data between the spatial data of the positioning target and the spatial data of the positioning device includes:

[0030] The first conversion data is determined using the position coordinates of the at least one second marking point in the second recognition pattern coordinate system and the position coordinates of the at least one second marking point in the positioning target coordinate system.

[0031] In some embodiments, aligning the first marking point of the registration tool with the second marking point of the positioning target includes: placing the registration tool on the positioning target and aligning each first marking point with each corresponding second marking point,

[0032] The first marking point and the second marking point are respectively set as a concave point and a convex point that can match each other.

[0033] In some embodiments, the registration tool includes a registration pen, the registration pen is provided with a pen tip, and the spatial data of the first marking point includes the position coordinates of the pen tip in the first recognition pattern coordinate system.

[0034] The second marking point includes at least one second marking point,

[0035] Aligning the first marking point of the registration tool with the second marking point of the positioning target includes placing the tip of the registration pen at all the second marking points in at least one second marking point.

[0036] In some embodiments, converting the spatial data of the first marking point into spatial data in the second recognition pattern coordinate system of the positioning device includes:

[0037] When the pen tip is placed at one of the at least one second marking points,

[0038] Determine the position coordinates of the pen tip in the camera coordinate system using the position coordinates of the pen tip in the first recognition pattern coordinate system and the posture matrix of the first recognition pattern acquired by the camera when the pen tip is placed at the one second marking point;

[0039] Determine the position coordinates of the pen tip in the second recognition pattern coordinate system using the position coordinates of the pen tip in the camera coordinate system and the posture matrix of the second recognition pattern acquired by the camera when the pen tip is placed at the second marking point,

[0040] When the pen tip is placed at another second marking point among the at least one second marking point, the above process is repeated until the position coordinates of the pen tip in the second recognition pattern coordinate system are determined when the pen tip is located at all the second marking points.

[0041] In some embodiments, determining first conversion data between the spatial data of the positioning target and the spatial data of the positioning device includes:

[0042] The first conversion data is determined using the position coordinates of the pen tip in the positioning target coordinate system when the pen tip is located at all the second marking points and the position coordinates of the pen tip in the second recognition pattern coordinate system when the pen tip is located at all the second marking points.

[0043] In some embodiments, the second marking point is located on the active surface of the positioning target.

[0044] The registration tooling is machined from metal materials.

[0045] In some embodiments, the registration method further includes:

[0046] Determining a first reference area surrounding the first recognition pattern of the registration tool and the second recognition pattern of the positioning device, and determining a size relationship between the first recognition pattern, the second recognition pattern, and the first reference area;

[0047] Recognizing an identification pattern in image data obtained by a camera when the first marking point and the second marking point are aligned, wherein the identification pattern is a second identification pattern of a positioning device or a first identification pattern of a registered tool;

[0048] determining a pixel size and a pixel position of a recognized recognition pattern in the image data;

[0049] determining a second reference area corresponding to the first reference area in the image data based on the pixel size, pixel position, and the size relationship;

[0050] acquiring, in the second reference area, spatial data of the first recognition pattern and spatial data of the second recognition pattern when the first marking point is aligned with the second marking point;

[0051] The portion corresponding to the first reference area is removed from the image data, or the portion corresponding to the first reference area and the portion corresponding to the second reference area are removed, and the above operation is repeated until all recognition patterns in the image data are recognized.

[0052] In some embodiments, when a second recognition pattern of a positioning device is recognized in image data obtained by a camera when a first marking point and a second marking point are aligned, after determining a second reference area, a first recognition pattern of a registered tool corresponding to the one positioning device is recognized in the second reference area, and spatial data of the first recognition pattern and the second recognition pattern when the first marking point and the second marking point are aligned are obtained based on the recognized first recognition pattern and the second recognition pattern; or

[0053] When a first recognition pattern of a registered tool is recognized in image data obtained by a camera when a first marking point and a second marking point are aligned, a second recognition pattern of a positioning device corresponding to the registered tool is recognized in the second reference area after determining the second reference area, and spatial data of the first recognition pattern and the second recognition pattern when the first marking point and the second marking point are aligned are obtained based on the recognized first recognition pattern and the second recognition pattern.

[0054] The first recognition pattern is different from the second recognition pattern.

[0055] In some embodiments, in the registration method, the distance between the camera and the positioning target is determined based on the smaller pattern of the first recognition pattern and the second recognition pattern, and the focal length of the camera.

[0056] According to another aspect of the present invention, there is provided a registration component, comprising:

[0057] A registration tool provided with a first marking point and a first identification pattern;

[0058] a camera configured to acquire image data; and

[0059] a recognition module in communication with the camera, configured to acquire spatial data of a first recognition pattern and spatial data of a second recognition pattern of a positioning target through the image data; and

[0060] The control module is communicatively connected to the recognition module and is configured to determine first conversion data between the spatial data of the positioning target and the spatial data of the positioning device through the spatial data of the first recognition pattern and the spatial data of the second recognition pattern from the recognition module, and the spatial data of the first marking point and the spatial data of the second marking point.

[0061] In some embodiments, the camera is configured to acquire image data when a first marking point on the registration tool is aligned with a second marking point on the positioning target;

[0062] The recognition module is configured to obtain, through the image data, spatial data of a first recognition pattern when the first marking point is aligned with the second marking point and spatial data of a second recognition pattern of the positioning target;

[0063] The control module is configured to convert the spatial data of the first marking point into spatial data in the second recognition pattern coordinate system of the positioning device through the spatial data of the first recognition pattern and the spatial data of the second recognition pattern from the recognition module, and determine the first conversion data between the spatial data of the positioning target and the spatial data of the positioning device based on the spatial data in the second recognition pattern coordinate system and the spatial data of the second marking point.

[0064] In some embodiments, the identification module is further configured to:

[0065] Recognizing an identification pattern in image data obtained by a camera when the first marking point and the second marking point are aligned, wherein the identification pattern is a second identification pattern of a positioning device or a first identification pattern of a registered tool;

[0066] determining a pixel size and a pixel position of a recognized recognition pattern in the image data;

[0067] determining, in the image data, a second reference area corresponding to the first reference area based on the pixel size, pixel position, and a dimensional relationship between the first recognition pattern, the second recognition pattern, and the first reference area, the first reference area being an area surrounding the first recognition pattern of the registration tool and the second recognition pattern of the positioning device;

[0068] acquiring, in the second reference area, spatial data of the first recognition pattern and spatial data of the second recognition pattern when the first marking point is aligned with the second marking point;

[0069] The portion corresponding to the first reference area is removed from the image data, or the portion corresponding to the first reference area and the portion corresponding to the second reference area are removed, and the above operation is repeated until all recognition patterns in the image data are recognized.

[0070] According to another aspect of the present invention, there is provided an electronic device, comprising:

[0071] A memory and a processor, wherein the memory stores a program, wherein the processor implements the registration method according to any of the aforementioned embodiments when executing the program on the memory.

[0072] According to another aspect of the present invention, a readable storage medium is provided, in which a computer-readable program or instruction is stored. When the computer-readable program or instruction is executed by a processor, the registration method according to any of the aforementioned embodiments is implemented.

[0073] The registration method, registration component, electronic device, and readable storage medium according to the present invention have at least one of the following advantages:

[0074] (1) The registration method, registration component, electronic device, and readable storage medium of the present invention can implement the registration process through the registration tool, which to some extent reduces the problem of poor accuracy caused by relying on tool parameters to implement the registration process;

[0075] (2) The registration method, registration assembly, electronic device, and readable storage medium of the present invention are manufactured using high-precision machine tools, which allow the use of metal materials for manufacturing, eliminating the problem of poor precision caused by plastics or resins during the processing process, for example, the accuracy can be less than one thread;

[0076] (3) The registration method, registration component, electronic device, and readable storage medium of the present invention can provide different registration tools for different positioning targets, thereby increasing the flexibility of the registration method. For example, when the positioning target is not a plane or a regular curved surface (such as a sphere), it is inconvenient to install a registration plate, so a registration pen is used for registration. When the positioning target has a plane or a regular curved surface, the registration plate is used for registration, which can avoid the operation of using a registration pen to click different second marking points.

[0077] (4) The registration method, registration component, electronic device and readable storage medium of the present invention can realize batch registration, that is, multiple positioning targets and positioning devices can be registered in the same image, thereby improving registration efficiency. BRIEF DESCRIPTION OF THE DRAWINGS

[0078] These and / or other aspects and advantages of the present invention will become apparent and readily understood from the following description of the preferred embodiments taken in conjunction with the accompanying drawings, in which:

[0079] Figure 1 A flowchart of a registration method according to an embodiment of the present invention is shown;

[0080] Figure 2 FIG2 shows a flow chart of S3 in the registration method according to an embodiment of the present invention;

[0081] Figure 3 FIG. 1 is a flow chart of S32 in the registration method according to an embodiment of the present invention;

[0082] Figure 4FIG. 1 is a flow chart of S31 in a registration method according to an embodiment of the present invention;

[0083] Figure 5 A schematic diagram of a registration component according to an embodiment of the present invention is shown. DETAILED DESCRIPTION

[0084] The technical solution of the present invention will be further described in detail below through examples and in conjunction with the accompanying drawings. In the specification, the same or similar reference numerals indicate the same or similar components. The following description of the embodiments of the present invention with reference to the accompanying drawings is intended to explain the overall inventive concept of the present invention and should not be construed as limiting the present invention.

[0085] In an embodiment of the present invention, a registration method is provided, which can realize the registration process between a positioning target and a positioning device by registering a tool.

[0086] The positioning target is the object to be located. Typically, a positioning device uses a camera (e.g., an RGB camera) to identify the location of the positioning target. Therefore, the positioning process requires understanding the conversion relationship between the two (i.e., completing the registration process). For example, the positioning target can include a magnetic stimulation device, an electrical stimulation device, a light stimulation device, a mechanical wave stimulation device, etc.

[0087] The active surface of a positioning target is the surface on which the positioning target affects its treatment target. For example, for a magnetic stimulation device, the active surface is the surface of the generated magnetic field. Specifically, the active surface of a figure-eight magnetic stimulation coil is the surface closest to the treatment target, which is a flat surface, and the center point of this active surface is the center point of the area enclosed by the figure-eight shape. The active surface of a butterfly-shaped magnetic stimulation coil is the surface closest to the treatment target, which is a curved surface formed by two planes at an angle, and the center point of this active surface is the midpoint of the intersection of the two planes.

[0088] The positioning device serves to locate the positioning target. For example, the positioning device can be captured by a camera to determine its spatial data (e.g., position information). The positioning device can be a positioning plate. The positioning device can be made of plastic or resin.

[0089] The positioning target can be provided with one, two, three or more positioning devices. Setting more positioning devices can expand the field of view that the camera can capture and improve the efficiency of the operation process.

[0090] The registration tool is used to register the coordinate system of the positioning device and the positioning target.

[0091] The camera in this article is a camera that can provide grayscale images, including grayscale cameras, color (RGB) cameras, depth cameras and any combination thereof.

[0092] like Figure 1 As shown, the registration method includes:

[0093] S1 sets a first marking point and a first recognition pattern on the registration tool, and determines the spatial data of the first marking point;

[0094] S2 sets a second marking point and a positioning device on the positioning target, and determines spatial data of the second marking point, wherein the positioning device includes a second recognition pattern;

[0095] S3 acquires image data through a camera, and determines spatial data of a first recognition pattern and spatial data of a second recognition pattern based on the image data, and determines first conversion data between the spatial data of the positioning target and the spatial data of the positioning device based on the spatial data of the first recognition pattern, the spatial data of the second recognition pattern, the spatial data of the first marking point, and the spatial data of the second marking point.

[0096] The embodiment of the present invention implements the registration process by registering the tooling, determines the conversion relationship between the spatial data of the positioning target and the spatial data of the positioning device (such as the first conversion data), and to a certain extent reduces the problem of poor accuracy caused by relying on tooling parameters to implement the registration process.

[0097] The first conversion data may be a first conversion matrix Z1.

[0098] The first recognition pattern is used by the camera to capture image data of the registration tooling. The shape of the first recognition pattern includes at least one of a regular pattern and an irregular pattern. The regular pattern includes at least one of a circle, an ellipse, a rectangle, a square, a polygon, and a triangle arranged in a regular pattern, and ChArUco. The irregular pattern includes a logo arranged in a regular pattern. The embodiments of the present invention do not limit the specific shape of the pattern, and those skilled in the art may select it as needed. The spatial data of the first recognition pattern includes a posture matrix of the first recognition pattern.

[0099] The second recognition pattern is used for capturing image data of the positioning device by the camera. The shape of the second recognition pattern includes at least one of a regular pattern and an irregular pattern. The regular pattern includes at least one of a circle, an ellipse, a rectangle, a square, a polygon, and a triangle arranged in a regular pattern, and ChArUco. The irregular pattern includes a logo arranged in a regular pattern. The embodiments of the present invention do not limit the specific shape of the pattern, and those skilled in the art may select it as needed. The spatial data of the second recognition pattern includes a posture matrix of the second recognition pattern.

[0100] In one example, in S3, such as Figure 2 As shown, acquiring image data through a camera and determining the spatial data of the first recognition pattern and the spatial data of the second recognition pattern based on the image data includes:

[0101] S31 aligns the first marking point of the registered tooling with the second marking point of the positioning target, obtains image data when the first marking point and the second marking point are aligned through the camera, and obtains spatial data of the first recognition pattern and the second recognition pattern when the first marking point and the second marking point are aligned through the image data.

[0102] Accordingly, in S3, if Figure 2 As shown, determining first conversion data between spatial data of the positioning target and spatial data of the positioning device based on spatial data of the first recognition pattern, spatial data of the second recognition pattern, spatial data of the first marking point, and spatial data of the second marking point includes:

[0103] S32 converts the spatial data of the first marking point into spatial data in a second recognition pattern coordinate system of the positioning device based on the spatial data of the first recognition pattern and the spatial data of the second recognition pattern;

[0104] S33 determines first conversion data between the spatial data of the positioning target and the spatial data of the positioning device based on the spatial data in the second recognition pattern coordinate system and the spatial data of the second marking point.

[0105] In an embodiment of the present invention, the spatial data of the first marking point is first converted to the second recognition pattern coordinate system of the positioning device, and then the spatial data of the first marking point and the second marking point are used to determine the conversion relationship between the spatial data of the positioning target and the positioning device.

[0106] The first marking point includes at least one first marking point. For example, the number of the first marking points is 1, 2, 3, 4 or more. The positions of the first marking points can be set as needed.

[0107] The spatial data of the first marking point includes the position coordinates of the first marking point in the first recognition pattern coordinate system.

[0108] The second marking point is located on the active surface of the positioning target. The second marking point includes at least one second marking point. For example, the number of second marking points is 1, 2, 3, 4, or more. The number of first marking points and the number of second marking points can be the same or different. The position of the second marking point can be set as needed.

[0109] The spatial data of the second marking point includes the position coordinates of the second marking point in the positioning target coordinate system.

[0110] The registration tooling can have various forms, including registration plates and registration pens. In one example, the registration plate is in the form of a rectangular parallelepiped as a whole, and a first identification pattern is provided on one side of the rectangular parallelepiped (e.g., the side with the largest area). In one example, the registration pen is in the form of a rectangular parallelepiped as a whole, but a pen tip is provided on its side, and a first identification pattern is provided on the side adjacent to the side with the pen tip (e.g., the side with the largest area). The number of pen tips can be 1, 2 or more. Providing a larger number of pen tips is convenient for replacement during later use. Of course, the embodiments of the present invention do not limit the specific forms of the registration pen and the registration plate.

[0111] In an embodiment of the registration plate, the number of first marking points on the registration plate is the same as the number of second marking points on the positioning target, and the first marking points are arranged correspondingly to the second marking points. The number of marking points can be greater than or equal to 4 to facilitate accurate registration.

[0112] In S3, the registration method further includes determining second transformation data between the position coordinates of at least one first marker in the first recognition pattern coordinate system and the position coordinates of at least one second marker in the positioning target coordinate system. The position of the first marker in the first recognition pattern coordinate system and the position of the second marker in the positioning target coordinate system are known information, and thus the second transformation data can be determined based on this known information. The second transformation data can be a second transformation matrix Z2.

[0113] For example, the positions of the first marking point and the second marking point can be made to correspond one to one, and the first recognition pattern coordinate system is the same as the positioning target coordinate system. Then the coordinates of the first marking point under the first recognition pattern coordinates are the coordinates of the corresponding second marking point under the positioning target coordinates, and the second conversion data is the second conversion matrix (for example, the unit matrix).

[0114] In S31 , aligning the first marking points of the registration tool with the second marking points of the positioning target includes: placing the registration tool on the positioning target, and aligning each first marking point with each corresponding second marking point.

[0115] In one example, the first and second marking points are configured as matching concave and convex points, respectively, to facilitate mounting the registration tool on the positioning target. In the example of a registration plate, the first marking point of the registration plate is located on a side surface of the registration plate adjacent to the side surface provided with the first recognition pattern. Of course, the embodiments of the present invention do not limit the specific form of the first and second marking points, and those skilled in the art may configure them as needed.

[0116] In S31, when the registration device is set on the positioning target, the image data when the first mark point and the second mark point are aligned (image data of the positioning device and the registration plate) is obtained through the camera, and the posture matrix of the first recognition pattern and the posture matrix of the second recognition pattern are obtained based on the image data.

[0117] In S32, as Figure 3 As shown, converting the spatial data of the first marking point into spatial data in the second recognition pattern coordinate system of the positioning device includes:

[0118] S321 determines the position coordinates of the at least one first marking point in the camera coordinate system using the position coordinates of the at least one first marking point in the first recognition pattern coordinate system and the posture matrix of the first recognition pattern;

[0119] S322 determines the position coordinates of at least one second marking point in the second recognition pattern coordinate system by using the position coordinates of at least one first marking point in the camera coordinate system, the posture matrix of the second recognition pattern, and the second conversion data.

[0120] The position coordinates of at least one first marking point in the first recognition pattern coordinate system are known. The pose matrix of the first recognition pattern and the pose matrix of the second recognition pattern are acquired via a camera. For example, when the positioning device and / or the positioning target are in motion, the camera acquires image data in real time to thereby obtain the pose matrix of the first recognition pattern and the pose matrix of the second recognition pattern.

[0121] In S322, the position coordinates of at least one second marker point corresponding to the at least one first marker point in the second recognition pattern coordinate system may be determined based on the position coordinates of the at least one first marker point in the camera coordinate system, the pose matrix of the second recognition pattern, and the second conversion data. The position coordinates of the at least one second marker point in the camera coordinate system may be determined based on the position coordinates of the at least one first marker point in the camera coordinate system and the second conversion data; and then the position coordinates of the at least one second marker point in the second recognition pattern coordinate system may be determined based on the position coordinates of the at least one second marker point in the camera coordinate system and the pose matrix of the second recognition pattern.

[0122] In S33, determining first transformation data between the spatial data of the positioning target and the spatial data of the positioning device includes: determining the first transformation data using the position coordinates of at least one second marker point in the second recognition pattern coordinate system and the position coordinates of at least one second marker point in the positioning target coordinate system. For example, the position coordinates of the second marker point in the second recognition pattern coordinate system and the position coordinates of the second marker point in the positioning target coordinate system may be formed into a data pair, and the first transformation data may be determined using methods such as singular value decomposition (SVD), point cloud registration (ICP), and quaternion.

[0123] For example, the number of first marking points on the registration plate is n, and the position coordinates of the first marking points in the first recognition pattern coordinate system are W1, W2, ..., W n The number of the second marking points is also n, and the position coordinates of the second marking points in the positioning target coordinate system are P1, P2...P n The posture matrix of the first recognition pattern is Z3, and the posture matrix of the second recognition pattern is Z4. Using the position coordinates W1, W2, ... W of the first marking point n The position coordinates Q1, Q2, ... Q of the first marking point in the camera coordinate system are determined by the posture matrix Z3 of the first recognition pattern. n Using the position coordinates Q1, Q2, ... Q of the first marking point n The position coordinates R1, R2, ... R of the corresponding second marker point in the camera coordinate system are determined by the second conversion data Z2. n Using the position coordinates of the second marking point R1, R2, ... R n The position coordinates S1, S2, ... S of the second marking point in the second recognition pattern coordinate system are determined by the posture matrix Z4 of the second recognition pattern. n Using the position coordinates S1, S2, ... S of the second marking point n and the position coordinates of the second marking point P1, P2...P n Construct data pairs (S1, P1), (S2, P2) ... (S n , P n ), and determine the first transformation matrix Z1 through a known algorithm.

[0124] In the embodiment using a registration plate, the registration process requires mounting the registration plate on the positioning target, collecting the posture matrix of the recognition pattern, and completing the registration process based on the known information. This process is relatively simple and has high efficiency.

[0125] In an embodiment of the registration pen, the spatial data of the first marking point includes the position coordinates of the pen tip in the first recognition pattern coordinate system, and the second marking point includes at least one second marking point. The number of the second marking points can be greater than or equal to 4 to facilitate accurate registration.

[0126] In S31, aligning the first marking point of the registration tool with the second marking point of the positioning target includes: placing the tip of the registration pen at all the second marking points of at least one second marking point.

[0127] In S31, when the tip of the registration pen is placed at one of the at least one second marking points, image data of the positioning device and the registration pen is obtained through a camera, and a posture matrix of the first recognition pattern and a posture matrix of the second recognition pattern are obtained based on the image data.

[0128] In S32, converting the spatial data of the first marking point into spatial data in the second recognition pattern coordinate system of the positioning device includes:

[0129] When the pen tip is placed at one of the at least one second marking points,

[0130] Determine the position coordinates of the pen tip in the camera coordinate system using the position coordinates of the pen tip in the first recognition pattern coordinate system and the posture matrix of the first recognition pattern acquired by the camera when the pen tip is placed at the one second marking point;

[0131] Determine the position coordinates of the pen tip in the second recognition pattern coordinate system using the position coordinates of the pen tip in the camera coordinate system and the posture matrix of the second recognition pattern acquired by the camera when the pen tip is placed at the second marking point,

[0132] When the pen tip is placed at another second marking point among the at least one second marking point, the above process is repeated until the position coordinates of the pen tip in the second recognition pattern coordinate system are determined when the pen tip is located at all the second marking points.

[0133] That is, in an embodiment using a registration pen, the registration pen (specifically the pen tip) needs to be placed on all the second marking points in turn, and when placed on a second marking point, the posture matrix of the first recognition pattern and the second recognition pattern at this time is obtained using the camera, until the posture matrix of the first recognition pattern and the second recognition pattern when located at all second marking points is obtained, and the posture matrix of the first recognition pattern and the second recognition pattern when located at a second marking point is used to determine the position coordinates of the pen tip when it is located at the second marking point in the second recognition pattern coordinate system, until the position coordinates of the pen tip when it is located at all second marking points in the second recognition pattern coordinate system are determined.

[0134] In S33, determining the first conversion data between the spatial data of the positioning target and the spatial data of the positioning device includes: using the position coordinates of the pen tip in the positioning target coordinate system when the pen tip is located at all second marking points and the position coordinates of the pen tip in the second recognition pattern coordinate system when the pen tip is located at all second marking points to determine the first conversion data. The position coordinates of the pen tip in the positioning target coordinate system when the pen tip is located at all second marking points are the position coordinates of the second marking points in the positioning target coordinate system, and this data is known information. The first conversion data can be determined using methods such as singular value decomposition (SVD), point cloud registration (ICP), and quaternion.

[0135] For example, the position coordinate of the pen tip of the registration pen in the first recognition pattern coordinate system is W'. The number of second marking points is n, and the position coordinates of the second marking points in the positioning target coordinate system are P1, P2...P n , then the position coordinates of the pen tip when it is located at all the second marking points in the positioning target coordinate system are P1, P2...P n The posture matrices of the first recognition pattern obtained when the pen tip is located at the second marking point are Z 31 , Z 32 , ... Z 3n , the corresponding posture matrix of the second recognition pattern is Z 41 , Z 42 , ... Z 4n Using the position coordinates W' of the pen tip and the posture matrix Z of the first recognition pattern when the pen tip is at a second marking point P1 31 , determine the position coordinate Q1' of the pen tip in the camera coordinate system. Use the position coordinate Q1' of the pen tip and the posture matrix Z of the second recognition pattern when the pen tip is at the second mark point P1 41 , determine the position coordinate S1' of the pen tip in the second recognition pattern coordinate system when the pen tip is at the second mark point P1. Repeat the above steps using the posture matrix of the first recognition pattern at other second mark points P1, etc., until the position coordinates S1', S2'...S of the pen tip in the second recognition pattern coordinate system when the pen tip is at all second mark points are obtained. n '. Use the position coordinates S1', S2'...S of the pen tip in the second recognition pattern coordinate system when the pen tip is at all the second marking points n ' and the position coordinates of the pen tip when it is at the second mark point P1, P2...P n Constructing data pairs (S1', P1), (S2', P2)... (S n ', P n ), and determine the first transformation matrix Z1' through a known algorithm.

[0136] Embodiments of the present invention can provide different registration tools for different positioning targets, increasing the flexibility of the registration method. For example, if the positioning target is not flat or has a regular curved surface (such as a sphere), it is not convenient to install a registration plate, so a registration pen can be used for registration. If the positioning target has a flat or regular curved surface, using a registration plate for registration can avoid the need to click different second marking points with a registration pen, simplifying the operation process and improving work efficiency.

[0137] In one example, a registration tool is an auxiliary tool that has no material restrictions and can be machined from metal. This allows for the use of metal materials in manufacturing, eliminating the problem of poor precision caused by plastic processing, for example, its precision can be less than a thread.

[0138] In the embodiment of the present invention, in order to improve registration efficiency, batch registration can be implemented, that is, the registration of multiple positioning targets and positioning devices can be completed in the same image.

[0139] Specifically, if Figure 4 As shown, in S31, the registration method further includes:

[0140] S311 determines a first reference area surrounding the first recognition pattern of the registration tool and the second recognition pattern of the positioning device, and determines a size relationship among the first recognition pattern, the second recognition pattern, and the first reference area;

[0141] S312: recognizing an identification pattern in image data obtained by a camera when the first marking point and the second marking point are aligned, wherein the identification pattern is a second identification pattern of a positioning device or a first identification pattern of a registered tool;

[0142] S313 determines the pixel size and pixel position of the identified recognition pattern in the image data;

[0143] S314 determining a second reference area corresponding to the first reference area in the image data based on the pixel size, pixel position, and the size relationship;

[0144] S315 acquiring, in the second reference area, spatial data of the first recognition pattern and spatial data of the second recognition pattern when the first marking point is aligned with the second marking point;

[0145] S316 removes the portion corresponding to the first reference area from the image data, or removes the portion corresponding to the first reference area and the portion corresponding to the second reference area, and repeats the above operation until all recognition patterns in the image data are recognized.

[0146] In S311, the shape of the first reference area can be a rectangle, square, circle, trapezoid, etc. The embodiments of the present invention do not limit its specific shape, and those skilled in the art can select it as needed. The construction of the first reference area is known in advance, so the dimensional relationship is also known. The dimensional relationship includes the ratio of the size of each pattern to the size of the first reference area, the position of each pattern in the first reference area, etc.

[0147] In S312, the camera may acquire image data when the first marking point and the second marking point are aligned. The pattern information of the first recognition pattern and the second recognition pattern is known, so a recognition pattern (the first recognition pattern or the second recognition pattern) may be recognized from the image data using a known algorithm.

[0148] In S313 , when a recognition pattern is recognized in the image data, the pixel size and pixel position of the recognition pattern in the image data may be determined.

[0149] In S314, a second reference region corresponding to the first reference region is determined in the image data based on the pixel size and pixel position determined in S313 and the size relationship determined in S311. For example, the second reference region may be determined around the identified recognition pattern based on the size relationship. Of course, the second reference region may also be determined around the identified recognition pattern at a reduced or larger scale based on the size relationship.

[0150] Since the second reference area corresponds to the first reference area, the second reference area includes not only the recognized recognition pattern but also the recognition pattern of the positioning device or the registration tool. Therefore, in S315, the spatial data of the corresponding first recognition pattern and the second recognition pattern can be obtained.

[0151] In S316, the portion corresponding to the first reference area is removed from the image data, or the portion corresponding to the first reference area and the portion corresponding to the second reference area are removed (for example, the portion can be filled with a white area), and the above operation is repeated until all recognition patterns in the image data are identified.

[0152] For example, when the recognition pattern identified in S312 is the second recognition pattern of a positioning device, after determining the second reference area, the first recognition pattern of the registration tooling corresponding to the positioning device is identified in the second reference area (S315), and based on the identified first recognition pattern and the second recognition pattern, the spatial data of the first recognition pattern and the spatial data of the second recognition pattern when the first mark point is aligned with the second mark point are obtained; or, when the recognition pattern identified in S312 is the first recognition pattern of a registration tooling, after determining the second reference area, the second recognition pattern of the positioning device corresponding to the registration tooling is identified in the second reference area (S315), and based on the identified first recognition pattern and the second recognition pattern, the spatial data of the first recognition pattern and the spatial data of the second recognition pattern when the first mark point is aligned with the second mark point are obtained.

[0153] In one example, among the positioning targets registered in batches, the second recognition pattern of each positioning target is different from the first recognition pattern of its corresponding registration tool, so as to accurately form the second reference area.

[0154] In one example, the batch registration process of the present invention is applicable to the case where the second recognition pattern of each positioning target is the same, and may also be applicable to the case where the second recognition pattern of each positioning target is not the same.

[0155] In the registration method of the embodiment of the present invention, the distance between the camera and the positioning target is determined based on the smaller pattern of the first recognition pattern and the second recognition pattern, and the focal length of the camera, so as to improve registration accuracy.

[0156] In an embodiment of the present invention, a registration component is provided. Figure 5 As shown, the registration component 100 includes a registration tool 10 , a camera 20 , a recognition module 30 and a control module 40 .

[0157] The registration tool 10 is provided with a first marking point and a first recognition pattern. Detailed description of the registration tool 10 can refer to the aforementioned embodiment and will not be repeated here.

[0158] The camera 20 is configured to acquire image data.

[0159] The recognition module 30 is in communication with the camera 20. The recognition module 30 is configured to obtain spatial data of the first recognition pattern and spatial data of the second recognition pattern of the positioning target from the image data. The recognition module 30 can use the method described in the above embodiment to recognize the spatial data of the first recognition pattern and the second recognition pattern.

[0160] The control module 40 is communicatively coupled to the recognition module 30. The control module 40 is configured to determine first conversion data between the spatial data of the positioning target and the spatial data of the positioning device using the spatial data of the first recognition pattern and the spatial data of the second recognition pattern, as well as the spatial data of the first marking point and the spatial data of the second marking point from the recognition module 30. The control module 40 may determine the first conversion data using the method described in the aforementioned embodiment.

[0161] In one example, the camera 20 is configured to acquire image data when a first marking point of the registration tool 10 is aligned with a second marking point of the positioning target. Detailed description of the camera 20 can be found in the aforementioned embodiment and will not be repeated here.

[0162] In one example, the recognition module 30 is configured to obtain, from the image data, spatial data of a first recognition pattern when the first marking point is aligned with the second marking point and spatial data of a second recognition pattern of the positioning target. The recognition module 30 can use the method described in the above embodiments to recognize the spatial data of the first recognition pattern and the second recognition pattern.

[0163] In one example, the control module 40 is configured to convert the spatial data of the first marking point into spatial data in the second recognition pattern coordinate system of the positioning device using the spatial data of the first recognition pattern and the spatial data of the second recognition pattern from the recognition module 30, and determine first conversion data between the spatial data of the positioning target and the spatial data of the positioning device based on the spatial data in the second recognition pattern coordinate system and the spatial data of the second marking point. The control module 40 may determine the first conversion data using the method described in the aforementioned embodiment.

[0164] In one example, the recognition module 30 is further configured to: identify an identification pattern in image data obtained by a camera when a first marking point and a second marking point are aligned, the identification pattern being a second identification pattern of a positioning device or a first identification pattern of a registered tool; determine the pixel size and pixel position of the identified identification pattern in the image data; determine a second reference area corresponding to the first reference area in the image data based on the pixel size, pixel position, and the size relationship between the first identification pattern, the second identification pattern, and the first reference area, the first reference area being an area surrounding the first identification pattern of the registered tool and the second identification pattern of the positioning device; obtain spatial data of the first identification pattern and spatial data of the second identification pattern when the first marking point and the second marking point are aligned in the second reference area; remove the portion corresponding to the first reference area from the image data, or remove the portion corresponding to the first reference area and the portion corresponding to the second reference area, and repeat the above operations until all identification patterns in the image data are identified. The recognition module 30 can identify all identification patterns in the image data using the method described in the aforementioned embodiment.

[0165] In an embodiment of the present invention, a readable storage medium is provided, wherein the readable storage medium stores a program or instruction, and when the program or instruction is executed by a processor, the registration method described in any one of the above embodiments is implemented.

[0166] The "readable storage medium" of an embodiment of the present invention refers to any medium that participates in providing a program or instruction to a processor for execution. The medium can take many forms, including but not limited to non-volatile media, volatile media and transmission media. Non-volatile media include, for example, optical or magnetic disks, such as storage devices. Volatile media include dynamic memory, such as main memory. Transmission media include coaxial cables, copper wires and optical fibers, including wires that comprise buses. Transmission media can also take the form of sound waves or light waves, such as sound waves or light waves generated during radio frequency (RF) and infrared (IR) data communications. Common forms of readable storage media include, for example, floppy disks, flexible disks, hard disks, magnetic tape, any other magnetic medium, CD-ROM, DVD, any other optical medium, punch cards, paper tape, any other physical medium with a pattern of holes, RAM, PROM and EPROM, FLASH-EPROM, any other memory chip or cartridge, a carrier wave as described below, or any other medium from which a computer can read.

[0167] In an embodiment of the present invention, an electronic device is further provided. The electronic device (not shown) includes a processor (not shown) and a memory (not shown). The memory stores a program that, when executed by the processor, can implement any of the registration methods described above.

[0168] In one example, the processor may be a microprocessor, such as a general-purpose processor such as a graphics processing unit (GPU), a central processing unit (CPU), or a digital signal processor (DSP). In another example, the processor may also be a microprocessor core implemented by a hardware circuit, such as a microprocessor core implemented in a hardware logic component through reconfigurable logic, wherein the hardware logic component includes a field programmable gate array (FPGA), a complex programmable logic device (CPLD), an application-specific integrated circuit (ASIC), an application-specific standard product (ASSP), a system on a chip (SOC), etc.

[0169] In one example, the processor may also be a virtual processor, which may be a virtual processor with the characteristics of an Intel x86 processor, or a virtual processor with the characteristics of a PowerPC processor. Preferably, the processor is a graphics processor. In one example, the processor may be a single-core processor or a multi-core processor.

[0170] In one example, the memory includes volatile memory (i.e., random access memory) and non-volatile memory. Volatile memory includes main memory, cache, etc., and non-volatile memory includes auxiliary memory, etc. In one example, the memory can be configured as a remote memory, which can be connected to the processor via a network (wired network or wireless network). The network includes but is not limited to a wide area network, a local area network, a metropolitan area network, a personal area network, the Internet, a satellite communication network, and any combination thereof.

[0171] In one example, the processor executes a program retrieved from memory to create a corresponding task thread and execute the thread. In another example, the processor retrieves a program from external memory based on instructions read from memory to create a corresponding task thread and execute the thread. The above program is used to implement the registration method.

[0172] Although the subject matter described herein is provided in the general context of being executed in conjunction with an operating system and an application program on a computer system, it will be appreciated by those skilled in the art that it can also be implemented in conjunction with other types of program modules. Generally speaking, a program module includes routines, programs, components, data structures, and other types of structures that perform specific tasks or implement specific abstract data types. It will be understood by those skilled in the art that the method steps described in conjunction with any one of the examples herein can be implemented with electronic hardware, or a combination of computer software and electronic hardware. Whether to perform in hardware or software depends primarily on the specific application and design constraints of the technical solution. Those skilled in the art can use different methods to implement the described functions for each specific application, but such implementation should not be considered to be beyond the scope of this application.

[0173] When the method steps are implemented in the form of software functional units and sold or used as independent products, they can be stored in a computer-readable storage medium. Therefore, the essence of the technical solution of the present invention, or the portion that contributes to the existing technology, 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 a number of instructions for causing a computer device (which can be a personal computer, server, or network device, etc.) to execute all or part of the steps of the method described in various examples of the present invention.

[0174] The registration method, registration component, electronic device, and readable storage medium according to the present invention have at least one of the following advantages:

[0175] (1) The registration method, registration component, electronic device, and readable storage medium of the present invention can implement the registration process through the registration tool, which to some extent reduces the problem of poor accuracy caused by relying on tool parameters to implement the registration process;

[0176] (2) The registration method, registration assembly, electronic device, and readable storage medium of the present invention are manufactured using high-precision machine tools, which allow the use of metal materials for manufacturing, eliminating the problem of poor precision caused by plastics or resins during the processing process, for example, the accuracy can be less than one thread;

[0177] (3) The registration method, registration component, electronic device, and readable storage medium of the present invention can provide different registration tools for different positioning targets, thereby increasing the flexibility of the registration method. For example, when the positioning target is not a plane or a regular curved surface (such as a sphere), it is inconvenient to install a registration plate, so a registration pen is used for registration. When the positioning target has a plane or a regular curved surface, the registration plate is used for registration, which can avoid the operation of using a registration pen to click different second marking points.

[0178] (4) The registration method, registration component, electronic device and readable storage medium of the present invention can realize batch registration, that is, multiple positioning targets and positioning devices can be registered in the same image, thereby improving registration efficiency.

[0179] Although some embodiments of the present general inventive concept have been shown and described, it will be appreciated by those skilled in the art that changes may be made to these embodiments without departing from the principles and spirit of the present general inventive concept, the scope of which is defined in the claims and their equivalents.

Claims

1. A registration method comprising: Setting a first marking point and a first recognition pattern on the registration tool, and determining spatial data of the first marking point; Setting a second marking point and a positioning device on the positioning target and determining spatial data of the second marking point, wherein the positioning device includes a second recognition pattern; acquiring image data through a camera, and determining spatial data of a first recognition pattern and a second recognition pattern based on the image data, including aligning a first marking point of a registration tool with a second marking point of a positioning target, acquiring image data through the camera when the first marking point and the second marking point are aligned, and acquiring, through the image data, the spatial data of the first recognition pattern and the second recognition pattern when the first marking point and the second marking point are aligned; Determine the first conversion data between the spatial data of the positioning target and the spatial data of the positioning device based on the spatial data of the first recognition pattern, the spatial data of the second recognition pattern, the spatial data of the first marking point and the spatial data of the second marking point, including converting the spatial data of the first marking point into the spatial data in the second recognition pattern coordinate system of the positioning device based on the spatial data of the first recognition pattern and the spatial data of the second recognition pattern, and determine the first conversion data between the spatial data of the positioning target and the spatial data of the positioning device based on the spatial data in the second recognition pattern coordinate system and the spatial data of the second marking point.

2. The registration method according to claim 1, wherein: The spatial data of the first marking point includes the position coordinates of the first marking point in the first recognition pattern coordinate system; The spatial data of the second marking point includes the position coordinates of the second marking point in the positioning target coordinate system; The spatial data of the first recognition pattern includes a posture matrix of the first recognition pattern; The spatial data of the second recognition pattern includes a posture matrix of the second recognition pattern.

3. The registration method according to claim 2, wherein: The registration tooling includes a registration plate, The first marking point includes at least one first marking point, and the second marking point includes at least one second marking point. The number of at least one first marking point on the registration plate is the same as the number of at least one second marking point on the positioning target, the at least one first marking point is set corresponding to the at least one second marking point, and the second conversion data between the position coordinates of the at least one first marking point in the first recognition pattern coordinate system and the position coordinates of the at least one second marking point in the positioning target coordinate system is determined.

4. The registration method according to claim 3, wherein: Converting the spatial data of the first marking point into spatial data in the second recognition pattern coordinate system of the positioning device includes: Determine the position coordinates of the at least one first marking point in the camera coordinate system using the position coordinates of the at least one first marking point in the first recognition pattern coordinate system and the posture matrix of the first recognition pattern; The position coordinates of at least one second marking point in the second recognition pattern coordinate system are determined using the position coordinates of the at least one first marking point in the camera coordinate system, the posture matrix of the second recognition pattern, and the second conversion data.

5. The registration method according to claim 4, wherein: Determining first conversion data between the spatial data of the positioning target and the spatial data of the positioning device includes: The first conversion data is determined using the position coordinates of the at least one second marking point in the second recognition pattern coordinate system and the position coordinates of the at least one second marking point in the positioning target coordinate system.

6. The registration method according to claim 5, wherein: Aligning the first marking point of the registration tool with the second marking point of the positioning target includes: placing the registration tool on the positioning target and aligning each first marking point with each corresponding second marking point, The first marking point and the second marking point are respectively set as a concave point and a convex point that can match each other.

7. The registration method according to claim 2, wherein: The registration tool includes a registration pen, the registration pen is provided with a pen tip, the spatial data of the first marking point includes the position coordinates of the pen tip in the first recognition pattern coordinate system, The second marking point includes at least one second marking point, Aligning the first marking point of the registration tool with the second marking point of the positioning target includes placing the tip of the registration pen at all the second marking points in at least one second marking point.

8. The registration method according to claim 7, wherein: Converting the spatial data of the first marking point into spatial data in the second recognition pattern coordinate system of the positioning device includes: When the pen tip is placed at one of the at least one second marking points, Determine the position coordinates of the pen tip in the camera coordinate system using the position coordinates of the pen tip in the first recognition pattern coordinate system and the posture matrix of the first recognition pattern acquired by the camera when the pen tip is placed at the one second marking point; Determine the position coordinates of the pen tip in the second recognition pattern coordinate system using the position coordinates of the pen tip in the camera coordinate system and the posture matrix of the second recognition pattern acquired by the camera when the pen tip is placed at the second marking point, When the pen tip is placed at another second marking point among the at least one second marking point, the above process is repeated until the position coordinates of the pen tip in the second recognition pattern coordinate system are determined when the pen tip is located at all the second marking points.

9. The registration method according to claim 8, wherein: Determining first conversion data between the spatial data of the positioning target and the spatial data of the positioning device includes: The first conversion data is determined using the position coordinates of the pen tip in the positioning target coordinate system when the pen tip is located at all the second marking points and the position coordinates of the pen tip in the second recognition pattern coordinate system when the pen tip is located at all the second marking points.

10. The registration method according to any one of claims 1 to 9, wherein: The second marking point is located on the action surface of the positioning target. The registration tooling is machined from metal materials.

11. The registration method according to claim 10, wherein: The registration method further includes: Determining a first reference area surrounding the first recognition pattern of the registration tool and the second recognition pattern of the positioning device, and determining a size relationship between the first recognition pattern, the second recognition pattern, and the first reference area; Recognizing an identification pattern in image data obtained by a camera when the first marking point and the second marking point are aligned, wherein the identification pattern is a second identification pattern of a positioning device or a first identification pattern of a registered tool; determining a pixel size and a pixel position of a recognized recognition pattern in the image data; determining a second reference area corresponding to the first reference area in the image data based on the pixel size, pixel position, and the size relationship; acquiring, in the second reference area, spatial data of the first recognition pattern and spatial data of the second recognition pattern when the first marking point is aligned with the second marking point; The portion corresponding to the first reference area is removed from the image data, or the portion corresponding to the first reference area and the portion corresponding to the second reference area are removed, and the above operation is repeated until all recognition patterns in the image data are recognized.

12. The registration method according to claim 11, wherein: When a second recognition pattern of a positioning device is recognized in image data obtained by a camera when a first marking point and a second marking point are aligned, after determining a second reference area, a first recognition pattern of a registered tool corresponding to the one positioning device is recognized in the second reference area, and spatial data of the first recognition pattern and the second recognition pattern when the first marking point and the second marking point are aligned are acquired based on the recognized first recognition pattern and the second recognition pattern; or When a first recognition pattern of a registered tool is recognized in image data obtained by a camera when a first marking point and a second marking point are aligned, a second recognition pattern of a positioning device corresponding to the registered tool is recognized in the second reference area after determining the second reference area, and spatial data of the first recognition pattern and the second recognition pattern when the first marking point and the second marking point are aligned are obtained based on the recognized first recognition pattern and the second recognition pattern. The first recognition pattern is different from the second recognition pattern.

13. The registration method according to claim 12, wherein: In the registration method, the distance between the camera and the positioning target is determined based on the smaller pattern of the first recognition pattern and the second recognition pattern, and the focal length of the camera.

14. A registration component comprising: A registration tool provided with a first marking point and a first identification pattern; a camera configured to acquire image data when a first marking point of the registration tool is aligned with a second marking point of the positioning target; and a recognition module in communication with the camera, configured to obtain, through the image data, spatial data of a first recognition pattern when the first marking point is aligned with the second marking point and spatial data of a second recognition pattern of the positioning target; and The control module is communicatively connected to the recognition module and is configured to convert the spatial data of the first marking point into spatial data in the second recognition pattern coordinate system of the positioning device through the spatial data of the first recognition pattern and the spatial data of the second recognition pattern from the recognition module, and determine the first conversion data between the spatial data of the positioning target and the spatial data of the positioning device based on the spatial data in the second recognition pattern coordinate system and the spatial data of the second marking point.

15. The registration component according to claim 14, characterized in that The identification module is further configured to: Recognizing an identification pattern in image data obtained by a camera when the first marking point and the second marking point are aligned, wherein the identification pattern is a second identification pattern of a positioning device or a first identification pattern of a registered tool; determining a pixel size and a pixel position of a recognized recognition pattern in the image data; determining, in the image data, a second reference area corresponding to the first reference area based on the pixel size, pixel position, and a dimensional relationship between the first recognition pattern, the second recognition pattern, and the first reference area, the first reference area being an area surrounding the first recognition pattern of the registration tool and the second recognition pattern of the positioning device; acquiring, in the second reference area, spatial data of the first recognition pattern and spatial data of the second recognition pattern when the first marking point is aligned with the second marking point; The portion corresponding to the first reference area is removed from the image data, or the portion corresponding to the first reference area and the portion corresponding to the second reference area are removed, and the above operation is repeated until all recognition patterns in the image data are recognized.

16. An electronic device, characterized in that: The electronic device comprises: A memory and a processor, wherein the memory stores a program, wherein the processor implements the registration method according to any one of claims 1 to 13 when executing the program on the memory.

17. A readable storage medium, characterized in that The readable storage medium stores a computer-readable program or instruction, and when the computer-readable program or instruction is executed by a processor, the registration method according to any one of claims 1 to 13 is implemented.

Citation Information

Patent Citations

  • Precision detection method of surgical navigation device and surgical navigation precision detection device

    CN115005991A

  • Real-time registration method based on projection marking of CAD model and machine vision

    WO2022040983A1