Method and device for adjusting X-ray irradiation area and storage medium
By recognizing the doctor's gestures and generating control instructions, the X-ray irradiation area is automatically adjusted, which solves the problem of inconvenient adjustment in the existing technology, improves efficiency and accuracy, and is in line with the doctor's operating habits.
Patent Information
- Application Number
- CN202310437245.X
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2023-04-21
- Publication Date
- 2024-10-22
AI Technical Summary
In the existing technology, it is inconvenient to adjust the X-ray irradiation area. The doctor needs to move back and forth between the X-ray tube and the patient, which is time-consuming and labor-intensive, and it is still inconvenient to use mobile devices.
By acquiring target video data, identifying the doctor's preset gestures, generating control instructions, and automatically adjusting the X-ray irradiation area, the doctor only needs to move gestures near the patient to accurately cover the area to be detected.
It significantly reduces the doctor's workload, improves the accuracy and operating efficiency of the X-ray irradiation area, conforms to the doctor's operating habits, and improves the accuracy of imaging.
Smart Images

Figure CN118806310A_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the technical field of medical equipment, and in particular to a method, a device and a storage medium for adjusting an X-ray irradiation area. Background Art
[0002] X-rays are electromagnetic radiation with a wavelength between ultraviolet rays and gamma rays. X-rays are penetrating and have different penetrating powers for materials of different densities. In medicine, X-rays are generally used to project human organs and bones to form medical images. Direct digital radiography (DR) technology has the characteristics of fast imaging speed, convenient operation and high imaging resolution, and has become the dominant direction of X-ray photography.
[0003] An X-ray system usually includes an X-ray tube, a Bucky-wall-stand (BWS) assembly, an examination table assembly, a flat-panel detector, and a control host, etc. The X-ray tube uses the high voltage provided by the high-voltage generator to emit X-rays that penetrate the irradiation target and form medical image information of the irradiated target on the flat-panel detector. The flat-panel detector sends the medical image information to the control host. The irradiated target can stand near the Bucky-wall-stand assembly or lie on the examination table assembly to receive X-ray irradiation of the head, chest, abdomen, joints, etc.
[0004] The rays emitted by the X-ray tube form an irradiation area (aperture) on the irradiation target, and the irradiation area needs to accurately cover the part of the target to be detected. Currently, radiologists adjust the position of the X-ray tube and the size of the aperture emitted by the X-ray tube by rotating the knob on the X-ray tube, so that the aperture emitted by the X-ray tube can completely cover the part of the target to be detected. However, this adjustment method requires the doctor to move back and forth between the X-ray tube and the patient, which is inconvenient and time-consuming. In addition, there are also plans to introduce mobile devices or remote controllers such as iPads or iPhones to remotely control the movement of the X-ray tube and adjust the aperture size, but these devices need to be carried with them, which is still inconvenient for doctors to operate. Summary of the invention
[0005] The technical problem to be solved by the present invention is to overcome the defect of inconvenient adjustment of the X-ray irradiation area in the prior art, and to provide a method, device and storage medium for adjusting the X-ray irradiation area.
[0006] The present invention solves the above technical problems through the following technical solutions:
[0007] The present invention provides a method for adjusting an X-ray irradiation area, comprising the following steps:
[0008] Acquire target video data, where the target video data is collected based on a gesture of a target user;
[0009] In response to determining that a preset first specific gesture is recognized in the target video data, identifying a moving path of the gesture of the target user from the target video data;
[0010] A first control instruction is generated according to a preset correspondence between the moving path of the target user gesture and the target irradiation area, and the X-ray irradiation area is controlled to match the target irradiation area based on the first control instruction.
[0011] In this solution, the doctor can first make a first specific gesture, which means starting to adjust the X-ray irradiation area; then the doctor moves the gesture according to the patient's part to be tested, and the machine recognizes the movement path of the doctor's gesture and corresponds to the target irradiation area, and adjusts the X-ray so that the X-ray covers the target irradiation area, so as to achieve the adjustment of the X-ray irradiation area. This solution can automatically control the X-ray to change the irradiation area according to the doctor's gesture movement. The doctor does not need to move back and forth between the X-ray tube and the patient, but only needs to move the gesture near the patient, which significantly reduces the doctor's workload, greatly improves work efficiency, and improves the accuracy of the X-ray irradiation area. In addition, since radiologists usually need to touch the patient to obtain the position of the key points of the body, and determine the X-ray irradiation area that can cover the part to be tested based on these key points of the body, after obtaining the key points of the body, it is more in line with the doctor's operating habits to directly set the lighting range by moving gestures.
[0012] Preferably, in response to determining that the preset first specific gesture is identified in the target video data, a second control instruction is generated, and a prompt signal is issued based on the second control instruction to prompt the target user to move the gesture;
[0013] Alternatively, in response to determining that the preset first specific gesture is recognized in the target video data, and determining that the first specific gesture is maintained within a preset time, a second control instruction is generated, and a prompt signal is issued based on the second control instruction to prompt the target user to move the gesture.
[0014] In this solution, the prompt signal is used to prompt the user that the first specific gesture has been recognized, and the user can perform subsequent gesture movement operations. The effectiveness of human-computer interaction is enhanced, and the user is prevented from directly moving the gesture when the first specific gesture is not recognized. The first specific gesture remains unchanged for a preset time and then generates a second control instruction, which prevents the user from accidentally showing the first specific gesture and being recognized by the system as the start of the adjustment process, thereby improving the accuracy of the adjustment process.
[0015] Preferably, in response to determining that the preset first specific gesture is recognized in the target video data, and determining that the recognized first specific gesture remains motionless for a preset time period, a moving path of the gesture of the target user is identified from the target video data.
[0016] In this solution, the first specific gesture is maintained for a period of time before recognition begins, which can prevent the user from accidentally showing the first specific gesture and being recognized by the system as the start of the adjustment process, thereby improving the accuracy of the adjustment process.
[0017] Preferably, the preset correspondence between the moving path of the target user gesture and the target illumination area is that a rectangular area formed by a line connecting the starting point and the end point of the moving path is used as a diagonal line as the target illumination area.
[0018] In this solution, the above correspondence is clear and easy for doctors to operate. For example, when taking an X-ray of the patient's chest or abdomen, the doctor's gesture can move from the upper left corner to the lower right corner of the part to be measured, and the path is used as a diagonal line to correspond to the rectangular target irradiation area. In addition, the target irradiation area can be determined by only recording the starting point and end point of the moving path, avoiding the target irradiation area not being consistent with the actual situation due to shooting errors or doctor movement errors, thereby improving accuracy.
[0019] Preferably, the method further comprises the following steps:
[0020] In response to determining that a preset second specific gesture is recognized in the target video data, stopping acquiring the target video data;
[0021] Alternatively, in response to determining that a preset second specific gesture is recognized in the target video data, and determining that the second specific gesture is recognized to be maintained within a preset time, the acquisition of the target video data is stopped.
[0022] In this solution, the second specific gesture represents the end of the doctor's gesture movement, the doctor's planning for the target irradiation area has been completed, and the system can stop acquiring the user's gesture image.
[0023] Preferably, determining that a preset first specific gesture is recognized in the target video data comprises the following steps:
[0024] Performing key point probability prediction on the image in the target video data through a neural network to identify multiple key points in the user gesture;
[0025] Connecting the multiple key points according to a preset rule to form a gesture diagram;
[0026] The gesture diagram is compared with the preset first specific gesture to identify whether the gesture diagram is the first specific gesture.
[0027] In this solution, a specific algorithm for identifying the first specific gesture is provided, and the gesture is identified with the help of key points in the image, and compared with the first specific gesture to determine whether the first specific gesture appears in the image.
[0028] Preferably, identifying the moving path of the target user's gesture from the target video data comprises the following steps:
[0029] Performing key point probability prediction on the image in the target video data through a neural network, identifying multiple key points in the user gesture, and determining a tracking point among the multiple key points according to a preset rule;
[0030] Based on the position of the tracking point on each frame of the target video data, a moving path of the tracking point is formed.
[0031] In this solution, the moving path of the user's gesture is identified through the above steps. After a tracking point is determined among multiple key points, only the position of the tracking point is recorded, and the user does not need to maintain the original first specific gesture, which is convenient for user operation.
[0032] Preferably, generating a first control instruction according to a preset correspondence between the moving path of the target user's gesture and the target illumination area comprises the following steps:
[0033] Based on the first starting point coordinates and the first end point coordinates of the moving path in the point coordinate system, using a transformation matrix to transform the first starting point coordinates and the first end point coordinates into second starting point coordinates and second end point coordinates in the X-ray coordinate system;
[0034] Based on the second starting point coordinates and the second end point coordinates, a target path and an aperture size of the X-ray tube are calculated to generate the first control instruction;
[0035] Among them, the first control instruction is used to control the movement of the X-ray tube so that the center of the aperture emitted by the X-ray tube is aligned with the center of the target irradiation area; and / or the first control instruction is used to control the X-ray tube to change the size of the aperture so that the irradiation area of the X-ray tube covers the target irradiation area.
[0036] In this solution, through the above steps, a first control instruction is generated according to the moving path of the target user's gesture. Through coordinate conversion, the coordinate system under the camera or other image acquisition unit is converted to the coordinate system of the X-ray tube, so as to facilitate the calculation of the moving path of the X-ray tube. Only the first starting point coordinate and the first end point coordinate need to be recorded to determine the target irradiation area, which is convenient for calculation and avoids the shooting error or the error caused by the doctor's movement affecting the final irradiation area.
[0037] Preferably, calculating the target path of the X-ray tube based on the second starting point coordinates and the second end point coordinates includes:
[0038] Calculating the midpoint coordinates between the second starting point coordinates and the second end point coordinates as the target coordinates of the X-ray tube;
[0039] Taking the current aperture center of the X-ray tube as the current coordinate, based on the target coordinate and the current coordinate, a target path of the X-ray tube moving from the current coordinate to the target coordinate is calculated.
[0040] In this scheme, a method for calculating the target path of an X-ray tube is provided. The target irradiation area and the aperture of the X-ray tube are both rectangular. The center of the X-ray tube is aligned with the center of the diagonal of the target irradiation area so that the irradiation area formed by the aperture of the X-ray tube coincides with the center of the target irradiation area.
[0041] Preferably, calculating the aperture size of the X-ray tube based on the second starting point coordinate and the second end point coordinate includes:
[0042] Calculating a vertical difference between the second starting point coordinate and the second end point coordinate as the vertical width of the aperture;
[0043] A difference between the second starting point coordinate and the second end point coordinate in the horizontal direction is calculated as the horizontal length of the aperture.
[0044] In this solution, a method for calculating the aperture size of an X-ray tube is provided. For an aperture and a target irradiation area of an X-ray tube that are both rectangular, the length and width of the target irradiation area are calculated as the length and width of the aperture of the X-ray tube, so that the shape of the irradiation area generated by the aperture is the same as the shape of the target irradiation area.
[0045] Preferably, the preset first specific gesture is obtained by the following steps:
[0046] Pre-acquire a set of operation gesture images;
[0047] A most frequently used gesture is identified from the operation gesture image as the first specific gesture.
[0048] In this solution, after a certain amount of data is collected by observing the user's gestures, the user's most frequently used gesture is used as the first specific gesture. With the above method, there is no need to predefine a first specific gesture, and the gesture can be personalized according to the user's usage habits, thereby improving the user experience.
[0049] The present invention also provides a device for adjusting an X-ray irradiation area, comprising:
[0050] An image acquisition unit is configured to acquire target video data, wherein the target video data is acquired based on a gesture of a target user;
[0051] an image processing unit, configured to identify a moving path of the target user's gesture from the target video data in response to determining that a preset first specific gesture is identified in the target video data;
[0052] The device control unit is configured to generate a first control instruction according to a preset correspondence between the moving path of the target user gesture and the target irradiation area, and control the X-ray irradiation area to match the target irradiation area based on the first control instruction.
[0053] In this solution, the X-ray irradiation area can be automatically changed according to the doctor's gestures. The doctor does not need to move back and forth between the X-ray tube and the patient, but only needs to move gestures near the patient, which significantly reduces the doctor's workload, greatly improves work efficiency, and improves the accuracy of the X-ray irradiation area. In addition, since radiologists usually need to touch the patient to obtain the location of the key points of the body and determine the X-ray irradiation area that can cover the part to be tested based on these key points of the body, after obtaining the key points of the body, it is more in line with the doctor's operating habits to directly set the lighting range by moving gestures.
[0054] The present invention also provides a device for adjusting the X-ray irradiation area.
[0055] including a processor and a memory;
[0056] The memory stores an application program executable by the processor, which is used to enable the processor to execute the above-mentioned method for adjusting the X-ray irradiation area.
[0057] In this solution, the device with a processor-memory architecture has the advantages of being able to automatically control the X-ray irradiation area based on the movement path of the user's gesture, improve work efficiency, and have high precision.
[0058] The present invention also provides a computer-readable storage medium,
[0059] Computer-readable instructions are stored therein, and the computer-readable instructions are used to execute the above-mentioned method for adjusting the X-ray irradiation area.
[0060] In this solution, the computer-readable storage medium has the advantages of being able to automatically control the X-ray irradiation area based on the moving path of the user's gesture, improving work efficiency and high precision.
[0061] The positive and progressive effects of the present invention are:
[0062] The present invention can automatically control the X-ray to change the irradiation area according to the doctor's gesture movement. The doctor does not need to move back and forth between the X-ray tube and the patient, but only needs to move the gesture near the patient, which significantly reduces the doctor's workload, greatly improves work efficiency, and improves the accuracy of the X-ray irradiation area. In addition, since radiologists usually need to touch the patient to obtain the position of the key points of the body and determine the X-ray irradiation area that can cover the part to be detected based on these key points of the body, after obtaining the key points of the body, directly setting the lighting range by moving gestures is more in line with the doctor's operating habits. BRIEF DESCRIPTION OF THE DRAWINGS
[0063] The embodiments of the present invention will be described in detail below with reference to the accompanying drawings, so that those skilled in the art can better understand the above and other features and advantages of the present invention. The following drawings are only used to illustrate and explain the present invention, and do not limit the scope of the present invention.
[0064] Figure 1 The present invention is a flowchart of a method for adjusting an X-ray irradiation area according to a preferred embodiment of the present invention.
[0065] Figure 2 The present invention is a flowchart of a method for adjusting an X-ray irradiation area according to another preferred embodiment of the present invention.
[0066] Figure 3 The present invention is a flowchart of a method for identifying a preset first specific gesture in target video data according to a preferred embodiment of the present invention.
[0067] Figure 4 The present invention is a flow chart of a method for identifying a moving path of a target user's gesture from target video data according to a preferred embodiment of the present invention.
[0068] Figure 5 It is a flow chart of a method for generating a first control instruction according to the corresponding relationship according to a preferred embodiment of the present invention.
[0069] Figure 6 The present invention is a flow chart of a method for calculating a target path of an X-ray tube according to a preferred embodiment of the present invention.
[0070] Figure 7 The present invention is a flow chart of a method for calculating the aperture size of an X-ray tube according to a preferred embodiment of the present invention.
[0071] Figure 8 Schematic diagram of the structure of an apparatus for adjusting an X-ray irradiation area according to a preferred embodiment of the present invention.
[0072] Fig. 9 Schematic diagram of the correspondence between the moving path of the target user's gesture and the target illumination area according to a preferred embodiment of the present invention.
[0073] Description of Reference Numerals
[0074] Device 100 for adjusting X-ray irradiation area
[0075] Image acquisition unit 10
[0076] Image processing unit 20
[0077] Device control unit 30
[0078] Target irradiation area 401
[0079] Moving Path 402
[0080] Gesture starting point 403
[0081] Gesture end position 404 DETAILED DESCRIPTION
[0082] In order to have a clearer understanding of the technical features, purposes and effects of the invention, the specific embodiments of the present invention are now described with reference to the accompanying drawings. The same reference numerals in the drawings represent components with the same structure or similar structures but the same functions. In this article, "schematic" means "serving as an example, example or illustration", and any diagram or embodiment described as "schematic" in this article should not be interpreted as a more preferred or more advantageous technical solution.
[0083] In this article, "first", "second", etc. do not indicate their importance or order, but are only used to indicate the difference between each other for the convenience of document description.
[0084] The present invention discloses a method for adjusting the X-ray irradiation area. Figure 1 , Fig. 9 As shown, the following steps are included:
[0085] S1. Obtain target video data, where the target video data is collected based on the gestures of the target user;
[0086] S2, in response to determining that a preset first specific gesture is recognized in the target video data, identifying a moving path 402 of the gesture of the target user from the target video data;
[0087] S3. Generate a first control instruction according to a preset correspondence between the moving path 402 of the target user gesture and the target irradiation area 401 , and control the X-ray irradiation area to match the target irradiation area 401 based on the first control instruction.
[0088] In this embodiment, the doctor can first make a first specific gesture, which represents the start of adjusting the X-ray irradiation area; then the doctor moves the gesture according to the patient's part to be detected, and the machine recognizes the movement path 402 of the doctor's gesture and corresponds to the target irradiation area 401, and adjusts the X-ray so that the X-ray covers the target irradiation area 401, so as to achieve the adjustment of the X-ray irradiation area. This solution can automatically control the X-ray to change the irradiation area according to the doctor's gesture movement. The doctor does not need to move back and forth between the X-ray tube and the patient, but only needs to move the gesture near the patient, which significantly reduces the doctor's workload, greatly improves work efficiency, and improves the accuracy of the X-ray irradiation area. In addition, since radiologists usually need to touch the patient to obtain the position of the key points of the body, and determine the X-ray irradiation area that can cover the part to be detected based on these key points of the body, after obtaining the key points of the body, it is more in line with the doctor's operating habits to directly set the lighting range by moving gestures.
[0089] Among them, the target video data is acquired by real-time and continuous acquisition of the doctor's gestures. During the acquisition process, the first specific gesture is recognized in real time, for example, the image is recognized every 200ms-300ms. If the first specific gesture is recognized, the image tracking gesture movement path 402 is performed for the image that is located after the image frame corresponding to the first specific gesture in the timing. The target irradiation area 401 refers to the X-ray irradiation area that the doctor imagines based on the patient's part to be detected. The imagined irradiation area should be able to cover the patient's part to be detected. The doctor moves the gesture to form a movement path 402 based on the imagined target irradiation area 401. After the system recognizes the movement path 402, it corresponds to the target irradiation area 401. The X-ray irradiation area refers to the aperture generated on or near the patient after the X-ray is emitted.
[0090] It should be noted that, in this embodiment, the first specific gesture is a pre-set fixed gesture. However, it is not limited thereto, and in other alternative embodiments, the first specific gesture may also be a pre-set action, for example, an action of alternating between opening five fingers and making a fist.
[0091] In response to determining that the preset first specific gesture is recognized in the target video data, and determining that the first specific gesture is maintained for a preset time period, a moving path of the target user's gesture is recognized from the target video data 402. The first specific gesture is maintained for a period of time before recognition begins, which can prevent the user from accidentally showing the first specific gesture and being recognized by the system as the start of the adjustment process, thereby improving the accuracy of the adjustment process.
[0092] In response to determining that the preset first specific gesture is recognized in the target video data, a second control instruction is generated, and a prompt signal is issued based on the second control instruction to prompt the target user to move the gesture. The prompt signal is used to prompt the user that the first specific gesture has been recognized, and the user can perform subsequent gesture movement operations. The effectiveness of human-computer interaction is enhanced to avoid the user directly moving the gesture when the first specific gesture is not recognized. The prompt signal here can be a prompt light lighting up, or a prompt sound, etc.
[0093] In an alternative embodiment, in response to determining that the preset first specific gesture is identified in the target video data, and determining that the first specific gesture is identified to remain motionless for a preset time, a second control instruction is generated, and a prompt signal is issued based on the second control instruction to prompt the target user to move the gesture. The first specific gesture remains motionless for a preset time (for example, for 3 seconds) before the second control instruction is generated, so as to avoid the user accidentally showing the first specific gesture and being recognized by the system as the start of the adjustment process, thereby improving the accuracy of the adjustment process.
[0094] like Fig. 9 As shown, the preset correspondence between the moving path 402 of the target user gesture and the target irradiation area 401 is that the rectangular area formed by the line connecting the gesture starting position 403 and the gesture ending position 404 of the moving path 402 is the target irradiation area 401 as the diagonal line. The irradiation area of X-rays is mostly rectangular, and the above correspondence is clear and easy for doctors to operate. For example, when taking an X-ray of the patient's chest or abdomen, the doctor's gesture can move from the upper left corner to the lower right corner of the part to be measured, and the path corresponds to the rectangular target irradiation area 401 as the diagonal line. In addition, the target irradiation area 401 can be determined by only recording the starting point and the end point of the moving path 402, avoiding the target irradiation area 401 not being consistent with the actual situation due to shooting errors or doctor movement errors, thereby improving accuracy.
[0095] It should be noted that, in alternative implementations, the moving path 402 of the target user's gesture and the target irradiation area 401 may also adopt other corresponding relationships. For example, the moving path of the doctor's gesture may circle around a rectangle, and the inner area of the rectangle formed by the moving path is used as the target irradiation area.
[0096] It should be noted that the shapes of the target irradiation area 401 and the aperture generated by the X-rays are not limited to rectangles, but can also be circular, triangular, etc. It is only necessary to adjust the correspondence between the target irradiation area 401 and the movement path 402 of the gesture, and the present invention can also be used to realize automatic adjustment of the irradiation area.
[0097] like Figure 2 As shown, this embodiment also includes the following steps:
[0098] S4. In response to determining that a preset second specific gesture is recognized in the target video data, stop acquiring the target video data.
[0099] The second specific gesture represents the end of the doctor's gesture movement, and the doctor's planning for the target irradiation area 401 has been completed, and the system can stop acquiring the user's gesture image.
[0100] In an alternative embodiment, in response to determining that a preset second specific gesture is identified in the target video data, and determining that the second specific gesture is identified to remain motionless for a preset time, the acquisition of the target video data is stopped. The second specific gesture remains motionless for a preset time (for example, for 3 seconds) and then generates a second control instruction, thereby preventing the user from accidentally showing the second specific gesture and being recognized by the system as the end of the adjustment process, thereby improving the accuracy of the adjustment process.
[0101] like Figure 3 As shown, determining and recognizing a preset first specific gesture in the target video data includes the following steps:
[0102] S201, performing key point probability prediction on the image in the target video data through a neural network, and identifying multiple key points in the user's gesture;
[0103] S202, connecting the multiple key points according to a preset rule to form a gesture diagram;
[0104] S203: Compare the gesture diagram with the preset first specific gesture to identify whether the gesture diagram is the first specific gesture.
[0105] The above steps provide a specific algorithm for identifying the first specific gesture, which uses key points in the image to identify the gesture and compares it with the first specific gesture to determine whether the first specific gesture appears in the image.
[0106] like Figure 4 As shown, identifying the moving path 402 of the target user's gesture from the target video data includes the following steps:
[0107] S211, performing key point probability prediction on the image in the target video data through a neural network, identifying multiple key points in the user gesture, and determining a tracking point among the multiple key points according to a preset rule;
[0108] S212: Based on the position of the tracking point on each frame of the target video data, a moving path 402 of the tracking point is formed.
[0109] Through the above steps, the moving path of the user's gesture is identified 402. After a tracking point is determined among multiple key points, only the position of the tracking point is recorded, and the user does not need to keep the original first specific gesture, which is convenient for user operation. Specifically, the tracking point can be set to the tip of the index finger, which is easy to track, and planning the path with the tip of the index finger is more in line with the user's finger usage habits. In other alternative implementations, other parts of the finger can also be used as tracking points.
[0110] like Figure 5 As shown, generating a first control instruction according to a preset correspondence between the moving path 402 of the target user gesture and the target illumination area 401 includes the following steps:
[0111] S301, based on the first starting point coordinates and the first end point coordinates of the moving path 402 in the point coordinate system, using a transformation matrix to transform the first starting point coordinates and the first end point coordinates into second starting point coordinates and second end point coordinates in the X-ray coordinate system;
[0112] S302, calculating the target path and aperture size of the X-ray tube based on the second starting point coordinates and the second end point coordinates, and generating the first control instruction;
[0113] Among them, the first control instruction is used to control the movement of the X-ray tube so that the center of the aperture emitted by the X-ray tube is aligned with the center of the target irradiation area 401; and / or the first control instruction is used to control the X-ray tube to change the size of the aperture so that the irradiation area of the X-ray tube covers the target irradiation area 401.
[0114] Through the above steps, a first control instruction is generated according to the moving path 402 of the target user's gesture. Among them, the point coordinate system refers to the coordinate system under the camera or other image acquisition device, the X-ray coordinate system is the machine coordinate system of the X-ray tube, the first starting point coordinate is the coordinate of the gesture starting position 403 in the point coordinate system, and the second starting point coordinate is the gesture end position 403 in the X-ray tube coordinate system. Through coordinate conversion, the coordinate system under the camera or other image acquisition device is converted to the coordinate system of the X-ray tube, so that the moving path 402 of the X-ray tube can be directly calculated in the machine coordinate system. Only the first starting point coordinate and the first end point coordinate need to be recorded to determine the target irradiation area 401, which is convenient for calculation and avoids the shooting error or the error caused by the doctor's movement affecting the final irradiation area.
[0115] like Figure 6 As shown, based on the second starting point coordinate and the second end point coordinate, calculating the target path of the X-ray tube includes:
[0116] S3021, calculating the midpoint coordinates between the second starting point coordinates and the second end point coordinates as the target coordinates of the X-ray tube;
[0117] S3022: Taking the current aperture center of the X-ray tube as the current coordinate, based on the target coordinate and the current coordinate, calculate the target path of the X-ray tube moving from the current coordinate to the target coordinate.
[0118] The above steps provide a method for calculating the target path of the X-ray tube. The target irradiation area 401 and the aperture of the X-ray tube are both rectangular. The center of the X-ray tube is aligned with the center of the diagonal of the target irradiation area 401, so that the irradiation area formed by the aperture of the X-ray tube coincides with the center of the target irradiation area 401. For example, if it is calculated that the current coordinate is 20 cm larger than the target coordinate in the vertical direction, the X-ray tube is given to move 20 cm downward.
[0119] like Figure 7 As shown, based on the second starting point coordinate and the second end point coordinate, calculating the aperture size of the X-ray tube includes:
[0120] S3023, calculating the vertical difference between the second starting point coordinate and the second end point coordinate as the vertical width of the aperture;
[0121] S3024: Calculate the horizontal difference between the second starting point coordinate and the second end point coordinate as the horizontal length of the aperture.
[0122] The above steps provide a method for calculating the aperture size of the X-ray tube. For the aperture of the X-ray tube and the target irradiation area 401, which are both rectangular, the length and width of the target irradiation area 401 are calculated as the length and width of the aperture of the X-ray tube, so that the shape of the irradiation area generated by the aperture is the same as the shape of the target irradiation area 401. For example, if the aperture is calculated to have a width of 20 cm in the vertical direction and a length of 30 cm in the horizontal direction, the size of the aperture is 20 cm*30 cm.
[0123] In an alternative implementation, the doctor may also make a preset gesture as the first specific gesture before the adjustment process begins.
[0124] In an alternative implementation, the preset first specific gesture is not a fixed image preset by the user, but is obtained through the following steps:
[0125] Pre-acquire a set of operation gesture images;
[0126] The most frequently used gesture is identified from the operation gesture image as the first specific gesture.
[0127] The above steps observe the user's gestures, collect a certain amount of data, and then use the user's most frequently used gesture as the first specific gesture. With the above method, there is no need to predefine a first specific gesture, and the gesture can be personalized according to the user's usage habits to improve the user experience. Regarding this group of operation gesture images, it can be the preset gestures that the doctor inputs multiple times in advance as training data in the model training process. In an alternative embodiment, this group of images can also be obtained by observing the preset gestures input by the doctor each time during use during actual use and recording them, so as to continuously optimize and self-learn the system.
[0128] In a preferred embodiment, the method for adjusting the X-ray irradiation area further comprises the following steps:
[0129] The user checks whether the actual X-ray irradiation area matches the envisioned target irradiation area 401. If not, the user performs the first specific gesture again to start the adjustment process.
[0130] This embodiment also discloses a device 100 for adjusting an X-ray irradiation area. Figure 8 As shown, the device comprises:
[0131] The image acquisition unit 10 is configured to acquire target video data, where the target video data is acquired based on the gesture of the target user;
[0132] The image processing unit 20 is configured to identify a moving path 402 of the target user's gesture from the target video data in response to determining that a preset first specific gesture is identified in the target video data;
[0133] The device control unit 30 is configured to generate a first control instruction according to a preset correspondence between the moving path 402 of the target user gesture and the target irradiation area 401, and control the X-ray irradiation area to match the target irradiation area 401 based on the first control instruction.
[0134] This implementation can automatically control the X-ray to change the irradiation area according to the doctor's gesture movement. The doctor does not need to move back and forth between the X-ray tube and the patient, but only needs to move the gesture near the patient, which significantly reduces the doctor's workload, greatly improves work efficiency, and improves the accuracy of the X-ray irradiation area. In addition, since radiologists usually need to touch the patient to obtain the location of the key points of the body and determine the X-ray irradiation area that can cover the part to be tested based on these key points of the body, after obtaining the key points of the body, directly setting the lighting range by moving gestures is more in line with the doctor's operating habits.
[0135] The device 100 for adjusting the X-ray irradiation area also includes a signal control unit, which is configured to generate a second control instruction in response to determining and identifying the preset first specific gesture in the target video data, and to send a prompt signal based on the second control instruction to prompt the target user to move the gesture.
[0136] In an alternative embodiment, the signal control unit is configured to generate a second control instruction in response to determining that the preset first specific gesture is recognized in the target video data and determining that the recognized first specific gesture is maintained for a preset time, and to issue a prompt signal based on the second control instruction to prompt the target user to move the gesture.
[0137] The image processing unit 20 is configured to, in response to determining that the preset first specific gesture is recognized in the target video data and determining that the first specific gesture is maintained within a preset time period, identify the moving path 402 of the target user's gesture from the target video data.
[0138] The preset corresponding relationship between the moving path 402 of the target user gesture and the target illumination area 401 is that the rectangular area formed by taking the line connecting the starting point and the end point of the moving path 402 as the diagonal line is the target illumination area 401 .
[0139] The data acquisition unit is configured to stop acquiring the target video data in response to determining that a preset second specific gesture is recognized in the target video data. In an alternative embodiment, the data acquisition unit is configured to stop acquiring the target video data in response to determining that a preset second specific gesture is recognized in the target video data and determining that the recognized second specific gesture remains motionless for a preset time.
[0140] The image processing unit 20 also includes:
[0141] A key point acquisition module is configured to perform key point probability prediction on the image in the target video data through a neural network to identify multiple key points in the user's gesture;
[0142] A gesture graph module is configured to connect the multiple key points according to a preset rule to form a gesture graph;
[0143] The judgment module is configured to compare the gesture diagram with the preset first specific gesture to identify whether the gesture diagram is the first specific gesture.
[0144] The image processing unit 20 also includes:
[0145] A tracking point acquisition module is configured to perform key point probability prediction on the image in the target video data through a neural network, identify multiple key points in the user's gesture, and determine a tracking point among the multiple key points according to a preset rule;
[0146] The path tracking module is configured to form a moving path 402 of the tracking point based on the position of the tracking point on each frame of the target video data.
[0147] The device control unit 30 includes:
[0148] A coordinate conversion module is configured to convert the first starting point coordinates and the first end point coordinates of the moving path 402 in the point coordinate system into second starting point coordinates and second end point coordinates in the X-ray coordinate system using a conversion matrix;
[0149] An instruction generation module is configured to calculate a target path and an aperture size of the X-ray tube based on the second starting point coordinate and the second end point coordinate, and generate the first control instruction;
[0150] Among them, the first control instruction is used to control the movement of the X-ray tube so that the center of the aperture emitted by the X-ray tube is aligned with the center of the target irradiation area 401; and / or the first control instruction is used to control the X-ray tube to change the size of the aperture so that the irradiation area of the X-ray tube covers the target irradiation area 401.
[0151] The instruction generation module is further configured to:
[0152] Calculating the midpoint coordinates between the second starting point coordinates and the second end point coordinates as the target coordinates of the X-ray tube;
[0153] The current aperture center of the X-ray tube is taken as the current coordinate, and based on the target coordinate and the current coordinate, a target path for moving from the current coordinate to the target coordinate is calculated.
[0154] The instruction generation module is further configured to:
[0155] Calculate the vertical difference between the second starting point coordinate and the second end point coordinate as the vertical width of the aperture;
[0156] The difference between the second starting point coordinate and the second end point coordinate in the horizontal direction is calculated as the horizontal length of the aperture.
[0157] The device for adjusting the X-ray irradiation area also includes:
[0158] The pre-image acquisition unit 10 is configured to pre-acquire a set of operation gesture images;
[0159] The pre-image processing unit 20 is configured to identify the most frequently used gesture from the operation gesture image as the first specific gesture.
[0160] This embodiment also provides a device for adjusting the X-ray irradiation area.
[0161] including a processor and a memory;
[0162] The memory stores an application program executable by the processor, which is used to enable the processor to execute the above-mentioned method for adjusting the X-ray irradiation area.
[0163] Among them, the device with a processor-memory architecture has the advantages of being able to automatically control the X-ray irradiation area based on the moving path 402 of the user's gesture, improving work efficiency, and high precision.
[0164] This embodiment also provides a computer-readable storage medium,
[0165] Computer-readable instructions are stored therein, and the computer-readable instructions are used to execute the above-mentioned method for adjusting the X-ray irradiation area.
[0166] Among them, the computer-readable storage medium has the advantages of being able to automatically control the X-ray irradiation area based on the moving path 402 of the user's gesture, improving work efficiency and high precision.
[0167] It should be understood that although this specification is described according to various embodiments, not every embodiment contains only one independent technical solution. This narrative method of the specification is only for the sake of clarity. Those skilled in the art should regard the specification as a whole. The technical solutions in each embodiment may also be appropriately combined to form other implementation methods that can be understood by those skilled in the art.
[0168] The series of detailed descriptions listed above are only specific descriptions of feasible embodiments of the present invention. They are not intended to limit the scope of protection of the present invention. Any equivalent implementation scheme or changes that do not deviate from the technical spirit of the present invention, such as combination, division or repetition of features, should be included in the scope of protection of the present invention.
Claims
1. A method for adjusting an X-ray irradiation area, characterized in that: The following steps are involved: Acquire target video data, where the target video data is collected based on a gesture of a target user; In response to determining that a preset first specific gesture is recognized in the target video data, identifying a moving path of the gesture of the target user from the target video data; A first control instruction is generated according to a preset correspondence between the moving path of the target user gesture and the target irradiation area, and the X-ray irradiation area is controlled to match the target irradiation area based on the first control instruction.
2. The method according to claim 1, characterized in that In response to determining that the preset first specific gesture is identified in the target video data, generating a second control instruction, and sending a prompt signal based on the second control instruction to prompt the target user to move the gesture; Alternatively, in response to determining that the preset first specific gesture is recognized in the target video data, and determining that the first specific gesture is maintained within a preset time, a second control instruction is generated, and a prompt signal is issued based on the second control instruction to prompt the target user to move the gesture.
3. The method according to claim 1, characterized in that In response to determining that the preset first specific gesture is recognized in the target video data, and determining that the first specific gesture is recognized to be maintained within a preset time period, a moving path of the gesture of the target user is identified from the target video data.
4. The method according to claim 1, characterized in that: The preset corresponding relationship between the moving path of the target user gesture and the target illumination area is that a rectangular area formed by a line connecting the starting point and the end point of the moving path is used as a diagonal line as the target illumination area.
5. The method according to claim 1, characterized in that The following steps are also included: In response to determining that a preset second specific gesture is recognized in the target video data, stopping acquiring the target video data; Alternatively, in response to determining that a preset second specific gesture is recognized in the target video data, and determining that the second specific gesture is recognized to be maintained within a preset time, the acquisition of the target video data is stopped.
6. The method according to claim 1, characterized in that Determining that a preset first specific gesture is recognized in the target video data includes the following steps: Performing key point probability prediction on the image in the target video data through a neural network to identify multiple key points in the user gesture; Connecting the multiple key points according to a preset rule to form a gesture diagram; The gesture diagram is compared with the preset first specific gesture to identify whether the gesture diagram is the first specific gesture.
7. The method according to claim 1, characterized in that Identifying the moving path of the target user's gesture from the target video data comprises the following steps: Performing key point probability prediction on the image in the target video data through a neural network, identifying multiple key points in the user gesture, and determining a tracking point among the multiple key points according to a preset rule; Based on the position of the tracking point on each frame of the target video data, a moving path of the tracking point is formed.
8. The method according to claim 1, characterized in that Generating a first control instruction according to a preset correspondence between the moving path of the target user's gesture and the target illumination area includes the following steps: Based on the first starting point coordinates and the first end point coordinates of the moving path in the point coordinate system, using a transformation matrix to transform the first starting point coordinates and the first end point coordinates into second starting point coordinates and second end point coordinates in the X-ray coordinate system; Based on the second starting point coordinates and the second end point coordinates, a target path and an aperture size of the X-ray tube are calculated to generate the first control instruction; Among them, the first control instruction is used to control the movement of the X-ray tube so that the center of the aperture emitted by the X-ray tube is aligned with the center of the target irradiation area; and / or the first control instruction is used to control the X-ray tube to change the size of the aperture so that the irradiation area of the X-ray tube covers the target irradiation area.
9. The method according to claim 8, characterized in that Calculating a target path of the X-ray tube based on the second starting point coordinates and the second end point coordinates includes: Calculating the midpoint coordinates between the second starting point coordinates and the second end point coordinates as the target coordinates of the X-ray tube; Taking the current aperture center of the X-ray tube as the current coordinate, based on the target coordinate and the current coordinate, a target path of the X-ray tube moving from the current coordinate to the target coordinate is calculated.
10. The method according to claim 8, characterized in that Calculating the aperture size of the X-ray tube based on the second starting point coordinate and the second end point coordinate includes: Calculating a vertical difference between the second starting point coordinate and the second end point coordinate as the vertical width of the aperture; A difference between the second starting point coordinate and the second end point coordinate in the horizontal direction is calculated as the horizontal length of the aperture.
11. The method according to claim 1, characterized in that The preset first specific gesture is obtained by the following steps: Acquire a set of operation gesture images in advance; A most frequently used gesture is identified from the operation gesture image as the first specific gesture.
12. A device for adjusting an X-ray irradiation area, characterized in that: include: An image acquisition unit is configured to acquire target video data, wherein the target video data is acquired based on a gesture of a target user; an image processing unit, configured to identify a moving path of the target user's gesture from the target video data in response to determining that a preset first specific gesture is identified in the target video data; The device control unit is configured to generate a first control instruction according to a preset correspondence between the moving path of the target user gesture and the target irradiation area, and control the X-ray irradiation area to match the target irradiation area based on the first control instruction.
13. A device for adjusting an X-ray irradiation area, characterized in that: including a processor and a memory; The memory stores an application program executable by the processor, which is used to enable the processor to execute the method for adjusting the X-ray irradiation area according to any one of claims 1 to 11.
14. A computer-readable storage medium, characterized in that: Computer-readable instructions are stored therein, and the computer-readable instructions are used to execute the method for adjusting the X-ray irradiation area according to any one of claims 1 to 11.
Citation Information
Cited By
Method for controlling movement of C-shaped arm X-ray machine, C-shaped arm X-ray machine and medium
CN122030992A
