Ultrasonic scanning three-dimensional reconstruction system and three-dimensional reconstruction method
By designing a three-dimensional reconstruction system for ultrasonic scanning, the synchronous movement of the ultrasonic probe and camera and the pressure sensor are used to achieve three-dimensional spatial information acquisition and precise pressure control of the ultrasonic probe, solving the problem of the complexity of existing equipment and the inability to observe three-dimensional structures in two-dimensional images. problems, improving diagnostic accuracy and portability.
Patent Information
- Application Number
- CN202311622042.4
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2023-11-30
- Publication Date
- 2024-09-27
- Estimated Expiration
- 2043-11-30
AI Technical Summary
The existing three-dimensional positioning equipment for ultrasound probes is large, complex, expensive and bulky, and is not suitable for portable use. Moreover, traditional two-dimensional ultrasound images cannot accurately observe the three-dimensional structure of the tissue, and the diagnostic results rely on the doctor's experience.
A three-dimensional reconstruction system for ultrasonic scanning is designed, including a scanning device and a three-dimensional reconstruction method. Through the synchronous movement of the ultrasonic probe and camera, the data acquisition module and intelligent terminal are used for three-dimensional image reconstruction, and the pressure sensor is combined to achieve precise pressure control. Reduce the complexity and cost of the ultrasonic probe three-dimensional positioning system.
It achieves simultaneous acquisition of three-dimensional spatial information of the ultrasound probe during two-dimensional ultrasound scanning, significantly reduces the complexity and cost of the three-dimensional positioning system of the ultrasound probe, and improves the accuracy and portability of disease diagnosis.
Smart Images

Figure CN117379092B
Abstract
Description
Technical Field
[0001] The present invention relates to the field of ultrasonic technology, and in particular to an ultrasonic scanning three-dimensional reconstruction system and a three-dimensional reconstruction method. Background Art
[0002] Ultrasound examination is a medical imaging diagnostic technology based on ultrasound, which can visualize human tissues and thus detect lesions in human tissues. Traditional two-dimensional ultrasound images cannot accurately observe the three-dimensional structure of tissues, and the diagnosis results largely rely on the doctor's experience and knowledge.
[0003] At present, ultrasonic probes achieve three-dimensional positioning mainly by relying on external sensor devices, such as electromagnetic induction devices and external visual tracking devices. Existing ultrasonic probe three-dimensional positioning devices are large and complex, and the positioning sensor devices are expensive and bulky, making them inconvenient to use in portable scenarios.
[0004] If the ultrasound 2D image can be reconstructed into 3D, it can provide more intuitive, rich and comprehensive diagnostic information of the ultrasound examination site, and improve the level of disease diagnosis of ultrasound examination. It is a necessary condition to realize the 3D reconstruction of ultrasound 2D image to make the ultrasound 2D image have spatial 3D posture information. Summary of the invention
[0005] In order to overcome the problems existing in the related art, the present invention provides an ultrasonic scanning three-dimensional reconstruction system and a three-dimensional reconstruction method, which can realize the synchronous acquisition of the three-dimensional spatial information of the ultrasonic probe during two-dimensional ultrasonic scanning, and can perform three-dimensional reconstruction of the ultrasonic two-dimensional image; at the same time, it can also realize the precise control of the scanning pressure.
[0006] One of the purposes of the present invention is to provide an ultrasonic scanning three-dimensional reconstruction system, comprising:
[0007] A scanning device, the scanning device comprising a detection assembly, a linear guide rail and a driving member, the detection assembly comprising a fixedly connected ultrasonic probe and a camera; the detection assembly is slidably connected to the linear guide rail; the driving member is used to drive the detection assembly to slide along the linear guide rail;
[0008] A data acquisition module, the data acquisition module is in communication with the scanning device and is used to receive data collected by the scanning device;
[0009] An intelligent terminal is communicatively connected with the data acquisition module and is used for reconstructing a three-dimensional image using the data collected by the data acquisition module; wherein the intelligent terminal converts the three-dimensional spatial posture corresponding to the camera into the three-dimensional spatial posture corresponding to the ultrasound probe at the same time according to the positional relationship between the camera and the ultrasound probe, and realizes the three-dimensional positioning of the ultrasound probe using the three-dimensional spatial posture corresponding to the ultrasound probe.
[0010] Furthermore, the scanning device also includes a pressure sensor, and a holding portion and a lifting seat are provided in the linear guide rail; the lifting seat is slidably connected to the linear guide rail; the two ends of the pressure sensor are fixedly connected to the detection assembly and the lifting seat respectively; the holding portion is located on the side of the lifting seat away from the pressure sensor; and the driving member is used to drive the lifting seat to slide along the linear guide rail.
[0011] Furthermore, the detection assembly also includes a bracket, and the bracket and the lifting seat are respectively located at the top and bottom ends of the pressure sensor. An ultrasonic probe and a camera are arranged on the side of the bracket, and the scanning direction of the ultrasonic probe is parallel to the extension direction of the linear guide rail.
[0012] Furthermore, a clamp is provided at one end of the bracket away from the pressure sensor, the ultrasonic probe is installed in the clamp, a mounting seat is provided on one side of the clamp, the camera is installed in the mounting seat, and the ultrasonic probe and the camera are both directed toward the side away from the pressure sensor along the extension direction of the linear guide rail.
[0013] Furthermore, a slider is provided in the linear guide rail, the slider is slidably connected to the linear guide rail, and the slider is fixedly connected to the lifting seat at the same time.
[0014] Furthermore, the scanning device also includes a controller, which is simultaneously connected to the ultrasonic probe, the camera, the drive member, and the pressure sensor; the controller obtains spatial three-dimensional posture information according to the image captured by the camera, the controller obtains an ultrasonic two-dimensional image according to the ultrasonic probe, and realizes three-dimensional positioning of the ultrasonic probe according to the ultrasonic two-dimensional image and the three-dimensional posture information;
[0015] The controller controls the driving member to drive the detection component to move according to the real-time monitoring value of the pressure sensor.
[0016] Furthermore, it also includes a display, which is communicatively connected to the intelligent terminal and is used to display the data collected by the data collection module and the three-dimensional image reconstruction data.
[0017] The present application provides a three-dimensional reconstruction method, which is implemented based on the ultrasonic scanning three-dimensional reconstruction system as described above, and includes the following steps:
[0018] Place the ultrasound probe in contact with the human skin at the site to be scanned;
[0019] Drive the ultrasound probe and the camera to move synchronously along the skin surface;
[0020] The data acquisition module obtains the ultrasonic two-dimensional image collected by the ultrasonic probe, obtains the three-dimensional spatial information corresponding to the two-dimensional ultrasonic image collected by the camera, and transmits it to the intelligent terminal;
[0021] According to the positional relationship between the camera and the ultrasound probe, the intelligent terminal converts the three-dimensional spatial posture corresponding to the camera into the three-dimensional spatial posture corresponding to the ultrasound probe at the same time; and inputs the three-dimensional spatial posture data of the ultrasound probe and the ultrasound two-dimensional image into the three-dimensional image reconstruction software for ultrasound three-dimensional reconstruction.
[0022] Furthermore, during the ultrasonic scanning process, the pressure value of the ultrasonic probe acting on the human skin is obtained in real time through the pressure sensor; when the absolute difference between the monitoring value of the pressure sensor and the preset value of the pressure sensor is less than or equal to the adjustment range of the pressure sensor, the driving member drives the lifting seat to slide in a direction close to or away from the human body.
[0023] Further, according to the positional relationship between the camera and the ultrasound probe, converting the three-dimensional spatial posture corresponding to the camera into the three-dimensional spatial posture corresponding to the ultrasound probe at the same time includes:
[0024] Analyze the synchronized data to obtain corresponding matching optical image data and ultrasonic two-dimensional image data;
[0025] According to the optical image data, the current position and posture information of the camera is calculated through the visual positioning algorithm;
[0026] By comparing and calculating with the initial position and initial posture of the camera, the displacement data and rotation data of the camera are calculated;
[0027] Through the positional relationship between the camera and the ultrasonic probe, the displacement distance and rotation angle of the ultrasonic probe are calculated according to the displacement and rotation data of the camera;
[0028] The ultrasonic two-dimensional image and the corresponding displacement data and rotation data are combined to generate and store data in a preset format.
[0029] The beneficial effects of the present invention are:
[0030] The ultrasonic probe and the camera move synchronously, and the two maintain the same posture transformation relationship, which can achieve the synchronous acquisition of the three-dimensional spatial information of the ultrasonic probe during the two-dimensional ultrasonic scanning. The ultrasonic two-dimensional image is obtained through the ultrasonic probe, and the three-dimensional spatial information corresponding to the ultrasonic two-dimensional image is obtained through the camera for three-dimensional reconstruction of the ultrasonic two-dimensional image.
[0031] Using a camera that is fixed to the ultrasound probe and moves synchronously with it to obtain the three-dimensional spatial position of the ultrasound probe can significantly reduce the complexity of the ultrasound probe's three-dimensional positioning system and reduce costs. BRIEF DESCRIPTION OF THE DRAWINGS
[0032] Figure 1 It is a structural schematic diagram of an ultrasonic scanning three-dimensional reconstruction system.
[0033] Figure 2 This is a schematic diagram of the scanning device.
[0034] Figure 3 It is a flow chart of the 3D reconstruction method.
[0035] Figure 4 It is a flowchart for obtaining three-dimensional data from the camera.
[0036] Reference numerals:
[0037] 100. Scanning device; 101. Motor; 102. Linear guide; 103. Lifting seat; 104. Pressure sensor; 105. Bracket; 106. Clamp; 107. Mounting seat; 108. Camera; 109. Ultrasonic probe; 110. Coupling; 111. Screw; 200. Data acquisition module; 300. Intelligent terminal; 400. Display. DETAILED DESCRIPTION
[0038] The preferred embodiments of the present invention will be described in more detail below with reference to the accompanying drawings. Although the preferred embodiments of the present invention are shown in the accompanying drawings, it should be understood that the present invention can be implemented in various forms and should not be limited by the embodiments described herein. On the contrary, these embodiments are provided to make the present invention more thorough and complete, and to fully convey the scope of the present invention to those skilled in the art.
[0039] The terms used in the present invention are only for the purpose of describing specific embodiments and are not intended to limit the present invention. The singular forms "a", "the" and "the" used in the present invention and the appended claims are also intended to include plural forms unless the context clearly indicates other meanings. It should also be understood that the term "and / or" used herein refers to and includes any or all possible combinations of one or more associated listed items.
[0040] It should be understood that although the terms "first", "second", "third", etc. may be used to describe various information in the present invention, such information should not be limited to these terms. These terms are only used to distinguish the same type of information from each other. For example, without departing from the scope of the present invention, the first information may also be referred to as information, and similarly, information may also be referred to as first information. Thus, features defined as "first" and "second" may explicitly or implicitly include one or more of the features. In the description of the present invention, "multiple" means two or more, unless otherwise clearly and specifically defined.
[0041] Ultrasound examination is a medical imaging diagnostic technology based on ultrasound, which can visualize human tissues and thus detect lesions in human tissues. Traditional two-dimensional ultrasound images cannot accurately observe the three-dimensional structure of tissues, and the diagnosis results largely rely on the doctor's experience and knowledge.
[0042] At present, ultrasonic probes achieve three-dimensional positioning mainly by relying on external sensor devices, such as electromagnetic induction devices and external visual tracking devices. Existing ultrasonic probe three-dimensional positioning devices are large and complex, and the positioning sensor devices are expensive and bulky, making them inconvenient to use in portable scenarios.
[0043] If the ultrasound 2D image can be reconstructed into 3D, it can provide more intuitive, rich and comprehensive diagnostic information of the ultrasound examination site, and improve the level of disease diagnosis of ultrasound examination. It is a necessary condition to realize the 3D reconstruction of ultrasound 2D image to make the ultrasound 2D image have spatial 3D posture information.
[0044] Example 1
[0045] In view of the above problems, this embodiment provides an ultrasound scanning three-dimensional reconstruction system, which can achieve synchronous acquisition of three-dimensional spatial information of the ultrasound probe during two-dimensional ultrasound scanning for three-dimensional reconstruction of ultrasound two-dimensional images.
[0046] like Figure 1 As shown, an ultrasonic scanning 3D reconstruction system comprises:
[0047] The scanning device 100 includes an ultrasonic probe 109 and a camera 108. The ultrasonic probe 109 and the camera 108 are fixedly connected and have a determined posture transformation relationship. The ultrasonic probe 109 is used to obtain an ultrasonic two-dimensional image, and the camera 108 is used to obtain three-dimensional space information corresponding to the ultrasonic two-dimensional image. Specifically, the camera 108 obtains an optical image corresponding to the ultrasonic two-dimensional image, and the optical image contains three-dimensional space information. The position information and posture information of the camera 108 can be obtained through a visual positioning algorithm, and the camera 108 maintains the same posture transformation relationship with the ultrasonic probe 109, that is, the position information and posture information of the ultrasonic probe 109 are converted through the position information and posture information of the camera 108;
[0048] A data acquisition module 200, which is in communication connection with the scanning device 100 and is used to receive data collected by the scanning device 100, wherein the data collected by the scanning device 100 includes ultrasonic two-dimensional image data, pressure data between the ultrasonic probe 109 and the human skin, and optical image data; illustratively, the data acquisition module 200 has a display function and can display the collected data. The data acquisition module 200 can be a smart phone or a tablet computer, which is connected to the smart terminal 300 by wireless communication;
[0049] The intelligent terminal 300 is in communication with the data acquisition module 200 and is used to reconstruct a three-dimensional image using the data collected by the data acquisition module 200; illustratively, it is a computer system that performs ultrasound three-dimensional reconstruction through 3D slicer medical software.
[0050] The display 400 is connected to the intelligent terminal 300 for displaying the data collected by the data collection module 200 and the three-dimensional image reconstruction data and the three-dimensional reconstruction model.
[0051] The device uses a camera 108 that is fixed to and moves synchronously with the ultrasound probe 109 to obtain the three-dimensional spatial position of the ultrasound probe 109, which can significantly reduce the complexity of the three-dimensional positioning system of the ultrasound probe 109 and reduce costs.
[0052] In this embodiment, if Figure 2 As shown, the scanning device 100 includes a gripping portion, which is convenient for doctors to hold and operate for ultrasonic scanning. This design retains the two-dimensional ultrasonic probe scanning method familiar to doctors, is easy to operate, and has low cost. Specifically, a gripping portion and a lifting seat 103 are provided in the linear guide 102; the lifting seat 103 is slidably connected to the linear guide 102. The two ends of the pressure sensor 104 are fixedly connected to the detection assembly and the lifting seat 103 respectively; the gripping portion is located on the side of the lifting seat 103 away from the pressure sensor 104.
[0053] The linear guide is provided with a lifting seat 103, and the ultrasonic probe 109 and the camera 108 are connected to the lifting seat 103, and the ultrasonic probe 109 and the camera 108 are driven by the lifting seat 103 to move synchronously. Specifically, the driving part includes a motor 101 and a screw rod 111 connected in sequence, and the screw rod 111 is installed with a lifting seat 103 that is threadedly matched with it, and the motor 101 is connected to the upper end of the screw rod 111 through a coupling 110. The motor 101 is fixedly installed on the top of the linear guide, and the two ends of the screw rod 111 are installed on the side of the linear guide through a bearing seat. Exemplarily, the motor 101 adopts a stepping motor or a servo motor, and the rotation of the motor 101 will drive the lifting seat 103 on the screw rod 111 to make a linear motion. When in use, the doctor operates the grip and adjusts the position of the ultrasound probe 109 through the lifting mechanism so that the ultrasound probe 109 contacts the human skin at the part to be scanned; then starts the ultrasound probe 109; moves the ultrasound probe 109 according to a predetermined scanning trajectory to perform an ultrasound scan; during the ultrasound scanning process, the ultrasound probe 109 and the camera 108 are kept moving synchronously and on the same trajectory, so as to obtain an ultrasound two-dimensional image and the spatial three-dimensional posture information corresponding to the ultrasound two-dimensional image.
[0054] In this embodiment, the lower end of the lifting seat 103 is connected to a bracket 105, and a boss is provided on the side close to the linear guide 102, and the boss is engaged with the linear guide 102 and can slide along the linear guide 102. In this application, the scanning direction of the ultrasonic probe 109 is parallel to the extension direction of the linear guide 102, that is, when the linear guide 102 is a vertical guide, the bottom of the ultrasonic probe 109 is in contact with the human body, that is, the ultrasonic probe 109 only needs to be lifted up and down to get close to or away from the human body. Therefore, the bracket 105 is provided in this application to slide along the linear guide 102 to ensure that the bracket 105 drives the ultrasonic probe 109 and the camera 108 to move smoothly.
[0055] In order to achieve the installation of the ultrasonic probe 109 and the camera 108, a clamp 106 is installed at the end of the bracket 105, the ultrasonic probe 109 is installed in the clamp 106, a mounting seat 107 is provided on one side of the clamp 106, and the camera 108 is installed on the mounting seat 107. The mounting seat 107 is used to fix the relative position of the camera 108 and the ultrasonic probe 109 to ensure that the camera 108 can maintain the same posture transformation relationship with the ultrasonic probe 109.
[0056] In this embodiment, in order to improve the stability of the lifting movement, a slider is provided in the linear guide rail 102 , and the slider is slidably connected to the linear guide rail 102 , and the slider is fixedly connected to the lifting seat 103 at the same time.
[0057] Exemplarily, the scanning device 100 is powered by an external power supply, the camera 108 is a monocular camera or a binocular camera, and the ultrasound probe 109 has its own app to facilitate data collection. Preferably, a lumify ultrasound probe 109 is used.
[0058] In this embodiment, the scanning device 100 includes a controller and a pressure sensor 104; the upper end of the bracket 105 is connected to the lifting seat 103 through the pressure sensor 104 to obtain pressure data during scanning. Exemplarily, the upper and lower end faces of the pressure sensor 104 are provided with threaded holes, which are respectively connected to the lifting seat 103 and the bracket 105. When the upper and lower ends move relative to each other, the pressure sensor 104 can sense the change in pressure value, and its pressure value is output through the data line on its side. The pressure sensor 104 is used to obtain the pressure between the ultrasonic probe 109 and the human skin; the controller includes a pressure control module, which is used to control the ultrasonic probe 109 to rise and fall according to the relative relationship between the pressure value collected by the pressure sensor 104 and the preset pressure value of the controller; the lifting mechanism, the pressure sensor 104, the ultrasonic probe 109, and the camera 108 are all electrically connected to the controller, and the controller is connected to the data acquisition module 200 for communication. The pressure control module of the controller obtains the pressure value of the ultrasonic probe 109 acting on the human skin in real time through the pressure sensor 104, and compares the pressure value with the preset pressure value. If they are not equal, the ultrasonic probe 109 is driven to move by the motor 101 so that the pressure value obtained in real time by the pressure sensor 104 continuously approaches the preset pressure value, thereby ensuring the quality of the scan and avoiding the problem of deformation of the lesion display caused by excessive pressure and the problem of unclear display of the lesion caused by insufficient pressure.
[0059] Furthermore, the controller controls the driving member to drive the detection assembly to move according to the real-time monitoring value of the pressure sensor 104. During the ultrasonic scanning process, when the absolute difference between the monitoring value of the pressure sensor 104 and the preset value of the pressure sensor 104 is less than or equal to the adjustment range of the pressure sensor 104, the driving member drives the lifting seat 103 to slide.
[0060] Assuming that the ultrasonic probe 109 is in rigid contact with the human skin, after the ultrasonic probe 109 contacts the human skin, if the pressure value monitored by the pressure sensor 104 is greater than the preset value, the motor 101 needs to drive the lifting seat 103 to move upward. During the rising process of the lifting seat 103, the pressure sensor 104 will undergo a slight deformation, which causes the lifting seat 103 to rise, but the bracket 105 remains stationary. If the absolute difference between the pressure value monitored by the pressure sensor 104 and the preset value is greater than the deformation range of the pressure sensor 104, the lifting seat 103 continues to rise, which will cause the ultrasonic probe 109 in the bracket 105 to separate from the human body, and the ultrasonic scanning cannot continue. At this time, the operator needs to apply a downward force at the grip to keep the ultrasonic probe 109 in contact with the human body at all times. In order to avoid conflict between the operator's force on the grip and the driving force of the motor 101, the present application stipulates that when the absolute difference between the monitoring value of the pressure sensor 104 and the preset value of the pressure sensor 104 is greater than the adjustment range of the pressure sensor 104, the operator applies force on the grip so that the absolute difference between the monitoring value of the pressure sensor 104 and the preset value of the pressure sensor 104 is less than or equal to the adjustment range of the pressure sensor 104, and then the motor 101 is used to adjust the monitoring value of the pressure sensor 104.
[0061] The adjustment range of the pressure sensor 104 refers to the pressure value corresponding to the maximum deformation of the pressure sensor 104; that is, the maximum change value of the pressure exerted by the ultrasonic probe 109 on the human body when the position of the bracket 105 remains unchanged and only the lifting seat 103 is slid upward or downward.
[0062] In this application, when the difference between the monitoring value of the pressure sensor and the preset value is large, the linear guide rail and the bracket and the lifting seat on the linear guide rail are adjusted synchronously by manual operation. Only when the difference between the monitoring value of the pressure sensor and the preset value is small (less than or equal to the pressure value corresponding to the maximum deformation of the pressure sensor 104), the driving member is used to adjust the pressure. In other words, the manual operation performs rapid and rough adjustment of the pressure value, and the driving member performs fine adjustment of the pressure value. This adjustment method can not only improve the speed of pressure adjustment, but also expand the range of pressure adjustment, and ensure that the ultrasonic probe is always in contact with the human body.
[0063] In the present application, the lifting seat 103 is slidably connected to the linear guide 102; the two ends of the pressure sensor 104 are fixedly connected to the detection assembly and the lifting seat 103 respectively; the gripping portion is located on the side of the lifting seat 103 away from the pressure sensor 104. Since the linear guide limits the sliding trajectory of the lifting seat, and the lifting seat and the detection assembly may not be able to completely overlap in the direction parallel to the linear slide rail, the present application also needs to set a calibration unit inside the scanning device. The force acting on the ultrasonic probe can be decomposed into horizontal and vertical directions, wherein the vertical direction is the direction parallel to the linear guide rail. The force decomposed in the vertical direction can act on the pressure sensor and be detected by the pressure sensor, and the force decomposed in the horizontal direction acts on the linear guide rail and cannot be detected. In the present application, the calibration unit is communicatively connected with the pressure sensor and the ultrasonic probe, and is used to further calibrate the values monitored by the pressure sensor, and control the operation of the drive member according to the calibrated results.
[0064] Specifically, when the absolute difference between the monitoring value of the pressure sensor 104 and the preset value of the pressure sensor 104 is less than or equal to the adjustment range of the pressure sensor 104, the lifting seat 103 is controlled by the PID control technology to drive the ultrasonic probe 109 to perform lifting and lowering adjustment, so that the difference between the acquired pressure value and the preset pressure value satisfies the preset error range. For example, in actual applications, the pressure control uses a PID controller. In order to calculate the various parameters of the PID, it is necessary to model the motor 101, the screw 111 transmission, the skin characteristics and the external disturbance. The modeling part belongs to the well-known technical means in this field and will not be repeated here. The set rotation speed of the motor 101 is 25 turns / s, and the moving speed of the probe driven by it is 2.5cm / s. In order to keep the system in a stable convergence state, the PID parameter is a constant 1.
[0065] In this embodiment, the pressure conversion formula is as follows:
[0066]
[0067] Among them, F all is the full scale of the pressure sensor 104, U all is the voltage value corresponding to the full scale of the pressure sensor 104, F C is the converted pressure value, D get is the collected ADC signal.
[0068] In this embodiment, a flexible coupling material is also included. The coupling material has ultrasonic conductive properties. Before scanning, the flexible coupling material is attached to the human skin of the part to be scanned, and then ultrasonic scanning is performed to improve the quality and accuracy of the ultrasonic scanning.
[0069] Example 2
[0070] To address the above problems, this embodiment provides a three-dimensional reconstruction method, which uses a camera 108 that is fixed to and moves synchronously with the ultrasound probe 109 to obtain the three-dimensional spatial position of the ultrasound probe 109, and uses the three-dimensional spatial position of the ultrasound probe 109 to perform three-dimensional reconstruction of the ultrasound two-dimensional image.
[0071] like Figure 3 As shown, a three-dimensional reconstruction method comprises the following steps:
[0072] The ultrasonic probe 109 is fixedly connected to the camera 108;
[0073] The ultrasonic probe 109 is brought into contact with the human skin at the part to be scanned;
[0074] Driving the ultrasonic probe 109 and the camera 108 to move synchronously along the skin surface;
[0075] The data acquisition module acquires the ultrasonic two-dimensional image acquired by the ultrasonic probe 109 and the three-dimensional spatial information corresponding to the ultrasonic two-dimensional image acquired by the camera 108, and transmits them to the intelligent terminal; if the human skin surface of the part to be scanned has been laid with a flexible coupling material before the step of contacting the ultrasonic probe 109 with the human skin of the part to be scanned, and the flexible coupling material has obvious feature points (such as a two-dimensional code) preset on it for accurate positioning of the camera, then in this step, the corresponding three-dimensional spatial information is calculated by acquiring the feature points of the flexible coupling material;
[0076] According to the positional relationship between the camera 108 and the ultrasound probe 109, the intelligent terminal converts the three-dimensional spatial posture corresponding to the camera 108 into the three-dimensional spatial posture corresponding to the ultrasound probe 109 at the same moment; and inputs the three-dimensional spatial posture data of the ultrasound probe 109 and the ultrasonic two-dimensional image into the three-dimensional image reconstruction software (such as 3D slicer medical software) to perform ultrasonic three-dimensional reconstruction.
[0077] In the present three-dimensional reconstruction method, since the camera 108 and the ultrasonic probe 109 remain relatively stationary and their motion trajectories are synchronized, after calculating the three-dimensional spatial posture of the camera 108, the three-dimensional spatial posture of the ultrasonic probe 109 can be obtained according to the relative position relationship between the two. According to the three-dimensional spatial posture of the ultrasonic probe 109, the position of the ultrasonic probe 109 at different times can be obtained, that is, the spatial positioning of the ultrasonic probe 109 is realized, and the three-dimensional reconstruction of the two-dimensional ultrasonic image is realized.
[0078] In this embodiment, before driving the ultrasound probe 109 and the camera 108 to move synchronously along the set scanning trajectory, a flexible coupling material that can fit the skin needs to be attached to the target area of the scanned object to improve the quality and accuracy of the ultrasound scan.
[0079] In this embodiment, in the process of driving the ultrasonic probe 109 and the camera 108 to move synchronously along the set scanning trajectory, the contact pressure between the ultrasonic probe 109 and the human skin needs to be kept constant, so as to ensure the quality of the scanning, avoid the problem of deformation of the lesion display caused by excessive pressure, and avoid the problem of unclear display of the lesion caused by too little pressure. The ultrasonic probe 109 and the camera 108 are both installed on the bracket;
[0080] When the absolute difference between the monitoring value of the pressure sensor 104 and the preset value of the pressure sensor 104 is less than or equal to the adjustment range of the pressure sensor 104, the lifting seat 103 is controlled by the PID control technology to drive the ultrasonic probe 109 to lift and lower, so that the difference between the acquired pressure value and the preset pressure value satisfies the preset error range. For example, in actual applications, the pressure control uses a PID controller. In order to calculate the various parameters of the PID, it is necessary to model the motor 101, the screw 111 transmission, the skin characteristics and the external disturbance. The modeling part belongs to the well-known technical means in this field and will not be repeated here. The set rotation speed of the motor 101 is 25 turns / s, and the moving speed of the probe driven by it is 2.5cm / s. In order to keep the system in a stable convergence state, the PID parameter is a constant 1.
[0081] In this embodiment, the pressure conversion formula is as follows:
[0082]
[0083] Among them, F all is the full scale of the pressure sensor 104, U all is the voltage value corresponding to the full scale of the pressure sensor 104, F C is the converted pressure value, D get is the collected ADC signal.
[0084] The specific pressure control principle is the same as that in Example 1 and will not be elaborated here.
[0085] In a preferred technical solution of the present invention, before converting the three-dimensional spatial posture corresponding to the camera 108 into the three-dimensional spatial posture corresponding to the ultrasound probe 109 at the same time according to the positional relationship between the camera 108 and the ultrasound probe 109, the data needs to be synchronized.
[0086] In a preferred technical solution of the present invention, the conversion of the three-dimensional spatial posture corresponding to the camera 108 into the three-dimensional spatial posture corresponding to the ultrasound probe 109 at the same time according to the positional relationship between the camera 108 and the ultrasound probe 109 includes:
[0087] The synchronized data are analyzed to obtain corresponding matching optical image data and ultrasonic two-dimensional image data.
[0088] According to the optical image data, the current position information and posture information of the camera 108 are calculated by the visual positioning algorithm; the displacement data and rotation data of the camera 108 are calculated by comparing with the initial position and initial posture of the camera 108; Figure 4 As shown, the specific processing steps are as follows:
[0089] S21: The time when the camera 108 captures the first frame of image is taken as the initial time, which is also the reference point for subsequently obtaining the three-dimensional spatial position of the camera 108. Calculate the spatial depth Zc corresponding to when the camera 108 captures the first frame of image; when the camera 108 is a monocular camera or a binocular camera, the calculation method of the corresponding spatial depth Zc of the camera 108 is different, and the specific method can refer to the calculation method of the camera spatial depth in the prior art.
[0090] S22: Convert the pixel coordinates corresponding to the first frame of the image captured by the camera 108 into world coordinates using the following formula:
[0091]
[0092] Wherein, (u, v) represents the pixel coordinates corresponding to the first frame image captured by the camera 108 in the pixel coordinate system; (xw, yw, zw) represents the world coordinates corresponding to the first frame image captured by the camera 108 in the world coordinate system; K represents the camera parameter matrix of the camera 108; Represents the pose transformation matrix between the camera coordinate system of camera 108 and the world coordinate system.
[0093] Furthermore, the camera parameter matrix of the camera 108 in the above formula is Wherein, f represents the physical focal length of the camera 108, dx and dy represent the actual size of each pixel in the x and y directions, which is determined by the size of each photosensitive element in the camera 108, and u 0 and v 0 It represents the position of the image symmetry center in the pixel coordinate system of the visible image. Each parameter in the camera parameter matrix K is determined by the parameters of the camera 108 itself and is a known quantity.
[0094] Through the positional relationship between the camera 108 and the ultrasonic probe 109, the displacement distance and rotation angle of the ultrasonic probe 109 are calculated according to the displacement and rotation data of the camera 108; Figure 4 As shown, the specific processing steps are as follows:
[0095] S23: Calculate the three-dimensional spatial position P of the camera 108 at the i-th frame image p =M i O w1 , where Mi represents the pose transformation matrix between the i-th frame image of the camera 108 and the 1st frame image of the camera 108, and Ow1 represents the world coordinates corresponding to the 1st frame image of the camera 108. Wherein, i is an integer greater than 1.
[0096] Among them, the pose transformation matrix between the i-th frame image of camera 108 and the 1st frame image of camera 108 is Specifically, Represents the pose transformation matrix between the j-th frame image of camera 108 and the j-1-th frame image of camera 108.
[0097] Specifically, the pose transformation matrix between the j-th frame image of camera 108 and the j-1-th frame image of camera 108 is The calculation method includes: extracting image feature information from the j-th frame image of camera 108 and the j-1-th frame image of camera 108, and calculating the pose transformation matrix between the j-th frame image of camera 108 and the j-1-th frame image of camera 108 by matching the image feature points.
[0098] Specifically, in the present application, an ORB feature extraction algorithm may be used to extract image feature information in the j-th frame image of the camera 108 and the j-1-th frame image of the camera 108 .
[0099] Specifically, in this application, the iterative closest point method can be used to calculate the pose transformation matrix between the j-th frame image of camera 108 and the j-1-th frame image of camera 108:
[0100] S24: Calculate the three-dimensional spatial posture Pp of the ultrasound probe 109 at the i-th frame image, wherein the three-dimensional spatial posture Pp of the ultrasound probe 109 at the i-th frame image and the three-dimensional spatial posture Pc of the camera 108 at the i-th frame image have the following relationship: in, Represents the posture transformation matrix between the camera 108 and the ultrasound probe 109.
[0101] The ultrasonic two-dimensional image and the corresponding displacement data and rotation data are combined to generate preset format data (such as DICOM format or other custom formats) and store them.
[0102] Example 3
[0103] This embodiment takes the binocular camera integrated in the ultrasound probe 109 as an example, and further explains how to convert the three-dimensional spatial posture corresponding to the camera 108 in Embodiment 2 into the three-dimensional spatial posture corresponding to the ultrasound probe 109 at the same time, and use the three-dimensional spatial posture corresponding to the ultrasound probe 109 to achieve three-dimensional positioning of the ultrasound probe 109.
[0104] The specific steps are as follows:
[0105] S21: The time when the camera 108 captures the first frame of image is taken as the initial time, which is also the reference point for subsequently obtaining the three-dimensional spatial position of the camera 108. Calculate the spatial depth Zc corresponding to when the camera 108 captures the first frame of image;
[0106] Since each frame of the binocular camera 108 contains both the left and right images of the binocular camera, according to the binocular camera geometric model and depth calculation formula, the binocular camera can calculate the spatial depth of the camera 108 based on only one frame of the image. The specific calculation method is as follows:
[0107] Where f represents the focal length of the binocular camera, b represents the baseline of the binocular camera, and d = u L -u R ; Among them, u L and u R Respectively represent the x-axis coordinates of the same point on the left and right images.
[0108] S22: Convert the pixel coordinates corresponding to the first frame of the image captured by the camera 108 into world coordinates using the following formula:
[0109]
[0110] make:
[0111]
[0112] Wherein, f represents the physical focal length of the camera 108, dx and dy represent the actual size of each pixel in the x and y directions, which is determined by the size of each photosensitive element in the camera 108, and u 0 and v 0 It represents the position of the image symmetry center in the pixel coordinate system of the visible image. Each parameter in the camera parameter matrix K is determined by the parameters of the camera 108 itself and is a known quantity.
[0113] is the pose transformation matrix between the camera coordinate system of the camera 108 and the world coordinate system, indicating the camera coordinate system O corresponding to the camera 108 c and the world coordinate system O w The transformation relationship between the camera coordinate system and the pixel coordinate system can refer to the prior art. Since the pixel coordinate system is a two-dimensional coordinate system and the world coordinate system is a three-dimensional coordinate system, the transformation between the two needs to be achieved with the help of the spatial depth Zc of the camera 108.
[0114] Specifically, Represents a rotation matrix. Represents the translation matrix.
[0115] This application assumes that when the camera 108 captures the first frame of image, the world coordinate system coincides with the camera coordinate system. At this time, the rotation matrix is the unit matrix, that is, The translation matrix is a 0 matrix, that is,
[0116] At this time, the camera 108 and the ultrasound probe 109 have completed initialization, that is, the reference points for their subsequent three-dimensional movement have been defined. The subsequent calculation of the three-dimensional spatial position of the camera 108 will be performed based on the world coordinate system reference points generated during initialization.
[0117] S23: extract image feature information from the i-th frame image of camera 108 and the i-1-th frame image of camera 108 by using the ORB feature extraction algorithm; calculate the pose transformation matrix between the i-th frame image of camera 108 and the i-1-th frame image of camera 108 by using the iterative closest point method
[0118] To obtain the three-dimensional spatial pose of the i-th visible image, it is necessary to multiply and combine the i-1 pose transformation matrices in the previous i-frame visible images to obtain the pose transformation matrix M between the i-th frame image of camera 108 and the first frame image of camera 108 i At this time, M i represents the pose transformation matrix between the i-th frame image of the camera 108 and the 1-th frame image of the camera 108. In this application, the visible image refers to the image taken by the camera 108, and the ultrasonic image refers to the image taken by the ultrasonic probe 109.
[0119] Specifically, it can be obtained that when the camera 108 captures the i-th frame image, the coordinates of the world coordinate system O w The three-dimensional pose information P in c (x, y, z, roll, yaw, pitch), where roll represents the roll angle, yaw represents the yaw angle, pitch represents the pitch angle, x represents the coordinate of the X-axis in the world coordinate system, y represents the coordinate of the Y-axis in the world coordinate system, and z represents the coordinate of the Z-axis in the world coordinate system.
[0120] S24: Calculate the three-dimensional spatial posture Pp of the ultrasound probe 109 at the i-th frame image, wherein the three-dimensional spatial posture Pp of the ultrasound probe 109 at the i-th frame image and the three-dimensional spatial posture Pc of the camera 108 at the i-th frame image have the following relationship: in, Represents the posture transformation matrix between the camera 108 and the ultrasound probe 109.
[0121] Since the camera 108 and the ultrasonic probe 109 in this application are limited by physical conditions, the two do not overlap in spatial position and there must be a certain distance between them. Therefore, the three-dimensional spatial pose of the camera 108 in the world coordinate system obtained by the visual positioning algorithm is not equal to the three-dimensional spatial pose of the ultrasonic probe 109 in the world coordinate system. It is necessary to calculate the three-dimensional coordinate transformation relationship between the camera 108 and the ultrasonic probe 109 through the positional relationship between the camera 108 and the ultrasonic probe 109, so as to finally obtain the three-dimensional spatial pose of the ultrasonic probe 109. The specific calculation formula is as follows:
[0122]
[0123] Wherein, xp represents the coordinate of the X axis of the ultrasound probe 109 in the world coordinate system, yp represents the coordinate of the Y axis of the ultrasound probe 109 in the world coordinate system, and zp represents the coordinate of the Z axis of the ultrasound probe 109 in the world coordinate system. xc represents the coordinate of the X axis of the camera 108 in the world coordinate system, yc represents the coordinate of the Y axis of the camera 108 in the world coordinate system, and zc represents the coordinate of the Z axis of the camera 108 in the world coordinate system.
[0124] Finally, the ultrasonic two-dimensional image and the three-dimensional posture information of the ultrasonic probe 109 are matched according to the data acquisition time to realize the three-dimensional positioning function of the ultrasonic probe 109, laying the foundation for the subsequent three-dimensional reconstruction of the ultrasonic two-dimensional image.
[0125] Unless otherwise specifically stated, the relative arrangement, numerical expressions and numerical values of the parts and steps set forth in these embodiments do not limit the scope of the application. Meanwhile, it should be understood that, for ease of description, the sizes of the various parts shown in the accompanying drawings are not drawn according to actual proportional relationships. The technology, methods and equipment known to those of ordinary skill in the relevant art may not be discussed in detail, but in appropriate cases, the technology, methods and equipment should be considered as a part of the specification. In all examples shown and discussed here, any specific value should be interpreted as being merely exemplary, rather than as a limitation. Therefore, other examples of exemplary embodiments may have different values. It should be noted that similar reference numerals and letters represent similar items in the following drawings, and therefore, once a certain item is defined in an accompanying drawing, it does not need to be further discussed in subsequent drawings. In the description of the present application, it should be understood that the directions or positional relationships indicated by directional words such as "front, back, up, down, left, right", "horizontal, vertical, perpendicular, horizontal" and "top, bottom" are usually based on the directions or positional relationships shown in the drawings, and are only for the convenience of describing the present application and simplifying the description. Unless otherwise specified, these directional words do not indicate or imply that the device or element referred to must have a specific direction or be constructed and operated in a specific direction, and therefore cannot be understood as limiting the scope of protection of the present application; the directional words "inside and outside" refer to the inside and outside relative to the contour of each component itself.
[0126] For ease of description, spatially relative terms such as "above", "above", "on the upper surface of", "above", etc. may be used here to describe the spatial positional relationship between a device or feature and other devices or features as shown in the figure. It should be understood that spatially relative terms are intended to include different orientations of the device in use or operation in addition to the orientation described in the figure. For example, if the device in the accompanying drawings is inverted, the device described as "above other devices or structures" or "above other devices or structures" will be positioned as "below other devices or structures" or "below other devices or structures". Thus, the exemplary term "above" can include both "above" and "below". The device can also be positioned in other different ways (rotated 90 degrees or in other orientations), and the spatially relative descriptions used here are interpreted accordingly.
[0127] In addition, it should be noted that the use of terms such as "first" and "second" to limit components is only for the convenience of distinguishing the corresponding components. Unless otherwise stated, the above terms have no special meaning and therefore cannot be understood as limiting the scope of protection of this application.
[0128] The above description is only a preferred embodiment of the present invention and is not intended to limit the present invention. For those skilled in the art, the present invention may have various modifications and variations. Any modification, equivalent replacement, improvement, etc. made within the spirit and principle of the present invention shall be included in the protection scope of the present invention.
Claims
1. An ultrasonic scanning three-dimensional reconstruction system, characterized in that: include: A scanning device, the scanning device comprising a detection assembly, a linear guide rail and a driving member, the detection assembly comprising a fixedly connected ultrasonic probe and a camera; the detection assembly is slidably connected to the linear guide rail; the driving member is used to drive the detection assembly to slide along the linear guide rail; A data acquisition module, the data acquisition module is in communication with the scanning device and is used to receive data collected by the scanning device; An intelligent terminal, wherein the intelligent terminal is communicatively connected with the data acquisition module and is used to reconstruct a three-dimensional image using the data collected by the data acquisition module; wherein the intelligent terminal converts the three-dimensional spatial posture corresponding to the camera into the three-dimensional spatial posture corresponding to the ultrasonic probe at the same time according to the positional relationship between the camera and the ultrasonic probe, and realizes the three-dimensional positioning of the ultrasonic probe using the three-dimensional spatial posture corresponding to the ultrasonic probe; the scanning device also includes a pressure sensor, and a gripping portion and a lifting seat are provided in the linear guide rail; the lifting seat is slidably connected to the linear guide rail; the two ends of the pressure sensor are respectively fixedly connected to the detection assembly and the lifting seat; the gripping portion is located on the side of the lifting seat away from the pressure sensor; the driving member is used to drive the lifting seat to slide along the linear guide rail; when the absolute difference between the monitoring value of the pressure sensor and the preset value of the pressure sensor is greater than the adjustment range of the pressure sensor, the operator applies a force on the gripping portion so that the absolute difference between the monitoring value of the pressure sensor and the preset value of the pressure sensor is less than or equal to the adjustment range of the pressure sensor, and then the driving member is used to adjust the monitoring value of the pressure sensor; the adjustment range of the pressure sensor refers to the pressure value corresponding to the maximum deformation of the pressure sensor.
2. The ultrasonic scanning 3D reconstruction system according to claim 1, characterized in that: The detection assembly also includes a bracket, and the bracket and the lifting seat are respectively located at the top and bottom ends of the pressure sensor. An ultrasonic probe and a camera are arranged on the side of the bracket, and the scanning direction of the ultrasonic probe is parallel to the extension direction of the linear guide rail.
3. The ultrasonic scanning 3D reconstruction system according to claim 2, characterized in that: A clamp is provided at one end of the bracket away from the pressure sensor, the ultrasonic probe is installed in the clamp, a mounting seat is provided on one side of the clamp, the camera is installed in the mounting seat, and the ultrasonic probe and the camera are both directed toward a side away from the pressure sensor along the extension direction of the linear guide rail.
4. The ultrasonic scanning 3D reconstruction system according to claim 3, characterized in that: A slider is arranged in the linear guide rail, the slider is slidably connected to the linear guide rail, and the slider is fixedly connected to the lifting seat at the same time.
5. The ultrasonic scanning 3D reconstruction system according to claim 1, characterized in that: The scanning device also includes a controller, which is simultaneously connected to the ultrasonic probe, the camera, the driving member, and the pressure sensor; the controller obtains spatial three-dimensional posture information according to the image captured by the camera, the controller obtains an ultrasonic two-dimensional image according to the ultrasonic probe, and realizes three-dimensional positioning of the ultrasonic probe according to the ultrasonic two-dimensional image and the three-dimensional posture information; The controller controls the driving member to drive the detection component to move according to the real-time monitoring value of the pressure sensor.
6. The ultrasonic scanning 3D reconstruction system according to claim 5, characterized in that: It also includes a display, which is communicatively connected to the intelligent terminal and is used to display the data collected by the data collection module and the three-dimensional image reconstruction data.
7. A three-dimensional reconstruction method, characterized in that: The method is implemented based on an ultrasonic scanning three-dimensional reconstruction system according to any one of claims 1 to 6, comprising the following steps: Place the ultrasound probe in contact with the human skin at the site to be scanned; Drive the ultrasound probe and the camera to move synchronously along the skin surface; The data acquisition module obtains the ultrasonic two-dimensional image collected by the ultrasonic probe, obtains the three-dimensional spatial information corresponding to the two-dimensional ultrasonic image collected by the camera, and transmits it to the intelligent terminal; According to the positional relationship between the camera and the ultrasound probe, the intelligent terminal converts the three-dimensional spatial posture corresponding to the camera into the three-dimensional spatial posture corresponding to the ultrasound probe at the same time; and inputs the three-dimensional spatial posture data of the ultrasound probe and the ultrasound two-dimensional image into the three-dimensional image reconstruction software for ultrasound three-dimensional reconstruction.
8. A three-dimensional reconstruction method according to claim 7, characterized in that: During the ultrasonic scanning process, the pressure value of the ultrasonic probe acting on the human skin is obtained in real time through the pressure sensor; when the absolute difference between the monitoring value of the pressure sensor and the preset value of the pressure sensor is less than or equal to the adjustment range of the pressure sensor, the driving member drives the lifting seat to slide in a direction close to or away from the human body.
9. A three-dimensional reconstruction method according to claim 8, characterized in that: According to the positional relationship between the camera and the ultrasound probe, the three-dimensional spatial posture corresponding to the camera is converted into the three-dimensional spatial posture corresponding to the ultrasound probe at the same time, including: Analyze the synchronized data to obtain corresponding matching optical image data and ultrasonic two-dimensional image data; According to the optical image data, the current position and posture information of the camera is calculated through the visual positioning algorithm; By comparing and calculating with the initial position and initial posture of the camera, the displacement data and rotation data of the camera are calculated; Through the positional relationship between the camera and the ultrasonic probe, the displacement distance and rotation angle of the ultrasonic probe are calculated according to the displacement and rotation data of the camera; The ultrasonic two-dimensional image and the corresponding displacement data and rotation data are combined to generate and store data in a preset format.
