Visual positioning system and method for radiotherapy equipment and radiotherapy equipment

By using a visual positioning system in radiotherapy equipment, the image control unit and feature recognition components are used to realize the non-physical contact positioning of the treatment device and the beam limiting device, which solves the problems of long positioning time and bloated equipment in the existing technology, and improves the positioning accuracy. and security.

CN116966442BActive Publication Date: 2024-10-29HUNAN HUACHUANG MEDICAL TECH CO LTD
View PDF 1 Cites 0 Cited by

Patent Information

Application Number
CN202310862590.8
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2023-07-13
Publication Date
2024-10-29
Estimated Expiration
2043-07-13

AI Technical Summary

Technical Problem

The visual positioning system of existing radiotherapy equipment has a complex structure, which results in long positioning time. The operator needs to manually adjust the relative position of the treatment head and the beam limiting device, which increases the bloat of the equipment and its unsuitability in the operating room environment.

Method used

A visual positioning system including a treatment device, a driving mechanism, a beam limiting device, a feature recognition component and an image control unit is used. The image of the feature recognition component is acquired through the image control unit, and the position of the treatment device is calculated and adjusted to realize the treatment device and beam limiting device. positioning without physical contact.

Benefits of technology

The positioning structure is simplified, the physical hardware connection of the treatment device and the beam limiting device is avoided, the risk of injury to the patient is reduced, the positioning accuracy and efficiency are improved, and it is suitable for operating room environments.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN116966442B_ABST
    Figure CN116966442B_ABST
Patent Text Reader

Abstract

The present invention provides a visual positioning system, method and radiotherapy equipment for radiotherapy equipment, the visual positioning system includes a treatment device, a driving mechanism, a beam limiting device, a feature recognition component and an image control unit; the driving mechanism is used to drive the treatment device to move; the beam limiting device is located below the treatment device and is provided with a beam channel, and the treatment beam is guided to the patient's lesion through the beam channel; the number of feature recognition components is at least three and they are arranged at intervals on the side of the beam limiting device facing the treatment device; the image control unit is installed on the treatment device and is configured to: obtain the current image of the feature recognition component; compare the current image with the target image; and control the treatment device to move to a preset upper position of the beam limiting device according to the comparison result. The present invention realizes the positioning docking of the treatment device and the beam limiting device through the image control unit, avoids the physical hardware connection between the treatment device and the beam limiting device, and eliminates the risk of damage to the patient.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention belongs to the technical field of medical devices, and in particular relates to a visual positioning system and method for radiotherapy equipment, and radiotherapy equipment. Background Art

[0002] Intraoperative radiotherapy refers to a treatment method in which the tumor bed, residual lesions, surrounding lymphatic drainage areas, and other parts are fully exposed during surgery, and the endangered organs are moved as far as possible outside the irradiation field. A single large-dose irradiation is performed under direct vision in order to maximize the killing of tumor cells and prevent or reduce radiation damage to normal tissues.

[0003] During the treatment process, the treatment head used to generate radiation is docked with the beam limiting device at the patient's lesion to protect the patient's normal tissue from damage. There are two ways to position and dock the treatment head and the beam limiting device: soft docking and hard docking. If the hard docking method is used, the treatment head and the beam limiting device are physically connected by a mechanical structure, and the beam limiting device is connected to the patient's lesion. If the patient and the treatment head move relative to each other during the treatment process, the beam limiting device will cause damage to the patient. Soft docking does not require physical contact between the treatment head and the beam limiting device, which can reduce the risk of injury to the patient. At present, in the same type of radiotherapy system, the operator needs to manually adjust the relative position of the treatment head and the beam limiting device during the soft docking process, which puts forward new requirements for the operator. In order to achieve the ideal positioning accuracy, it often takes a long time to position. And it often requires the assistance of lasers or additional auxiliary light sources, which makes the equipment bloated and not suitable for the operating room environment. Summary of the invention

[0004] The main purpose of the present invention is to provide a visual positioning system, method and radiotherapy equipment for radiotherapy equipment, aiming to solve the technical problem of complex structure of the visual positioning system of radiotherapy equipment in the prior art.

[0005] In order to achieve the above object, the present invention provides a visual positioning system for radiotherapy equipment, the visual positioning system for radiotherapy equipment comprising:

[0006] A treatment device for generating a treatment beam;

[0007] A driving mechanism, used for driving the treatment device to move;

[0008] The beam limiting device is located below the treatment device and has a beam channel. The treatment beam is guided to the patient's lesion through the beam channel and forms an irradiation field of different specifications that conforms to the lesion area.

[0009] Feature identification members, the number of which is at least three and which are arranged at intervals on a side of the beam limiting device facing the treatment device; and

[0010] An image control unit is mounted on the treatment device and is configured to:

[0011] Obtaining a current image of the feature recognition component;

[0012] The treatment device is controlled to move to a preset upper position of the beam limiting device according to the current image.

[0013] In an embodiment of the present invention, the visual positioning system of the radiotherapy device further includes a light emitting member mounted on the image control unit, the light emitting member is used to emit a light source to the beam limiting device, the beam limiting device is provided with a detection position, and the image control unit is further configured as follows:

[0014] Determine whether the position of the light spot emitted by the light-emitting element includes the detection position;

[0015] The image control unit is controlled to be turned on or off according to the judgment result.

[0016] In an embodiment of the present invention, the beam limiting device comprises:

[0017] A beam limiting device, which forms a beam channel and is used to guide the treatment beam emitted by the treatment device to the lesion of the patient;

[0018] A visual guide plate is installed at the end of the beam limiting device away from the patient, a detection position is set on the visual guide plate, the detection position is a circular groove, and an annular groove is formed in the middle of the visual guide plate; and

[0019] The top cover is embedded in the annular groove, and at least three characteristic identification parts are arranged on the top cover in a circular array with the treatment beam as the axis.

[0020] In an embodiment of the present invention, a visual positioning method for radiotherapy equipment is also proposed, which is applied to the visual positioning system of the radiotherapy equipment as described above. The visual positioning method for radiotherapy equipment comprises the steps of:

[0021] Move the image control unit to a suitable shooting position above the beam limiting device;

[0022] Obtaining a current image of the feature recognition component;

[0023] The treatment device is controlled to move to a preset upper position of the beam limiting device according to the current image.

[0024] In an embodiment of the present invention, the step of moving the image control unit to a suitable shooting position above the beam limiting device comprises:

[0025] Determine whether the position of the light spot emitted by the light-emitting element includes the detection position;

[0026] When the light spot position includes the detection position, it indicates that the shooting position of the image control unit has reached a suitable position, and the image control unit is controlled to start the shooting action;

[0027] When the light spot position does not include the detection position, the position of the image control unit is adjusted until the light spot position includes the detection position.

[0028] In an embodiment of the present invention, the step of acquiring the current image of the feature recognition element comprises:

[0029] Acquire the captured image through the image control unit, and acquire the current coordinates of the driving mechanism at the captured position;

[0030] Detect the feature points corresponding to the feature identification elements in the captured image, and obtain the current spatial coordinates corresponding to the feature points;

[0031] Calculating the target coordinates of the driving mechanism according to the current spatial coordinates of the feature point and the current coordinates of the driving mechanism;

[0032] The drive mechanism is controlled to move to the target position according to the target coordinate information.

[0033] In an embodiment of the present invention, the step of calculating the target coordinates of the driving mechanism according to the current spatial coordinates of the feature point and the current coordinates of the driving mechanism includes:

[0034] Determine the theoretical target coordinates of the drive mechanism when it is at the target position;

[0035] Calculating a first difference value according to the current spatial coordinates of the feature point and the theoretical target coordinates of the driving mechanism;

[0036] Calculating a second difference value according to the current spatial coordinates of the feature point and the current coordinates of the driving mechanism;

[0037] Calculate the difference between the theoretical target coordinates of the driving mechanism and the current coordinates of the driving mechanism according to the first difference and the second difference;

[0038] The distance and path that the driving mechanism needs to move are calculated based on the difference between the theoretical target coordinates and the current coordinates of the driving mechanism.

[0039] In an embodiment of the present invention, the step of detecting feature points corresponding to feature identification elements in a captured image and obtaining spatial coordinates corresponding to the feature points includes:

[0040] Perform image correction on the current image;

[0041] Calculate the current spatial coordinate information of the feature point from the corrected current image;

[0042] The current spatial coordinate information of the acquired feature points is corrected to finally obtain the corrected current spatial coordinates.

[0043] In an embodiment of the present invention, the steps of the visual positioning method of the radiotherapy equipment further include:

[0044] After the treatment device and the beam limiting device are docked and positioned, detecting the docking and positioning deviation between the two;

[0045] Determine whether the docking positioning deviation is within the preset deviation range;

[0046] If the docking positioning deviation is within the preset deviation range, the treatment device is controlled to perform a radiotherapy action;

[0047] If the docking positioning deviation exceeds the preset deviation range, the radiotherapy action is prohibited and the positioning action is repeated.

[0048] Furthermore, in an embodiment of the present invention, a radiotherapy device is also proposed, which includes a visual positioning system according to the radiotherapy device as described above.

[0049] Through the above technical solution, the visual positioning system of the radiotherapy equipment provided by the embodiment of the present invention has the following beneficial effects:

[0050] An image control unit is installed on the treatment device, and a beam limiting device is installed below the treatment device. The beam limiting device is provided with a beam channel for guiding the treatment beam to the patient's lesion; at least three feature recognition parts are arranged at intervals on the side of the beam limiting device facing the treatment device. When positioning, the current image of the feature recognition part is obtained by the image control unit, and then the treatment device is controlled to move to a preset upper position of the beam limiting device according to the current image. The present application realizes the positioning and docking of the treatment device and the beam limiting device through the image control unit, and the structure is simpler and more stable, avoiding the physical hardware connection between the treatment device and the beam limiting device, and eliminating the risk of damage to the patient.

[0051] Other features and advantages of the present invention will be described in detail in the following detailed description. BRIEF DESCRIPTION OF THE DRAWINGS

[0052] The accompanying drawings are used to provide an understanding of the present invention and constitute a part of the specification. Together with the following specific embodiments, they are used to explain the present invention, but do not constitute a limitation of the present invention. In the accompanying drawings:

[0053] Figure 1 is a schematic diagram of the structure of a visual positioning system for radiotherapy equipment according to an embodiment of the present invention;

[0054] Figure 2 is a schematic top view of a beam limiting device according to an embodiment of the present invention;

[0055] Figure 3 is a schematic flow chart of a visual positioning method for radiotherapy equipment according to an embodiment of the present invention;

[0056] Figure 4is a schematic diagram of a pinhole imaging model in a visual positioning method for radiotherapy equipment according to an embodiment of the present invention;

[0057] Figure 5 It is a schematic diagram of an image digitization model in a visual positioning method for radiotherapy equipment according to an embodiment of the present invention.

[0058] Description of Reference Numerals

[0059] DETAILED DESCRIPTION

[0060] The specific embodiments of the present invention are described in detail below in conjunction with the accompanying drawings. It should be understood that the specific embodiments described herein are only used to illustrate and explain the present invention, and are not used to limit the present invention.

[0061] The radiotherapy equipment and the visual positioning system and method thereof according to the present invention are described below with reference to the accompanying drawings.

[0062] like Figure 1 As shown, in an embodiment of the present invention, a visual positioning system of the radiotherapy equipment is provided, including a treatment device 10, a driving mechanism, a beam limiting device 20, a feature recognition component 21 and an image control unit 11; the treatment device 10 is used to generate a treatment beam; the driving mechanism is used to drive the treatment device 10 to move; the beam limiting device 20 is located below the treatment device 10 and is provided with a beam channel 28, and the treatment beam is guided to the patient's lesion through the beam channel 28 and forms an irradiation field of different specifications that conform to the lesion area; the number of feature recognition components 21 is at least three and they are arranged at intervals on the side of the beam limiting device 20 facing the treatment device 10; the image control unit 11 is installed on the treatment device 10 and is configured to: obtain a current image of the feature recognition component 21; and control the treatment device 10 to move to a preset upper position of the beam limiting device 20 according to the current image.

[0063] The characteristic identification element 21 may be a special and easily identifiable pattern or special shape, and may be directly sprayed or inlaid on the beam limiting device 20. Preferably, the visual identification element may be a block structure, in the form of a black ring + white filling.

[0064] The present application acquires and identifies the position information of the feature identification part 21, thereby obtaining the spatial position relationship between the identification feature part and the treatment device 10, and then calculates the target position to be moved based on the spatial position relationship, and controls the movement of the treatment device 10 according to the target position. The present application realizes the positioning and docking of the treatment device 10 and the beam limiting device 20 through the image control unit 11, and the structure is simpler and more stable, avoiding the physical hardware connection between the treatment device 10 and the beam limiting device 20, and eliminating the risk of injury to the patient.

[0065] In an embodiment of the present invention, the visual positioning system of the radiotherapy equipment also includes a light-emitting component installed on the image control unit 11, and the light-emitting component is used to emit a light source to the beam limiting device 20. A detection position is provided on the beam limiting device 20. The image control unit 11 is further configured to: determine whether the position of the light spot emitted by the light-emitting component includes the detection position; and control the image control unit 11 to be turned on or off according to the judgment result.

[0066] It can be understood that before the treatment device 10 and the beam limiting device 20 are positioned and docked, the treatment device 10 and the beam limiting device 20 need to be initially positioned. Specifically, the light spot formed by the light source emitted by the light-emitting component falls on the beam limiting device 20. When the light spot position includes the detection position, it means that the image control unit 11 on the treatment device 10 has reached a suitable shooting position. If the light spot position does not include the detection position, the position of the treatment device 10 is manually adjusted and moved until the light spot position includes the detection position. Then, the next step of the image control unit 11 acquiring the image of the feature recognition component 21 for positioning is started.

[0067] It should be noted that the image control unit 11 includes an image capturing component and a control component that are communicatively connected. The image capturing component is used to obtain the current image of the feature recognition component 21 and send the current image information to the control component. The control component is used to control the movement of the treatment device 10 according to the current image information. Among them, the treatment head of the treatment device 10 is installed on a mechanical arm and is driven by the mechanical arm to move. Of course, it can also be any other movable supporting device. The drive mechanism is electrically connected to the control component, and the control component controls the action of the drive mechanism according to the current image information of the received feature recognition component 21, thereby driving the treatment device 10 to move to the target position. Among them, the image capturing component can be preferably a 3D camera.

[0068] like Figure 2As shown, the beam limiting device 20 includes a coaxially arranged applicator 22, a visual guide 23 and a top cover 24; a beam channel is formed in the applicator 22 and is used to guide the treatment beam emitted by the treatment device 10 to the patient's lesion, and the size of the beam channel determines the size of the treatment irradiation field; the applicator 22 includes different types such as spherical applicators, cylindrical applicators, flat applicators, hemispherical applicators, etc., which are used to produce irradiation fields of different specifications that conform to the lesion area; the visual guide 23 is installed at the end of the applicator 22 away from the patient, and the detection position is set on the visual guide 23, and the detection position is a circular groove 27. An annular groove is formed in the middle of the visual guide 23, wherein the inner diameter of the circular groove 27 is larger than the outer diameter of the annular groove, and the size of the light source emitted by the light-emitting component is adapted to the inner diameter of the circular groove 27, so that the annular light source emitted by multiple light-emitting components can completely fall into the circular groove 27, so as to facilitate the detection of the shooting position of the image control unit 11. Furthermore, the type of the light-emitting element is not limited, and it may be a laser emitter to emit circular laser; or it may be a red LED lamp.

[0069] Furthermore, the top cover 24 is embedded in the annular groove, and at least three characteristic identification members 21 are arranged on the top cover 24 in a circular array with the treatment beam as the axis. Since three points determine a plane, the number of characteristic identification members 21 must be at least three. When the number of characteristic identification members 21 is three, the three characteristic identification members 21 are arranged in a triangular symmetrical structure.

[0070] In addition, a plurality of evenly spaced notches 25 are formed on the outer periphery of the top cover 24, and the beam limiting device 20 further includes a locking member 26 for locking the top cover 24. A through hole is formed on the outer periphery of the visual guide plate 23, and the locking member 26 passes through the through hole and abuts against the inner peripheral wall of the notch 25. In order to better fix the top cover 24 and the visual guide plate 23 with the locking member 26, the plurality of notches 25 and the plurality of feature recognition members 21 are arranged in a cross-spaced manner in sequence.

[0071] like Figure 3 As shown, in an embodiment of the present invention, a visual positioning method of a radiotherapy device is also proposed, which is applied to the visual positioning system of the radiotherapy device as described above. The visual positioning method of the radiotherapy device comprises the steps of:

[0072] S10: moving the image control unit 11 to a suitable shooting position above the beam limiting device 20;

[0073] S20: Acquire the current image of the feature recognition element 21;

[0074] S30: Control the treatment device 10 to move to a preset upper position of the beam limiting device 20 according to the current image.

[0075] The present application realizes precise positioning and docking of the treatment device 10 and the beam limiting device 20 through the spatial position relationship between the image information of the feature recognition part 21 of the image control unit 11 and the target image of the driving mechanism. During the positioning process, there is no contact between the treatment device 10 and the beam limiting device 20, thereby avoiding physical hardware connection between the treatment device 10 and the beam limiting device 20 and eliminating the risk of injury to the patient.

[0076] In an embodiment of the present invention, the step of moving the image control unit 11 to a suitable shooting position above the beam limiting device 20 includes:

[0077] S11: Determine whether the position of the light spot emitted by the light-emitting element includes the detection position;

[0078] S12: When the light spot position includes the detection position, it indicates that the shooting position of the image control unit 11 has reached a suitable position, and the image control unit 11 is controlled to start the shooting action;

[0079] S13: When the light spot position does not include the detection position, adjust the position of the image control unit 11 until the light spot position includes the detection position.

[0080] In this embodiment, before the precise positioning of the treatment device 10 and the beam limiting device 20, the image control unit 11 is roughly positioned through the inclusive relationship between the spot position emitted by the light-emitting component and the detection position, and the position of the treatment device 10 is manually roughly adjusted according to the inclusive relationship so that the shooting position of the image processing unit is in a suitable position, so as to reduce shooting errors during the shooting process.

[0081] In an embodiment of the present invention, the step of acquiring the current image of the feature recognition element 21 includes:

[0082] S21: acquiring a captured image through the image control unit 11, and acquiring the current coordinates of the driving mechanism at the captured position;

[0083] S22: Detecting feature points corresponding to the feature identification element 21 in the captured image, and obtaining current spatial coordinates corresponding to the feature points;

[0084] S23: Calculating the target coordinates of the driving mechanism according to the current spatial coordinates of the feature point and the current coordinates of the driving mechanism;

[0085] S24: Control the driving mechanism to move to the target position according to the target coordinate information.

[0086] This embodiment calculates the target coordinates that the drive mechanism needs to move based on the principle that the current spatial coordinates of the feature point are fixed values ​​and the coordinates of the drive mechanism can be obtained in real time. This acquisition method does not involve any laser auxiliary positioning, etc. The positioning structure is simple and the positioning is more accurate.

[0087] In an embodiment of the present invention, the step of calculating the target coordinates of the driving mechanism according to the current spatial coordinates of the feature point and the current coordinates of the driving mechanism comprises:

[0088] S231: Determine the theoretical target coordinates of the driving mechanism when it is at the target position;

[0089] S232: Calculating a first difference value according to the current spatial coordinates of the feature point and the theoretical target coordinates of the driving mechanism;

[0090] S233: Calculating a second difference value according to the current spatial coordinates of the feature point and the current coordinates of the driving mechanism;

[0091] S234: Calculating the difference between the theoretical target coordinates and the current coordinates of the driving mechanism according to the first difference and the second difference;

[0092] S235: Calculate the distance and path that the driving mechanism needs to move according to the difference between the theoretical target coordinates and the current coordinates of the driving mechanism.

[0093] Among them, in this embodiment, the position coordinates of the driving mechanism can be automatically read by its own system. When calculating the target coordinates of the driving mechanism, the target position required by the driving mechanism is first determined, and the theoretical target coordinates are obtained at the target position. When the spatial coordinates of the acquired feature points are fixed, the theoretical target coordinates of the driving mechanism and the current coordinates of the real-time position can be obtained by themselves, then the difference obtained by subtracting the first difference from the second difference is the difference between the theoretical target coordinates and the current coordinates of the driving mechanism. When the difference is infinitely close to 0, it means that the current coordinates of the driving mechanism are infinitely close to the theoretical target coordinates, then the position adjustment of the driving mechanism can be performed in this way, so that the driving mechanism can accurately approach the target position, and then drive the treatment device 10 to reach the target position.

[0094] In an embodiment of the present invention, the step of detecting the feature points corresponding to the feature identification elements 21 in the captured image and obtaining the spatial coordinates corresponding to the feature points includes:

[0095] S221: performing image correction on the current image;

[0096] When correcting the current pattern of the feature recognition element 21, a pinhole imaging model and a distortion correction process are used to achieve the correction, as follows:

[0097] First, suppose any object point in three-dimensional space W ( x w ,y w ,z w), the pixel coordinates transformed to the two-dimensional plane by rigid body are:

[0098]

[0099] In the formula R is a 3×3 orthogonal rotation matrix, t ( txtytz )T is a 3×1 translation vector, t is the origin of the actual coordinate system Ow The coordinates in the camera coordinate system, O 3T =(0 0 0)T.

[0100] 1. If Figure 4 The pinhole imaging model is shown in Figure 2. W ( xc , yc , z ) Projection to obtain the physical coordinates of the image point w ( xu , yu ):

[0101]

[0102] Converted into homogeneous coordinate form:

[0103]

[0104] 2. Distortion Correction

[0105] Since the linear model of the camera is relatively ideal, the coordinates of the midpoint of the image usually need to be corrected by the nonlinear model before they can be applied to the linear model. Image distortion will cause the collinear relationship between the spatial coordinate point and the imaging point to change, affecting the calculation accuracy of the spatial point coordinate value, and obtaining point coordinates with large errors and distortion. Considering nonlinear distortion, the physical coordinates of the projected image with distortion are obtained ( x d ,y d ) for:

[0106]

[0107] In the formula, ( x d ,y d ) is the image point coordinate under the linear model, ( x u , y u ) is the actual coordinate of the image point, δ xu and δyu is the nonlinear distortion value, which is related to the position of the image point. Introducing the distortion coefficient matrix kc , then the coordinates of the distorted projection image are:

[0108]

[0109] like Figure 5 The image model display of the digitized image is shown.

[0110] According to the camera five-parameter model, the point coordinates ( xd , yd ) is converted to the pixel coordinates of the image point:

[0111]

[0112] Convert to homogeneous coordinate form:

[0113]

[0114] In the formula, fu =1 / dx , f =1 / dy , using the ideal image physical coordinates w ( xu , yu ) instead of the image coordinates containing the distortion correction ( xd , yd ), we can calculate:

[0115]

[0116] Then the camera built-in parameter matrix is:

[0117]

[0118] Formula (8) can be simplified as:

[0119]

[0120] According to the above camera model analysis, the camera calibration parameters are determined by the camera internal parameter matrix K , distortion coefficient matrix kc , external parameter matrix.

[0121] S222: Calculate the current spatial coordinate information of the feature point from the corrected current image;

[0122] When the corrected current image is converted into spatial coordinates, the internal and external parameters of the binocular camera are calibrated. The binocular camera is calibrated on the data after the above distortion correction, and finally the data is exported, so that the calibrated result can be obtained. The calibrated result is the current spatial coordinate of the feature point.

[0123] S223: Correcting the acquired current spatial coordinate information of the feature point to finally obtain the corrected current spatial coordinate.

[0124] When correcting the current spatial coordinate information of the feature point, the feature point detection and matching method is usually used, as follows:

[0125] Feature matching is the process of obtaining features in an image (such as corners, lines, contours, and edges) from grayscale information for matching. These extracted features are less sensitive to noise, have good robustness, and have high matching accuracy.

[0126] The corner feature detection method based on image grayscale effectively improves the impact of edge line discontinuity on subsequent corner feature detection. The Detect Harris Features function is selected and the Harris operator is used. The calculation is simple and efficient, and it has high adaptability to point features.

[0127] The principle of Harris corner feature detection is to obtain two eigenvalues ​​that meet the requirements based on the image brightness autocorrelation matrix. λ 1. λ 2 to determine the feature points.

[0128]

[0129] Where: M is the image brightness autocorrelation matrix; G ( s ) is a Gaussian function; I ( x , y ) is the gray value of the image pixel; based on the Harris response function, it is expressed as:

[0130]

[0131] Where: R is the corner feature response function;

[0132] By Filter RThe method of detecting corner features based on the Harris algorithm has good stability and is easy to operate, but it is limited to the case where the scale change between images is small, that is, the image transformation rotation angle and translation are very small. If this condition is exceeded, the algorithm accuracy will be significantly reduced, resulting in unstable detection results.

[0133] To solve the above problems, the detection algorithm is further improved by identifying the extreme points in the spatial domain and scale domain as corner points. The improved algorithm is as follows:

[0134]

[0135] Among them, the corner points near the corner point O are divided into corner point A that is not on the edge and corner point B on the edge; the image near point A is a uniform area with a gradient of 0; point B is on the edge, the gradient direction is perpendicular to OB, and the dot product of its gradient and the OB vector is 0, so it can be expressed as:

[0136]

[0137] Where: is the gray gradient vector; Point the image point to the origin O A vector of The image point points to i A vector of points.

[0138] There are errors in practice θ ,Right now:

[0139]

[0140] Iterative optimization solves the error θ The cumulative sum is minimized and the iterative formula is obtained:

[0141]

[0142] By gradually iteratively optimizing the Harris corner points, the corner point coordinates with higher accuracy can be obtained.

[0143] Camera calibration and feature point matching are the basis for in-depth research on binocular stereoscopic obstacle recognition and obstacle avoidance path planning. By establishing a camera imaging mathematical model, considering the nonlinear effects of radial distortion and tangential distortion, improving the camera parameter calibration algorithm, deriving the nonlinear camera built-in parameter matrix, and applying software programming to realize the calibration of binocular stereo cameras, the results show that the system calibration method has the characteristics of simple operation, high accuracy and fast calculation.

[0144] Based on the original Harris operator, considering its inadaptability to image scale transformation, the scale parameter is added to improve it, the corner coordinates are extracted, the feature point matching and description are realized based on software programming, and the matching results of other algorithms are compared and analyzed. After improving the robustness and accuracy of the improved algorithm, the matching adaptability of the improved algorithm to the image rotation angle is further optimized, and finally the matched disparity map is obtained based on software programming. The improved algorithm can enhance the processing capability of image feature points and is time-saving.

[0145] Since the traditional calibration method uses the camera distortion model to establish the constraint equation and solves the objective function with the nonlinear optimization method, the optimization program will be complex and slow to calculate, and the calibration result depends on the initial value, etc. The common active calibration method has a large amount of calculation, a long algorithm time-consuming, and a high requirement for the experimental environment, and is not easy to implement; the self-calibration method is flexible and easy to implement, but the calibration result has low accuracy and poor robustness. The visual positioning method of the present application adopts an active visual calibration method, and improves the calibration algorithm by considering the influence of distortion. It has the characteristics of simple algorithm, easy implementation, and high robustness, and effectively solves the problems of slow solution rate and unstable accuracy of calibration results. On this basis, the improved algorithm of Harris feature point detection algorithm is adopted to enhance the processing ability of image feature points, and realize binocular stereo vision feature point matching.

[0146] In an embodiment of the present invention, the steps of the visual positioning method of the radiotherapy equipment further include:

[0147] After the treatment device 10 and the beam limiting device 20 are docked and positioned, detecting the docking and positioning deviation between the two;

[0148] Determine whether the docking positioning deviation is within the preset deviation range;

[0149] If the docking positioning deviation is within the preset deviation range, the treatment device 10 is controlled to perform a radiotherapy action;

[0150] If the docking positioning deviation exceeds the preset deviation range, the positioning action is repeated.

[0151] Furthermore, the visual positioning system of the radiotherapy equipment also includes a laser displacement sensor provided on the treatment device 10, and the laser displacement sensor is used to measure the distance between the treatment device 10 and the visual guide plate 23 after completing the positioning, so as to calculate the docking positioning deviation between the two. After the positioning is completed, when the laser displacement sensor detects that the docking positioning deviation between the treatment head of the treatment device 10 and the visual guide plate 23 meets the preset deviation range, the treatment head is released from the in-place interlock, and the next radiotherapy action is performed. If the docking positioning deviation exceeds the preset deviation range, the above positioning steps are repeated until the docking positioning deviation between the treatment device 10 and the beam limiting device 20 meets the preset deviation range.

[0152] Furthermore, in an embodiment of the present invention, a radiotherapy device is also proposed, which includes a visual positioning system according to the radiotherapy device described above. Since the radiotherapy device adopts all embodiments of the visual positioning system described above, it has all the beneficial effects brought by the visual positioning system, which will not be described in detail here.

[0153] In the description of the present invention, it should be understood that the terms "first" and "second" are used for descriptive purposes only and should not be understood as indicating or implying relative importance or implicitly indicating the number of technical features indicated. Thus, a feature defined as "first" or "second" may explicitly or implicitly include at least one of the features. In the description of the present invention, the meaning of "plurality" is at least two, such as two, three, etc., unless otherwise clearly and specifically defined.

[0154] In the present invention, unless otherwise clearly specified and limited, the terms "installed", "connected", "connected", "fixed" and the like should be understood in a broad sense, for example, it can be a fixed connection, a detachable connection, or an integral one; it can be a mechanical connection, an electrical connection, or communication with each other; it can be a direct connection, or an indirect connection through an intermediate medium, it can be the internal connection of two elements or the interaction relationship between two elements, unless otherwise clearly defined. For ordinary technicians in this field, the specific meanings of the above terms in the present invention can be understood according to specific circumstances.

[0155] In the description of this specification, the description with reference to the terms "one embodiment", "some embodiments", "example", "specific example", or "some examples" etc. means that the specific features, structures, materials or characteristics described in conjunction with the embodiment or example are included in at least one embodiment or example of the present invention. In this specification, the schematic representations of the above terms do not necessarily refer to the same embodiment or example. Moreover, the specific features, structures, materials or characteristics described may be combined in any one or more embodiments or examples in a suitable manner. In addition, those skilled in the art may combine and combine the different embodiments or examples described in this specification and the features of the different embodiments or examples, without contradiction.

[0156] Although the embodiments of the present invention have been shown and described above, it is to be understood that the above embodiments are exemplary and are not to be construed as limitations of the present invention. A person skilled in the art may change, modify, replace and vary the above embodiments within the scope of the present invention.

Claims

1. A visual positioning method for radiotherapy equipment, characterized in that: A visual positioning system for radiotherapy equipment, wherein the visual positioning system for radiotherapy equipment comprises: A treatment device (10) for generating a treatment beam; A driving mechanism, used for driving the treatment device (10) to move; A beam limiting device (20) is located below the treatment device (10) and is provided with a beam channel (28), wherein the treatment beam is guided to the patient's lesion through the beam channel (28) and forms an irradiation field of different specifications conforming to the lesion area; Characteristic identification members (21), the number of which is at least three and which are arranged at intervals on a side of the beam limiting device (20) facing the treatment device (10); and An image control unit (11), installed on the treatment device (10); The visual positioning system of the radiotherapy equipment further comprises a light emitting component mounted on the image control unit (11), the light emitting component being used to emit a light source to the beam limiting device (20) to indicate a collection range of the image control unit (11), and a detection position being provided on the beam limiting device (20); The visual positioning method of the radiotherapy equipment comprises the steps of: Moving the image control unit (11) to a suitable shooting position above the beam limiting device (20); Acquiring a current image of the feature recognition element (21); Controlling the treatment device (10) to move to a preset upper position of the beam limiting device (20) according to the current image; The step of moving the image control unit (11) to a suitable shooting position above the beam limiting device (20) comprises: Determining whether the position of the light spot emitted by the light-emitting element includes the detection position; When the light spot position and the detection position coincide with each other, it indicates that the shooting position of the image control unit (11) has reached a suitable position, and the image control unit (11) is controlled to start the shooting action; When the light spot position does not include the detection position, the position of the image control unit (11) is adjusted until the light spot position includes the detection position.

2. The visual positioning method of radiotherapy equipment according to claim 1, characterized in that: The beam limiting device (20) comprises: An applicator (22) having a beam channel formed therein and used to guide the treatment beam emitted by the treatment device (10) to the lesion of the patient; a visual guide plate (23) mounted on the end of the applicator (22) facing away from the patient, the visual guide plate (23) being provided with the detection position, the detection position being a circular groove (27), and an annular groove being formed in the middle of the visual guide plate (23); and The top cover (24) is embedded in the annular groove, and at least three of the characteristic identification members (21) are arranged on the top cover (24) in a circular array at intervals with the treatment beam as the axis.

3. The visual positioning method of radiotherapy equipment according to claim 1, characterized in that: The step of acquiring the current image of the feature identification element (21) comprises: Acquiring a captured image through the image control unit (11), and acquiring the current coordinates of the driving mechanism at the captured position; Detecting a feature point corresponding to the feature identification element (21) in the captured image, and obtaining the current spatial coordinates corresponding to the feature point; Calculating the target coordinates of the driving mechanism according to the current spatial coordinates of the feature point and the current coordinates of the driving mechanism; The driving mechanism is controlled to move to the target position according to the target coordinate information.

4. The visual positioning method of radiotherapy equipment according to claim 3, characterized in that: The step of calculating the target coordinates of the driving mechanism according to the current spatial coordinates of the feature point and the current coordinates of the driving mechanism comprises: Determining theoretical target coordinates of the drive mechanism when it is at a target position; Calculating a first difference value according to the current spatial coordinates of the feature point and the theoretical target coordinates of the driving mechanism; Calculating a second difference value according to the current spatial coordinates of the feature point and the current coordinates of the driving mechanism; Calculating the difference between the theoretical target coordinates and the current coordinates of the driving mechanism according to the first difference and the second difference; The distance and path that the driving mechanism needs to move are calculated according to the difference between the theoretical target coordinates and the current coordinates of the driving mechanism.

5. The visual positioning method of radiotherapy equipment according to claim 3, characterized in that: The step of detecting the feature point corresponding to the feature identification element (21) in the captured image and obtaining the spatial coordinates corresponding to the feature point comprises: Performing image correction on the current image; The current spatial coordinate information of the feature point is calculated by the modified current image transformation; The current spatial coordinate information of the acquired feature points is corrected to finally obtain the corrected current spatial coordinates.

6. The visual positioning method of radiotherapy equipment according to claim 1, characterized in that: The steps of the visual positioning method of the radiotherapy equipment also include: After the treatment device (10) and the beam limiting device (20) are docked and positioned, detecting a docking positioning deviation between the two; Determine whether the docking positioning deviation is within the preset deviation range; If the docking positioning deviation is within the preset deviation range, controlling the treatment device (10) to perform a radiotherapy action; If the docking positioning deviation exceeds the preset deviation range, the radiotherapy action is prohibited and the positioning action is repeated.

Citation Information

Patent Citations

  • Radiotherapy equipment

    CN115068834A