WO2019119194A1 - Flexible surgical instrument tracking method, apparatus, device, and storage medium - Google Patents

Flexible surgical instrument tracking method, apparatus, device, and storage medium Download PDF

Info

Publication number
WO2019119194A1
WO2019119194A1 PCT/CN2017/116887 CN2017116887W WO2019119194A1 WO 2019119194 A1 WO2019119194 A1 WO 2019119194A1 CN 2017116887 W CN2017116887 W CN 2017116887W WO 2019119194 A1 WO2019119194 A1 WO 2019119194A1
Authority
WO
WIPO (PCT)
Prior art keywords
tracking area
current
surgical instrument
edge
surgical
Prior art date
Application number
PCT/CN2017/116887
Other languages
French (fr)
Chinese (zh)
Inventor
熊璟
甘志坚
夏泽洋
Original Assignee
中国科学院深圳先进技术研究院
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by 中国科学院深圳先进技术研究院 filed Critical 中国科学院深圳先进技术研究院
Priority to PCT/CN2017/116887 priority Critical patent/WO2019119194A1/en
Publication of WO2019119194A1 publication Critical patent/WO2019119194A1/en

Links

Images

Classifications

    • AHUMAN NECESSITIES
    • A61MEDICAL OR VETERINARY SCIENCE; HYGIENE
    • A61BDIAGNOSIS; SURGERY; IDENTIFICATION
    • A61B34/00Computer-aided surgery; Manipulators or robots specially adapted for use in surgery
    • A61B34/20Surgical navigation systems; Devices for tracking or guiding surgical instruments, e.g. for frameless stereotaxis

Definitions

  • the invention belongs to the technical field of medical instruments, and in particular relates to a flexible surgical instrument tracking method, device, device and storage medium.
  • the tracking methods of flexible surgical instruments in robot-assisted surgery mainly include electromagnetic tracking, ultrasonic tracking and visual tracking.
  • the electromagnetic tracking method is easily affected by the magnetic field, resulting in inaccurate positioning of the flexible surgical instruments.
  • the ultrasonic tracking method is diffractive due to sound waves.
  • the tracking of the ends of small instruments is not precise.
  • the patent CN201210499929.4 proposes an electromagnetic positioning ultrasonic puncture navigation system, which adopts a combination of electromagnetic positioning and ultrasonic imaging to position and guide the puncture needle, and displays the path of the puncture needle and the position of the needle tip with clear angle at any angle in real time.
  • Electromagnetic positioning is easily affected by magnetic fields.
  • the navigation system needs to be positioned in an environment where there is no magnetic field or weak magnetic field interference.
  • the diffraction of the ultrasonic wave causes the navigation system to accurately track the position of the needle tip.
  • the visual tracking method of flexible surgical instruments does not have problems such as magnetic field interference and diffraction.
  • the visual tracking method needs to realize real-time tracking of flexible surgical instruments by extracting image features at different moments, the image processing speed is slow, and in addition, the illumination distribution is not Under uniform conditions, the visual tracking method can not estimate the image features in continuous multi-segment time, and the image feature extraction is prone to local feature loss, which leads to the failure of flexible surgical instruments.
  • the object of the present invention is to provide a flexible surgical instrument tracking method, device, device and storage medium, aiming at solving the problem that the tracking efficiency of the flexible surgery instrument in the prior art is not high, the positioning accuracy is insufficient, and the tracking real-time lag is serious. problem.
  • the present invention provides a flexible surgical instrument tracking device, the device comprising:
  • An edge detecting unit configured to acquire a surgical image of a current moment acquired by the camera, and detect whether a flexible surgical instrument exists in a local tracking area of the edge of the surgical field according to the surgical image at the current moment;
  • a local setting unit configured to set a local tracking area where the end of the flexible surgical instrument is located as a current local tracking area when the flexible surgical instrument exists in a local tracking area of the edge of the surgical field;
  • a trajectory output unit configured to acquire a surgical image of the next moment acquired by the camera, and detect a current position of the flexible surgical instrument end in the current partial tracking area in the surgical image at the next moment, according to the Determining a current position, acquiring a movement trajectory of the flexible surgical instrument and outputting;
  • a tracking end unit configured to determine whether the current position reaches a preset position in the surgical field of view, and end the tracking of the flexible surgical instrument, otherwise the tracking output unit performs the acquisition of the camera The operation of a surgical image at a time.
  • the present invention also provides a medical device comprising a memory, a processor, and a computer program stored in the memory and operable on the processor, the processor implementing the computer program The steps described in the flexible surgical instrument tracking method described above.
  • the present invention also provides a computer readable storage medium storing a computer program, the computer program being executed by a processor to implement the steps as described in the flexible surgical instrument tracking method described above .
  • the local tracking area of the edge of the surgical field where the flexible surgical instrument is located is set as the current local tracking area, and the end of the flexible surgical instrument is detected in the current local tracking area according to the surgical image at the next moment.
  • the current position, the movement track of the flexible surgical instrument is obtained according to the current position and output. If the current position is located at the edge of the current local tracking area, the next partial tracking area expanded in the surgical field is set as the current local tracking area, if the current position
  • the tracking of the flexible surgical instrument is ended, otherwise the surgical image of the next moment is continuously acquired to track the flexible surgical instrument, thereby improving the flexible operation on the basis of improving the image processing speed.
  • the efficiency and positioning accuracy of the instrument tracking ensure the real-time tracking of flexible surgical instruments.
  • FIG. 1 is a flowchart showing an implementation of a flexible surgical instrument tracking method according to Embodiment 1 of the present invention
  • FIG. 2 is a view showing an example of expanding a next partial tracking area in a surgical field according to a current position of a distal end of a flexible surgical instrument according to a flexible surgical instrument tracking method according to Embodiment 1 of the present invention
  • FIG. 5 is a schematic diagram of a preferred structure of a flexible surgical instrument tracking device according to a second embodiment of the present invention.
  • FIG. 6 is a schematic structural diagram of a medical device according to Embodiment 3 of the present invention.
  • Embodiment 1 is a diagrammatic representation of Embodiment 1:
  • FIG. 1 is a flowchart showing an implementation process of a flexible surgical instrument tracking method according to Embodiment 1 of the present invention. For convenience of description, only parts related to the embodiment of the present invention are shown, which are described in detail as follows:
  • step S101 a surgical image of the current time acquired by the camera is acquired.
  • step S102 a flexible surgical instrument is detected in the local tracking area of the edge of the surgical field based on the surgical image at the current time.
  • Embodiments of the present invention are applicable to platforms or systems that track the trajectory of a flexible surgical instrument.
  • the surgical field of view is a window used to display the surgical image.
  • the surgical field of view may be divided into a plurality of partial tracking regions according to the size of the surgical field of view.
  • the area of the surgical field of view may be expressed as W ⁇ H, and W and H are respectively the width and height of the surgical field of view, and the surgical field of view may be divided. It is m ⁇ n (m ⁇ 1, n ⁇ 1) local tracking areas, and the width and height of each local tracking area are W/m and H/n, respectively.
  • the surgical image of the current time acquired by the camera is acquired, and each partial tracking area of the surgical field respectively displays an image block of the surgical image, and the image block at the local tracking area of the edge of the surgical field is first performed.
  • Gray-scale processing obtaining the gray-scale distribution feature value of the image block at the local tracking area of the edge of the surgical field, binarizing the gray-scale distribution features, and detecting whether there is a moving track of the flexible surgical instrument in the binarized image If it exists, it is considered that there is a flexible surgical instrument in the local tracking area of the edge of the surgical field.
  • step S103 is performed.
  • step S103 the local tracking area where the end of the flexible surgical instrument is located is set as the current local tracking area.
  • step S104 the surgical image acquired at the next moment of the camera acquisition is acquired, the current position of the end of the flexible surgical instrument in the current partial tracking area is detected in the surgical image at the next moment, and the movement trajectory of the flexible surgical instrument is acquired according to the current position. Output.
  • the local tracking area where the edge of the surgical field and the flexible surgical instrument are located is set, and the next moment of the camera acquisition is obtained.
  • the surgical image obtains the current position of the end of the flexible surgical instrument in the current local tracking area from the surgical image at the next moment to track the movement trajectory of the flexible surgical instrument in real time.
  • the flexible surgical instrument when acquiring the surgical image of the next moment collected by the camera, can be detected in the current local tracking area by performing grayscale processing and binarization on the image block located in the current local tracking area.
  • the current position which is combined with the position of the flexible surgical instrument at a moment in the current local tracking area, results in a movement trajectory of the flexible surgical instrument and is output.
  • step S105 it is determined whether the current position of the end of the flexible surgical instrument is located at the edge of the current local tracking area.
  • step S107 it is detected whether the current position of the flexible surgical instrument is located at the edge of the current local tracking area. If the end of the flexible surgical instrument is considered to be leaving the current local tracking area, the current local tracking area needs to be updated, and the steps are performed. S106, otherwise, step S107 is performed.
  • step S106 the next partial tracking area is expanded in the surgical field according to the current position of the end of the flexible surgical instrument, and the next partial tracking area is set as the current partial tracking area.
  • the current position of the end of the flexible surgical instrument when the current position of the end of the flexible surgical instrument is located at the edge of the current local tracking area, the current position of the end of the flexible surgical instrument is taken as the center point, and a piece of the next partial tracking area is obtained at the edge of the current position.
  • the edge combined with the edge and the size of the current local tracking area, obtains a next partial tracking area having the same shape shape as the current local tracking area, and if the partial area of the next partial tracking area exceeds the surgical field of view, the next partial tracking area is The portion that does not exceed the surgical field of view is set to the current local tracking area. For example, (a)(b) in FIG.
  • FIG. 2 is an exemplary diagram of expanding the next partial tracking area in the surgical field according to the current position of the end of the flexible surgical instrument, wherein the solid line boxes in (a), (b) The inner region is the current local tracking region, the region within the dashed box is the next partial tracking region, the curve indicates the movement path of the flexible surgical instrument, and the black point on the edge of the solid frame is the current position of the end of the flexible surgical instrument.
  • the extended local tracking area is set as the current local tracking area, and the current local tracking area is updated, so that the current position of the flexible surgical instrument end is found in the current local tracking area, instead of The search in the whole surgical image effectively improves the image processing speed, thereby improving the efficiency and real-time performance of the flexible surgical instrument tracking.
  • the tangent of the movement path of the flexible surgical instrument at the intersection is determined, and the angle between the tangent and the edge of the current local tracking area is calculated respectively.
  • the current position of the end of the flexible surgical instrument is the midpoint, the edge with the smallest angle to the tangent is the position of the edge of the next partial tracking area, and then the shape of the current local tracking area is determined according to the edge of the next partial tracking area. Consistent next partial tracking area, if part of the next partial tracking area exceeds the surgical field of view, the part of the next partial tracking area that does not exceed the surgical field of view is set as the current local tracking area, thereby effectively improving the flexible surgical instrument Tracking accuracy.
  • the solid curve is the movement trajectory of the flexible surgical instrument
  • the area within the solid line box is the current local tracking area
  • the C point is the current position of the end of the flexible surgical instrument, which is also the current local tracking area.
  • L c is the tangential direction of the movement path of the flexible surgical instrument at the current position of the end of the flexible surgical instrument
  • L a and L b are the directions of the two edge lines of the current local tracking area
  • ⁇ and ⁇ are respectively L
  • step S107 it is determined whether the current position of the end of the flexible surgical instrument reaches a preset position in the surgical field of view.
  • step S108 is performed, otherwise, the process goes to step S104 to continue tracking the flexible surgical instrument.
  • step S108 the tracking of the flexible surgical instrument is ended.
  • the tracking of the flexible surgical instrument can also be ended upon receiving the end instruction of the user.
  • the surgical image collected by the camera determining whether there is a flexible surgical instrument in the local tracking area of the edge of the surgical field, and determining the position of the end of the flexible surgical instrument in different local tracking areas, and obtaining the movement track of the flexible surgical instrument, Therefore, only one image block in a local tracking area is processed at a time, which effectively improves the image processing speed, and solves the problem that the image illumination unevenness brings insufficient positioning accuracy, thereby effectively improving the tracking efficiency of the flexible surgical instrument. And positioning accuracy, to ensure the real-time tracking of flexible surgical instruments.
  • Embodiment 2 is a diagrammatic representation of Embodiment 1:
  • FIG. 4 shows the structure of a flexible surgical instrument tracking device according to Embodiment 2 of the present invention.
  • parts related to the embodiment of the present invention including:
  • the edge detecting unit 41 is configured to acquire a surgical image of the current time acquired by the camera, and detect whether a flexible surgical instrument exists in the local tracking area of the edge of the surgical field according to the surgical image at the current time.
  • the surgical field of view is a window used to display a surgical image.
  • the surgical field of view may be divided into a plurality of partial tracking regions according to the size of the surgical field of view.
  • the area of the surgical field of view may be expressed as W ⁇ H, and W and H are respectively the width and height of the surgical field of view, and the surgical field of view may be divided. It is m ⁇ n (m ⁇ 1, n ⁇ 1) local tracking areas, and the width and height of each local tracking area are W/m and H/n, respectively.
  • the surgical image of the current time acquired by the camera is acquired, and each partial tracking area of the surgical field respectively displays an image block of the surgical image, and the image block at the local tracking area of the edge of the surgical field is first performed.
  • Gray-scale processing obtaining the gray-scale distribution feature value of the image block at the local tracking area of the edge of the surgical field, binarizing the gray-scale distribution features, and detecting whether there is a moving track of the flexible surgical instrument in the binarized image If it exists, it is considered that there is a flexible surgical instrument in the local tracking area at the edge of the surgical field. Otherwise, the image taken by the camera is continuously acquired, and the flexible tracking instrument is detected in the local tracking area of the edge of the surgical field.
  • the local setting unit 42 is configured to set a local tracking area where the end of the flexible surgical instrument is located as the current local tracking area when the flexible surgical instrument is present in the local tracking area of the surgical field edge.
  • the trajectory output unit 43 is configured to acquire a surgical image acquired at a next moment of the camera, and detect a current position of the end of the flexible surgical instrument in the current partial tracking area in the surgical image at the next moment, and acquire the movement of the flexible surgical instrument according to the current position. Track and output.
  • the local tracking area where the edge of the surgical field and the flexible surgical instrument are located is set to the current local tracking area, and the next acquisition of the camera is acquired.
  • the surgical image of the moment obtains the current position of the end of the flexible surgical instrument in the current local tracking area from the surgical image at the next moment to track the movement trajectory of the flexible surgical instrument in real time.
  • the flexible surgical instrument when acquiring the surgical image of the next moment collected by the camera, can be detected in the current local tracking area by performing grayscale processing and binarization on the image block located in the current local tracking area.
  • the current position which is combined with the position of the flexible surgical instrument at a moment in the current local tracking area, results in a movement trajectory of the flexible surgical instrument and is output.
  • the area expansion unit 44 is configured to determine whether the current location is located at the edge of the current local tracking area, and then expand the next partial tracking area in the surgical field according to the current position, and set the next partial tracking area as the current local tracking area.
  • the current position of the end of the flexible surgical instrument is located at the edge of the current local tracking area. If the end of the flexible surgical instrument is considered to be about to leave the current local tracking area, the current local tracking area needs to be updated. Specifically, when the current position of the end of the flexible surgical instrument is located at the edge of the current local tracking area, with the current position of the end of the flexible surgical instrument as the center point, an edge of the next partial tracking area is obtained at the edge of the current position, combined with The size of the edge and the current local tracking area is the same as the current partial tracking area. If the partial area of the next partial tracking area exceeds the surgical field of view, the next partial tracking area is not beyond the surgical field of view.
  • the part is set to the current local tracking area. Setting the expanded next partial tracking area to the current local tracking area, completing the update of the current local tracking area, thereby searching for the current position of the end of the flexible surgical instrument in the current local tracking area, instead of searching through the entire surgical image, Effectively improve image processing speed, thereby improving the efficiency and real-time performance of flexible surgical instruments
  • the tangent of the movement path of the flexible surgical instrument at the intersection is determined, and the angle between the tangent and the edge of the current local tracking area is calculated respectively.
  • the current position of the end of the flexible surgical instrument is the midpoint, the edge with the smallest angle to the tangent is the position of the edge of the next partial tracking area, and then the shape of the current local tracking area is determined according to the edge of the next partial tracking area. Consistent next partial tracking area, if part of the next partial tracking area exceeds the surgical field of view, the part of the next partial tracking area that does not exceed the surgical field of view is set as the current local tracking area, thereby effectively improving the flexible surgical instrument Tracking accuracy.
  • the tracking end unit 45 is configured to determine whether the current position reaches the preset position in the surgical field of view, and is to end the tracking of the flexible surgical instrument. Otherwise, the operation of acquiring the surgical image of the next time captured by the camera is performed by the track output unit 43.
  • whether the current position of the end of the flexible surgical instrument reaches the preset position in the surgical field of view is determined by determining whether the current position of the end of the flexible surgical instrument reaches the edge of the surgical field or the position of the surgical target preset by the user. .
  • tracking of the flexible surgical instrument can also be ended upon receipt of the user's end command.
  • the edge detecting unit 41 includes:
  • the image detecting unit 512 is configured to detect whether a movement trajectory of the flexible surgical instrument exists in the binarized image block to determine whether a flexible surgical instrument exists in the local tracking area of the surgical field of view edge.
  • the area extension unit 44 includes
  • the first expanding unit 541 is configured to expand the next tracking local area consistent with the current local tracking area shape size in the surgical field with the current position as the midpoint of the edge of the next partial tracking area.
  • the area extension unit 44 further includes:
  • a tangent determining unit 542 configured to determine a tangent of the movement track of the flexible surgical instrument at the intersection when the current position is at the intersection of the two edges of the current local tracking area;
  • the angle comparison unit 543 calculates an angle between the tangent and the two edges of the current local tracking area, and obtains an edge with the smallest angle to the tangent;
  • the second expanding unit 544 is configured to use the current position as the midpoint of the edge of the next partial tracking area, and the edge with the smallest angle of the tangent as the position of the edge of the next partial tracking area, and expand and the current local tracking area in the surgical field of view The next partial tracking area of the same size and shape.
  • the surgical image collected by the camera determining whether there is a flexible surgical instrument in the local tracking area of the edge of the surgical field, and determining the position of the end of the flexible surgical instrument in different local tracking areas, and obtaining the movement track of the flexible surgical instrument, Therefore, only one image block in a local tracking area is processed at a time, which effectively improves the image processing speed, and solves the problem that the image illumination unevenness brings insufficient positioning accuracy, thereby effectively improving the tracking efficiency of the flexible surgical instrument. And positioning accuracy, to ensure the real-time tracking of flexible surgical instruments.
  • each unit of the flexible surgical instrument tracking device can be implemented by a corresponding hardware or software unit, and each unit can be an independent software and hardware unit, or can be integrated into a soft and hardware unit, without limitation. this invention.
  • Embodiment 3 is a diagrammatic representation of Embodiment 3
  • Fig. 6 shows the structure of a medical device according to a third embodiment of the present invention. For the convenience of description, only parts related to the embodiment of the present invention are shown.
  • the medical device 6 of an embodiment of the present invention includes a processor 60, a memory 61, and a computer program 62 stored in the memory 61 and operable on the processor 60.
  • the processor 60 when executing the computer program 62, implements the steps in the above-described method embodiments, such as steps S101 through S108 shown in FIG.
  • processor 60 when executing computer program 62, implements the functions of the various units of the apparatus embodiments described above, such as the functions of units 41 through 45 shown in FIG.
  • the local tracking area of the edge of the surgical field where the end of the flexible surgical instrument is located is set as the current local tracking area according to the surgical image at the current moment, and the end of the flexible surgical instrument is detected according to the surgical image at the next moment.
  • the current position in the local tracking area is obtained, and the movement track of the flexible surgical instrument is acquired according to the current position and output. If the current position is located at the edge of the current local tracking area, the next partial tracking area expanded in the surgical field is set as the current local tracking. If the current position reaches the preset position of the surgical field of view, the tracking of the flexible surgical instrument is ended, otherwise the surgical image of the next moment is continuously acquired to track the flexible surgical instrument, thereby improving the image processing speed. The efficiency and positioning accuracy of the flexible surgical instrument tracking are effectively improved, and the real-time performance of the flexible surgical instrument tracking is ensured.
  • Embodiment 4 is a diagrammatic representation of Embodiment 4:
  • a computer readable storage medium storing a computer program, which when executed by a processor, implements the steps in the foregoing method embodiments, for example, FIG. Steps S101 to S108 are shown.
  • the computer program when executed by the processor, implements the functions of the various units of the apparatus embodiments described above, such as the functions of units 41 through 45 shown in FIG.
  • the local tracking area of the edge of the surgical field where the end of the flexible surgical instrument is located is set as the current local tracking area according to the surgical image at the current moment, and the end of the flexible surgical instrument is detected according to the surgical image at the next moment.
  • the current position in the local tracking area is obtained, and the movement track of the flexible surgical instrument is acquired according to the current position and output. If the current position is located at the edge of the current local tracking area, the next partial tracking area expanded in the surgical field is set as the current local tracking. If the current position reaches the preset position of the surgical field of view, the tracking of the flexible surgical instrument is ended, otherwise the surgical image of the next moment is continuously acquired to track the flexible surgical instrument, thereby improving the image processing speed. The efficiency and positioning accuracy of the flexible surgical instrument tracking are effectively improved, and the real-time performance of the flexible surgical instrument tracking is ensured.
  • the computer readable storage medium of the embodiments of the present invention may include any entity or device capable of carrying computer program code, a recording medium such as a ROM/RAM, a magnetic disk, an optical disk, a flash memory, or the like.

Abstract

A flexible surgical instrument tracking method, apparatus, device, and storage medium, for use in the technical field of medical instruments, the method comprising: on the basis of a surgery image at the current time (S101), setting a local tracking area at the edge of the surgical field of view and in which the tail end of a flexible surgical instrument is located as a current local tracking area (S102, S103); acquiring a surgery image taken by the camera at a succeeding time in order to detect the current position of the tail end of the flexible surgical instrument in the current local tracking area and, on the basis of the current position, acquiring and outputting the trajectory of movement of the flexible surgical instrument (S104); if the current position is at the edge of the current local tracking area, then setting the extended next local tracking area in the surgical field of view as the current local tracking area (S105, S106); if the current position reaches a preset position in the surgical field of view, then finishing tracking the flexible surgical instrument and, if not, then acquiring a surgery image at a succeeding time (S107, S108); the efficiency and positioning precision of flexible surgical instrument tracking is thereby effectively improved, ensuring the practicality of flexible surgical instrument tracking.

Description

柔性手术器械跟踪方法、装置、设备及存储介质Flexible surgical instrument tracking method, device, device and storage medium 技术领域Technical field
本发明属于医疗器械技术领域,尤其涉及一种柔性手术器械跟踪方法、装置、设备及存储介质。The invention belongs to the technical field of medical instruments, and in particular relates to a flexible surgical instrument tracking method, device, device and storage medium.
背景技术Background technique
在对机器人辅助手术中的柔性手术器械进行自动跟踪时,对柔性手术器械跟踪精度、视觉图像中柔性手术器械识别率、以及柔性手术器械跟踪实时性要求很高。In the automatic tracking of flexible surgical instruments in robot-assisted surgery, the tracking accuracy of flexible surgical instruments, the recognition rate of flexible surgical instruments in visual images, and the real-time tracking of flexible surgical instruments are very high.
目前,机器人辅助手术中柔性手术器械的跟踪方法主要有电磁跟踪、超声跟踪和视觉跟踪等方法,其中,电磁跟踪方法容易受磁场影响导致柔性手术器械定位不准确,超声跟踪方法由于声波具有衍射性,对小型器械末端的跟踪不精确。例如,专利CN201210499929.4提出一种电磁定位的超声穿刺导航系统,采用电磁定位和超声影像相结合的方法对穿刺针进行定位导航,实时显示穿刺针的路径、任意角度较为清楚的针尖位置,由于电磁定位容易受磁场影响,该导航系统需要在无磁场或磁场干扰较弱的环境下进行定位,此外超声波的衍射性导致该导航系统无法对针尖位置进行精准跟踪。At present, the tracking methods of flexible surgical instruments in robot-assisted surgery mainly include electromagnetic tracking, ultrasonic tracking and visual tracking. Among them, the electromagnetic tracking method is easily affected by the magnetic field, resulting in inaccurate positioning of the flexible surgical instruments. The ultrasonic tracking method is diffractive due to sound waves. The tracking of the ends of small instruments is not precise. For example, the patent CN201210499929.4 proposes an electromagnetic positioning ultrasonic puncture navigation system, which adopts a combination of electromagnetic positioning and ultrasonic imaging to position and guide the puncture needle, and displays the path of the puncture needle and the position of the needle tip with clear angle at any angle in real time. Electromagnetic positioning is easily affected by magnetic fields. The navigation system needs to be positioned in an environment where there is no magnetic field or weak magnetic field interference. In addition, the diffraction of the ultrasonic wave causes the navigation system to accurately track the position of the needle tip.
柔性手术器械的视觉跟踪方法不存在磁场干扰、衍射等问题,然而,视觉跟踪方法需要通过提取不同时刻下的图像特征实现柔性手术器械的实时跟踪,图像处理速度较慢,此外,在光照分布不均匀的条件下,视觉跟踪方法无法估计连续多段时刻下的图像特征,图像特征提取容易出现局部特征丢失的情形,导致柔性手术器械跟踪失败。The visual tracking method of flexible surgical instruments does not have problems such as magnetic field interference and diffraction. However, the visual tracking method needs to realize real-time tracking of flexible surgical instruments by extracting image features at different moments, the image processing speed is slow, and in addition, the illumination distribution is not Under uniform conditions, the visual tracking method can not estimate the image features in continuous multi-segment time, and the image feature extraction is prone to local feature loss, which leads to the failure of flexible surgical instruments.
发明内容Summary of the invention
本发明的目的在于提供一种柔性手术器械跟踪方法、装置、设备及存储介质,旨在解决由于现有技术中柔术手术器械的跟踪效率不高、定位精度不足、以及跟踪实时性滞后严重的问题。The object of the present invention is to provide a flexible surgical instrument tracking method, device, device and storage medium, aiming at solving the problem that the tracking efficiency of the flexible surgery instrument in the prior art is not high, the positioning accuracy is insufficient, and the tracking real-time lag is serious. problem.
一方面,本发明提供了一种柔性手术器械跟踪方法,所述方法包括下述步骤:In one aspect, the invention provides a flexible surgical instrument tracking method, the method comprising the steps of:
获取摄像头采集的当前时刻的手术图像,根据所述当前时刻的手术图像检测手术视野边缘的局部跟踪区域是否存在柔性手术器械;Obtaining a surgical image of a current moment acquired by the camera, and detecting whether a flexible surgical instrument exists in a local tracking area of the edge of the surgical field according to the surgical image at the current moment;
当所述手术视野边缘的局部跟踪区域存在所述柔性手术器械时,将所述柔性手术器械末端所在的局部跟踪区域设置为当前局部跟踪区域;Setting a local tracking area where the end of the flexible surgical instrument is located as a current local tracking area when the flexible surgical instrument is present in a local tracking area of the edge of the surgical field;
获取所述摄像头采集的下一时刻的手术图像,在所述下一时刻的手术图像中检测所述柔性手术器械末端在所述当前局部跟踪区域内的当前位置,根据所述当前位置,获取所述柔性手术器械的移动轨迹并输出;Obtaining a surgical image of the next moment collected by the camera, detecting a current position of the end of the flexible surgical instrument in the current partial tracking area in the surgical image of the next moment, and acquiring the current location according to the current position The movement trajectory of the flexible surgical instrument and output;
判断所述当前位置是否位于所述当前局部跟踪区域的边缘,是则根据所述当前位置在所述手术视野中拓展下一局部跟踪区域,将所述下一局部跟踪区域设置为所述当前局部跟踪区域;Determining whether the current location is located at an edge of the current local tracking area, and expanding a next partial tracking area in the surgical field according to the current position, and setting the next partial tracking area to the current local area Tracking area
判断所述当前位置是否到达所述手术视野中的预设位置,是则结束对所述柔性手术器械的跟踪,否则跳转至获取所述摄像头采集的下一时刻的手术图像的步骤。Determining whether the current position reaches a preset position in the surgical field of view is to end tracking of the flexible surgical instrument, otherwise jumping to a step of acquiring a surgical image of the next moment acquired by the camera.
另一方面,本发明提供了一种柔性手术器械跟踪装置,所述装置包括:In another aspect, the present invention provides a flexible surgical instrument tracking device, the device comprising:
边缘检测单元,用于获取摄像头采集的当前时刻的手术图像,根据所述当前时刻的手术图像检测手术视野边缘的局部跟踪区域是否存在柔性手术器械;An edge detecting unit, configured to acquire a surgical image of a current moment acquired by the camera, and detect whether a flexible surgical instrument exists in a local tracking area of the edge of the surgical field according to the surgical image at the current moment;
区域设置单元,用于当所述手术视野边缘的局部跟踪区域存在所述柔性手术器械时,将所述柔性手术器械末端所在的局部跟踪区域设置为当前局部跟踪区域;a local setting unit, configured to set a local tracking area where the end of the flexible surgical instrument is located as a current local tracking area when the flexible surgical instrument exists in a local tracking area of the edge of the surgical field;
轨迹输出单元,用于获取所述摄像头采集的下一时刻的手术图像,在所述下一时刻的手术图像中检测所述柔性手术器械末端在所述当前局部跟踪区域内 的当前位置,根据所述当前位置,获取所述柔性手术器械的移动轨迹并输出;a trajectory output unit, configured to acquire a surgical image of the next moment acquired by the camera, and detect a current position of the flexible surgical instrument end in the current partial tracking area in the surgical image at the next moment, according to the Determining a current position, acquiring a movement trajectory of the flexible surgical instrument and outputting;
区域拓展单元,用于判断所述当前位置是否位于所述当前局部跟踪区域的边缘,是则根据所述当前位置在所述手术视野中拓展下一局部跟踪区域,将所述下一局部跟踪区域设置为所述当前局部跟踪区域;以及a region expansion unit, configured to determine whether the current location is located at an edge of the current local tracking area, and then expand a next partial tracking area in the surgical field according to the current location, and the next partial tracking area Set to the current local tracking area;
跟踪结束单元,用于判断所述当前位置是否到达所述手术视野中的预设位置,是则结束对所述柔性手术器械的跟踪,否则由所述轨迹输出单元执行获取所述摄像头采集的下一时刻的手术图像的操作。a tracking end unit, configured to determine whether the current position reaches a preset position in the surgical field of view, and end the tracking of the flexible surgical instrument, otherwise the tracking output unit performs the acquisition of the camera The operation of a surgical image at a time.
另一方面,本发明还提供了一种医学设备,包括存储器、处理器以及存储在所述存储器中并可在所述处理器上运行的计算机程序,所述处理器执行所述计算机程序时实现如上述柔性手术器械跟踪方法所述的步骤。In another aspect, the present invention also provides a medical device comprising a memory, a processor, and a computer program stored in the memory and operable on the processor, the processor implementing the computer program The steps described in the flexible surgical instrument tracking method described above.
另一方面,本发明还提供了一种计算机可读存储介质,所述计算机可读存储介质存储有计算机程序,所述计算机程序被处理器执行时实现如上述柔性手术器械跟踪方法所述的步骤。In another aspect, the present invention also provides a computer readable storage medium storing a computer program, the computer program being executed by a processor to implement the steps as described in the flexible surgical instrument tracking method described above .
本发明根据当前时刻的手术图像,将柔性手术器械末端所在的、手术视野边缘的局部跟踪区域设置为当前局部跟踪区域,根据下一时刻的手术图像,检测柔性手术器械末端在当前局部跟踪区域内的当前位置,根据当前位置获取柔性手术器械的移动轨迹并输出,若当前位置位于当前局部跟踪区域的边缘,则将手术视野中拓展的下一局部跟踪区域设置为当前局部跟踪区域,若当前位置到达手术视野的预设位置,则结束对柔性手术器械的跟踪,否则继续获取下一时刻的手术图像,以对柔性手术器械进行跟踪,从而在提高图像处理速度的基础上,有效提高了柔性手术器械跟踪的效率和定位精度,保证了柔性手术器械跟踪的实时性。According to the surgical image at the current moment, the local tracking area of the edge of the surgical field where the flexible surgical instrument is located is set as the current local tracking area, and the end of the flexible surgical instrument is detected in the current local tracking area according to the surgical image at the next moment. The current position, the movement track of the flexible surgical instrument is obtained according to the current position and output. If the current position is located at the edge of the current local tracking area, the next partial tracking area expanded in the surgical field is set as the current local tracking area, if the current position When the preset position of the surgical field of view is reached, the tracking of the flexible surgical instrument is ended, otherwise the surgical image of the next moment is continuously acquired to track the flexible surgical instrument, thereby improving the flexible operation on the basis of improving the image processing speed. The efficiency and positioning accuracy of the instrument tracking ensure the real-time tracking of flexible surgical instruments.
附图说明DRAWINGS
图1是本发明实施例一提供的柔性手术器械跟踪方法的实现流程图;1 is a flowchart showing an implementation of a flexible surgical instrument tracking method according to Embodiment 1 of the present invention;
图2是本发明实施例一提供的柔性手术器械跟踪方法中根据柔性手术器械 末端的当前位置在手术视野中拓展下一局部跟踪区域的示例图;2 is a view showing an example of expanding a next partial tracking area in a surgical field according to a current position of a distal end of a flexible surgical instrument according to a flexible surgical instrument tracking method according to Embodiment 1 of the present invention;
图3是本发明实施例一提供的柔性手术器械跟踪方法中当柔性手术器械末端的当前位置位于当前局部跟踪区域两边缘的交点处时在手术视野中拓展下一局部跟踪区域的示例图;3 is a diagram showing an example of expanding a next partial tracking area in a surgical field when the current position of the end of the flexible surgical instrument is located at the intersection of both edges of the current partial tracking area in the flexible surgical instrument tracking method according to the first embodiment of the present invention;
图4是本发明实施例二提供的柔性手术器械跟踪装置的结构示意图;4 is a schematic structural view of a flexible surgical instrument tracking device according to Embodiment 2 of the present invention;
图5是本发明实施例二提供的柔性手术器械跟踪装置的优选结构示意图;以及5 is a schematic diagram of a preferred structure of a flexible surgical instrument tracking device according to a second embodiment of the present invention;
图6是本发明实施例三提供的医学设备的结构示意图。FIG. 6 is a schematic structural diagram of a medical device according to Embodiment 3 of the present invention.
具体实施方式Detailed ways
为了使本发明的目的、技术方案及优点更加清楚明白,以下结合附图及实施例,对本发明进行进一步详细说明。应当理解,此处所描述的具体实施例仅仅用以解释本发明,并不用于限定本发明。The present invention will be further described in detail below with reference to the accompanying drawings and embodiments. It is understood that the specific embodiments described herein are merely illustrative of the invention and are not intended to limit the invention.
以下结合具体实施例对本发明的具体实现进行详细描述:The specific implementation of the present invention is described in detail below in conjunction with specific embodiments:
实施例一:Embodiment 1:
图1示出了本发明实施例一提供的柔性手术器械跟踪方法的实现流程,为了便于说明,仅示出了与本发明实施例相关的部分,详述如下:FIG. 1 is a flowchart showing an implementation process of a flexible surgical instrument tracking method according to Embodiment 1 of the present invention. For convenience of description, only parts related to the embodiment of the present invention are shown, which are described in detail as follows:
在步骤S101中,获取摄像头采集的当前时刻的手术图像。In step S101, a surgical image of the current time acquired by the camera is acquired.
在步骤S102中,根据当前时刻的手术图像检测手术视野边缘的局部跟踪区域是否存在柔性手术器械。In step S102, a flexible surgical instrument is detected in the local tracking area of the edge of the surgical field based on the surgical image at the current time.
本发明实施例适用于对柔性手术器械的移动轨迹进行跟踪的平台或系统。手术视野为用来显示手术图像的窗口。可预先根据手术视野的大小将手术视野划分为多个局部跟踪区域,作为示例地,手术视野的面积可表示为W×H,W、H分别为手术视野的宽度、高度,可将手术视野划分为m×n(m≥1,n≥1)个局部跟踪区域,每个局部跟踪区域的宽度和高度分别为W/m、H/n。Embodiments of the present invention are applicable to platforms or systems that track the trajectory of a flexible surgical instrument. The surgical field of view is a window used to display the surgical image. The surgical field of view may be divided into a plurality of partial tracking regions according to the size of the surgical field of view. As an example, the area of the surgical field of view may be expressed as W×H, and W and H are respectively the width and height of the surgical field of view, and the surgical field of view may be divided. It is m×n (m≥1, n≥1) local tracking areas, and the width and height of each local tracking area are W/m and H/n, respectively.
在本发明实施例中,获取摄像头采集的当前时刻的手术图像,手术视野的 每个局部跟踪区域分别相应地显示着手术图像的图像块,先对手术视野边缘的局部跟踪区域处的图像块进行灰度化处理,获得手术视野边缘的局部跟踪区域处图像块的灰度分布特征值,对这些灰度分布特征进行二值化,检测二值化后的图像中是否存在柔性手术器械的移动轨迹,若存在,则认为手术视野边缘的局部跟踪区域存在柔性手术器械,此时执行步骤S103,否则认为手术视野边缘的局部跟踪区域不存在柔性手术器械,跳转至步骤S101继续获取摄像头拍摄的手术图像。其中,当手术图像整体亮度不均时,可为不同局部跟踪区域的二值化设置不同的二值化参数,从而有效地解决了图像亮度不均导致柔性手术器械定位不精准或跟踪失败的问题,进而提高柔性手术器械跟踪方法的适用性。In the embodiment of the present invention, the surgical image of the current time acquired by the camera is acquired, and each partial tracking area of the surgical field respectively displays an image block of the surgical image, and the image block at the local tracking area of the edge of the surgical field is first performed. Gray-scale processing, obtaining the gray-scale distribution feature value of the image block at the local tracking area of the edge of the surgical field, binarizing the gray-scale distribution features, and detecting whether there is a moving track of the flexible surgical instrument in the binarized image If it exists, it is considered that there is a flexible surgical instrument in the local tracking area of the edge of the surgical field. At this time, step S103 is performed. Otherwise, the flexible tracking instrument is not present in the local tracking area of the edge of the surgical field, and the process proceeds to step S101 to continue the operation of capturing the camera. image. Wherein, when the overall brightness of the surgical image is uneven, different binarization parameters can be set for the binarization of different local tracking regions, thereby effectively solving the problem that the uneven brightness of the image causes the positioning of the flexible surgical instrument to be inaccurate or the tracking fails. To improve the applicability of the flexible surgical instrument tracking method.
在步骤S103中,将柔性手术器械末端所在的局部跟踪区域设置为当前局部跟踪区域。In step S103, the local tracking area where the end of the flexible surgical instrument is located is set as the current local tracking area.
在步骤S104中,获取摄像头采集的下一时刻的手术图像,在下一时刻的手术图像中检测柔性手术器械末端在当前局部跟踪区域内的当前位置,根据当前位置,获取柔性手术器械的移动轨迹并输出。In step S104, the surgical image acquired at the next moment of the camera acquisition is acquired, the current position of the end of the flexible surgical instrument in the current partial tracking area is detected in the surgical image at the next moment, and the movement trajectory of the flexible surgical instrument is acquired according to the current position. Output.
在本发明实施例中,在确定手术视野边缘的局部跟踪区域存在了柔性手术器械时,将手术视野边缘、柔性手术器械所在的局部跟踪区域设置当前局部跟踪区域,并获取摄像头采集的下一时刻的手术图像,从下一时刻的手术图像中获得柔性手术器械末端在当前局部跟踪区域内的当前位置,以对柔性手术器械的移动轨迹进行实时跟踪。In the embodiment of the present invention, when there is a flexible surgical instrument in the local tracking area of the edge of the surgical field, the local tracking area where the edge of the surgical field and the flexible surgical instrument are located is set, and the next moment of the camera acquisition is obtained. The surgical image obtains the current position of the end of the flexible surgical instrument in the current local tracking area from the surgical image at the next moment to track the movement trajectory of the flexible surgical instrument in real time.
具体地,在获取到摄像头采集的下一时刻的手术图像时,可通过对位于当前局部跟踪区域内的图像块进行灰度化处理和二值化,来检测柔性手术器械在当前局部跟踪区域内的当前位置,该当前位置结合柔性手术器械上一时刻在当前局部跟踪区域内的位置,得到柔性手术器械的移动轨迹并输出。Specifically, when acquiring the surgical image of the next moment collected by the camera, the flexible surgical instrument can be detected in the current local tracking area by performing grayscale processing and binarization on the image block located in the current local tracking area. The current position, which is combined with the position of the flexible surgical instrument at a moment in the current local tracking area, results in a movement trajectory of the flexible surgical instrument and is output.
在步骤S105中,判断柔性手术器械末端的当前位置是否位于当前局部跟踪区域的边缘。In step S105, it is determined whether the current position of the end of the flexible surgical instrument is located at the edge of the current local tracking area.
在本发明实施例中,检测柔性手术器械的当前位置是否位于当前局部跟踪 区域的边缘,若在,可认为柔性手术器械末端即将离开当前局部跟踪区域,需要对当前局部跟踪区域进行更新,执行步骤S106,否则,执行步骤S107。In the embodiment of the present invention, it is detected whether the current position of the flexible surgical instrument is located at the edge of the current local tracking area. If the end of the flexible surgical instrument is considered to be leaving the current local tracking area, the current local tracking area needs to be updated, and the steps are performed. S106, otherwise, step S107 is performed.
在步骤S106中,根据柔性手术器械末端的当前位置在手术视野中拓展下一局部跟踪区域,将下一局部跟踪区域设置为当前局部跟踪区域。In step S106, the next partial tracking area is expanded in the surgical field according to the current position of the end of the flexible surgical instrument, and the next partial tracking area is set as the current partial tracking area.
在本发明实施例中,当柔性手术器械末端的当前位置位于当前局部跟踪区域的边缘时,以柔性手术器械末端的当前位置为中心点,在当前位置所在边缘处得到下一局部跟踪区域的一条边缘,结合该边缘和当前局部跟踪区域的大小,得到与当前局部跟踪区域形状大小相同的下一局部跟踪区域,若下一局部跟踪区域的部分区域超出了手术视野,则将下一局部跟踪区域未超出手术视野的部分设置为当前局部跟踪区域。例如,图2中的(a)(b)为根据柔性手术器械末端的当前位置在手术视野中拓展下一局部跟踪区域的示例图,其中,(a)、(b)中的实线方框内的区域为当前局部跟踪区域、虚线方框内的区域为下一局部跟踪区域、曲线表示柔性手术器械的移动轨迹、以及实线方框边缘上的黑色点为柔性手术器械末端的当前位置。In the embodiment of the present invention, when the current position of the end of the flexible surgical instrument is located at the edge of the current local tracking area, the current position of the end of the flexible surgical instrument is taken as the center point, and a piece of the next partial tracking area is obtained at the edge of the current position. The edge, combined with the edge and the size of the current local tracking area, obtains a next partial tracking area having the same shape shape as the current local tracking area, and if the partial area of the next partial tracking area exceeds the surgical field of view, the next partial tracking area is The portion that does not exceed the surgical field of view is set to the current local tracking area. For example, (a)(b) in FIG. 2 is an exemplary diagram of expanding the next partial tracking area in the surgical field according to the current position of the end of the flexible surgical instrument, wherein the solid line boxes in (a), (b) The inner region is the current local tracking region, the region within the dashed box is the next partial tracking region, the curve indicates the movement path of the flexible surgical instrument, and the black point on the edge of the solid frame is the current position of the end of the flexible surgical instrument.
在本发明实施例中,将拓展得到的下一局部跟踪区域设置为当前局部跟踪区域,完成当前局部跟踪区域的更新,从而通过在当前局部跟踪区域查找柔性手术器械末端的当前位置,而不是在整张手术图像中查找,有效地提高了图像处理速度,进而提高柔性手术器械跟踪的效率和实时性。In the embodiment of the present invention, the extended local tracking area is set as the current local tracking area, and the current local tracking area is updated, so that the current position of the flexible surgical instrument end is found in the current local tracking area, instead of The search in the whole surgical image effectively improves the image processing speed, thereby improving the efficiency and real-time performance of the flexible surgical instrument tracking.
优选地,当柔性手术器械末端的当前位置位于当前局部跟踪区域两边缘的交点处时,确定柔性手术器械的移动轨迹在交点处的切线,计算该切线分别与当前局部跟踪区域两边缘的夹角,以柔性手术器械末端的当前位置为中点,以与该切线夹角最小的边缘为下一局部跟踪区域边缘的位置,再根据下一局部跟踪区域的边缘确定一个与当前局部跟踪区域形状大小一致的下一局部跟踪区域,若下一局部跟踪区域的部分区域超出了手术视野,则将下一局部跟踪区域未超出手术视野的部分设置为当前局部跟踪区域,从而有效地提高了柔性手术器械跟踪的准确性。Preferably, when the current position of the end of the flexible surgical instrument is located at the intersection of the two edges of the current partial tracking area, the tangent of the movement path of the flexible surgical instrument at the intersection is determined, and the angle between the tangent and the edge of the current local tracking area is calculated respectively. The current position of the end of the flexible surgical instrument is the midpoint, the edge with the smallest angle to the tangent is the position of the edge of the next partial tracking area, and then the shape of the current local tracking area is determined according to the edge of the next partial tracking area. Consistent next partial tracking area, if part of the next partial tracking area exceeds the surgical field of view, the part of the next partial tracking area that does not exceed the surgical field of view is set as the current local tracking area, thereby effectively improving the flexible surgical instrument Tracking accuracy.
作为示例地,如图3所示,实曲线为柔性手术器械的移动轨迹,实线方框内的区域为当前局部跟踪区域,C点为柔性手术器械末端的当前位置,也为当前局部跟踪区域两边缘的交点,L c为即柔性手术器械的移动轨迹在柔性手术器械末端的当前位置处的切线方向,L a和L b为当前局部跟踪区域两边缘线的方向,α和β分别为L a与L c、L b与L c的夹角,当α<β时,将虚线方框32内的区域设置为下一局部跟踪区域,否则将虚线方框31内的区域设置为下一局部跟踪区域。 By way of example, as shown in FIG. 3, the solid curve is the movement trajectory of the flexible surgical instrument, the area within the solid line box is the current local tracking area, and the C point is the current position of the end of the flexible surgical instrument, which is also the current local tracking area. The intersection of the two edges, L c is the tangential direction of the movement path of the flexible surgical instrument at the current position of the end of the flexible surgical instrument, and L a and L b are the directions of the two edge lines of the current local tracking area, α and β are respectively L The angle between a and L c , L b and L c , when α < β, the area in the dashed box 32 is set as the next partial tracking area, otherwise the area in the dashed box 31 is set as the next part. Tracking area.
在步骤S107中,判断柔性手术器械末端的当前位置是否到达手术视野中的预设位置。In step S107, it is determined whether the current position of the end of the flexible surgical instrument reaches a preset position in the surgical field of view.
在本发明实施例中,通过判断柔性手术器械末端的当前位置是否到达手术视野的边缘、或者用户预设的手术目标位置,来判断柔性手术器械末端的当前位置是否到达手术视野中的预设位置,满足时执行步骤S108,否则跳转至步骤S104,继续对柔性手术器械进行跟踪。In the embodiment of the present invention, whether the current position of the end of the flexible surgical instrument reaches the preset position in the surgical field of view is determined by determining whether the current position of the end of the flexible surgical instrument reaches the edge of the surgical field or the position of the surgical target preset by the user. If yes, step S108 is performed, otherwise, the process goes to step S104 to continue tracking the flexible surgical instrument.
在步骤S108中,结束对柔性手术器械的跟踪。In step S108, the tracking of the flexible surgical instrument is ended.
在本发明实施例中,在接收到用户的结束指令时,也可结束对柔性手术器械的跟踪。In the embodiment of the present invention, the tracking of the flexible surgical instrument can also be ended upon receiving the end instruction of the user.
在本发明实施例中,根据摄像头采集的手术图像,确定手术视野边缘的局部跟踪区域是否存在柔性手术器械,并确定柔性手术器械末端在不同局部跟踪区域的位置,得到柔性手术器械的移动轨迹,从而每次仅对一个局部跟踪区域内的图像块进行处理,有效地提高了图像处理速度,且解决了图像光照不均带来定位精度不足的问题,进而有效地提高了柔性手术器械的跟踪效率和定位精度,保证了柔性手术器械跟踪的实时性。In the embodiment of the present invention, according to the surgical image collected by the camera, determining whether there is a flexible surgical instrument in the local tracking area of the edge of the surgical field, and determining the position of the end of the flexible surgical instrument in different local tracking areas, and obtaining the movement track of the flexible surgical instrument, Therefore, only one image block in a local tracking area is processed at a time, which effectively improves the image processing speed, and solves the problem that the image illumination unevenness brings insufficient positioning accuracy, thereby effectively improving the tracking efficiency of the flexible surgical instrument. And positioning accuracy, to ensure the real-time tracking of flexible surgical instruments.
实施例二:Embodiment 2:
图4示出了本发明实施例二提供的柔性手术器械跟踪装置的结构,为了便于说明,仅示出了与本发明实施例相关的部分,其中包括:4 shows the structure of a flexible surgical instrument tracking device according to Embodiment 2 of the present invention. For the convenience of description, only parts related to the embodiment of the present invention are shown, including:
边缘检测单元41,用于获取摄像头采集的当前时刻的手术图像,根据当前时刻的手术图像检测手术视野边缘的局部跟踪区域是否存在柔性手术器械。The edge detecting unit 41 is configured to acquire a surgical image of the current time acquired by the camera, and detect whether a flexible surgical instrument exists in the local tracking area of the edge of the surgical field according to the surgical image at the current time.
在本发明实施例中,手术视野为用来显示手术图像的窗口。可预先根据手术视野的大小将手术视野划分为多个局部跟踪区域,作为示例地,手术视野的面积可表示为W×H,W、H分别为手术视野的宽度、高度,可将手术视野划分为m×n(m≥1,n≥1)个局部跟踪区域,每个局部跟踪区域的宽度和高度分别为W/m、H/n。In an embodiment of the invention, the surgical field of view is a window used to display a surgical image. The surgical field of view may be divided into a plurality of partial tracking regions according to the size of the surgical field of view. As an example, the area of the surgical field of view may be expressed as W×H, and W and H are respectively the width and height of the surgical field of view, and the surgical field of view may be divided. It is m×n (m≥1, n≥1) local tracking areas, and the width and height of each local tracking area are W/m and H/n, respectively.
在本发明实施例中,获取摄像头采集的当前时刻的手术图像,手术视野的每个局部跟踪区域分别相应地显示着手术图像的图像块,先对手术视野边缘的局部跟踪区域处的图像块进行灰度化处理,获得手术视野边缘的局部跟踪区域处图像块的灰度分布特征值,对这些灰度分布特征进行二值化,检测二值化后的图像中是否存在柔性手术器械的移动轨迹,若存在,则认为手术视野边缘的局部跟踪区域存在柔性手术器械,否则继续获取摄像头拍摄的图像、检测手术视野边缘的局部跟踪区域是否存在柔性手术器械。其中,当手术图像整体亮度不均时,可为不同局部跟踪区域的二值化设置不同的二值化参数,从而有效地解决了图像亮度不均导致柔性手术器械定位不精准或跟踪失败的问题,进而提高柔性手术器械跟踪方法的适用性。In the embodiment of the present invention, the surgical image of the current time acquired by the camera is acquired, and each partial tracking area of the surgical field respectively displays an image block of the surgical image, and the image block at the local tracking area of the edge of the surgical field is first performed. Gray-scale processing, obtaining the gray-scale distribution feature value of the image block at the local tracking area of the edge of the surgical field, binarizing the gray-scale distribution features, and detecting whether there is a moving track of the flexible surgical instrument in the binarized image If it exists, it is considered that there is a flexible surgical instrument in the local tracking area at the edge of the surgical field. Otherwise, the image taken by the camera is continuously acquired, and the flexible tracking instrument is detected in the local tracking area of the edge of the surgical field. Wherein, when the overall brightness of the surgical image is uneven, different binarization parameters can be set for the binarization of different local tracking regions, thereby effectively solving the problem that the uneven brightness of the image causes the positioning of the flexible surgical instrument to be inaccurate or the tracking fails. To improve the applicability of the flexible surgical instrument tracking method.
区域设置单元42,用于当手术视野边缘的局部跟踪区域存在柔性手术器械时,将柔性手术器械末端所在的局部跟踪区域设置为当前局部跟踪区域。The local setting unit 42 is configured to set a local tracking area where the end of the flexible surgical instrument is located as the current local tracking area when the flexible surgical instrument is present in the local tracking area of the surgical field edge.
轨迹输出单元43,用于获取摄像头采集的下一时刻的手术图像,在下一时刻的手术图像中检测柔性手术器械末端在当前局部跟踪区域内的当前位置,根据当前位置,获取柔性手术器械的移动轨迹并输出。The trajectory output unit 43 is configured to acquire a surgical image acquired at a next moment of the camera, and detect a current position of the end of the flexible surgical instrument in the current partial tracking area in the surgical image at the next moment, and acquire the movement of the flexible surgical instrument according to the current position. Track and output.
在本发明实施例中,,在确定手术视野边缘的局部跟踪区域存在了柔性手术器械时,将手术视野边缘、柔性手术器械所在的局部跟踪区域设置当前局部跟踪区域,并获取摄像头采集的下一时刻的手术图像,从下一时刻的手术图像中获得柔性手术器械末端在当前局部跟踪区域内的当前位置,以对柔性手术器械的移动轨迹进行实时跟踪。In the embodiment of the present invention, when a flexible surgical instrument exists in a local tracking area at the edge of the surgical field of view, the local tracking area where the edge of the surgical field and the flexible surgical instrument are located is set to the current local tracking area, and the next acquisition of the camera is acquired. The surgical image of the moment obtains the current position of the end of the flexible surgical instrument in the current local tracking area from the surgical image at the next moment to track the movement trajectory of the flexible surgical instrument in real time.
具体地,在获取到摄像头采集的下一时刻的手术图像时,可通过对位于当 前局部跟踪区域内的图像块进行灰度化处理和二值化,来检测柔性手术器械在当前局部跟踪区域内的当前位置,该当前位置结合柔性手术器械上一时刻在当前局部跟踪区域内的位置,得到柔性手术器械的移动轨迹并输出。Specifically, when acquiring the surgical image of the next moment collected by the camera, the flexible surgical instrument can be detected in the current local tracking area by performing grayscale processing and binarization on the image block located in the current local tracking area. The current position, which is combined with the position of the flexible surgical instrument at a moment in the current local tracking area, results in a movement trajectory of the flexible surgical instrument and is output.
区域拓展单元44,用于判断当前位置是否位于当前局部跟踪区域的边缘,是则根据当前位置在手术视野中拓展下一局部跟踪区域,将下一局部跟踪区域设置为当前局部跟踪区域。The area expansion unit 44 is configured to determine whether the current location is located at the edge of the current local tracking area, and then expand the next partial tracking area in the surgical field according to the current position, and set the next partial tracking area as the current local tracking area.
在本发明实施例中,检测柔性手术器械末端的当前位置是否位于当前局部跟踪区域的边缘,若在,可认为柔性手术器械末端即将离开当前局部跟踪区域,需要对当前局部跟踪区域进行更新。具体地,当柔性手术器械末端的当前位置位于当前局部跟踪区域的边缘时,以柔性手术器械末端的当前位置为中心点,在当前位置所在边缘处得到下一局部跟踪区域的一条边缘,结合该边缘和当前局部跟踪区域的大小,得到与当前局部跟踪区域形状大小相同的下一局部跟踪区域,若下一局部跟踪区域的部分区域超出了手术视野,则将下一局部跟踪区域未超出手术视野的部分设置为当前局部跟踪区域。将拓展得到的下一局部跟踪区域设置为当前局部跟踪区域,完成当前局部跟踪区域的更新,从而通过在当前局部跟踪区域查找柔性手术器械末端的当前位置,而不是在整张手术图像中查找,有效地提高了图像处理速度,进而提高柔性手术器械跟踪的效率和实时性In the embodiment of the present invention, it is detected whether the current position of the end of the flexible surgical instrument is located at the edge of the current local tracking area. If the end of the flexible surgical instrument is considered to be about to leave the current local tracking area, the current local tracking area needs to be updated. Specifically, when the current position of the end of the flexible surgical instrument is located at the edge of the current local tracking area, with the current position of the end of the flexible surgical instrument as the center point, an edge of the next partial tracking area is obtained at the edge of the current position, combined with The size of the edge and the current local tracking area is the same as the current partial tracking area. If the partial area of the next partial tracking area exceeds the surgical field of view, the next partial tracking area is not beyond the surgical field of view. The part is set to the current local tracking area. Setting the expanded next partial tracking area to the current local tracking area, completing the update of the current local tracking area, thereby searching for the current position of the end of the flexible surgical instrument in the current local tracking area, instead of searching through the entire surgical image, Effectively improve image processing speed, thereby improving the efficiency and real-time performance of flexible surgical instruments
优选地,当柔性手术器械末端的当前位置位于当前局部跟踪区域两边缘的交点处时,确定柔性手术器械的移动轨迹在交点处的切线,计算该切线分别与当前局部跟踪区域两边缘的夹角,以柔性手术器械末端的当前位置为中点,以与该切线夹角最小的边缘为下一局部跟踪区域边缘的位置,再根据下一局部跟踪区域的边缘确定一个与当前局部跟踪区域形状大小一致的下一局部跟踪区域,若下一局部跟踪区域的部分区域超出了手术视野,则将下一局部跟踪区域未超出手术视野的部分设置为当前局部跟踪区域,从而有效地提高了柔性手术器械跟踪的准确性。Preferably, when the current position of the end of the flexible surgical instrument is located at the intersection of the two edges of the current partial tracking area, the tangent of the movement path of the flexible surgical instrument at the intersection is determined, and the angle between the tangent and the edge of the current local tracking area is calculated respectively. The current position of the end of the flexible surgical instrument is the midpoint, the edge with the smallest angle to the tangent is the position of the edge of the next partial tracking area, and then the shape of the current local tracking area is determined according to the edge of the next partial tracking area. Consistent next partial tracking area, if part of the next partial tracking area exceeds the surgical field of view, the part of the next partial tracking area that does not exceed the surgical field of view is set as the current local tracking area, thereby effectively improving the flexible surgical instrument Tracking accuracy.
跟踪结束单元45,用于判断当前位置是否到达手术视野中的预设位置,是则结束对柔性手术器械的跟踪,否则由轨迹输出单元43执行获取摄像头采集的下一时刻的手术图像的操作。The tracking end unit 45 is configured to determine whether the current position reaches the preset position in the surgical field of view, and is to end the tracking of the flexible surgical instrument. Otherwise, the operation of acquiring the surgical image of the next time captured by the camera is performed by the track output unit 43.
在本发明实施例中,通过判断柔性手术器械末端的当前位置是否到达手术视野的边缘、或者用户预设的手术目标位置,来判断柔性手术器械末端的当前位置是否到达手术视野中的预设位置。此外,在接收到用户的结束指令时,也可结束对柔性手术器械的跟踪。In the embodiment of the present invention, whether the current position of the end of the flexible surgical instrument reaches the preset position in the surgical field of view is determined by determining whether the current position of the end of the flexible surgical instrument reaches the edge of the surgical field or the position of the surgical target preset by the user. . In addition, tracking of the flexible surgical instrument can also be ended upon receipt of the user's end command.
优选地,如图5所示,边缘检测单元41包括:Preferably, as shown in FIG. 5, the edge detecting unit 41 includes:
图像处理单元511,用于将手术视野划分为多个局部跟踪区域,对位于手术视野边缘的局部跟踪区域对应的图像块进行灰度化处理和二值化;以及The image processing unit 511 is configured to divide the surgical field into a plurality of partial tracking regions, and perform graying processing and binarization on the image blocks corresponding to the local tracking regions located at the edge of the surgical field; and
图像检测单元512,用于检测二值化后的图像块中是否存在柔性手术器械的移动轨迹,以确定手术视野边缘的局部跟踪区域是否存在柔性手术器械。The image detecting unit 512 is configured to detect whether a movement trajectory of the flexible surgical instrument exists in the binarized image block to determine whether a flexible surgical instrument exists in the local tracking area of the surgical field of view edge.
优选地,区域拓展单元44包括Preferably, the area extension unit 44 includes
第一拓展单元541,用于以当前位置为下一局部跟踪区域边缘的中点,在手术视野中拓展与当前局部跟踪区域形状大小一致的下一跟踪局部区域。The first expanding unit 541 is configured to expand the next tracking local area consistent with the current local tracking area shape size in the surgical field with the current position as the midpoint of the edge of the next partial tracking area.
优选地,区域拓展单元44还包括:Preferably, the area extension unit 44 further includes:
切线确定单元542,用于当当前位置位于当前局部跟踪区域两边缘的交点处时,确定柔性手术器械的移动轨迹在交点处的切线;a tangent determining unit 542, configured to determine a tangent of the movement track of the flexible surgical instrument at the intersection when the current position is at the intersection of the two edges of the current local tracking area;
角度比较单元543,计算切线分别与当前局部跟踪区域两边缘的夹角,获得与切线夹角最小的边缘;以及The angle comparison unit 543 calculates an angle between the tangent and the two edges of the current local tracking area, and obtains an edge with the smallest angle to the tangent;
第二拓展单元544,用于以当前位置为下一局部跟踪区域边缘的中点,以与切线夹角最小的边缘为下一局部跟踪区域边缘所在位置,在手术视野中拓展与当前局部跟踪区域形状大小一致的下一局部跟踪区域。The second expanding unit 544 is configured to use the current position as the midpoint of the edge of the next partial tracking area, and the edge with the smallest angle of the tangent as the position of the edge of the next partial tracking area, and expand and the current local tracking area in the surgical field of view The next partial tracking area of the same size and shape.
在本发明实施例中,根据摄像头采集的手术图像,确定手术视野边缘的局部跟踪区域是否存在柔性手术器械,并确定柔性手术器械末端在不同局部跟踪区域的位置,得到柔性手术器械的移动轨迹,从而每次仅对一个局部跟踪区域 内的图像块进行处理,有效地提高了图像处理速度,且解决了图像光照不均带来定位精度不足的问题,进而有效地提高了柔性手术器械的跟踪效率和定位精度,保证了柔性手术器械跟踪的实时性。In the embodiment of the present invention, according to the surgical image collected by the camera, determining whether there is a flexible surgical instrument in the local tracking area of the edge of the surgical field, and determining the position of the end of the flexible surgical instrument in different local tracking areas, and obtaining the movement track of the flexible surgical instrument, Therefore, only one image block in a local tracking area is processed at a time, which effectively improves the image processing speed, and solves the problem that the image illumination unevenness brings insufficient positioning accuracy, thereby effectively improving the tracking efficiency of the flexible surgical instrument. And positioning accuracy, to ensure the real-time tracking of flexible surgical instruments.
在本发明实施例中,柔性手术器械跟踪装置的各单元可由相应的硬件或软件单元实现,各单元可以为独立的软、硬件单元,也可以集成为一个软、硬件单元,在此不用以限制本发明。In the embodiment of the present invention, each unit of the flexible surgical instrument tracking device can be implemented by a corresponding hardware or software unit, and each unit can be an independent software and hardware unit, or can be integrated into a soft and hardware unit, without limitation. this invention.
实施例三:Embodiment 3:
图6示出了本发明实施例三提供的医学设备的结构,为了便于说明,仅示出了与本发明实施例相关的部分。Fig. 6 shows the structure of a medical device according to a third embodiment of the present invention. For the convenience of description, only parts related to the embodiment of the present invention are shown.
本发明实施例的医学设备6包括处理器60、存储器61以及存储在存储器61中并可在处理器60上运行的计算机程序62。该处理器60执行计算机程序62时实现上述方法实施例中的步骤,例如图1所示的步骤S101至S108。或者,处理器60执行计算机程序62时实现上述装置实施例中各单元的功能,例如图4所示单元41至45的功能。The medical device 6 of an embodiment of the present invention includes a processor 60, a memory 61, and a computer program 62 stored in the memory 61 and operable on the processor 60. The processor 60, when executing the computer program 62, implements the steps in the above-described method embodiments, such as steps S101 through S108 shown in FIG. Alternatively, processor 60, when executing computer program 62, implements the functions of the various units of the apparatus embodiments described above, such as the functions of units 41 through 45 shown in FIG.
在本发明实施例中,根据当前时刻的手术图像,将柔性手术器械末端所在的、手术视野边缘的局部跟踪区域设置为当前局部跟踪区域,根据下一时刻的手术图像,检测柔性手术器械末端在当前局部跟踪区域内的当前位置,根据当前位置获取柔性手术器械的移动轨迹并输出,若当前位置位于当前局部跟踪区域的边缘,则将手术视野中拓展的下一局部跟踪区域设置为当前局部跟踪区域,若当前位置到达手术视野的预设位置,则结束对柔性手术器械的跟踪,否则继续获取下一时刻的手术图像,以对柔性手术器械进行跟踪,从而在提高图像处理速度的基础上,有效提高了柔性手术器械跟踪的效率和定位精度,保证了柔性手术器械跟踪的实时性。In the embodiment of the present invention, the local tracking area of the edge of the surgical field where the end of the flexible surgical instrument is located is set as the current local tracking area according to the surgical image at the current moment, and the end of the flexible surgical instrument is detected according to the surgical image at the next moment. The current position in the local tracking area is obtained, and the movement track of the flexible surgical instrument is acquired according to the current position and output. If the current position is located at the edge of the current local tracking area, the next partial tracking area expanded in the surgical field is set as the current local tracking. If the current position reaches the preset position of the surgical field of view, the tracking of the flexible surgical instrument is ended, otherwise the surgical image of the next moment is continuously acquired to track the flexible surgical instrument, thereby improving the image processing speed. The efficiency and positioning accuracy of the flexible surgical instrument tracking are effectively improved, and the real-time performance of the flexible surgical instrument tracking is ensured.
实施例四:Embodiment 4:
在本发明实施例中,提供了一种计算机可读存储介质,该计算机可读存储介质存储有计算机程序,该计算机程序被处理器执行时实现上述方法实施例中 的步骤,例如,图1所示的步骤S101至S108。或者,该计算机程序被处理器执行时实现上述装置实施例中各单元的功能,例如图4所示单元41至45的功能。In an embodiment of the present invention, there is provided a computer readable storage medium storing a computer program, which when executed by a processor, implements the steps in the foregoing method embodiments, for example, FIG. Steps S101 to S108 are shown. Alternatively, the computer program, when executed by the processor, implements the functions of the various units of the apparatus embodiments described above, such as the functions of units 41 through 45 shown in FIG.
在本发明实施例中,根据当前时刻的手术图像,将柔性手术器械末端所在的、手术视野边缘的局部跟踪区域设置为当前局部跟踪区域,根据下一时刻的手术图像,检测柔性手术器械末端在当前局部跟踪区域内的当前位置,根据当前位置获取柔性手术器械的移动轨迹并输出,若当前位置位于当前局部跟踪区域的边缘,则将手术视野中拓展的下一局部跟踪区域设置为当前局部跟踪区域,若当前位置到达手术视野的预设位置,则结束对柔性手术器械的跟踪,否则继续获取下一时刻的手术图像,以对柔性手术器械进行跟踪,从而在提高图像处理速度的基础上,有效提高了柔性手术器械跟踪的效率和定位精度,保证了柔性手术器械跟踪的实时性。In the embodiment of the present invention, the local tracking area of the edge of the surgical field where the end of the flexible surgical instrument is located is set as the current local tracking area according to the surgical image at the current moment, and the end of the flexible surgical instrument is detected according to the surgical image at the next moment. The current position in the local tracking area is obtained, and the movement track of the flexible surgical instrument is acquired according to the current position and output. If the current position is located at the edge of the current local tracking area, the next partial tracking area expanded in the surgical field is set as the current local tracking. If the current position reaches the preset position of the surgical field of view, the tracking of the flexible surgical instrument is ended, otherwise the surgical image of the next moment is continuously acquired to track the flexible surgical instrument, thereby improving the image processing speed. The efficiency and positioning accuracy of the flexible surgical instrument tracking are effectively improved, and the real-time performance of the flexible surgical instrument tracking is ensured.
本发明实施例的计算机可读存储介质可以包括能够携带计算机程序代码的任何实体或装置、记录介质,例如,ROM/RAM、磁盘、光盘、闪存等存储器。The computer readable storage medium of the embodiments of the present invention may include any entity or device capable of carrying computer program code, a recording medium such as a ROM/RAM, a magnetic disk, an optical disk, a flash memory, or the like.
以上所述仅为本发明的较佳实施例而已,并不用以限制本发明,凡在本发明的精神和原则之内所作的任何修改、等同替换和改进等,均应包含在本发明的保护范围之内。The above is only the preferred embodiment of the present invention, and is not intended to limit the present invention. Any modifications, equivalent substitutions and improvements made within the spirit and principles of the present invention should be included in the protection of the present invention. Within the scope.

Claims (12)

  1. 一种柔性手术器械跟踪方法,其特征在于,所述方法包括下述步骤:A flexible surgical instrument tracking method, characterized in that the method comprises the following steps:
    获取摄像头采集的当前时刻的手术图像,根据所述当前时刻的手术图像检测手术视野边缘的局部跟踪区域是否存在柔性手术器械;Obtaining a surgical image of a current moment acquired by the camera, and detecting whether a flexible surgical instrument exists in a local tracking area of the edge of the surgical field according to the surgical image at the current moment;
    当所述手术视野边缘的局部跟踪区域存在所述柔性手术器械时,将所述柔性手术器械末端所在的局部跟踪区域设置为当前局部跟踪区域;Setting a local tracking area where the end of the flexible surgical instrument is located as a current local tracking area when the flexible surgical instrument is present in a local tracking area of the edge of the surgical field;
    获取所述摄像头采集的下一时刻的手术图像,在所述下一时刻的手术图像中检测所述柔性手术器械末端在所述当前局部跟踪区域内的当前位置,根据所述当前位置,获取所述柔性手术器械的移动轨迹并输出;Obtaining a surgical image of the next moment collected by the camera, detecting a current position of the end of the flexible surgical instrument in the current partial tracking area in the surgical image of the next moment, and acquiring the current location according to the current position The movement trajectory of the flexible surgical instrument and output;
    判断所述当前位置是否位于所述当前局部跟踪区域的边缘,是则根据所述当前位置在所述手术视野中拓展下一局部跟踪区域,将所述下一局部跟踪区域设置为所述当前局部跟踪区域;Determining whether the current location is located at an edge of the current local tracking area, and expanding a next partial tracking area in the surgical field according to the current position, and setting the next partial tracking area to the current local area Tracking area
    判断所述当前位置是否到达所述手术视野中的预设位置,是则结束对所述柔性手术器械的跟踪,否则跳转至获取所述摄像头采集的下一时刻的手术图像的步骤。Determining whether the current position reaches a preset position in the surgical field of view is to end tracking of the flexible surgical instrument, otherwise jumping to a step of acquiring a surgical image of the next moment acquired by the camera.
  2. 如权利要求1所述的方法,其特征在于,根据所述当前时刻的手术图像检测手术视野边缘的局部跟踪区域是否存在柔性手术器械的步骤之后,将所述柔性手术器械末端所在的局部跟踪区域设置为当前局部跟踪区域的步骤之前,所述方法还包括:The method according to claim 1, wherein the local tracking area where the end of the flexible surgical instrument is located after detecting the presence of the flexible surgical instrument in the local tracking area of the edge of the surgical field according to the surgical image of the current time is detected. Before the step of setting the current local tracking area, the method further includes:
    当所述手术视野边缘的局部跟踪区域不存在所述柔性手术器械时,跳转至获取摄像头采集的当前时刻的手术图像的步骤。When the flexible surgical instrument does not exist in the local tracking area of the edge of the surgical field, the step jumps to the acquisition of the surgical image of the current time acquired by the camera.
  3. 如权利要求1所述的方法,其特征在于,根据所述当前时刻的手术图像检测手术视野边缘的局部跟踪区域是否存在柔性手术器械的步骤,包括:The method according to claim 1, wherein the step of detecting whether there is a flexible surgical instrument in the local tracking area of the edge of the surgical field according to the surgical image of the current time comprises:
    将所述手术视野划分为多个局部跟踪区域,对位于所述手术视野边缘的局部跟踪区域对应的图像块进行灰度化处理和二值化;Dividing the surgical field into a plurality of local tracking regions, and performing grayscale processing and binarization on the image blocks corresponding to the local tracking regions located at the edge of the surgical field;
    检测所述二值化后的图像块中是否存在所述柔性手术器械的移动轨迹,以 确定所述手术视野边缘的局部跟踪区域是否存在所述柔性手术器械。Detecting whether there is a movement trajectory of the flexible surgical instrument in the binarized image block to determine whether the flexible surgical instrument is present in a local tracking area of the surgical field of view edge.
  4. 如权利要求1所述的方法,其特征在于,根据所述当前位置在所述手术视野中拓展下一跟踪局部区域的步骤,包括:The method of claim 1 wherein the step of expanding the next tracking local area in the surgical field of view based on the current position comprises:
    以所述当前位置为所述下一局部跟踪区域边缘的中点,在所述手术视野中拓展与所述当前局部跟踪区域形状大小一致的所述下一跟踪局部区域。And the current tracking position is a midpoint of the edge of the next partial tracking area, and the next tracking local area that is consistent with the shape shape of the current local tracking area is expanded in the surgical field of view.
  5. 如权利要求1所述的方法,其特征在于,根据所述当前位置在所述手术视野中拓展下一局部跟踪区域的步骤,还包括:The method of claim 1, wherein the step of expanding the next partial tracking area in the surgical field of view according to the current position further comprises:
    当所述当前位置位于所述当前局部跟踪区域两边缘的交点处时,确定所述柔性手术器械的移动轨迹在所述交点处的切线;Determining a tangent of the movement trajectory of the flexible surgical instrument at the intersection when the current position is at an intersection of both edges of the current partial tracking area;
    计算所述切线分别与所述当前局部跟踪区域两边缘的夹角,获得与所述切线夹角最小的边缘;Calculating an angle between the tangent lines and the two edges of the current local tracking area, respectively, to obtain an edge having the smallest angle with the tangent;
    以所述当前位置为所述下一局部跟踪区域边缘的中点,以与所述切线夹角最小的边缘为所述下一局部跟踪区域边缘所在位置,在所述手术视野中拓展与所述当前局部跟踪区域形状大小一致的所述下一局部跟踪区域。Taking the current position as the midpoint of the edge of the next partial tracking area, and the edge having the smallest angle with the tangential line as the position of the edge of the next partial tracking area, expanding and speaking in the surgical field of view The next partial tracking area of the current local tracking area has the same size and size.
  6. 如权利要求1所述的方法,其特征在于,判断所述当前位置是否到达所述手术视野中的预设位置的步骤,包括:The method of claim 1 wherein the step of determining whether the current location has reached a predetermined location in the surgical field of view comprises:
    通过判断所述当前位置是否位于所述手术视野的边缘,确定所述当前位置是否到达所述手术视野中的预设位置。Whether the current position reaches a preset position in the surgical field of view is determined by determining whether the current position is at an edge of the surgical field of view.
  7. 一种柔性手术器械跟踪装置,其特征在于,所述装置包括:A flexible surgical instrument tracking device, characterized in that the device comprises:
    边缘检测单元,用于获取摄像头采集的当前时刻的手术图像,根据所述当前时刻的手术图像检测手术视野边缘的局部跟踪区域是否存在柔性手术器械;An edge detecting unit, configured to acquire a surgical image of a current moment acquired by the camera, and detect whether a flexible surgical instrument exists in a local tracking area of the edge of the surgical field according to the surgical image at the current moment;
    区域设置单元,用于当所述手术视野边缘的局部跟踪区域存在所述柔性手术器械时,将所述柔性手术器械末端所在的局部跟踪区域设置为当前局部跟踪区域;a local setting unit, configured to set a local tracking area where the end of the flexible surgical instrument is located as a current local tracking area when the flexible surgical instrument exists in a local tracking area of the edge of the surgical field;
    轨迹输出单元,用于获取所述摄像头采集的下一时刻的手术图像,在所述下一时刻的手术图像中检测所述柔性手术器械末端在所述当前局部跟踪区域内 的当前位置,根据所述当前位置,获取所述柔性手术器械的移动轨迹并输出;a trajectory output unit, configured to acquire a surgical image of the next moment acquired by the camera, and detect a current position of the flexible surgical instrument end in the current partial tracking area in the surgical image at the next moment, according to the Determining a current position, acquiring a movement trajectory of the flexible surgical instrument and outputting;
    区域拓展单元,用于判断所述当前位置是否位于所述当前局部跟踪区域的边缘,是则根据所述当前位置在所述手术视野中拓展下一局部跟踪区域,将所述下一局部跟踪区域设置为所述当前局部跟踪区域;以及a region expansion unit, configured to determine whether the current location is located at an edge of the current local tracking area, and then expand a next partial tracking area in the surgical field according to the current location, and the next partial tracking area Set to the current local tracking area;
    跟踪结束单元,用于判断所述当前位置是否到达所述手术视野中的预设位置,是则结束对所述柔性手术器械的跟踪,否则由所述轨迹输出单元执行获取所述摄像头采集的下一时刻的手术图像的操作。a tracking end unit, configured to determine whether the current position reaches a preset position in the surgical field of view, and end the tracking of the flexible surgical instrument, otherwise the tracking output unit performs the acquisition of the camera The operation of a surgical image at a time.
  8. 如权利要求7所述的装置,其特征在于,所述边缘检测单元包括:The apparatus according to claim 7, wherein said edge detecting unit comprises:
    图像处理单元,用于将所述手术视野划分为多个局部跟踪区域,对位于所述手术视野边缘的局部跟踪区域对应的图像块进行灰度化处理和二值化;以及An image processing unit, configured to divide the surgical field into a plurality of partial tracking regions, and perform grayscale processing and binarization on the image blocks corresponding to the local tracking regions located at the edge of the surgical field; and
    图像检测单元,用于检测所述二值化后的图像块中是否存在所述柔性手术器械的移动轨迹,以确定所述手术视野边缘的局部跟踪区域是否存在所述柔性手术器械。An image detecting unit is configured to detect whether a movement trajectory of the flexible surgical instrument exists in the binarized image block to determine whether the flexible surgical instrument exists in a local tracking area of the surgical field edge.
  9. 如权利要求7所述的装置,其特征在于,所述区域拓展单元包括:The device according to claim 7, wherein the area extension unit comprises:
    第一拓展单元,用于以所述当前位置为所述下一局部跟踪区域边缘的中点,在所述手术视野中拓展与所述当前局部跟踪区域形状大小一致的所述下一跟踪局部区域。a first expanding unit, configured to expand, by using the current position as a midpoint of an edge of the next partial tracking area, to expand the next tracking local area that is consistent with a shape size of the current local tracking area in the surgical field of view .
  10. 如权利要求7所述的装置,其特征在于,所述区域拓展单元还包括:The device according to claim 7, wherein the area extension unit further comprises:
    切线确定单元,用于当所述当前位置位于所述当前局部跟踪区域两边缘的交点处时,确定所述柔性手术器械的移动轨迹在所述交点处的切线;a tangent determining unit, configured to determine a tangent of the movement track of the flexible surgical instrument at the intersection when the current position is at an intersection of both edges of the current partial tracking area;
    角度比较单元,计算所述切线分别与所述当前局部跟踪区域两边缘的夹角,获得与所述切线夹角最小的边缘;以及An angle comparison unit calculates an angle between the tangent and each of the edges of the current local tracking area to obtain an edge having the smallest angle with the tangent;
    第二拓展单元,用于以所述当前位置为所述下一局部跟踪区域边缘的中点,以与所述切线夹角最小的边缘为所述下一局部跟踪区域边缘所在位置,在所述手术视野中拓展与所述当前局部跟踪区域形状大小一致的所述下一局部跟踪区域。a second expanding unit, configured to use the current position as a midpoint of an edge of the next partial tracking area, and an edge having a smallest angle with the tangent as a position of an edge of the next partial tracking area, where The next partial tracking area that is consistent with the shape of the current local tracking area is expanded in the surgical field of view.
  11. 一种医学设备,包括存储器、处理器以及存储在所述存储器中并可在所述处理器上运行的计算机程序,其特征在于,所述处理器执行所述计算机程序时实现如权利要求1至5任一项所述方法的步骤。A medical device comprising a memory, a processor, and a computer program stored in the memory and operable on the processor, wherein the processor executes the computer program as claimed in claim 1 5 The steps of any of the methods described.
  12. 一种计算机可读存储介质,所述计算机可读存储介质存储有计算机程序,其特征在于,所述计算机程序被处理器执行时实现如权利要求1至5任一项所述方法的步骤。A computer readable storage medium storing a computer program, wherein the computer program, when executed by a processor, implements the steps of the method of any one of claims 1 to 5.
PCT/CN2017/116887 2017-12-18 2017-12-18 Flexible surgical instrument tracking method, apparatus, device, and storage medium WO2019119194A1 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
PCT/CN2017/116887 WO2019119194A1 (en) 2017-12-18 2017-12-18 Flexible surgical instrument tracking method, apparatus, device, and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
PCT/CN2017/116887 WO2019119194A1 (en) 2017-12-18 2017-12-18 Flexible surgical instrument tracking method, apparatus, device, and storage medium

Publications (1)

Publication Number Publication Date
WO2019119194A1 true WO2019119194A1 (en) 2019-06-27

Family

ID=66994366

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2017/116887 WO2019119194A1 (en) 2017-12-18 2017-12-18 Flexible surgical instrument tracking method, apparatus, device, and storage medium

Country Status (1)

Country Link
WO (1) WO2019119194A1 (en)

Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103179916A (en) * 2010-10-27 2013-06-26 皇家飞利浦电子股份有限公司 Adaptive imaging and frame rate optimizing based on real-time shape sensing of medical instruments
CN106333748A (en) * 2016-09-28 2017-01-18 梁月强 Puncturing navigation system based on camera
CN106344153A (en) * 2016-08-23 2017-01-25 深圳先进技术研究院 Automatic tracking device and method for flexible puncture needle tip
CN106464805A (en) * 2014-05-19 2017-02-22 株式会社岛津制作所 Image-processing device
CN106580471A (en) * 2015-10-19 2017-04-26 沈阳新松机器人自动化股份有限公司 Image navigation and positioning system and image navigation and positioning method
WO2017103142A1 (en) * 2015-12-17 2017-06-22 Koninklijke Philips N.V. Navigation assistance system
CN107049492A (en) * 2017-05-26 2017-08-18 微创(上海)医疗机器人有限公司 The display methods of surgical robot system and surgical instrument position
CN107088091A (en) * 2017-06-08 2017-08-25 广州技特电子科技有限公司 The operation guiding system and air navigation aid of a kind of auxiliary bone surgery

Patent Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103179916A (en) * 2010-10-27 2013-06-26 皇家飞利浦电子股份有限公司 Adaptive imaging and frame rate optimizing based on real-time shape sensing of medical instruments
CN106464805A (en) * 2014-05-19 2017-02-22 株式会社岛津制作所 Image-processing device
CN106580471A (en) * 2015-10-19 2017-04-26 沈阳新松机器人自动化股份有限公司 Image navigation and positioning system and image navigation and positioning method
WO2017103142A1 (en) * 2015-12-17 2017-06-22 Koninklijke Philips N.V. Navigation assistance system
CN106344153A (en) * 2016-08-23 2017-01-25 深圳先进技术研究院 Automatic tracking device and method for flexible puncture needle tip
CN106333748A (en) * 2016-09-28 2017-01-18 梁月强 Puncturing navigation system based on camera
CN107049492A (en) * 2017-05-26 2017-08-18 微创(上海)医疗机器人有限公司 The display methods of surgical robot system and surgical instrument position
CN107088091A (en) * 2017-06-08 2017-08-25 广州技特电子科技有限公司 The operation guiding system and air navigation aid of a kind of auxiliary bone surgery

Similar Documents

Publication Publication Date Title
CN108113750B (en) Flexible surgical instrument tracking method, device, equipment and storage medium
US8411927B2 (en) Marker detection in X-ray images
CN107438408B (en) Blood vessel identification ultrasonic system and method
US8503726B2 (en) Image processing device, object tracking device, and image processing method
EP3139844B1 (en) Location of fragments during lithotripsy
US9087397B2 (en) Method and apparatus for generating an image of an organ
JP6564018B2 (en) Radiation image lung segmentation technology and bone attenuation technology
US8428329B2 (en) Image processing apparatus, image processing method, and computer-readable medium
US9082158B2 (en) Method and system for real time stent enhancement on live 2D fluoroscopic scene
US20150366571A1 (en) Image-based computer-aided safe stone extraction advisor
JP5748636B2 (en) Image processing apparatus and method, and program
JP2009265732A (en) Image processor and method thereof
JP2007066047A (en) Road shape recognition device
US20230326256A1 (en) Identity recognition method, computer apparatus, non-transitory computer-readable storage medium
US20170053416A1 (en) Image processing method, image processing apparatus, and recording medium
Kaya et al. Real-time needle tip localization in 2D ultrasound images for robotic biopsies
WO2021224921A1 (en) Monitoring thermal ablation using registration of b-mode ultrasound images
JP6191328B2 (en) Ultrasonic diagnostic apparatus, ultrasonic image analysis method, and program
WO2019119194A1 (en) Flexible surgical instrument tracking method, apparatus, device, and storage medium
JP3631095B2 (en) Irradiation field area extraction device, radiation imaging apparatus, radiation image system, irradiation field area extraction method, and computer-readable storage medium
KR102321349B1 (en) Lesion Detection Apparatus and Method
CN107874760B (en) Guide wire tracking method, device, equipment and storage medium in medical image
CN116012328A (en) Method and device for detecting cavity branch point, electronic equipment and readable storage medium
JPWO2018230016A1 (en) Mobile observation method
US20200155239A1 (en) Systems and methods for registration using an anatomical measurement wire

Legal Events

Date Code Title Description
121 Ep: the epo has been informed by wipo that ep was designated in this application

Ref document number: 17935167

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE

32PN Ep: public notification in the ep bulletin as address of the adressee cannot be established

Free format text: NOTING OF LOSS OF RIGHTS PURSUANT TO RULE 112(1) EPC (EPO FORM 1205A DATED 17/11/2020)

122 Ep: pct application non-entry in european phase

Ref document number: 17935167

Country of ref document: EP

Kind code of ref document: A1