Single-camera calibration method and device for surgical robots
Through the single-camera calibration method, including initial calibration, reference relationship matrix calculation and regression optimization, the problem of computational complexity and accuracy reduction in the surgical robot camera calibration process is solved, and the real-time performance and accuracy of positioning and tracking are improved.
Patent Information
- Application Number
- CN202410168186.5
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2024-02-06
- Publication Date
- 2024-09-27
- Estimated Expiration
- 2044-02-06
AI Technical Summary
The camera calibration process of surgical robots is complex. Multi-camera positioning and tracking results in high real-time calculation complexity. Single-camera positioning and tracking has reduced accuracy when the ambient light is insufficient or the calibration board is blocked, affecting the real-time and accuracy of target positioning and tracking.
This paper proposes a single-camera calibration method for surgical robots, which reduces the computational complexity and improves the real-time performance and accuracy of positioning and tracking through initial calibration, benchmark relationship matrix calculation and regression optimization.
It effectively avoids the computational complexity of multi-camera positioning and tracking, improves the calibration and tracking accuracy under single-camera conditions, and significantly improves the real-time and accuracy of target positioning and tracking of surgical robots.
Smart Images

Figure CN118096894B
Abstract
Description
Technical Field
[0001] The present application relates to the field of computer vision technology, and more specifically, to a single-camera calibration method and device for a surgical robot. Background Art
[0002] The camera calibration process of surgical robots is relatively complex and requires high-precision equipment and professional technicians to operate. At the same time, due to the particularity of the surgical environment and the precision requirements of surgical operations, the accuracy requirements of camera calibration are also very high.
[0003] In the existing technology, the positioning and tracking scenarios of surgical robots based on multiple cameras will bring about greater real-time computing complexity, affecting the real-time performance of the positioning and tracking of the surgical robot. In the positioning and tracking scenarios of surgical robots based on single cameras, due to insufficient ambient light or when the calibration plate object is blocked, the calibration and tracking accuracy of the robot manipulator will be greatly reduced, affecting the real-time and accuracy of the target positioning and tracking of the surgical robot. Therefore, an improved technical solution is urgently needed to solve these technical problems. Summary of the invention
[0004] In view of this, the present application proposes a single-camera calibration method and device for surgical robots. On the one hand, it can effectively avoid the problem of large real-time computational complexity caused by using multiple cameras to locate and track the surgical robot, and reduce the computational complexity of the positioning and tracking of the surgical robot; on the other hand, under the condition of using only a single camera, it can effectively avoid the problem of reduced calibration and tracking accuracy due to insufficient ambient light or when the calibration plate object is obscured, and significantly improve the real-time and accuracy of the surgical robot's target positioning and tracking.
[0005] In a first aspect, the present application proposes a single-camera calibration method for a surgical robot, comprising the following steps:
[0006] Performing an initial calibration on the camera to determine an initial parameter vector of the camera;
[0007] Performing an initial calibration on a multi-faceted calibration unit rigidly connected to an operating part of the surgical robot, selecting one calibration plate from a plurality of calibration plates in the multi-faceted calibration unit as a reference calibration plate, and calculating a reference relationship matrix of each of the remaining calibration plates in the plurality of calibration plates relative to the reference calibration plate;
[0008] Based on the reference relationship matrix of each of the remaining calibration plates relative to the reference calibration plate, a reference relationship matrix between the reference calibration plate and the camera is calculated;
[0009] According to the initial parameter vector of the camera, the reference relationship matrix of each of the remaining calibration plates relative to the reference calibration plate, and the reference relationship matrix between the reference calibration plate and the camera, the projection error of the target calibration plate in each of the remaining calibration plates is calculated, and the reference relationship matrix between the reference calibration plate and the camera is regressively optimized based on the projection error of the target calibration plate.
[0010] Optionally, the performing initial calibration on the camera to determine an initial parameter vector of the camera includes:
[0011] Without moving the camera, an initial parameter vector of the camera is calculated based on a plurality of images of a preset calibration plate taken from a plurality of visual angles, wherein the initial parameter vector includes internal parameters characterizing a mapping relationship between a camera coordinate system and a pixel coordinate system.
[0012] Optionally, the calculating a reference relationship matrix of each remaining calibration plate of the plurality of calibration plates relative to the reference calibration plate comprises:
[0013] Without moving the camera, the image frames of the multi-faceted calibration unit are captured from different visual angles to obtain a first group of image frames; wherein each image frame in the first group of image frames at least includes images of at least two calibration plates in the multi-faceted calibration unit;
[0014] Determine a relative relationship matrix set between every two calibration plates from the first group of image frames respectively, and determine a final relationship matrix between every two calibration plates according to the relative relationship matrix set between every two calibration plates;
[0015] According to the final relationship matrix between every two calibration plates, a reference relationship matrix of each remaining calibration plate in the plurality of calibration plates relative to the reference calibration plate is calculated.
[0016] Optionally, the determining a relative relationship matrix set between every two calibration plates from the first group of image frames respectively, and determining a final relationship matrix between every two calibration plates according to the relative relationship matrix set between every two calibration plates, comprises:
[0017] A relative relationship matrix with a minimum average distance metric value is selected from the relative relationship matrix set between each two calibration plates as a final relationship matrix between each two calibration plates.
[0018] Optionally, the step of calculating, based on the final relationship matrix between every two calibration plates, a reference relationship matrix of each remaining calibration plate in the plurality of calibration plates relative to the reference calibration plate comprises:
[0019] According to the final relationship matrix between every two calibration plates, obtaining the minimum transformation path of each remaining calibration plate in the plurality of calibration plates relative to the reference calibration plate;
[0020] The reference relationship matrix of each of the remaining calibration plates relative to the reference calibration plate is calculated according to the product of the final relationship matrices between the calibration plates in the minimum transformation path.
[0021] Optionally, the calculating, based on the reference relationship matrix of each of the remaining calibration plates relative to the reference calibration plate, a reference relationship matrix between the reference calibration plate and the camera comprises:
[0022] Based on a second group of image frames obtained by photographing each of the remaining calibration plates at different times, a relative relationship matrix set between the reference calibration plate and the camera is calculated;
[0023] A relative relationship matrix with a minimum average distance metric value is selected from the relative relationship matrix set between the reference calibration plate and the camera as the reference relationship matrix between the reference calibration plate and the camera.
[0024] Optionally, the average distance metric value represents the average distance between any relative relationship matrix in the relative relationship matrix set and the remaining relative relationship matrices.
[0025] Optionally, the calculating the projection error of the target calibration plate in each of the remaining calibration plates according to the initial parameter vector of the camera, the reference relationship matrix of each of the remaining calibration plates relative to the reference calibration plate, and the reference relationship matrix between the reference calibration plate and the camera, and performing regression optimization on the reference relationship matrix between the reference calibration plate and the camera based on the projection error of the target calibration plate, comprises:
[0026] Moving the operating part of the surgical robot according to a predetermined position, and obtaining a third set of image frames of the target calibration plate based on the camera;
[0027] Repeatedly calculating the projection error of the target calibration plate in each image frame in the third group of image frames according to the initial parameter vector of the camera, the reference relationship matrix of each of the remaining calibration plates relative to the reference calibration plate, and the reference relationship matrix between the reference calibration plate and the camera;
[0028] The reference relationship matrix between the reference calibration plate and the camera is regressively optimized under the condition that the projection error is minimized.
[0029] Optionally, the projection error of the target calibration plate is the sum of distances between pixel coordinates of the target calibration plate in each image frame calculated by the projection function of the camera and pixel coordinates of four corner points of the two-dimensional mark of the target calibration plate in each image frame.
[0030] In a second aspect, the present application also proposes a single-camera calibration device for a surgical robot, comprising:
[0031] A first initial calibration unit, used to perform initial calibration on the camera to determine an initial parameter vector of the camera;
[0032] a second initial calibration unit, configured to perform initial calibration on a multi-faceted calibration unit rigidly connected to an operating part of the surgical robot, select one calibration plate from among a plurality of calibration plates in the multi-faceted calibration unit as a reference calibration plate, and calculate a reference relationship matrix of each of the remaining calibration plates in the plurality of calibration plates relative to the reference calibration plate;
[0033] A reference relationship calculation unit, configured to calculate a reference relationship matrix between the reference calibration plate and the camera based on a reference relationship matrix of each of the remaining calibration plates relative to the reference calibration plate;
[0034] A regression optimization unit is used to calculate the projection error of the target calibration plate in each of the remaining calibration plates according to the initial parameter vector of the camera, the reference relationship matrix of each of the remaining calibration plates relative to the reference calibration plate, and the reference relationship matrix between the reference calibration plate and the camera, and perform regression optimization on the reference relationship matrix between the reference calibration plate and the camera based on the projection error of the target calibration plate.
[0035] This application can at least achieve the following beneficial effects:
[0036] The single-camera calibration method and device for surgical robots of the present application can, on the one hand, effectively avoid the problem of large real-time computational complexity caused by using multiple cameras to locate and track the surgical robot, and reduce the computational complexity of the positioning and tracking of the surgical robot; on the other hand, when only a single camera is used, it can effectively avoid the problem of reduced calibration and tracking accuracy caused by insufficient ambient light or obscuration of the calibration plate object, and significantly improve the real-time and accuracy of the surgical robot's target positioning and tracking. BRIEF DESCRIPTION OF THE DRAWINGS
[0037] In order to more clearly illustrate the technical solutions of the embodiments of the present application, the following briefly introduces the drawings required for use in the embodiments of the present application. It should be understood that the following drawings only illustrate certain embodiments of the present application and should not be regarded as limiting the scope of the present application.
[0038] Figure 1 is a structural schematic diagram of a surgical robot positioning and tracking system according to an embodiment of the present application;
[0039] Figure 2 is a flow chart of a single-camera calibration method for a surgical robot according to an embodiment of the present application;
[0040] Figure 3 is a partial flow chart of a single-camera calibration method for a surgical robot according to another embodiment of the present application;
[0041] Figure 4 is a partial flow chart of a single-camera calibration method for a surgical robot according to another embodiment of the present application;
[0042] Figure 5 is a schematic diagram of calculating the calibration plate-to-plate transformation path according to an embodiment of the present application;
[0043] Figure 6 is a partial flow chart of a single-camera calibration method for a surgical robot according to another embodiment of the present application;
[0044] Figure 7 is a partial flow chart of a single-camera calibration method for a surgical robot according to another embodiment of the present application;
[0045] Figure 8 is a structural schematic diagram of a single-camera calibration device for a surgical robot according to an embodiment of the present application;
[0046] Fig. 9 is a partial structural schematic diagram of a single-camera calibration device for a surgical robot according to another embodiment of the present application;
[0047] Fig.10 is a partial structural schematic diagram of a single-camera calibration device for a surgical robot according to another embodiment of the present application;
[0048] Fig.11 is a partial structural schematic diagram of a single-camera calibration device for a surgical robot according to another embodiment of the present application;
[0049] Fig.12 is a partial structural schematic diagram of a single-camera calibration device for a surgical robot according to another embodiment of the present application;
[0050] Figure numbers: 110 - surgical robot; 111 - robotic arm; 112 - operating unit; 120 - multi-faceted calibration unit; 121 - calibration board; 130 - camera; 140 - control unit; 150 - display unit. DETAILED DESCRIPTION
[0051] To make the purpose, technical solutions and advantages of the present application clearer, the technical solutions in the embodiments of the present application will be clearly and completely described below in conjunction with the accompanying drawings of the embodiments of the present application. However, it should be understood that the described embodiments are only some exemplary embodiments of the present application, rather than all embodiments, and therefore the following detailed description of the embodiments of the present application is not intended to limit the scope of protection claimed in the present application. Based on the embodiments of the present application, all other embodiments obtained by those skilled in the art without making creative work belong to the scope of protection of the present application.
[0052] As mentioned above, in the prior art, the positioning and tracking scenario of a surgical robot based on multiple cameras will bring about a large real-time calculation complexity, affecting the real-time performance of the positioning and tracking of the surgical robot; while in the positioning and tracking scenario of a surgical robot based on a single camera, due to insufficient ambient light or when the calibration plate object is blocked, the calibration and tracking accuracy of the robot manipulator will be greatly reduced, affecting the real-time and accuracy of the surgical robot's target positioning and tracking. To this end, the present application proposes a single-camera calibration method and device for a surgical robot, so as to avoid the problem of reduced calibration and tracking accuracy caused by insufficient ambient light or when the calibration plate object is blocked under the condition of using a single camera, and significantly improve the real-time and accuracy of the surgical robot's target positioning and tracking.
[0053] Figure 1 It is an exemplary surgical robot positioning and tracking system applicable to the single-camera calibration method and device for surgical robots of this application. Figure 1 As shown, the system includes: a surgical robot 110, which includes a robotic arm 111 and an operating part 112 connected to the robotic arm 111, wherein the operating part 112 is rigidly connected to a multi-faceted calibration unit 120; it also includes a camera 130, a control unit 140 and a display unit 150, the camera 130 is used to capture a real-time video stream signal of the operating part 112 of the surgical robot 110, and transmit the real-time video stream signal to the control unit 140; the control unit 140 is connected to the camera 130, and can locate and track the operating part 112 of the surgical robot 110 based on the real-time video stream signal of the operating part 112 of the surgical robot 110 transmitted by the camera 130, and provide a surgical navigation auxiliary function to the user through the display unit 150.
[0054] Among them, the multi-faceted calibration unit 120 includes a plurality of calibration plates 121 facing different viewing angles, each calibration plate having a two-dimensional mark of the same size. In the process of hand-eye calibration of the operating part 112 of the surgical robot 110 based on the camera 130 and the control unit 140, the multi-faceted calibration unit 120 can ensure that each image frame taken by the camera 130 contains at least two calibration plate images, and can avoid the problem of reduced calibration and tracking accuracy due to insufficient light or shielding of the calibration plate during the movement and rotation of the operating part 112. The specific implementation of the single-camera calibration method of the present application will be described in detail in subsequent embodiments.
[0055] Figure 2 FIG. 1 is a flow chart of a single-camera calibration method for a surgical robot according to an embodiment of the present application. Figure 2 As shown, the method may include the following steps:
[0056] Step S201, performing initial calibration on the camera 130 to determine an initial parameter vector of the camera 130;
[0057] Step S202, performing an initial calibration on the multi-faceted calibration unit 120 rigidly connected to the operating part 112 of the surgical robot 110, selecting one calibration plate 121 among the multiple calibration plates 121 in the multi-faceted calibration unit 120 as a reference calibration plate, and calculating a reference relationship matrix of each of the remaining calibration plates 121 among the multiple calibration plates 121 relative to the reference calibration plate;
[0058] Step S203, based on the reference relationship matrix of each of the remaining calibration plates 121 relative to the reference calibration plate, a reference relationship matrix between the reference calibration plate and the camera 130 is calculated;
[0059] Step S204, according to the initial parameter vector of the camera 130, the reference relationship matrix of each of the remaining calibration plates 121 relative to the reference calibration plate, and the reference relationship matrix between the reference calibration plate and the camera 130, calculate the projection error of the target calibration plate in each of the remaining calibration plates 121, and regress and optimize the reference relationship matrix between the reference calibration plate and the camera 130 based on the projection error of the target calibration plate.
[0060] In this embodiment, first, the camera 130 is initially calibrated to obtain an initial parameter vector of the camera 130, and the initial parameter vector of the camera 130 may include internal parameters that characterize the mapping relationship between the camera coordinate system and the pixel coordinate system. The internal parameters of the camera 130 mainly include the focal length, principal point position, pixel size, etc. of the camera 130. In the case where the spatial position of the camera 130 is not moved, the internal parameters of the camera 130 are relatively fixed. At this time, the initial parameter vector of the camera can be calculated based on multiple images of a preset calibration plate taken from multiple visual angles, wherein the preset calibration plate may include any two-dimensional plane calibration plate.
[0061] Then, the multi-faceted calibration unit 120 rigidly connected to the operating part 112 of the surgical robot 110 is initially calibrated. The multi-faceted calibration unit 120 is composed of a plurality of calibration plates 121, one of which is selected as a reference calibration plate, and a reference relationship matrix of each of the remaining calibration plates 121 relative to the reference calibration plate is calculated, and the reference relationship matrix is used to represent the relative position relationship of each of the remaining calibration plates 121 relative to the reference calibration plate.
[0062] Optionally, the multi-faceted calibration unit 120 may be a plurality of calibration plates 121, including but not limited to four, six, eight, ten, etc. The specific number of calibration plates 121 may be determined according to the actual calibration accuracy requirements, and is not limited here. The exemplary multi-faceted calibration unit 120 used in the present application may include six calibration plates 121, and one calibration plate 121 among the plurality of calibration plates 121 in the multi-faceted calibration unit 120 is selected as a reference calibration plate, and a reference relationship matrix of each of the remaining calibration plates 121 in the plurality of calibration plates 121 relative to the reference calibration plate is calculated, and the reference relationship matrix describes the relative positional relationship of each of the remaining calibration plates 121 relative to the reference calibration plate, and plays a very important role in the subsequent calibration of the camera 130, positioning and navigation of the robot operating unit 112.
[0063] Subsequently, on this basis, the reference relationship matrix between the reference calibration plate and the camera 130 can be calculated from the reference relationship matrix of each of the remaining calibration plates 121 relative to the reference calibration plate. The reference relationship matrix between the reference calibration plate and the camera 130 is used to characterize the relative positional relationship between the reference calibration plate and the camera 130, and can be used to describe the mapping relationship between the world coordinate system of the multi-faceted calibration unit 120 and the camera coordinate system during the calibration process of the camera 130.
[0064] Finally, after obtaining the initial parameter vector of the camera 130, the reference relationship matrix of each of the remaining calibration plates 121 relative to the reference calibration plate, and the reference relationship matrix between the reference calibration plate and the camera 130 in the aforementioned steps, the projection error of the target calibration plate in each of the remaining calibration plates 121 can be calculated by combining the initial parameter vector of the camera 130, the reference relationship matrix of each of the remaining calibration plates 121 relative to the reference calibration plate, and the reference relationship matrix between the reference calibration plate and the camera 130.
[0065] The projection error of the target calibration plate reflects the accuracy of the relative position relationship between the camera 130 and the multi-faceted calibration unit 120. Based on the above projection error, the reference relationship matrix between the reference calibration plate and the camera 130 is regressively optimized to reduce the error of the position conversion relationship between the camera 130 and the world coordinate system of the surgical robot 110, and a better solution for the calibration of the relative position relationship between the camera 130 and the multi-faceted calibration unit 120 can be obtained, and the camera 130 can accurately calibrate the position conversion relationship from the world coordinate system to the pixel coordinate system of the surgical robot 110, thereby effectively avoiding the problem of reduced camera calibration and tracking accuracy caused by insufficient ambient light or when the calibration plate object is blocked during the single camera calibration process, and significantly improving the real-time and accuracy of the target positioning and tracking of the surgical robot 110.
[0066] In summary, the embodiment of the present application obtains parameters such as the initial parameter vector of the camera 130, the reference relationship matrix of each of the remaining calibration plates 121 relative to the reference calibration plate, and the reference relationship matrix between the reference calibration plate and the camera 130, and calculates the projection error of the target calibration plate in each of the remaining calibration plates 121 based on these parameters, and then regresses and optimizes the reference relationship matrix between the reference calibration plate and the camera 130 based on the projection error of the target calibration plate, thereby effectively avoiding the problem of large real-time calculation complexity caused by using multiple cameras to position and track the surgical robot, and reducing the calculation complexity of surgical robot positioning and tracking; at the same time, only under the condition of using a single camera, it effectively avoids the problem of reduced calibration and tracking accuracy due to insufficient ambient light or when the calibration plate object is obscured, and significantly improves the real-time and accuracy of the surgical robot's target positioning and tracking.
[0067] In one embodiment, if Figure 3 As shown, in the step S202, the step of calculating the reference relationship matrix of each of the remaining calibration plates 121 in the plurality of calibration plates 121 relative to the reference calibration plate may include:
[0068] Step S301, without moving the camera 130, respectively photographing image frames of the multi-faceted calibration unit 120 from different visual angles to obtain a first set of image frames; wherein each image frame in the first set of image frames includes images of at least two calibration plates 121 in the multi-faceted calibration unit 120;
[0069] Step S302, respectively determining a relative relationship matrix set between every two calibration plates 121 from the first group of image frames, and determining a final relationship matrix between every two calibration plates 121 according to the relative relationship matrix set between every two calibration plates 121;
[0070] Step S303 : According to the final relationship matrix between every two calibration plates 121 , a reference relationship matrix of each remaining calibration plate 121 in the plurality of calibration plates 121 relative to the reference calibration plate is calculated.
[0071] In this embodiment, each image frame in the first group of image frames of the multi-faceted calibration unit 120 captured by the camera 130 includes images of at least two calibration plates 121 in the multi-faceted calibration unit 120. Assuming that any two calibration plates 121 included in the image frames of the multi-faceted calibration unit 120 captured by the camera 130 at any time t are represented as i and j, respectively, so that the transformation matrices of the any two calibration plates 121 relative to the camera 130 can be represented as T by methods known in the art. i,t and T j,t , the transformation matrix of any two calibration plates 121 relative to the camera 130 is usually composed of a 3×3 rotation matrix and a 3×1 translation vector. The relative relationship matrix B from calibration plate i to calibration plate j is i,j The estimated calculation can be done according to the following formula:
[0072] B i,j =T i,t (T j,t ) -1 ;
[0073] Among them, (T j,t ) -1 Indicates T j,t The inverse operation matrix of .
[0074] By performing similar operations on each image frame in the first group of image frames, a relative relationship matrix set from calibration plate i to calibration plate j can be obtained for any two calibration plates i and j, which is expressed as SB i,j , namely SB i,j = {B i,j}.
[0075] Then, the optimal relative relationship matrix can be selected from the relative relationship matrix set of calibration plate i to calibration plate j according to the optimal principle as the final relationship matrix of calibration plate i relative to calibration plate j:
[0076] Finally, since each calibration plate 121 is not necessarily located in the same image frame as the reference calibration plate in each image frame captured by the camera 130 of the multi-faceted calibration unit 120, the relative relationship matrix from calibration plate i to the reference calibration plate needs to be estimated based on the final relationship matrix between any two calibration plates 121 located in the same image frame in the first group of image frames.
[0077] In summary, this embodiment obtains the image frames of the multi-faceted calibration unit 120 captured from different visual angles by the camera 130 without moving, and determines the relative relationship matrix set between every two calibration plates 121 in each group of image frames, thereby obtaining the final relationship matrix between every two calibration plates 121, thereby accurately locating the relative position relationship between every two calibration plates 121 in each group of image frames. Based on the final relationship matrix between every two calibration plates 121 in each group of image frames, the reference relationship matrix of each of the remaining calibration plates 121 of the multiple calibration plates 121 in the multi-faceted calibration unit 120 relative to the reference calibration plate is calculated, and the relative position relationship between each of the remaining calibration plates 121 and the reference calibration plate is obtained. Among them, the relative position relationship between each of the remaining calibration plates 121 and the reference calibration plate can be used as a parameter basis for estimating the reference relationship matrix between the reference calibration plate and the camera 130 in any image frame of each of the remaining calibration plates 121 of the multi-faceted calibration unit 120 captured by the camera 130, and can therefore be used in subsequent steps to accurately estimate the reference relationship matrix between the reference calibration plate and the camera 130.
[0078] In one embodiment, the step S302 of determining the relative relationship matrix set between each two calibration plates 121 from the first group of image frames, and determining the final relationship matrix between each two calibration plates 121 according to the relative relationship matrix set between each two calibration plates 121, may include:
[0079] A relative relationship matrix with a minimum average distance metric value is selected from the relative relationship matrix set between each two calibration plates 121 as the final relationship matrix between each two calibration plates 121 .
[0080] In this embodiment, as described above, assuming that any two calibration plates 121 included in the image frame captured by the camera 130 at time t of the multi-faceted calibration unit 120 are represented as i and j respectively, the average distance metric value of the relative relationship matrix represents the average distance between any relative relationship matrix and the remaining relative relationship matrices in the relative relationship matrix set from the calibration plate i to the calibration plate j, for example, it can be the average value of the Euclidean distance between any relative relationship matrix and the remaining relative relationship matrices. If the calculated average distance metric value of the relative relationship matrix of the calibration plate i relative to the calibration plate j is the smallest, it can be considered that the estimation accuracy of the relative relationship matrix is the most reliable.
[0081] Assuming that the relative relationship matrix set from the calibration plate i to the calibration plate j includes N relative relationship matrices calculated according to the above formula, the distance between each relative relationship matrix k in the set and each of the remaining relative relationship matrices l in the set can be expressed as Then the average distance metric value relative to the relationship matrix k can be expressed as Right now Thus, the minimum average distance measurement value in the relative relationship matrix set from calibration plate i to calibration plate j can be calculated: The relative relationship matrix corresponding to the minimum average distance metric value is the final relationship matrix of the calibration plate i relative to the calibration plate j. Then, accordingly, the final relationship matrix of the calibration plate i relative to the calibration plate j is The average distance metric
[0082] In one embodiment, if Figure 4 As shown, the step S303 of calculating the reference relationship matrix of each of the remaining calibration plates 121 in the plurality of calibration plates 121 relative to the reference calibration plate according to the final relationship matrix between every two calibration plates 121 may also include:
[0083] Step S401, obtaining a minimum transformation path of each remaining calibration plate 121 in the plurality of calibration plates 121 relative to the reference calibration plate according to a final relationship matrix between every two calibration plates 121;
[0084] Step S402 : calculating, according to the product of the final relationship matrices between the calibration plates 121 in the minimum transformation path, a reference relationship matrix of each of the remaining calibration plates 121 relative to the reference calibration plate.
[0085] In this embodiment, based on the final relationship matrix between every two calibration plates 121, there may be multiple transformation paths when calculating the relative relationship matrix of each of the remaining calibration plates 121 relative to the reference calibration plate. The relative relationship matrix of each of the remaining calibration plates 121 relative to the reference calibration plate calculated by each transformation path may be a different estimated value, and therefore it is necessary to obtain the best estimated value from these estimated values.
[0086] Specifically, the transformation path with the smallest sum of average distance measurement values of the relative relationship matrix between the calibration plates 121 in each transformation path is selected as the minimum transformation path of each of the remaining calibration plates 121 relative to the reference calibration plate.
[0087] Figure 5 FIG. 1 is a schematic diagram of calculating the transformation path between calibration plates according to an embodiment of the present application. Figure 5 As shown, for ease of understanding, it is assumed that the calibration plate 1 is a reference calibration plate, that is, the calibration plate 1 is also a reference calibration plate 1 .
[0088] First, according to the calculation method of the reference relationship matrix of each remaining calibration plate 121 relative to the reference calibration plate in the embodiment in step S202, it is assumed that any two calibration plates 121 included in the image frame captured by the camera 130 at any time t of the multi-faceted calibration unit 120 are represented as 1 and 2 respectively, so that the relationship matrix of the arbitrary two calibration plates 121 relative to the camera 130 can be represented as T by a method known in the art. 1,t and T 2,t , the relationship matrix between any two calibration plates 121 and the camera 130 is usually composed of a 3×3 rotation matrix and a 3×1 translation vector. The relative relationship matrix B from calibration plate 1 to calibration plate 2 is 1,2 The estimated calculation can be done according to the following formula:
[0089] B 1,2 =T 1,t (T 2,t ) -1 ;
[0090] Among them, (T 2,t ) -1 Indicates T 2,t The inverse operation matrix of .
[0091] Thus, the relative relationship matrix set from calibration plate 1 to calibration plate 2 is obtained, which is expressed as SB 1,2 , namely SB 1,2 = {B 1,2}.
[0092] Then, according to the calculation method of the final relationship matrix between each two calibration plates 121 in the embodiment in step S302, assuming that the relative relationship matrix set from the calibration plate 1 to the calibration plate 2 includes N relative relationship matrices calculated according to the above formula, the distance between each relative relationship matrix k in the set and each of the remaining relative relationship matrices l in the set can be expressed as Then the average distance metric value relative to the relationship matrix k can be expressed as Right now Thus, the minimum average distance measurement value in the relative relationship matrix set from calibration plate 1 to calibration plate 2 can be calculated: The relative relationship matrix corresponding to the minimum average distance metric value That is, the final relationship matrix of calibration plate 1 relative to calibration plate 2 The final relationship matrix between calibration plate 1 and calibration plate 2 can be calculated in the same way as the final relationship matrix between calibration plate 2 and calibration plate 3 based on the image frames taken at other times. The final relationship matrix between calibration plate 3 and calibration plate 4 The final relationship matrix between calibration plate 1 and calibration plate 3 I will not go into details here.
[0093] Then, by Figure 5 The relative relationship matrix of calibration plate 4 with respect to reference calibration plate 1 can include two transformation paths. The first transformation path is calibration plate 1->calibration plate 2->calibration plate 3->calibration plate 4, that is, the final relationship matrix between calibration plates 1 and 2 is Final relationship matrix between calibration plates 2 and 3 Final relationship matrix between calibration plates 3 and 4 The estimated value of the relative relationship matrix of the calibration plate 4 relative to the reference calibration plate 1 is obtained by multiplying the product of ;
[0094] The second transformation path is calibration plate 1->calibration plate 3->calibration plate 4, that is, the final relationship matrix between calibration plates 1 and 3 is Final relationship matrix between calibration plates 3 and 4 The estimated value of the relative relationship matrix of calibration plate 4 relative to reference calibration plate 1 is calculated by multiplying the product of .
[0095] Finally, if in the second transformation path, the final relationship matrix between calibration plate 1 and calibration plate 3 is The final relationship matrix between calibration plate 3 and calibration plate 4 The sum of the average distance metrics Less than the final relationship matrix between calibration plate 1 and calibration plate 2 The final relationship matrix between calibration plate 2 and calibration plate 3 The final relationship matrix between calibration plate 3 and calibration plate 4 The sum of the average distance metrics Then the second transformation path is the minimum transformation path of the calibration plate 4 relative to the reference calibration plate 1. Therefore, according to the minimum transformation path of the calibration plate 4 relative to the reference calibration plate 1, the reference relationship matrix of the calibration plate 4 relative to the reference calibration plate 1 can be estimated as:
[0096] Therefore, according to the above method, the final relationship matrix between any two calibration plates i and j in the multi-surface calibration unit 120 can be calculated in sequence. The reference relationship matrix of each remaining calibration plate m in the multi-surface calibration unit 120 relative to the reference calibration plate 1 can be calculated as:
[0097] In one embodiment, the average distance measurement value represents the average distance between any relative relationship matrix in the relative relationship matrix set and the remaining relative relationship matrices, and may be the average value of the Euclidean distance between any relative relationship matrix and the remaining relative relationship matrices.
[0098] To summarize, by solving the sum of the average distance measurement values in multiple transformation paths of the final relationship matrix between every two calibration plates 121 and comparing them, the minimum transformation path of each remaining calibration plate 121 among the multiple calibration plates 121 relative to the reference calibration plate is obtained, and according to the product of the final relationship matrices between the calibration plates 121 in the minimum transformation path, the reference relationship matrix of each remaining calibration plate 121 relative to the reference calibration plate is obtained, which reduces the computational complexity of positioning and tracking, achieves accurate positioning of each remaining calibration plate 121, and improves the calibration accuracy of the system.
[0099] In one embodiment, if Figure 6 As shown, the step S203 of calculating the reference relationship matrix between the reference calibration plate and the camera 130 based on the reference relationship matrix of each of the remaining calibration plates 121 relative to the reference calibration plate may specifically include:
[0100] Step S601, based on a second set of image frames obtained by photographing each of the remaining calibration plates 121 at different times, a relative relationship matrix set between the reference calibration plate and the camera 130 is calculated;
[0101] Step S602 : selecting a relative relationship matrix with a minimum average distance metric value from a set of relative relationship matrices between the reference calibration plate and the camera 130 as a reference relationship matrix between the reference calibration plate and the camera 130 .
[0102] In this embodiment, it is assumed that each of the remaining calibration plates m in the multi-faceted calibration unit 120 is photographed by the camera 130 with an image frame at any time t, and the transformation matrix of each of the remaining calibration plates m relative to the camera 130 can be expressed as T m,t By photographing each of the remaining calibration plates m at different times, a second set of image frames corresponding to each of the remaining calibration plates m can be obtained.
[0103] According to the embodiment in step S303, the reference relationship matrix of the calibration plate m relative to the reference calibration plate 1 can be obtained: In combination with the above steps, according to the image frame at any time t in the second group of image frames corresponding to each of the remaining calibration plates m, the relative relationship matrix between the reference calibration plate 1 and the camera 130 can be estimated and calculated according to the following formula:
[0104]
[0105] in, express The inverse operation matrix of .
[0106] Thus, according to the image frame at each moment in the second group of image frames corresponding to each of the remaining calibration plates m, a relative relationship matrix set between the reference calibration plate and the camera 130 can be calculated and estimated accordingly, expressed as SC1, that is, SC1={C1}.
[0107] Then, a relative relationship matrix with the smallest average distance metric value may be selected from the relative relationship matrix set between the reference calibration plate and the camera 130 as the reference relationship matrix between the reference calibration plate and the camera 130. If the average distance metric value of the relative relationship matrix between the reference calibration plate and the camera 130 is the smallest, it can be considered that the estimation accuracy is the most reliable.
[0108] In one implementation, similar to the above embodiment, the average distance metric value represents the average distance between any relative relationship matrix in the relative relationship matrix set and the remaining relative relationship matrices, and may be the average value of the Euclidean distance between any relative relationship matrix and the remaining relative relationship matrices.
[0109] To summarize, by taking images of each calibration plate 121 at different times, a second group of image frames is obtained. Based on the reference relationship matrix of the calibration plate 121 relative to the reference calibration plate and the second group of image frames, a set of relative relationship matrices between the reference calibration plate and the camera 130 is calculated. By selecting the relative relationship matrix with the minimum average distance measurement value from the relative relationship matrix set, the reference relationship matrix between the reference calibration plate and the camera 130 can be obtained, and the relative position relationship between the reference calibration plate and the camera 130 is accurately located, thereby improving the calibration accuracy and stability of the camera 130.
[0110] In one embodiment, if Figure 7 As shown, in step S204, the calculation of the projection error of the target calibration plate in each of the remaining calibration plates 121 according to the initial parameter vector of the camera, the reference relationship matrix of each of the remaining calibration plates 121 relative to the reference calibration plate, and the reference relationship matrix between the reference calibration plate and the camera 130, and the regression optimization of the reference relationship matrix between the reference calibration plate and the camera 130 based on the projection error of the target calibration plate may include:
[0111] Step S701, moving the operating part 112 of the surgical robot 110 to a predetermined position, and obtaining a third set of image frames of the target calibration plate based on the camera 130;
[0112] Step S702, repeatedly calculating the projection error of the target calibration plate in each image frame in the third group of image frames according to the initial parameter vector of the camera 130, the reference relationship matrix of each of the remaining calibration plates 121 relative to the reference calibration plate, and the reference relationship matrix between the reference calibration plate and the camera 130;
[0113] Step S703 , performing regression optimization on the reference relationship matrix between the reference calibration plate and the camera 130 with the projection error being minimized.
[0114] In this embodiment, the operating part 112 of the surgical robot 110 is moved to a predetermined position, and a third group of image frames of the target calibration plate q in each of the remaining calibration plates 121 is obtained based on the camera 130. Assuming that the initial parameter vector of the camera 130 is P, the reference relationship matrix of the target calibration plate q relative to the reference calibration plate can be obtained according to the calculation method of the embodiment in step S303. According to the calculation method of the embodiment in step S203, the reference relationship matrix between the reference calibration plate and the camera 130 can be obtained. Under this condition, the projection function of the camera 130 can be expressed as The projection function of the camera 130 refers to a function that projects an object in a three-dimensional space to pixel coordinates of a two-dimensional image of the camera 130 .
[0115] Subsequently, the projection error of the target calibration plate q in each image frame in the third group of image frames may be repeatedly calculated based on the initial parameter vector of the camera 130, the reference relationship matrix of each of the remaining calibration plates 121 relative to the reference calibration plate, and the reference relationship matrix between the reference calibration plate and the camera 130. During the calibration process of the camera 130, the error generated by projecting a known object in a three-dimensional space onto the two-dimensional image plane of the camera 130 is called a projection error. Specifically, the projection error refers to the Euclidean distance between the pixel coordinates of the actual projection point and the ideal projection point.
[0116] The projection error of the target calibration plate q in this embodiment can be calculated as:
[0117]
[0118] Among them, u v Represents the pixel coordinates of the corner point v of the two-dimensional mark of the target calibration plate q in the image frame, v = 1, 2, 3, 4; It represents the distance between the pixel coordinates of the target calibration plate q in the image frame calculated by the projection function of the camera 130 and the pixel coordinates of the corner point v of the two-dimensional mark of the target calibration plate q in the image frame; the projection error of the target calibration plate q is the sum of the distances between the pixel coordinates of the target calibration plate q in the image frame calculated by the projection function of the camera 130 and the pixel coordinates of the four corner points of the two-dimensional mark of the target calibration plate q in the image frame.
[0119] The above projection error calculation is repeated for each image frame in the third group of image frames of the target calibration plate q, and a regression optimization algorithm is used to obtain a better solution of the reference relationship matrix between the reference calibration plate and the camera 130 under the condition of minimizing the projection error.
[0120] The regression optimization algorithm refers to a method of minimizing the difference between the predicted value and the true value by iterating and optimizing parameters, so that the model can be as close to the real data as possible, and the parameters finally obtained are the optimal solution or a relatively good solution. Specifically, the embodiment of the present application can use the least squares method, gradient descent method and other methods to obtain the reference relationship matrix between the reference calibration plate and the camera 130 that minimizes the projection error. The optimal solution can be obtained, so that the reference relationship matrix that represents the more accurate relative position relationship between the reference calibration plate and the camera 130 can be obtained, thereby completing the accurate calibration of the position transformation relationship from the world coordinate system to the pixel coordinate system of the surgical robot 110 by the camera 130.
[0121] To summarize, the projection error is calculated by calculating the third group of image frames of the target calibration plate captured by the camera 130 when the operating part 112 of the surgical robot 110 moves to a predetermined position, and a regression algorithm is used with the minimum projection error as the condition to obtain a better solution of the reference relationship matrix between the reference calibration plate and the camera 130, thereby effectively avoiding the problem of reduced calibration and tracking accuracy due to insufficient ambient light or when the calibration plate object is obscured, and significantly improving the real-time and accuracy of the surgical robot's target positioning and tracking.
[0122] Figure 8 FIG. 1 is a schematic diagram of a single-camera calibration device for a surgical robot according to an embodiment of the present application. Figure 8 As shown, the device includes the following units:
[0123] A first initial calibration unit 801, configured to perform initial calibration on the camera 130 and determine an initial parameter vector of the camera 130;
[0124] The second initial calibration unit 802 is used to perform initial calibration on the multi-surface calibration unit 120 rigidly connected to the operating part 112 of the surgical robot 110, select one calibration plate 121 among the multiple calibration plates 121 in the multi-surface calibration unit 120 as a reference calibration plate, and calculate a reference relationship matrix of each of the remaining calibration plates 121 in the multiple calibration plates 121 relative to the reference calibration plate;
[0125] A reference relationship calculation unit 803, configured to calculate a reference relationship matrix between the reference calibration plate and the camera 130 based on a reference relationship matrix of each of the remaining calibration plates 121 relative to the reference calibration plate;
[0126] The regression optimization unit 804 is used to calculate the projection error of the target calibration plate in each of the remaining calibration plates 121 according to the initial parameter vector of the camera 130, the reference relationship matrix of each of the remaining calibration plates 121 relative to the reference calibration plate, and the reference relationship matrix between the reference calibration plate and the camera 130, and perform regression optimization on the reference relationship matrix between the reference calibration plate and the camera 130 based on the projection error of the target calibration plate.
[0127] In one embodiment, if Fig. 9 As shown, the second initial calibration unit 802 may further include the following modules:
[0128] The first image capturing module 901 is configured to capture image frames of the multi-faceted calibration unit 120 from different visual angles without moving the camera 130, so as to obtain a first set of image frames; wherein each image frame in the first set of image frames includes images of at least two calibration plates 121 in the multi-faceted calibration unit 120;
[0129] A first calculation module 902 is used to determine a relative relationship matrix set between every two calibration plates 121 from the first group of image frames, and determine a final relationship matrix between every two calibration plates 121 according to the relative relationship matrix set between every two calibration plates 121;
[0130] The second calculation module 903 is used to calculate the reference relationship matrix of each remaining calibration plate 121 in the plurality of calibration plates 121 relative to the reference calibration plate according to the final relationship matrix between every two calibration plates 121 .
[0131] In one embodiment, if Fig.10 As shown, the second calculation module 903 may further include the following modules:
[0132] A third calculation module 1001 is configured to obtain a minimum transformation path of each remaining calibration plate 121 of the plurality of calibration plates 121 relative to the reference calibration plate according to a final relationship matrix between every two calibration plates 121;
[0133] The fourth calculation module 1002 calculates a reference relationship matrix of each of the remaining calibration plates 121 relative to the reference calibration plate according to the product of the final relationship matrices between the calibration plates 121 in the minimum transformation path.
[0134] In one embodiment, if Fig.11 As shown, the reference relationship calculation unit 803 may further include the following modules:
[0135] A fifth calculation module 1101 is used to calculate a relative relationship matrix set between the reference calibration plate and the camera 130 based on a second group of image frames obtained by photographing each of the remaining calibration plates 121 at different times;
[0136] The sixth calculation module 1102 is configured to select a relative relationship matrix with a minimum average distance metric value from the set of relative relationship matrices between the reference calibration plate and the camera 130 as a reference relationship matrix between the reference calibration plate and the camera 130 .
[0137] In one embodiment, if Fig.12 As shown, the regression optimization unit 804 may further include the following modules:
[0138] A second image capturing module 1201 is used to move the operating part 112 of the surgical robot 110 to a predetermined position, and obtain a third set of image frames of the target calibration plate based on the camera 130;
[0139] an error calculation module 1202, configured to repeatedly calculate the projection error of the target calibration plate in each image frame in the third group of image frames according to an initial parameter vector of the camera 130, a reference relationship matrix of each of the remaining calibration plates 121 relative to the reference calibration plate, and a reference relationship matrix between the reference calibration plate and the camera 130;
[0140] The regression calculation module 1203 is used to perform regression optimization on the reference relationship matrix between the reference calibration plate and the camera 130 under the condition of minimizing the projection error.
[0141] In summary, the embodiment of the present application first performs an initial calibration on the camera 130 to obtain an initial parameter vector of the camera 130, wherein the initial parameter vector of the camera 130 may include internal parameters that characterize the mapping relationship between the coordinate system of the camera 130 and the pixel coordinate system; then, the multi-faceted calibration unit 120 rigidly connected to the operating part 112 of the surgical robot 110 is initially calibrated, wherein the multi-faceted calibration unit 120 is composed of a plurality of calibration plates 121, and one of the calibration plates 121 is selected as a reference calibration plate, and a reference relationship matrix of each of the remaining calibration plates 121 in the plurality of calibration plates 121 relative to the reference calibration plate is calculated, and the reference relationship matrix is used to represent the relative positional relationship of each of the remaining calibration plates 121 relative to the reference calibration plate; on this basis, the reference relationship matrix between the reference calibration plate and the camera 130 is calculated from the reference relationship matrix of each of the remaining calibration plates 121 relative to the reference calibration plate. ; Finally, combining the initial parameter vector of the camera 130, the reference relationship matrix of each of the remaining calibration plates 121 relative to the reference calibration plate, and the reference relationship matrix between the reference calibration plate and the camera 130, the projection error of the target calibration plate in each of the remaining calibration plates 121 is calculated, and based on the projection error, the regression optimization of the reference relationship matrix between the reference calibration plate and the camera 130 is implemented to complete the calibration of the position conversion relationship from the world coordinate system to the pixel coordinate system of the surgical robot by the camera 130, thereby effectively avoiding the problem of large real-time calculation complexity brought about by using multiple cameras to locate and track the surgical robot, and reducing the calculation complexity of surgical robot positioning and tracking; at the same time, only under the condition of using a single camera, it can effectively avoid the problem of reduced calibration and tracking accuracy caused by insufficient ambient light or when the calibration plate object is blocked, and significantly improve the real-time and accuracy of the target positioning and tracking of the surgical robot.
[0142] It should be noted that those skilled in the art can understand that the different implementation methods described in the method embodiments of the present application and their explanations and technical effects achieved are also applicable to the device embodiments of the present application and will not be repeated here.
[0143] In addition, the terms "first" and "second" are used for descriptive purposes only and should not be understood as indicating or implying relative importance or implicitly indicating the number of the indicated technical features. Therefore, the features defined as "first" and "second" may explicitly or implicitly include at least one of the features. In the description of the present invention, the meaning of "plurality" is at least two, such as two, three, etc., unless otherwise clearly and specifically defined.
[0144] The above describes the exemplary embodiments of the present application. It should be understood that the above exemplary embodiments are not restrictive but illustrative, and the protection scope of the present application is not limited thereto. It should be understood that those skilled in the art can modify and vary the embodiments of the present application without departing from the spirit and scope of the present application, and these modifications and variations should be within the protection scope of the present application.
Claims
1. A single-camera calibration method for a surgical robot, characterized in that: The method comprises: Performing an initial calibration on the camera to determine an initial parameter vector of the camera; Performing an initial calibration on a multi-faceted calibration unit rigidly connected to an operating part of a surgical robot, selecting one calibration plate from a plurality of calibration plates in the multi-faceted calibration unit as a reference calibration plate, and calculating a reference relationship matrix of each of the remaining calibration plates in the plurality of calibration plates relative to the reference calibration plate, wherein, without moving the camera, image frames of the multi-faceted calibration unit are photographed from different visual angles to obtain a first group of image frames; each image frame in the first group of image frames contains images of at least two calibration plates in the multi-faceted calibration unit; determining a relative relationship matrix set between each two calibration plates from the first group of image frames, and determining a final relationship matrix between each two calibration plates based on the relative relationship matrix set between each two calibration plates; and calculating a reference relationship matrix of each of the remaining calibration plates in the plurality of calibration plates relative to the reference calibration plate based on the final relationship matrix between each two calibration plates; Based on the reference relationship matrix of each of the remaining calibration plates relative to the reference calibration plate, a reference relationship matrix between the reference calibration plate and the camera is calculated; According to the initial parameter vector of the camera, the benchmark relationship matrix of each of the remaining calibration plates relative to the benchmark calibration plate, and the benchmark relationship matrix between the benchmark calibration plate and the camera, the projection error of the target calibration plate in each of the remaining calibration plates is calculated, and the benchmark relationship matrix between the benchmark calibration plate and the camera is regressively optimized based on the projection error of the target calibration plate, wherein the operating part of the surgical robot is moved according to a predetermined position, and a third group of image frames of the target calibration plate is obtained based on the camera; according to the initial parameter vector of the camera, the benchmark relationship matrix of each of the remaining calibration plates relative to the benchmark calibration plate, and the benchmark relationship matrix between the benchmark calibration plate and the camera, the projection error of the target calibration plate in each image frame in the third group of image frames is repeatedly calculated; and the benchmark relationship matrix between the benchmark calibration plate and the camera is regressively optimized with the projection error being minimized.
2. The single-camera calibration method for a surgical robot according to claim 1, characterized in that: The initial calibration of the camera to determine the initial parameter vector of the camera includes: Without moving the camera, an initial parameter vector of the camera is calculated based on a plurality of images of a preset calibration plate taken from a plurality of visual angles, wherein the initial parameter vector includes internal parameters characterizing a mapping relationship between a camera coordinate system and a pixel coordinate system.
3. The single-camera calibration method for a surgical robot according to claim 1, characterized in that: The step of respectively determining a relative relationship matrix set between each two calibration plates from the first group of image frames, and determining a final relationship matrix between each two calibration plates according to the relative relationship matrix set between each two calibration plates, comprises: A relative relationship matrix with a minimum average distance metric value is selected from the relative relationship matrix set between each two calibration plates as a final relationship matrix between each two calibration plates.
4. The single-camera calibration method for a surgical robot according to claim 3, characterized in that: The step of calculating, based on the final relationship matrix between every two calibration plates, a reference relationship matrix of each of the remaining calibration plates in the plurality of calibration plates relative to the reference calibration plate comprises: According to the final relationship matrix between every two calibration plates, obtaining the minimum transformation path of each remaining calibration plate in the plurality of calibration plates relative to the reference calibration plate; The reference relationship matrix of each of the remaining calibration plates relative to the reference calibration plate is calculated according to the product of the final relationship matrices between the calibration plates in the minimum transformation path.
5. The single-camera calibration method for a surgical robot according to claim 1, characterized in that: The step of calculating the reference relationship matrix between the reference calibration plate and the camera based on the reference relationship matrix of each of the remaining calibration plates relative to the reference calibration plate comprises: Based on a second group of image frames obtained by photographing each of the remaining calibration plates at different times, a relative relationship matrix set between the reference calibration plate and the camera is calculated; A relative relationship matrix with a minimum average distance metric value is selected from the relative relationship matrix set between the reference calibration plate and the camera as the reference relationship matrix between the reference calibration plate and the camera.
6. The single-camera calibration method for a surgical robot according to claim 3 or 5, characterized in that: The average distance measurement value represents the average distance between any relative relationship matrix in the relative relationship matrix set and the remaining relative relationship matrices.
7. The single-camera calibration method for a surgical robot according to claim 1, characterized in that: The projection error of the target calibration plate is the sum of the distances between the pixel coordinates of the target calibration plate in each image frame and the pixel coordinates of the four corner points of the two-dimensional mark of the target calibration plate in each image frame calculated by the projection function of the camera.
8. A single-camera calibration device for a surgical robot, characterized in that: The device comprises: A first initial calibration unit, used to perform initial calibration on the camera to determine an initial parameter vector of the camera; A second initial calibration unit is used to perform initial calibration on a multi-faceted calibration unit rigidly connected to an operating part of the surgical robot, select one calibration plate from a plurality of calibration plates in the multi-faceted calibration unit as a reference calibration plate, and calculate a reference relationship matrix of each of the remaining calibration plates in the plurality of calibration plates relative to the reference calibration plate, wherein, without moving the camera, image frames of the multi-faceted calibration unit are photographed from different visual angles to obtain a first group of image frames; each image frame in the first group of image frames contains images of at least two calibration plates in the multi-faceted calibration unit; a relative relationship matrix set between each two calibration plates is determined from the first group of image frames, and a final relationship matrix between each two calibration plates is determined based on the relative relationship matrix set between each two calibration plates; and a reference relationship matrix of each of the remaining calibration plates in the plurality of calibration plates relative to the reference calibration plate is calculated based on the final relationship matrix between each two calibration plates; A reference relationship calculation unit, configured to calculate a reference relationship matrix between the reference calibration plate and the camera based on a reference relationship matrix of each of the remaining calibration plates relative to the reference calibration plate; A regression optimization unit is used to calculate the projection error of the target calibration plate in each of the remaining calibration plates according to the initial parameter vector of the camera, the benchmark relationship matrix of each of the remaining calibration plates relative to the benchmark calibration plate, and the benchmark relationship matrix between the benchmark calibration plate and the camera, and to perform regression optimization on the benchmark relationship matrix between the benchmark calibration plate and the camera based on the projection error of the target calibration plate, wherein the operating part of the surgical robot is moved according to a predetermined position, and a third group of image frames of the target calibration plate is obtained based on the camera; the projection error of the target calibration plate in each image frame in the third group of image frames is repeatedly calculated according to the initial parameter vector of the camera, the benchmark relationship matrix of each of the remaining calibration plates relative to the benchmark calibration plate, and the benchmark relationship matrix between the benchmark calibration plate and the camera; and the benchmark relationship matrix between the benchmark calibration plate and the camera is regression optimized on the condition that the projection error is minimized.
