Digital X-ray image shooting method and device and digital X-ray camera

By obtaining the boundary pixel position, the beam light field is automatically adjusted and the semidiaphragm detection is optimized, the problem of manual adjustment in X-ray image shooting is solved, and efficient and accurate image shooting and stitching is achieved, supporting the positioning optimization of abnormal diaphragm muscles.

CN120501447APending Publication Date: 2025-08-19SHENZHEN BLUE SHADOW MEDICAL TECH CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202510685373.5
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2025-05-27
Publication Date
2025-08-19

AI Technical Summary

Technical Problem

In the prior art, the beam field adjustment of the beam device during X-ray image shooting depends on manual operation, which is time-consuming and labor-intensive and dependent on the experience of the operator, and cannot be timely and accurate; the stitching efficiency of medical images is low; the semidiaphragm detection is insufficient in dynamic chest images, which affects subsequent analysis.

Method used

By acquiring the boundary pixel positions in the subject's image, the beam light field size is automatically adjusted, and the length analysis of the semidiaphragm muscle sequence is realized in a digital X-ray camera to optimize semidiaphragm detection.

Benefits of technology

It realizes automatic adjustment of the beam light field, improves shooting efficiency and splicing efficiency, ensures the accuracy of semidiaphragm detection, and supports the positioning optimization of abnormal diaphragm.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure BDA0005420439750000221
    Figure BDA0005420439750000221
  • Figure BDA0005420439750000231
    Figure BDA0005420439750000231
  • Figure HDA0005420439760000011
    Figure HDA0005420439760000011
Patent Text Reader

Abstract

The invention relates to a digital X-ray image shooting method and device and a digital X-ray camera. Relates to the technical field of digital X-ray images. The digital X-ray image shooting method comprises the following steps: acquiring an upper boundary pixel position, a lower boundary pixel position, a left boundary pixel position and a right boundary pixel position corresponding to a boundary pixel position of a set frame arranged in a subject image shot by a camera mounted on a beam device under a set part of a subject; based on a first size of a pixel point in the subject image in the horizontal direction and a second size of the pixel point in the vertical direction, and an upper boundary pixel position, a lower boundary pixel position, a left boundary pixel position and a right boundary pixel position corresponding to the boundary pixel position, a first size of the pixel point in the subject image in the horizontal direction; and determining the corresponding optical field size of the light bundling device when the digital X-ray camera is used for shooting the set part of the subject. According to the embodiment of the invention, digital X-ray image shooting can be realized.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present disclosure relates to the technical field of digital X-ray images, and in particular to a digital X-ray image shooting method and device, and a digital X-ray camera. Background Art

[0002] The basic principle of X-ray imaging is based on the penetrability of X-rays and the density differences of human tissues; when X-rays pass through tissues of different densities and thicknesses, they are absorbed to different degrees, forming a light and dark contrast image on the imaging device, and then obtaining the corresponding digital X-ray image.

[0003] During the process of taking X-ray images of different organs (parts) of an examinee, a collimator is used to limit the radiation field of the X-rays, thereby obtaining digital X-ray images corresponding to the different organs (parts). For example, when taking an X-ray image of the examinee's lungs, a collimator is used to limit the radiation field of the X-rays, so that the collimator light field is adapted to the lungs while reducing the radiation dose to the non-lung areas of the examinee. However, the current collimator light field is determined by the operator directly observing the specific examination area to be irradiated by the X-rays using the light indicator on the collimator. However, this manual operation process is not only time-consuming and labor-intensive, but also limited by the operator's level and experience, and cannot adjust the collimator light field in a timely and accurate manner.

[0004] Medical image stitching technology is used to combine multiple overlapping medical images into a larger, seamless medical image or wide-angle medical image. However, existing medical image stitching technology requires operators to adjust the digital X-ray camera gantry to set the starting and ending heights of the medical images to be stitched. This manual process is not only time-consuming and labor-intensive, but also limited by the operator's level and experience, resulting in low stitching efficiency.

[0005] Finally, accurate hemidiaphragm detection in dynamic multiple X-ray two-dimensional chest images during breathing is crucial for accurately assessing diaphragmatic motor function. Existing hemidiaphragm measurement methods often result in abnormal hemidiaphragm measurements corresponding to the lung field due to abnormal lung field morphology caused by lung field deformation. Therefore, it is necessary to propose an optimization algorithm to ensure the accuracy of hemidiaphragm measurements on dynamic chest X-ray (dynamic multiple X-ray two-dimensional chest images) images for subsequent quantitative analysis. Among them, in the process of optimizing the positioning of the hemidiaphragm, the primary task is to detect the normal or abnormal diaphragm so that the positioning of the abnormal diaphragm can be optimized. Summary of the Invention

[0006] The present disclosure provides a digital X-ray image shooting method and device, and a corresponding technical solution for a digital X-ray camera.

[0007] According to one aspect of the present disclosure, a method for capturing a digital X-ray image is provided, comprising:

[0008] Obtaining upper boundary pixel positions, lower boundary pixel positions, left boundary pixel positions, and right boundary pixel positions corresponding to boundary pixel positions of a set frame set in an image of the subject photographed by a camera installed on the beam splitter at a set part of the subject;

[0009] Based on the first horizontal size and the second vertical size of the pixel points in the subject image, the upper boundary pixel position, the lower boundary pixel position, the left boundary pixel position and the right boundary pixel position corresponding to the boundary pixel position, the corresponding beam field size of the subject when the set part of the subject is photographed using a digital X-ray camera is determined.

[0010] Preferably, determining the upper boundary pixel position, lower boundary pixel position, left boundary pixel position and right boundary pixel position corresponding to the boundary pixel position of the set border set in the subject image includes: determining the upper boundary pixel position, lower boundary pixel position, left boundary pixel position and right boundary pixel position corresponding to the boundary pixel position of the set border according to the first width and first height of the subject image, the first size, the second size, and the second width and second height corresponding to the set border.

[0011] Preferably, the upper boundary pixel position, lower boundary pixel position, left boundary pixel position and right boundary pixel position corresponding to the boundary pixel position of the set border are determined according to the first width and first height of the subject image, the first size, the second size, and the second width and second height corresponding to the set border, including: determining the left boundary pixel position and right boundary pixel position corresponding to the boundary pixel position according to the first width, the second width and the first size; and determining the upper boundary pixel position and lower boundary pixel position corresponding to the boundary pixel position according to the first height, the second height and the second size.

[0012] Preferably, the left boundary pixel position and the right boundary pixel position corresponding to the boundary pixel position are determined respectively according to the first width, the second width and the first size, including: determining the pixel width corresponding to the set border according to the second width and the first size; obtaining the first ratio and the third ratio corresponding to the light field window of the camera and the beam splitter in the horizontal direction; calculating the first width minus the pixel width to obtain the width difference; calculating the width ratio difference corresponding to the width difference under the first ratio (the width difference × the first ratio) to obtain the left boundary pixel position; calculating the first width plus the pixel width to obtain the width cumulative value; calculating the width ratio cumulative value corresponding to the width cumulative value under the third ratio (the width cumulative value × the third ratio) to obtain the left boundary pixel position.

[0013] Preferably, determining the upper boundary pixel position and the lower boundary pixel position corresponding to the boundary pixel position according to the first height, the second height and the second size, respectively, includes: determining the pixel height corresponding to the set border according to the second height and the second size; and determining the upper boundary pixel position and the lower boundary pixel position corresponding to the boundary pixel position based on the first height and the pixel height.

[0014] Preferably, the upper boundary pixel position and the lower boundary pixel position corresponding to the boundary pixel position are determined based on the first height and the pixel height, including: determining the pixel height corresponding to the set border according to the second height and the second size; determining the pixel height corresponding to the set border according to the second height and the second size; obtaining the second ratio and the fourth ratio corresponding to the light field window of the camera and the beam splitter in the vertical direction; subtracting the pixel height from the first height to obtain the height difference; calculating the height difference of the height difference at the second ratio (the height difference × the second ratio) to obtain the upper boundary pixel position; adding the pixel height to the first height to obtain the height cumulative value; calculating the height ratio cumulative value corresponding to the height cumulative value at the fourth ratio (the height cumulative value × the fourth ratio) to obtain the lower boundary pixel position.

[0015] Preferably, the method of determining the corresponding collimator light field size when photographing the set part of the subject using a digital X-ray camera based on the first horizontal size and the second vertical size of the pixel points in the subject image, the upper boundary pixel position, the lower boundary pixel position, the left boundary pixel position and the right boundary pixel position corresponding to the boundary pixel position, includes: determining the corresponding horizontal size of the collimator light field when photographing the set part of the subject using a digital X-ray camera based on the left boundary pixel position and the right boundary pixel position corresponding to the boundary pixel position and the first size; determining the corresponding vertical size of the collimator light field when photographing the set part of the subject using a digital X-ray camera based on the upper boundary pixel position and the lower boundary pixel position corresponding to the boundary pixel position and the second size.

[0016] Preferably, the horizontal size of the beam splitter light field corresponding to the left boundary pixel position and the right boundary pixel position corresponding to the boundary pixel position and the first size is determined when the digital X-ray camera is used to shoot the set part of the subject, including: calculating the first configuration size corresponding to the product of the first boundary pixel position difference and the first size, and determining the horizontal size of the beam splitter light field corresponding to the set part of the subject when the digital X-ray camera is used to shoot.

[0017] Preferably, based on the upper boundary pixel position and the lower boundary pixel position corresponding to the boundary pixel position and the second size, the vertical size of the beam spotter light field corresponding to when the set part of the subject is photographed using a digital X-ray camera is determined, including: calculating the second boundary pixel position difference between the upper boundary pixel position and the lower boundary pixel position; calculating the second configuration size corresponding to the product of the second boundary pixel position difference and the second size, and determining the vertical size of the beam spotter light field corresponding to when the set part of the subject is photographed using a digital X-ray camera.

[0018] Preferably, if the subject's set part is configured as the lung, then at least one diaphragm sequence of a dynamic right lung diaphragm sequence and a dynamic left lung diaphragm sequence corresponding to multiple dynamic X-ray two-dimensional chest images during breathing is obtained under the beam field size of the beam spotter; the right lung reference diaphragm length is determined by the shortest length in the first length sequence corresponding to the dynamic right lung diaphragm sequence; based on the right lung reference diaphragm length, the first length in the first length sequence excluding the right lung reference diaphragm length, and the first preset length difference, the other right lung diaphragms are respectively determined to be normal right diaphragms or abnormal right diaphragms; and / or, the left lung reference diaphragm length is determined by the shortest length in the second length sequence corresponding to the dynamic left lung diaphragm sequence; based on the left lung reference diaphragm length, the second length in the second length sequence excluding the left lung reference diaphragm length, and the second preset length difference, the other left lung diaphragms are respectively determined to be normal left diaphragms or abnormal left diaphragms.

[0019] Preferably, before obtaining at least one diaphragm sequence of a dynamic right lung diaphragm sequence and a dynamic left lung diaphragm sequence corresponding to the dynamic multiple X-ray two-dimensional chest images during the breathing process, a method for determining the corresponding dynamic right lung diaphragm sequence and / or dynamic left lung diaphragm sequence according to the dynamic multiple X-ray two-dimensional chest images during the breathing process comprises: obtaining at least one mask edge image sequence of a right lung mask edge image sequence and a left lung mask edge image sequence corresponding to the dynamic multiple X-ray two-dimensional chest images; determining the right lung apex corresponding to the right lung mask edge image sequence; determining the right lung apex corresponding to the right lung mask edge image sequence based on the dynamic multiple X-ray two-dimensional chest images; determining the right lung apex corresponding to the right lung mask edge image sequence based on the dynamic multiple X-ray two-dimensional chest images; determining the right lung apex corresponding to the right lung mask edge image sequence based on the dynamic multiple X-ray two-dimensional chest images; determining the right lung apex corresponding to the right lung mask edge image sequence; determining the right lung apex corresponding to the dynamic multiple X-ray two-dimensional chest images ... The right lung diaphragm is located based on the right lung apex, the right costophrenic angle point and the right lung mask edge image corresponding to each of the dynamic multiple X-ray two-dimensional chest images; and / or, the left lung apex corresponding to the left lung mask edge image sequence is determined respectively, and the right costophrenic angle point corresponding to the right lung mask edge image sequence and / or the left costophrenic angle point corresponding to the left lung mask edge image sequence is determined respectively; the left lung diaphragm is located based on the right cardiophrenic angle, the left lung apex, the left costophrenic angle point and the left lung mask edge image corresponding to the right lung diaphragm corresponding to each of the dynamic multiple X-ray two-dimensional chest images.

[0020] Preferably, the method for determining the first length sequence corresponding to the dynamic right lung diaphragm sequence includes: respectively counting the sum of the number of first pixel values corresponding to each right lung diaphragm in the dynamic right lung diaphragm sequence; respectively based on the sum of the number of first pixel values corresponding to each right lung diaphragm and the area corresponding to each pixel, obtaining the first length sequence corresponding to the dynamic right lung diaphragm sequence; and / or, the method for determining the first length sequence corresponding to the dynamic right lung diaphragm sequence based on the sum of the number of first pixel values corresponding to each right lung diaphragm and the area corresponding to each pixel, includes: respectively multiplying the sum of the number of first pixel values corresponding to each right lung diaphragm by the area corresponding to each pixel to obtain the first length sequence corresponding to the dynamic right lung diaphragm sequence.

[0021] Preferably, the method for determining the second length sequence corresponding to the dynamic left pulmonary diaphragm sequence includes: respectively counting the sum of the number of second pixel values corresponding to each left pulmonary diaphragm in the dynamic left pulmonary diaphragm sequence; respectively based on the sum of the number of second pixel values corresponding to each left pulmonary diaphragm and the area corresponding to each pixel, obtaining the second length sequence corresponding to the dynamic left pulmonary diaphragm sequence; and / or, the method for determining the second length sequence corresponding to the dynamic left pulmonary diaphragm sequence based on the sum of the number of second pixel values corresponding to each left pulmonary diaphragm and the area corresponding to each pixel, includes: respectively multiplying the sum of the number of second pixel values corresponding to each left pulmonary diaphragm by the area corresponding to each pixel, to obtain the second length sequence corresponding to the dynamic left pulmonary diaphragm sequence.

[0022] Preferably, the method of determining the right lung reference diaphragm length by the shortest length in the first length sequence corresponding to the dynamic right lung diaphragm sequence; and determining the other right lung diaphragms as a normal right diaphragm or an abnormal right diaphragm based on the right lung reference diaphragm length, the first length in the first length sequence except the right lung reference diaphragm length, and a first preset length difference, includes: determining the right lung reference diaphragm by the right lung diaphragm with the shortest length in the first length sequence corresponding to the dynamic right lung diaphragm sequence; and determining the other right lung diaphragms as a normal right diaphragm or an abnormal right diaphragm based on the first reference length corresponding to the right lung reference diaphragm, the first length corresponding to the other right lung diaphragms in the dynamic right lung diaphragm sequence except the right lung reference diaphragm, and a first preset length difference.

[0023] Preferably, the method of determining the left lung reference diaphragm length by the shortest length in the second length sequence corresponding to the dynamic left lung diaphragm sequence; and determining the other left lung diaphragms as a normal left diaphragm or an abnormal left diaphragm based on the left lung reference diaphragm length, the second length in the second length sequence except the left lung reference diaphragm length, and the second preset length difference includes: determining the left lung reference diaphragm by the shortest left lung diaphragm in the second length sequence corresponding to the dynamic left lung diaphragm sequence; and determining the other left lung diaphragms as a normal left diaphragm or an abnormal left diaphragm based on the second reference length corresponding to the left lung reference diaphragm, the second length corresponding to the other left lung diaphragms in the dynamic left lung diaphragm sequence except the left lung reference diaphragm, and the second preset length difference.

[0024] Preferably, the digital X-ray image shooting method further includes: obtaining a second size corresponding to a pixel point in the vertical direction in an image of a subject shot by a camera installed on the beam splitter; determining a length corresponding to the set stitching range based on an upper boundary corresponding to the set stitching range of the subject image and a lower boundary relative to the first boundary; and adjusting a starting height and an ending height corresponding to the set stitching range based on a camera height from the ground and the length corresponding to the set stitching range.

[0025] According to one aspect of the present disclosure, a digital X-ray image shooting device is provided, comprising: a boundary pixel position acquisition unit for acquiring an upper boundary pixel position, a lower boundary pixel position, a left boundary pixel position, and a right boundary pixel position corresponding to the boundary pixel position of a set frame set in an image of a subject shot at a set part of the subject by a camera installed on the beam splitter; and a beam splitter light field size determination unit for determining a beam splitter light field size corresponding to when shooting the set part of the subject using a digital X-ray camera based on a first horizontal size and a second vertical size of a pixel point in the subject image, and the upper boundary pixel position, the lower boundary pixel position, the left boundary pixel position, and the right boundary pixel position corresponding to the boundary pixel position.

[0026] According to one aspect of the present disclosure, a digital X-ray image capturing device is provided, comprising: a configuration and acquisition unit for acquiring, if the subject's set part is configured as the lung, at least one diaphragm sequence of a dynamic right lung diaphragm sequence and a dynamic left lung diaphragm sequence corresponding to multiple dynamic X-ray two-dimensional chest images during breathing within the beam field size of the beam spotter; a diaphragm determination unit for determining a right lung baseline diaphragm length based on the shortest length in a first length sequence corresponding to the dynamic right lung diaphragm sequence; determining, based on the right lung baseline diaphragm length, a first length in the first length sequence excluding the right lung baseline diaphragm length, and a first preset length difference, whether the other right lung diaphragms are normal right diaphragms or abnormal right diaphragms; and / or determining, based on the shortest length in a second length sequence corresponding to the dynamic left lung diaphragm sequence, a left lung baseline diaphragm length; determining, based on the left lung baseline diaphragm length, a second length in the second length sequence excluding the left lung baseline diaphragm length, and a second preset length difference, whether the other left lung diaphragms are normal left diaphragms or abnormal left diaphragms.

[0027] According to one aspect of the present disclosure, a digital X-ray image shooting device is provided, including: a size determination unit for obtaining a second size corresponding to a pixel point in the vertical direction in an image of a subject shot by a camera installed on a beam splitter; a length determination unit for determining a length corresponding to the set stitching range of the subject image based on an upper boundary corresponding to the set stitching range and a lower boundary opposite to the first boundary; and a height adjustment unit for adjusting a starting height and an ending height corresponding to the set stitching range based on a camera height of the camera from the ground and the length corresponding to the set stitching range.

[0028] According to one aspect of the present disclosure, a digital X-ray image capturing apparatus is provided, comprising: an electronic device configured with a processor and a memory for storing processor-executable instructions; wherein the processor is configured to call instructions stored in the memory to execute the above-mentioned digital X-ray image capturing method.

[0029] According to one aspect of the present disclosure, a digital X-ray image capturing apparatus is provided, comprising: a processor; and a memory for storing processor-executable instructions; wherein the processor is configured to call the instructions stored in the memory to execute the above-mentioned digital X-ray image capturing method.

[0030] According to one aspect of the present disclosure, a digital X-ray image capturing apparatus is provided, comprising: a computer-readable storage medium storing computer program instructions, wherein the computer program instructions implement the above-mentioned digital X-ray image capturing method when executed by a processor.

[0031] According to one aspect of the present disclosure, a digital X-ray image capturing apparatus is provided, comprising: a computer program product including a computer program / instruction, which implements the above-mentioned digital X-ray image capturing method when executed by a processor.

[0032] According to one aspect of the present disclosure, a digital X-ray camera is provided, comprising: an electronic device, a processor, and a memory for storing processor-executable instructions, a computer-readable storage medium, and a computer program product; wherein the electronic device is configured to execute, the processor is configured to call instructions stored in the memory for execution, the computer program instructions stored in the computer-readable storage medium are implemented when the processor executes, and the computer program / instructions set in the computer program product are executed by the processor: the digital X-ray image capturing method as described above.

[0033] According to one aspect of the present disclosure, a digital X-ray camera is provided, comprising: the digital X-ray image capturing device as described above.

[0034] According to one aspect of the present disclosure, a digital X-ray image capturing method and apparatus, and a digital X-ray camera are provided to solve at least one technical problem that the set part of the subject cannot be automatically adjusted, and the manual operation process is not only time-consuming and labor-intensive, but also limited by the operator's level and experience, and the beam field cannot be adjusted in a timely and accurate manner; at the same time, the present invention further solves at least one technical problem that the operator adjusts the digital X-ray camera frame to set the starting height and ending height of the medical images to be stitched, resulting in such manual operation process not only time-consuming and labor-intensive, but also limited by the operator's level and experience, and low stitching efficiency of the medical images to be stitched, and inability to effectively detect the normal diaphragm or the abnormal diaphragm, and further the technical problem that the positioning optimization of the abnormal diaphragm cannot be performed.

[0035] In the embodiments of the present disclosure, a digital X-ray image shooting method and device, and a corresponding technical solution of a digital X-ray camera are proposed to solve the problem.

[0036] It is to be understood that both the foregoing general description and the following detailed description are exemplary and explanatory only and are not restrictive of the disclosure.

[0037] Further features and aspects of the present disclosure will become apparent from the following detailed description of exemplary embodiments with reference to the attached drawings. BRIEF DESCRIPTION OF THE DRAWINGS

[0038] The accompanying drawings herein are incorporated into and constitute a part of the specification. These drawings illustrate embodiments consistent with the present disclosure and, together with the specification, are used to explain the technical solutions of the present disclosure.

[0039] Figure 1 A flowchart of a digital X-ray image capturing method according to an embodiment of the present disclosure is shown. DETAILED DESCRIPTION

[0040] Various exemplary embodiments, features, and aspects of the present disclosure will be described in detail below with reference to the accompanying drawings. The same reference numerals in the accompanying drawings represent elements with the same or similar functions. Although various aspects of the embodiments are shown in the accompanying drawings, the drawings are not necessarily drawn to scale unless otherwise indicated.

[0041] The word “exemplary” is used exclusively herein to mean “serving as an example, example, or illustration.” Any embodiment described herein as “exemplary” is not necessarily to be construed as preferred or advantageous over other embodiments.

[0042] The term "and / or" herein simply describes an association relationship between associated objects, indicating that three relationships can exist. For example, "A and / or B" can represent the existence of three situations: A alone, A and B simultaneously, and B alone. Furthermore, the term "at least one" herein refers to any combination of at least two of any one or more of a plurality of items. For example, "at least one of A, B, and C" can represent any one or more elements selected from the set consisting of A, B, and C.

[0043] In addition, numerous specific details are provided in the following detailed description to better illustrate the present disclosure. Those skilled in the art will appreciate that the present disclosure can be practiced without certain specific details. In some instances, methods, means, components, and circuits well known to those skilled in the art are not described in detail in order to highlight the main points of the present disclosure.

[0044] It can be understood that the above-mentioned various method embodiments mentioned in the present disclosure can be combined with each other to form combined embodiments without violating the principle logic. Due to space limitations, the present disclosure will not elaborate on them.

[0045] In addition, the present disclosure also provides a digital X-ray image capturing device, an electronic device, a computer-readable storage medium, a program product, and a digital X-ray camera, all of which can be used to implement any digital X-ray image capturing method provided by the present disclosure. The corresponding technical solutions and descriptions are referred to the corresponding records in the method section and will not be repeated here.

[0046] Figure 1 FIG. 1 is a flow chart showing a method for capturing a digital X-ray image according to an embodiment of the present disclosure. Figure 1 As shown, the digital X-ray image capturing method includes: step S101: obtaining the upper boundary pixel position, lower boundary pixel position, left boundary pixel position, and right boundary pixel position corresponding to the boundary pixel position of a set frame set in an image of a subject captured by a camera mounted on a collimator at a set portion of the subject; step S102: determining the collimator light field size corresponding to the image of the set portion of the subject captured by a digital X-ray camera based on the first horizontal dimension and the second vertical dimension of the pixel points in the subject image, and the upper boundary pixel position, lower boundary pixel position, left boundary pixel position, and right boundary pixel position corresponding to the boundary pixel position. This solves at least one technical problem that the set portion of the subject cannot be automatically adjusted, and the manual operation process is not only time-consuming and labor-intensive, but also limited by the operator's level and experience, and cannot be adjusted in a timely and accurate manner.

[0047] Step S101: obtaining upper boundary pixel positions, lower boundary pixel positions, left boundary pixel positions and right boundary pixel positions corresponding to boundary pixel positions of a set frame set in an image of a subject photographed by a camera installed on a beam splitter at a set part of the subject.

[0048] In the embodiment of the present disclosure and other possible embodiments, the set part of the subject is configured as one or more of the lungs, head, neck, arms, legs, stomach, hands, feet, hips, breasts, and heart.

[0049] In the embodiments of the present disclosure and other possible embodiments, the upper boundary pixel position, lower boundary pixel position, left boundary pixel position and right boundary pixel position corresponding to the boundary pixel position of the set border set in the image of the subject when the camera installed on the collimator photographs the set part of the subject under the set collimator light field size are determined; based on the first size of the pixel points in the horizontal direction and the second size in the vertical direction in the subject image, the upper boundary pixel position, lower boundary pixel position, left boundary pixel position and right boundary pixel position corresponding to the boundary pixel position, the set collimator light field size is adjusted to determine the corresponding collimator light field size when the set part of the subject is photographed using a digital X-ray camera.

[0050] In the embodiments of the present disclosure and other possible embodiments, when determining an image of a subject captured by a camera mounted on the collimator at a set portion of the subject under a set collimator light field size, the set collimator light field size does not restrict the camera shooting conditions used by the camera mounted on the collimator to capture the subject and obtain the subject image. Instead, during the process of using an X-ray camera to capture the set portion of the subject, the camera needs to capture the subject under the set collimator light field size, thereby obtaining a digital X-ray image of the set portion of the subject corresponding to the set collimator light field size. For example, the set portion of the subject can be configured as the chest, head, neck, arm, leg, stomach, hand, foot, hip, and other possible portions.

[0051] In an embodiment of the present disclosure, determining the upper boundary pixel position, lower boundary pixel position, left boundary pixel position and right boundary pixel position corresponding to the boundary pixel position of the set border set in the subject image includes: determining the upper boundary pixel position, lower boundary pixel position, left boundary pixel position and right boundary pixel position corresponding to the boundary pixel position of the set border according to the first width and first height of the subject image, the first size, the second size, and the second width and second height corresponding to the set border.

[0052] The method of determining the upper boundary pixel position, lower boundary pixel position, left boundary pixel position and right boundary pixel position corresponding to the boundary pixel position of the set border based on the first width and first height of the subject image, the first size, the second size, and the second width and second height corresponding to the set border includes: determining the left boundary pixel position and right boundary pixel position corresponding to the boundary pixel position according to the first width, the second width and the first size; and determining the upper boundary pixel position and lower boundary pixel position corresponding to the boundary pixel position according to the first height, the second height and the second size.

[0053] In an embodiment of the present disclosure, the left boundary pixel position and the right boundary pixel position corresponding to the boundary pixel position are determined respectively according to the first width, the second width and the first size, including: determining the pixel width corresponding to the set border according to the second width and the first size; obtaining the first ratio and the third ratio corresponding to the light field window of the camera and the beam splitter in the horizontal direction; calculating the first width minus the pixel width to obtain the width difference; calculating the width ratio difference corresponding to the width difference under the first ratio (the width difference × the first ratio) to obtain the left boundary pixel position; calculating the first width plus the pixel width to obtain the width cumulative value; calculating the width ratio cumulative value corresponding to the width cumulative value under the third ratio (the width cumulative value × the third ratio) to obtain the left boundary pixel position.

[0054] In an embodiment of the present disclosure, determining the upper boundary pixel position and the lower boundary pixel position corresponding to the boundary pixel position based on the first height, the second height and the second size, respectively, includes: determining the pixel height corresponding to the set border based on the second height and the second size; and determining the upper boundary pixel position and the lower boundary pixel position corresponding to the boundary pixel position based on the first height and the pixel height.

[0055] In the embodiment of the present disclosure, the upper boundary pixel position and the lower boundary pixel position corresponding to the boundary pixel position are determined based on the first height and the pixel height, including: determining the pixel height corresponding to the set border according to the second height and the second size; determining the pixel height corresponding to the set border according to the second height and the second size; obtaining the second ratio and the fourth ratio corresponding to the light field window of the camera and the beam spotter in the vertical direction; subtracting the pixel height from the first height to obtain the height difference; calculating the height difference of the height difference at the second ratio (the height difference × the second ratio) to obtain the upper boundary pixel position; adding the pixel height to the first height to obtain the height cumulative value; calculating the height ratio cumulative value corresponding to the height cumulative value at the fourth ratio (the height cumulative value × the fourth ratio) to obtain the lower boundary pixel position.

[0056] Step S102: Based on the first horizontal size and the second vertical size of the pixel points in the subject image, the upper boundary pixel position, the lower boundary pixel position, the left boundary pixel position and the right boundary pixel position corresponding to the boundary pixel position, determine the corresponding beam field size when using a digital X-ray camera to shoot the set part of the subject.

[0057] In an embodiment of the present disclosure, the method for determining the corresponding beam splitter light field size when photographing a set part of the subject using a digital X-ray camera based on the first horizontal size and the second vertical size of the pixel points in the subject image, the upper boundary pixel position, the lower boundary pixel position, the left boundary pixel position and the right boundary pixel position corresponding to the boundary pixel position, includes: determining the corresponding horizontal size of the beam splitter light field when photographing the set part of the subject using a digital X-ray camera based on the left boundary pixel position and the right boundary pixel position corresponding to the boundary pixel position and the first size; determining the corresponding vertical size of the beam splitter light field when photographing the set part of the subject using a digital X-ray camera based on the upper boundary pixel position and the lower boundary pixel position corresponding to the boundary pixel position and the second size.

[0058] In an embodiment of the present disclosure, determining the horizontal size of the beam splitter light field corresponding to when photographing the set part of the subject using a digital X-ray camera based on the left boundary pixel position and the right boundary pixel position corresponding to the boundary pixel position and the first size includes: calculating a first configuration size corresponding to the product of the first boundary pixel position difference and the first size, and determining the horizontal size of the beam splitter light field corresponding to when photographing the set part of the subject using a digital X-ray camera; and / or,

[0059] In an embodiment of the present disclosure, based on the upper boundary pixel position and the lower boundary pixel position corresponding to the boundary pixel position and the second size, the vertical size of the beam spotter light field corresponding to when the set part of the subject is photographed using a digital X-ray camera is determined, including: calculating the second boundary pixel position difference between the upper boundary pixel position and the lower boundary pixel position; calculating the second configuration size corresponding to the product of the second boundary pixel position difference and the second size, and determining the vertical size of the beam spotter light field corresponding to when the set part of the subject is photographed using a digital X-ray camera.

[0060] In an embodiment of the present disclosure, the digital X-ray image shooting method further includes, if the subject is set to be configured as the lung, then, under the beam field size of the beam spotter, obtaining at least one diaphragm sequence of a dynamic right lung diaphragm sequence and a dynamic left lung diaphragm sequence corresponding to multiple dynamic X-ray two-dimensional chest images during breathing; determining the right lung reference diaphragm length by the shortest length in the first length sequence corresponding to the dynamic right lung diaphragm sequence; based on the right lung reference diaphragm length, the first length in the first length sequence excluding the right lung reference diaphragm length, and the first preset length difference, determining the other right lung diaphragms as a normal right diaphragm or an abnormal right diaphragm; and / or, determining the left lung reference diaphragm length by the shortest length in the second length sequence corresponding to the dynamic left lung diaphragm sequence; based on the left lung reference diaphragm length, the second length in the second length sequence excluding the left lung reference diaphragm length, and the second preset length difference, determining the other left lung diaphragms as a normal left diaphragm or an abnormal left diaphragm. The invention aims to solve at least one technical problem of being unable to effectively detect a normal diaphragm or an abnormal diaphragm, and further the technical problem of being unable to optimize the positioning of the abnormal diaphragm.

[0061] In an embodiment of the present disclosure, the digital X-ray image shooting method further includes: obtaining a second size corresponding to a pixel point in the vertical direction in an image of a subject shot by a camera mounted on a beam splitter; determining the length corresponding to the set stitching range based on an upper boundary corresponding to the set stitching range of the subject image and a lower boundary relative to the first boundary; and adjusting the starting height and ending height corresponding to the set stitching range based on the camera height from the ground and the length corresponding to the set stitching range. This further solves at least one technical problem that an operator adjusts the frame of a digital X-ray camera to set the starting height and ending height of the medical images to be stitched, resulting in a manual operation process that is not only time-consuming and labor-intensive, but also limited by the operator's level and experience, resulting in low stitching efficiency of the medical images to be stitched.

[0062] In the embodiments of the present disclosure and other possible embodiments, the second size PointSizeY corresponding to the pixel points in the vertical direction in the image of the subject photographed by the camera installed on the beam spotter is obtained; according to the upper boundary SetTop corresponding to the set stitching range of the subject image and the lower boundary SetBottom opposite to the first boundary, the length StitichLength corresponding to the set stitching range is determined; based on the camera height CameraHeight of the camera from the ground and the length StitichLength corresponding to the set stitching range, the starting height StartStitchHeight and the ending height EndStitchHeight corresponding to the set stitching range are adjusted.

[0063] In an embodiment of the present disclosure, a set stitching range is set within the subject image; wherein the set frame can be configured as a rectangle or a square.

[0064] In the embodiment of the present disclosure, the camera installed on the beam spotter is used to monitor the video surveillance screen corresponding to the real-time status of the subject; a frame of image is extracted from the video surveillance screen corresponding to the real-time status of the subject to obtain a subject image corresponding to the subject.

[0065] In the embodiment of the present disclosure and other possible embodiments, a frame of the subject image is captured from the surveillance video, recorded as subject image A, and the width and height of the subject image A are ImageWidth / Width and ImageHeight / Height respectively; the camera can be configured as a network camera; wherein the height of the network camera is CameraHeight, that is, the distance to the ground, in mm; the distance from the network camera to the subject is Distance, in mm; the field of view angle of the network camera in the vertical direction is ViewAngleY, in degrees.

[0066] In the embodiment of the present disclosure and other possible embodiments, a second size PointSizeY corresponding to a pixel point in the vertical direction in an image of the subject photographed by a camera installed on the collimator is obtained.

[0067] In the embodiments of the present disclosure and other possible embodiments, in determining the first horizontal size and the second vertical size of the pixel point in the image of the subject photographed by the camera installed on the collimator at the set part of the subject, for example, the set part of the subject can be configured as the chest, head, neck, arms, legs, stomach, hands, feet, hips and other possible parts.

[0068] In the embodiments of the present disclosure and other possible embodiments, in determining the first horizontal size and the second vertical size of the pixel points in the image of the subject captured by the camera mounted on the collimator under the set collimator light field size, the set collimator light field size does not limit the camera shooting conditions for capturing the subject image by the camera mounted on the collimator, but rather requires that the camera be used to capture the subject's set part under the set collimator light field size in order to obtain a digital X-ray image of the subject's set part corresponding to the set collimator light field size. For example, the subject's set part can be configured as the chest, head, neck, arm, leg, stomach, hand, foot, hip, and other possible parts.

[0069] In an embodiment of the present disclosure, before obtaining the second size PointSizeY in the vertical direction corresponding to the pixel point in the image of the subject photographed by the camera installed on the beam spotter, it includes: obtaining the second field of view ViewAngleY in the vertical direction of the camera installed on the beam spotter, the distance from the camera to the subject, and the first height ImageHeight or Height corresponding to the image of the subject photographed by the camera; determining the second size PointSizeY in the vertical direction of the pixel point in the image of the subject based on the second field of view ViewAngleY, the first height ImageHeight or Height, and the distance Distance from the camera to the subject.

[0070] In an embodiment of the present disclosure, determining the second size PointSizeY of the pixel point in the image of the subject in the vertical direction based on the second field of view angle ViewAngleY, the first height ImageHeight or Height, and the distance Distance from the camera to the subject includes: calculating the second angle corresponding to the second field of view angle ViewAngleY in the vertical direction; based on trigonometric function calculation rules, using the second angle, the first height ImageHeight or Height, and the distance Distance from the camera to the subject, determining the second size PointSizeY of the pixel point in the image of the subject in the vertical direction.

[0071] In an embodiment of the present disclosure, the method for calculating the second angle corresponding to the second field of view ViewAngleY in the horizontal direction includes: obtaining a second ratio of the light field window of the camera and the beam splitter in the vertical direction; and calculating the second angle corresponding to the second field of view ViewAngleY under the second ratio.

[0072] In an embodiment of the present disclosure, if the camera is installed on the inside / outside of a shell on one side close to the center position of the light field window of the beam splitter, the method for calculating the second angle corresponding to the second field of view angle ViewAngleY in the vertical direction includes: calculating the second angle corresponding to the second half field of view angle corresponding to the second field of view angle ViewAngleY in the vertical direction.

[0073] In an embodiment of the present disclosure, the method of determining the second size PointSizeY of the pixel point in the image of the subject in the vertical direction based on the trigonometric function calculation rules and using the second angle, the first height ImageHeight or Height and the distance Distance from the camera to the subject includes: calculating the first proportional height corresponding to the first height ImageHeight or Height under the second proportional ratio; and determining the second size PointSizeY of the pixel point in the image of the subject in the vertical direction based on the trigonometric function calculation rules and using the second angle, the first proportional height and the distance Distance from the camera to the subject.

[0074] In an embodiment of the present disclosure, if the camera is installed on the inside / outside of a shell on one side close to the center position of the light field window of the beam spotter, the method for determining the second size PointSizeY of the pixel point in the image of the subject in the vertical direction based on the trigonometric function calculation rules, using the second angle, the first height ImageHeight or Height and the distance Distance from the camera to the subject, includes: calculating the first half height corresponding to the first height ImageHeight or Height; based on the trigonometric function calculation rules, using the second angle, the first half height ImageHeight / 2 and the distance Distance from the camera to the subject, determining the second size PointSizeY of the pixel point in the image of the subject in the vertical direction.

[0075] In an embodiment of the present disclosure, the method for calculating the second angle corresponding to the second viewing angle ViewAngleX in the horizontal direction includes: obtaining a second ratio p2 of the light field window of the camera and the beam splitter in the vertical direction; calculating the second angle (π*ViewAngleX×p2) corresponding to the second viewing angle ViewAngleX at the second ratio p2 (second viewing angle ViewAngleX×second ratio p2).

[0076] In the embodiments of the present disclosure and other possible embodiments, determining the second ratio of the light field window of the camera and the beam splitter in the vertical direction includes: calculating the second length of the light field window of the beam splitter in the vertical direction, dividing the second length into a third sub-length and a fourth sub-length using the position of the camera in the vertical direction, and configuring the ratio of the third sub-length or the fourth sub-length to the second length to be a second ratio p2.

[0077] In an embodiment of the present disclosure, if the camera is installed on the inside / outside of a shell on one side close to the center position of the light field window of the beam splitter, the method for calculating the second angle corresponding to the second field of view angle ViewAngleX in the vertical direction includes: calculating the second angle (π*ViewAngleY / 2) / 180 corresponding to the second half field of view angle (second field of view angle ViewAngleX / 2) corresponding to the second field of view angle ViewAngleX in the vertical direction; wherein, if the camera is installed on the inside / outside of a shell on one side close to the center position of the light field window of the beam splitter, the first ratio configuration is 1 / 2.

[0078] In an embodiment of the present disclosure, the method of determining the second size PointSizeY of the pixel point in the image of the subject in the vertical direction based on the trigonometric function calculation rules and using the second angle, the second width and the distance Distance from the camera to the subject includes: calculating the second proportional width (second width × second proportional p2) corresponding to the second width under the second proportional p2; and determining the second size PointSizeY of the pixel point in the image of the subject in the vertical direction based on the trigonometric function calculation rules and using the second angle, the second proportional width and the distance Distance from the camera to the subject.

[0079] In the embodiments of the present disclosure and other possible embodiments, based on the trigonometric function calculation rules, the second angle (π*ViewAngleX×p2), the second proportional width and the distance Distance from the camera to the subject are used to determine that the second size PointSizeY of the pixel point in the subject image in the vertical direction is configured as: PointSizeY=Distance×tan(π*(ViewAngleY×p2) / 180) / (Width×p2).

[0080] In an embodiment of the present disclosure, if the camera is installed on the inside / outside of a shell on one side close to the center position of the light field window of the beam spotter, the method for determining the second size PointSizeY of the pixel point in the image of the subject in the vertical direction based on the trigonometric function calculation rules, using the second angle, the first height Height and the distance Distance from the camera to the subject, includes: calculating the first half height (first height Height / 2) corresponding to the first height Height; determining the second size PointSizeY of the pixel point in the image of the subject in the vertical direction based on the trigonometric function calculation rules, using the second angle, the first half height and the distance Distance from the camera to the subject.

[0081] In the embodiments of the present disclosure and other possible embodiments, when the camera is installed on the inside / outside of a shell on one side close to the center position of the light field window of the beam spotter, the first half height (first height Height / 2) corresponding to the first height Height is calculated; based on the trigonometric function calculation rules, the second angle, the first half height and the distance Distance from the camera to the subject are used to determine the second size PointSizeY of the pixel point in the subject image in the vertical direction, and the mathematical expression corresponding to the configuration is: PointSizeY = (Distance*tan((π*ViewAngleY / 2) / 180)) / (Heighth / 2); wherein, the symbol * and the symbol × both represent multiplication operations in the present disclosure.

[0082] In the embodiments of the present disclosure and other possible embodiments, the center position of the light field window is configured as one of the midpoint position of the horizontal center line of the light field window in the horizontal direction, the midpoint position of the vertical center line in the vertical direction perpendicular to the horizontal direction, and the intersection position of the horizontal center line and the vertical center line.

[0083] More specifically, in the embodiments of the present disclosure and other possible embodiments, a frame of image is extracted from the surveillance video, recorded as the subject image A, and the height (first height) of the subject image A is Height; when the camera is installed on the inside / outside of the shell on one side close to the center position of the light field window of the beam spotter, the second size PointSizeYPointSizeY of each pixel point in the subject image A in the vertical direction is calculated respectively using the following formula, in mm; PointSizeY = (Distance*tan((π*ViewAngleY / 2) / 180)) / (Height / 2).

[0084] In the embodiment of the present disclosure and other possible embodiments, the length StitichLength corresponding to the set stitching range is determined according to the upper boundary SetTop corresponding to the set stitching range of the subject image and the lower boundary SetBottom opposite to the first boundary.

[0085] In an embodiment of the present disclosure, determining the length StitichLength corresponding to the set stitching range based on the upper boundary SetTop corresponding to the set stitching range of the subject image and the lower boundary SetBottom opposite to the first boundary includes: calculating the boundary difference between the first boundary and the second boundary; multiplying the boundary difference by the second size PointSizeY of the pixel point in the subject image in the vertical direction to determine the length StitichLength corresponding to the set stitching range.

[0086] In the embodiment of the present disclosure and other possible embodiments, the starting height StartStitchHeight and the ending height EndStitchHeight corresponding to the set stitching range are adjusted based on the camera height CameraHeight of the camera from the ground and the length StitichLength corresponding to the set stitching range.

[0087] In an embodiment of the present disclosure, adjusting the starting height StartStitchHeight and the ending height EndStitchHeight corresponding to the set stitching range based on the camera height CameraHeight of the camera from the ground and the length StitichLength corresponding to the set stitching range includes: obtaining the second ratio and the fourth ratio corresponding to the light field window of the camera and the beam splitter in the vertical direction; calculating the first stitching ratio length of the length StitichLength corresponding to the set stitching range under the second ratio; determining the starting height StartStitchHeight corresponding to the stitching range based on the camera height CameraHeight of the camera from the ground and the first stitching ratio length; calculating the second stitching ratio length of the length StitichLength corresponding to the set stitching range under the fourth ratio; determining the ending height EndStitchHeight corresponding to the stitching range based on the camera height CameraHeight of the camera from the ground and the second stitching ratio length.

[0088] In the embodiment of the present disclosure, determining the starting height StartStitchHeight corresponding to the stitching range based on the camera height CameraHeight of the camera from the ground and the first stitching ratio length includes: adding the camera height CameraHeight of the camera from the ground to the first stitching ratio length to determine the starting height StartStitchHeight corresponding to the stitching range.

[0089] In the embodiment of the present disclosure, determining the end height EndStitchHeight corresponding to the stitching range based on the camera height CameraHeight of the camera from the ground and the second stitching ratio length includes: subtracting the first stitching ratio length from the camera height CameraHeight of the camera from the ground to determine the end height EndStitchHeight corresponding to the stitching range.

[0090] In the embodiment of the present disclosure, if the camera is installed on the inside / outside of the shell on one side close to the center position of the light field window of the beam splitter, the half-splicing length corresponding to the set stitching range is calculated (the set stitching range × 1 / 2); the camera height CameraHeight from the ground is added to the half-splicing length to determine the starting height StartStitchHeight corresponding to the stitching range.

[0091] In the embodiment of the present disclosure and other possible embodiments, if the camera is installed on the inside / outside of the shell on one side close to the center of the light field window of the beam spotter, the mathematical expression corresponding to the starting height StartStitchHeight corresponding to the stitching range is configured as: StartStitchHeight = CameraHeight + SitichLength / 2.

[0092] In the embodiment of the present disclosure, if the camera is installed on the inside / outside of the shell on one side close to the center position of the light field window of the beam splitter, the half-splicing length corresponding to the set stitching range is calculated (the set stitching range × 1 / 2); the camera height CameraHeight from the ground is subtracted from the half-splicing length to determine the end height EndStitchHeight corresponding to the stitching range.

[0093] In the embodiment of the present disclosure and other possible embodiments, if the camera is installed on the inside / outside of the shell on one side close to the center of the light field window of the beam spotter, the mathematical expression corresponding to the end height EndStitchHeight corresponding to the stitching range is configured as: EndStitchHeight = CameraHeight - SitichLength / 2.

[0094] In an embodiment of the present disclosure, determining the second ratio and the fourth ratio corresponding to the light field window of the camera and the beam splitter in the vertical direction includes: calculating the second length corresponding to the light field window of the beam splitter in the vertical direction, dividing the second length into a third sub-length and a fourth sub-length using the position of the camera in the vertical direction, and configuring the ratios of the third sub-length and the fourth sub-length to the second length to be the second ratio and the fourth ratio, respectively.

[0095] In an embodiment of the present disclosure, the subject image is photographed using a camera installed on the collimator under a set collimator light field size; a first horizontal size of pixels in the subject image is determined; a set border is set within the subject image, and the boundary pixel position corresponding to the set border is determined based on the first width ImageWidtht or Width and the first height ImageHeight or Height of the subject image, the first size, the second size PointSizeY, and the second width and second height corresponding to the set border; the set collimator light field size is adjusted based on the first size, the second size PointSizeY and the boundary pixel position.

[0096] In the embodiments of the present disclosure and other possible embodiments, the subject image is captured by a camera mounted on the collimator under a set collimator light field size. The set collimator light field size does not restrict the camera shooting conditions for capturing the subject image by the camera mounted on the collimator. Rather, when capturing a set part of the subject using an X-ray camera, the camera needs to capture the subject under the set collimator light field size, thereby obtaining a digital X-ray image of the set part of the subject corresponding to the set collimator light field size. For example, the set part of the subject can be configured as the chest, head, neck, arm, leg, stomach, hand, foot, hip, and other possible parts.

[0097] In the embodiment of the present disclosure, adjusting the set beam spot light field size based on the first size, the second size PointSizeY and the boundary pixel position includes: adjusting the horizontal size of the set beam spot light field size based on the left boundary pixel position and the right boundary pixel position corresponding to the boundary pixel position and the first size; adjusting the vertical size of the set beam spot light field size based on the upper boundary SetTop pixel position and the lower boundary SetBottom pixel position corresponding to the boundary pixel position and the second size PointSizeY.

[0098] In an embodiment of the present disclosure, adjusting the horizontal size of the set beam spotter light field size based on the left boundary pixel position and the right boundary pixel position corresponding to the boundary pixel position and the first size includes: calculating the first boundary pixel position difference between the left boundary pixel position and the right boundary pixel position; calculating the first configuration size corresponding to the product of the first boundary pixel position difference and the first size, and adjusting the horizontal size of the set beam spotter light field size to the first configuration size.

[0099] In the embodiment of the present disclosure, the vertical size of the set beam spotter light field size is adjusted based on the upper boundary SetTop pixel position and the lower boundary SetBottom pixel position corresponding to the boundary pixel position and the second size PointSizeY, including: calculating the second boundary pixel position difference between the upper boundary SetTop pixel position and the lower boundary SetBottom pixel position; calculating the second configuration size corresponding to the product of the second boundary pixel position difference and the second size PointSizeY, and adjusting the vertical size of the set beam spotter light field size to the second configuration size.

[0100] In the embodiments of the present disclosure and other possible embodiments, in the embodiments of the present disclosure and other possible embodiments, the camera can be configured as a webcam, and the webcam can be installed inside the collimator to monitor the real-time status of the subject. The setting of the collimator light field size includes: the size in the horizontal direction CollimatorViewX and the size in the vertical direction CollimatorViewY. Furthermore, the first size PointSizeX in the horizontal direction and the second size PointSizeY in the vertical direction of the pixel point in the image of the subject taken by the camera installed on the collimator under the horizontal size CollimatorViewX and the vertical size CollimatorViewY corresponding to the set collimator light field size are determined. Wherein, the horizontal direction and the vertical direction are configured as two directions perpendicular to each other.

[0101] In the embodiments of the present disclosure and other possible embodiments, the camera can be configured as a webcam, and the webcam can be installed inside the beam spotter to monitor the video surveillance screen corresponding to the real-time status of the subject. Furthermore, a frame of image can be extracted from the video surveillance screen corresponding to the real-time status of the subject to obtain the subject image taken under the set beam spotter light field size. The distance from the webcam to the subject is Distance, in mm; the first field of view angle of the webcam in the horizontal direction is ViewAngleX, and the second field of view angle in the vertical direction is ViewAngleY, in °; a frame of image from the monitoring video is recorded as subject image A, and the width (first width) and height (first height) of the subject image A are Width and Height respectively; the first size PointSizeX in the horizontal direction and the second size PointSizeYPointSizeY in the vertical direction of each pixel in image A are calculated using the following formula, in mm;

[0102] In an embodiment of the present disclosure, determining the first horizontal size PointSizeX and the second vertical size PointSizeY of a pixel point in an image of a subject captured by a camera installed on the collimator under a set collimator light field size includes: obtaining a first field of view angle ViewAngleX in the horizontal direction, a second field of view angle ViewAngleX in the vertical direction, the distance Distance from the camera to the subject, and a first width Width and a first height Height corresponding to the image of the subject captured by the camera; determining the first horizontal size PointSizeX and the second vertical size PointSizeY of a pixel point in the image of the subject based on the first field of view ViewAngleX, the second field of view ViewAngleX, the first width Width, the first height Height, and the distance Distance from the camera to the subject.

[0103] In an embodiment of the present disclosure, determining a first horizontal size PointSizeX and a second vertical size PointSizeY of a pixel point in the image of the subject based on the first viewing angle ViewAngleX, the second viewing angle ViewAngleX, the first width Width, the first height Height, and the distance Distance from the camera to the subject includes: determining a first horizontal size PointSizeX of a pixel point in the image of the subject based on the first viewing angle ViewAngleX, the first width Width, and the distance Distance from the camera to the subject; and determining a second vertical size PointSizeY of a pixel point in the image of the subject based on the second viewing angle ViewAngleX, the first height Height, and the distance Distance from the camera to the subject.

[0104] In an embodiment of the present disclosure, determining the first horizontal size PointSizeX of the pixel point in the image of the subject based on the first field of view angle ViewAngleX, the first width Width and the distance Distance from the camera to the subject includes: calculating the first angle corresponding to the first field of view angle ViewAngleX in the horizontal direction; and determining the first horizontal size PointSizeX of the pixel point in the image of the subject based on the trigonometric function calculation rules and using the first angle, the first width Width and the distance Distance from the camera to the subject.

[0105] In an embodiment of the present disclosure, the method for calculating the first angle corresponding to the first viewing angle ViewAngleX in the horizontal direction includes: obtaining a first ratio p1 corresponding to the light field window of the camera and the beam splitter in the horizontal direction; calculating the first angle (π*ViewAngleX×p1) corresponding to the first viewing angle ViewAngleX under the first ratio p1 (first viewing angle ViewAngleX×first ratio p1).

[0106] In the embodiments of the present disclosure and other possible embodiments, determining the first ratio p1 corresponding to the light field window of the camera and the beam splitter in the horizontal direction includes: calculating the first length corresponding to the light field window of the beam splitter in the horizontal direction, dividing the first length into a first sub-length and a second sub-length using the position of the camera in the horizontal direction, and configuring the ratio of the first sub-length or the second sub-length to the first length to be a first ratio p1.

[0107] In an embodiment of the present disclosure, if the camera is installed on the inside / outside of a shell on one side close to the center position of the light field window of the beam splitter, the method for calculating the first angle corresponding to the first field of view angle ViewAngleX in the horizontal direction includes: calculating the first angle (π*ViewAngleX / 2) / 180 corresponding to the first half field of view angle (first field of view angle ViewAngleX / 2) corresponding to the first field of view angle ViewAngleX in the horizontal direction.

[0108] In the embodiment of the present disclosure and other possible embodiments, if the camera is installed on the inner side / outer side of the housing close to the center position of the light field window of the collimator, the first ratio p1 is configured to be 1 / 2.

[0109] In the embodiment of the present disclosure, based on the trigonometric function calculation rules, the first angle, the first width Width and the distance Distance from the camera to the subject are used to determine the first size PointSizeX of the pixel point in the subject image in the horizontal direction, including: calculating the first proportional width (first width Width×first proportional p1) corresponding to the first width Width under the first proportion p1; based on the trigonometric function calculation rules, the first angle, the first proportional width and the distance Distance from the camera to the subject are used to determine the first size PointSizeX of the pixel point in the subject image in the horizontal direction.

[0110] In the embodiments of the present disclosure and other possible embodiments, based on the trigonometric function calculation rules, the first angle (π*ViewAngleX×p1), the first proportional width and the distance Distance from the camera to the subject are used to determine that the mathematical expression corresponding to the first horizontal size PointSizeX of the pixel point in the subject image is configured as: PointSizeX=Distance×tan(π*(ViewAngleX×p1) / 180) / (Width×p1).

[0111] In an embodiment of the present disclosure, if the camera is installed on the inside / outside of a shell on one side close to the center position of the light field window of the beam spotter, the method for determining the first horizontal size PointSizeX of the pixel point in the image of the subject based on the trigonometric function calculation rules, using the first angle, the first width Width and the distance Distance from the camera to the subject, includes: calculating the first half width (first width Width / 2) corresponding to the first width Width; based on the trigonometric function calculation rules, using the first angle, the first half width and the distance Distance from the camera to the subject, determining the first horizontal size PointSizeX of the pixel point in the image of the subject.

[0112] In the embodiments of the present disclosure and other possible embodiments, the center position of the light field window is configured as one of the midpoint position of the horizontal center line of the light field window in the horizontal direction, the midpoint position of the vertical center line in the vertical direction perpendicular to the horizontal direction, and the intersection position of the horizontal center line and the vertical center line.

[0113] In the embodiments of the present disclosure and other possible embodiments, when the camera is installed on the inside / outside of a shell on one side close to the center position of the light field window of the beam spotter, the first half width (first width Width / 2) corresponding to the first width Width is calculated; based on the trigonometric function calculation rules, the first angle, the first half width and the distance Distance from the camera to the subject are used to determine the mathematical expression corresponding to the first horizontal size PointSizeX of the pixel point in the subject image: PointSizeX = (Distance*tan((π*ViewAngleX / 2) / 180)) / (Width / 2); wherein, the symbol * and the symbol × both represent multiplication operations in the present disclosure.

[0114] In an embodiment of the present disclosure, determining the second size PointSizeY of the pixel point in the image of the subject in the vertical direction based on the second field of view angle ViewAngleX, the first height Height and the distance Distance from the camera to the subject includes: calculating the second angle corresponding to the second field of view angle ViewAngleX in the vertical direction; based on trigonometric function calculation rules, using the second angle, the second width and the distance Distance from the camera to the subject, determining the second size PointSizeY of the pixel point in the image of the subject in the vertical direction.

[0115] In an embodiment of the present disclosure, the method for calculating the second angle corresponding to the second viewing angle ViewAngleX in the horizontal direction includes: obtaining a second ratio p2 of the light field window of the camera and the beam splitter in the vertical direction; calculating the second angle (π*ViewAngleX×p2) corresponding to the second viewing angle ViewAngleX at the second ratio p2 (second viewing angle ViewAngleX×second ratio p2).

[0116] In the embodiments of the present disclosure and other possible embodiments, determining the second ratio of the light field window of the camera and the beam splitter in the vertical direction includes: calculating the second length of the light field window of the beam splitter in the vertical direction, dividing the second length into a third sub-length and a fourth sub-length using the position of the camera in the vertical direction, and configuring the ratio of the third sub-length or the fourth sub-length to the second length to be a second ratio p2.

[0117] In an embodiment of the present disclosure, if the camera is installed on the inside / outside of a shell on one side close to the center position of the light field window of the beam splitter, the method for calculating the second angle corresponding to the second field of view angle ViewAngleX in the vertical direction includes: calculating the second angle (π*ViewAngleY / 2) / 180 corresponding to the second half field of view angle (second field of view angle ViewAngleX / 2) corresponding to the second field of view angle ViewAngleX in the vertical direction; wherein, if the camera is installed on the inside / outside of a shell on one side close to the center position of the light field window of the beam splitter, the first ratio configuration is 1 / 2.

[0118] In an embodiment of the present disclosure, the method of determining the second size PointSizeY of the pixel point in the image of the subject in the vertical direction based on the trigonometric function calculation rules and using the second angle, the second width and the distance Distance from the camera to the subject includes: calculating the second proportional width (second width × second proportional p2) corresponding to the second width under the second proportional p2; and determining the second size PointSizeY of the pixel point in the image of the subject in the vertical direction based on the trigonometric function calculation rules and using the second angle, the second proportional width and the distance Distance from the camera to the subject.

[0119] In the embodiments of the present disclosure and other possible embodiments, based on the trigonometric function calculation rules, the second angle (π*ViewAngleX×p2), the second proportional width and the distance Distance from the camera to the subject are used to determine that the second size PointSizeY of the pixel point in the subject image in the vertical direction is configured as: PointSizeY=Distance×tan(π*(ViewAngleY×p2) / 180) / (Width×p2).

[0120] In an embodiment of the present disclosure, if the camera is installed on the inside / outside of a shell on one side close to the center position of the light field window of the beam spotter, the method for determining the second size PointSizeY of the pixel point in the image of the subject in the vertical direction based on the trigonometric function calculation rules, using the second angle, the first height Height and the distance Distance from the camera to the subject, includes: calculating the first half height (first height Height / 2) corresponding to the first height Height; determining the second size PointSizeY of the pixel point in the image of the subject in the vertical direction based on the trigonometric function calculation rules, using the second angle, the first half height and the distance Distance from the camera to the subject.

[0121] In the embodiments of the present disclosure and other possible embodiments, when the camera is installed on the inside / outside of a shell on one side close to the center position of the light field window of the beam spotter, the first half height (first height Height / 2) corresponding to the first height Height is calculated; based on the trigonometric function calculation rules, the second angle, the first half height and the distance Distance from the camera to the subject are used to determine the second size PointSizeY of the pixel point in the subject image in the vertical direction, and the mathematical expression corresponding to the configuration is: PointSizeY = (Distance*tan((π*ViewAngleY / 2) / 180)) / (Heighth / 2); wherein, the symbol * and the symbol × both represent multiplication operations in the present disclosure.

[0122] In the embodiments of the present disclosure and other possible embodiments, the center position of the light field window is configured as one of the midpoint position of the horizontal center line of the light field window in the horizontal direction, the midpoint position of the vertical center line in the vertical direction perpendicular to the horizontal direction, and the intersection position of the horizontal center line and the vertical center line.

[0123] More specifically, in the embodiment of the present disclosure and other possible embodiments, a frame of image is extracted from the surveillance video and recorded as the subject image A, where the width (first width) and height (first height) of the subject image A are Width and Height, respectively. When the camera is mounted on the inner side / outer side of the housing near the center of the light field window of the beam spotter, the first horizontal size PointSizeX and the second vertical size PointSizeYPointSizeY of each pixel point in the subject image A are calculated using the following formulas, in mm: PointSizeX = (Distance*tan((π*ViewAngleX / 2) / 180)) / (Width / 2);

[0124] PointSizeY=(Distance*tan((π*ViewAngleY / 2) / 180)) / (Height / 2).

[0125] In the embodiments of the present disclosure and other possible embodiments, a set border is set in the subject image, and the boundary pixel position corresponding to the set border is determined based on the first width Width and the first height Height of the subject image, the first size PointSizeX, the second size PointSizeY, and the second width and second height corresponding to the set border.

[0126] In the embodiment of the present disclosure and other possible embodiments, setting a set frame within the subject image includes: determining a center position of the subject image; and setting a set frame within the subject image at the center position; wherein the subject image and the set frame have the same center position. The set frame can be configured as a rectangle or a square.

[0127] In an embodiment of the present disclosure, a set border is set in the subject image, and the boundary pixel position corresponding to the set border is determined according to the first width Width and the first height Height of the subject image, the first size PointSizeX, the second size PointSizeY, and the second width and second height corresponding to the set border, including: determining the left boundary pixel position and the right boundary pixel position corresponding to the boundary pixel position according to the first width Width, the second width Width2 and the first size PointSizeX; and determining the upper boundary pixel position and the lower boundary pixel position corresponding to the boundary pixel position according to the first height Height, the second height Height2 and the second size PointSizeY.

[0128] In an embodiment of the present disclosure, determining the left boundary pixel position and the right boundary pixel position corresponding to the boundary pixel position according to the first width Width, the second width and the first size PointSizeX, respectively, includes: determining the pixel width corresponding to the set border according to the second width and the first size PointSizeX; determining the left boundary pixel position and the right boundary pixel position corresponding to the boundary pixel position based on the first width Width and the pixel width.

[0129] In an embodiment of the present disclosure, determining the pixel width corresponding to the set border based on the second width and the first size; determining the left and right boundary pixel positions corresponding to the boundary pixel positions based on the first width and the pixel width includes: obtaining a first ratio and a third ratio corresponding to the light field windows of the camera and the beam splitter in the horizontal direction; calculating the first width minus the pixel width to obtain a width difference; calculating the width ratio difference corresponding to the width difference at the first ratio (the width difference × the first ratio) to obtain the left boundary pixel position; calculating the first width plus the pixel width to obtain a width accumulation value; calculating the width ratio accumulation value corresponding to the width accumulation value at the third ratio (the width accumulation value × the third ratio) to obtain the left boundary pixel position. Wherein, the sum of the first ratio and the third ratio is configured to be 1.

[0130] In an embodiment of the present disclosure, if the camera is installed on the inside / outside of a shell on one side close to the center position of the light field window of the beam splitter, the left boundary pixel position and the right boundary pixel position corresponding to the boundary pixel position are determined based on the first width Width and the pixel width, including: subtracting the pixel width from the first width Width to obtain a width difference; calculating the half-width difference corresponding to the width difference (dividing the width difference by 2) to obtain the left boundary pixel position; adding the pixel width to the first width Width to obtain a width cumulative value; calculating the half-width cumulative value corresponding to the width cumulative value (dividing the width cumulative value by 2) to obtain the right boundary pixel position; wherein, the first ratio and the third ratio are respectively configured to be 1 / 2.

[0131] In an embodiment of the present disclosure, determining the upper boundary pixel position and the lower boundary pixel position corresponding to the boundary pixel position according to the first height Height, the second height and the second size PointSizeY, respectively, includes: determining the pixel height corresponding to the set border according to the second height and the second size PointSizeY; determining the upper boundary pixel position and the lower boundary pixel position corresponding to the boundary pixel position based on the first height Height and the pixel height.

[0132] In an embodiment of the present disclosure, determining the pixel height corresponding to the set border based on the second height and the second size; determining the upper boundary pixel position and the lower boundary pixel position corresponding to the boundary pixel position based on the first height and the pixel height includes: obtaining a second ratio and a fourth ratio corresponding to the light field window of the camera and the beam splitter in the vertical direction; subtracting the pixel height from the first height to obtain a height difference; calculating the height difference of the height difference at the second ratio (the height difference × the second ratio) to obtain the upper boundary pixel position; adding the pixel height to the first height to obtain a height accumulation value; calculating the height ratio accumulation value corresponding to the height accumulation value at the fourth ratio (the height accumulation value × the fourth ratio) to obtain the lower boundary pixel position. Wherein, the sum of the second ratio and the fourth ratio is configured to be 1.

[0133] In an embodiment of the present disclosure, if the camera is installed on the inside / outside of a shell on one side close to the center position of the light field window of the beam splitter, the upper boundary pixel position and the lower boundary pixel position corresponding to the boundary pixel position are determined based on the first height Height and the pixel height, including: subtracting the pixel height from the first height Height to obtain a height difference; calculating the half-height difference corresponding to the height difference (dividing the height difference by 2) to obtain the upper boundary pixel position; adding the pixel height to the first height Height to obtain a height accumulation value; calculating the half-height accumulation value corresponding to the height accumulation value (dividing the height accumulation value by 2) to obtain the lower boundary pixel position; wherein, the third ratio and the fourth ratio are respectively configured to be 1 / 2.

[0134] In the embodiment of the present disclosure and other possible embodiments, if the camera is mounted on the inside / outside of a housing near the center of the light field window of the beam splitter, the first ratio and the third ratio are respectively configured as 1 / 2; the third ratio and the fourth ratio are respectively configured as 1 / 2. Furthermore, the upper boundary pixel position (Top), the lower boundary pixel position (Bottom), the left boundary pixel position (Left), and the right boundary pixel position (Right) are calculated using the following formulas: Top = (Height - Height2 / PointSizeY) / 2; Bottom = (Height2 + Height2 / PointSizeY) / 2; Left = (Width - Width2 / PointSizeX) / 2;

[0135] Right = (Width + Width2 / PointSizeX) / 2, where Width2 represents the second width, and Height2 represents the second height.

[0136] In the embodiment of the present disclosure and other possible embodiments, the set beam spot size is adjusted based on the first size PointSizeX, the second size PointSizeY, and the boundary pixel position.

[0137] In an embodiment of the present disclosure, the setting of the beam spotter light field size is adjusted based on the first size PointSizeX, the second size PointSizeY and the boundary pixel position, including: adjusting the horizontal size of the setting beam spotter light field size based on the left boundary pixel position and the right boundary pixel position corresponding to the boundary pixel position and the first size PointSizeX; adjusting the vertical size of the setting beam spotter light field size based on the upper boundary pixel position and the lower boundary pixel position corresponding to the boundary pixel position and the second size PointSizeY.

[0138] In an embodiment of the present disclosure, the horizontal size of the set collimator light field size is adjusted based on the left boundary pixel position and the right boundary pixel position corresponding to the boundary pixel position and the first size PointSizeX, including: calculating the first boundary pixel position difference between the left boundary pixel position and the right boundary pixel position; calculating the first configuration size CollimatorViewX1 corresponding to the product of the first boundary pixel position difference and the first size PointSizeX, and adjusting the horizontal size CollimatorViewX of the set collimator light field size to the first configuration size CollimatorViewX1.

[0139] In an embodiment of the present disclosure, the vertical size of the set collimator light field size is adjusted based on the upper boundary pixel position and the lower boundary pixel position corresponding to the boundary pixel position and the second size PointSizeY, including: calculating the second boundary pixel position difference between the upper boundary pixel position and the lower boundary pixel position; calculating the second configuration size CollimatorViewY1 corresponding to the product of the second boundary pixel position difference and the second size PointSizeY, and adjusting the vertical size CollimatorViewY of the set collimator light field size to the second configuration size CollimatorViewY1.

[0140] In the embodiment of the present disclosure and other possible embodiments, a first boundary pixel position difference (Right-Left) between the left boundary pixel position and the right boundary pixel position is calculated; a first configuration size (CollimatorViewX1) corresponding to the product of the first boundary pixel position difference (Right-Left) and the first size (PointSizeX) is calculated; and the horizontal size (CollimatorViewX) of the set collimator light field size is adjusted to the first configuration size (CollimatorViewX1). Furthermore, the corresponding mathematical expression can be configured as: CollimatorViewX1 = (Right-Left + 1) * PointSizeX.

[0141] In the embodiment of the present disclosure and other possible embodiments, a second boundary pixel position difference (Bottom-Top) between the upper boundary pixel position and the lower boundary pixel position is calculated; a second configuration size (CollimatorViewY1) corresponding to the product of the second boundary pixel position difference (Bottom-Top) and the second size (PointSizeY) is calculated, and the vertical size (CollimatorViewY) of the set collimator light field size is adjusted to the second configuration size (CollimatorViewY1). Furthermore, the corresponding mathematical expression can be configured as: ollimatorViewY1 = (Bottom-Top + 1) * PointSizeY.

[0142] In the embodiments of the present disclosure and other possible embodiments, the set border set within the subject image can be adjusted in real time, thereby obtaining the upper boundary adjustment pixel position Top1 corresponding to the upper boundary pixel position Top, the lower boundary adjustment pixel position Bottom1 corresponding to the lower boundary pixel position Bottom, the left boundary adjustment pixel position Left1 corresponding to the left boundary pixel position Left, and the right boundary adjustment pixel position Right1 corresponding to the right boundary pixel position Right. Furthermore, the corresponding mathematical expressions can be configured as: CollimatorViewX1 = (Right1 - Left1 + 1) * PointSizeX; CollimatorViewY1 = (Bottom1 - Top1 + 1) * PointSizeY.

[0143] In an embodiment of the present disclosure, the digital X-ray image shooting method further includes, if the subject is set to be configured as the lung, then, under the beam field size of the beam spotter, obtaining at least one diaphragm sequence of a dynamic right lung diaphragm sequence and a dynamic left lung diaphragm sequence corresponding to multiple dynamic X-ray two-dimensional chest images during breathing; determining the right lung reference diaphragm length by the shortest length in the first length sequence corresponding to the dynamic right lung diaphragm sequence; based on the right lung reference diaphragm length, the first length in the first length sequence excluding the right lung reference diaphragm length, and the first preset length difference, determining the other right lung diaphragms as a normal right diaphragm or an abnormal right diaphragm; and / or, determining the left lung reference diaphragm length by the shortest length in the second length sequence corresponding to the dynamic left lung diaphragm sequence; based on the left lung reference diaphragm length, the second length in the second length sequence excluding the left lung reference diaphragm length, and the second preset length difference, determining the other left lung diaphragms as a normal left diaphragm or an abnormal left diaphragm. This is to solve the problem that the existing technology cannot detect normal diaphragms or abnormal diaphragms, resulting in the inability to subsequently optimize the positioning of abnormal diaphragms.

[0144] In the embodiments of the present disclosure and other possible embodiments, the X-ray two-dimensional chest image may be referred to as a chest (lung) X-ray two-dimensional image or a two-dimensional X-ray chest (lung) image or an X-ray two-dimensional lung image, etc. Any two or more combinations of X-ray / DR, two-dimensional, chest / lung, and images express the same meaning.

[0145] In the embodiment of the present disclosure and other possible embodiments, at least one diaphragm sequence of a dynamic right lung diaphragm sequence and a dynamic left lung diaphragm sequence corresponding to multiple dynamic X-ray two-dimensional chest images during breathing is acquired.

[0146] In the embodiments of the present disclosure and other possible embodiments, a digital X-ray (DR) imaging device can provide high-resolution and real-time X-ray (X-ray) two-dimensional images. The DR imaging device can be used to image the chest to obtain a corresponding X-ray two-dimensional chest image. For example, in the embodiments of the present disclosure and other possible embodiments, the digital X-ray imaging device can be used to photograph the chest including the lungs during free breathing or forced breathing to obtain a plurality of dynamic X-ray two-dimensional chest images (dynamic X-ray two-dimensional chest images to be positioned) corresponding to a plurality of continuous time series during the breathing process. At the same time, the digital X-ray imaging device can also be used to photograph the chest including the lungs in a breath-holding state to obtain a plurality of dynamic X-ray two-dimensional chest images (X-ray two-dimensional chest images to be positioned) corresponding to a plurality of continuous time series during the breath-holding state. Specifically, the dynamic multiple X-ray two-dimensional chest images during breathing or the dynamic multiple X-ray two-dimensional chest images in a breath-holding state include at least one X-ray two-dimensional chest image.

[0147] In the embodiments of the present disclosure and other possible embodiments, the lung image to be segmented (dynamic multiple X-ray two-dimensional chest images during the breathing process / dynamic X-ray two-dimensional chest image to be positioned) is segmented into a left chest image and a right chest image; and the left lung and right lung segmentation are performed based on the left chest image and the right chest image, respectively.

[0148] In the embodiments of the present disclosure and other possible embodiments, the lung image to be segmented (the dynamic multiple X-ray two-dimensional chest images during the breathing process / dynamic X-ray two-dimensional chest image to be positioned) is segmented into a left chest image and a right chest image; left lung and right lung segmentation are performed based on the left chest image and the right chest image, respectively; or, a preset convolutional neural network segmentation model, a DR lung region label image for training the segmentation model, and multiple DR lung images to be segmented at multiple moments during the breathing process or in the breath-holding state (lung image to be segmented / dynamic multiple X-ray two-dimensional chest images to be segmented during the breathing process / dynamic X-ray two-dimensional chest image to be segmented). ; Wherein, the method for determining the DR lung area label image for training the segmentation model includes: performing costal margin boundary, lung apex boundary, and mediastinal and diaphragmatic edge detection on the left chest image and the right chest image of multiple DR lung area images respectively to obtain the DR lung area label images corresponding to the multiple DR lung area images; using the DR lung area label images for training the segmentation model to train the segmentation model; based on the trained segmentation model, completing the left lung and / or right lung segmentation of the multiple DR lung images to be segmented (i.e., the X-ray two-dimensional chest image to be positioned / X-ray two-dimensional chest image) to obtain the right lung mask image and / or the left lung mask image. Wherein, the lung field mask value corresponding to the right lung mask image can be configured as 1, and the lung field mask value corresponding to the left lung mask image can be configured as 2.

[0149] In the embodiments of the present disclosure and other possible embodiments, the lung areas (lung fields) of multiple DR lung images to be segmented (lung images to be segmented / dynamic multiple X-ray two-dimensional chest images to be segmented during breathing / dynamic X-ray two-dimensional chest images to be segmented and positioned) at multiple moments during breathing or breath-holding can be marked manually to obtain the DR lung area label images (X-ray two-dimensional lung areas / lung field label images) used to train the segmentation model; then, the DR lung area label images (X-ray two-dimensional lung areas / lung field label images) are used to train the segmentation model; finally, the trained segmentation model (preset lung field segmentation model) is used to perform lung field segmentation on the dynamic multiple X-ray two-dimensional chest images respectively to obtain the right lung mask image sequence and / or the left lung mask image sequence.

[0150] In an embodiment of the present disclosure and other possible embodiments, before respectively acquiring at least one mask edge image sequence of a right lung mask edge image sequence (right lung mask edge image) and a left lung mask edge image sequence (left lung mask edge image) corresponding to a dynamic plurality of X-ray two-dimensional chest images (X-ray two-dimensional chest images to be positioned), a method for respectively determining the right lung mask edge image sequence and / or the left lung mask edge image sequence corresponding to the dynamic plurality of X-ray two-dimensional chest images includes: using an erosion template of a set size to erode the right lung mask image sequence and / or the left lung mask image sequence to obtain a corresponding right lung mask erosion image sequence (right lung mask erosion image) and / or left lung mask erosion image sequence (left lung mask erosion image); and determining the right lung mask edge image sequence and / or the left lung mask edge image sequence based on the right lung mask image sequence and its corresponding right lung mask erosion image sequence and / or based on the left lung mask image sequence and its corresponding left lung mask erosion image sequence.

[0151] In the embodiment of the present disclosure and other possible embodiments, the set of left lung mask edge images corresponding to each of the dynamic multiple X-ray two-dimensional chest images constitutes a left lung mask edge image sequence; similarly, the set of right lung mask edge images corresponding to each of the dynamic multiple X-ray two-dimensional chest images constitutes a right lung mask edge image sequence.

[0152] In the embodiment of the present disclosure and other possible embodiments, the set of right lung mask erosion images corresponding to each of the dynamic multiple X-ray two-dimensional chest images constitutes a right lung mask erosion image sequence; similarly, the set of left lung mask erosion images corresponding to each of the dynamic multiple X-ray two-dimensional chest images constitutes a left lung mask erosion image sequence.

[0153] In the embodiments of the present disclosure and other possible embodiments, the method for determining the right lung mask edge image sequence based on the right lung mask image sequence and its corresponding right lung mask erosion image sequence includes: subtracting the pixel value of the corresponding position of the right lung mask erosion image sequence from the pixel value of each position in the right lung mask image sequence to determine the right lung mask edge image sequence.

[0154] In the embodiments of the present disclosure and other possible embodiments, the method for determining the left lung mask edge image sequence based on the left lung mask image sequence and its corresponding left lung mask erosion image sequence includes: subtracting the pixel value of the corresponding position of the left lung mask erosion image sequence from the pixel value of each position in the left lung mask image sequence to determine the left lung mask edge image sequence.

[0155] In the embodiments of the present disclosure and other possible embodiments, before respectively determining the right lung mask edge image sequence and / or the left lung mask edge image sequence corresponding to the dynamic multiple X-ray two-dimensional chest images, a preset lung field segmentation model is used to perform lung field segmentation on the dynamic multiple X-ray two-dimensional chest images to obtain the right lung mask image sequence and / or the left lung mask image sequence.

[0156] In the embodiment of the present disclosure and other possible embodiments, the erosion template of the set size can be configured as an N×N erosion template with each pixel value of 1; using the N×N erosion template with each pixel value of 1, the right lung mask image and / or the left lung mask image are eroded respectively to obtain the corresponding right lung mask erosion image and / or left lung mask erosion image. Specifically, using the erosion template of the set size (N×N with each pixel value of 1), the right lung mask image and / or the left lung mask image are traversed according to rows / columns respectively to obtain the corresponding right lung mask erosion image and / or left lung mask erosion image.

[0157] In an embodiment of the present disclosure, a method for determining the first length sequence corresponding to the dynamic right pulmonary diaphragm sequence includes: respectively counting the sum of the number of first pixel values corresponding to each right pulmonary diaphragm in the dynamic right pulmonary diaphragm sequence; and respectively based on the sum of the number of first pixel values corresponding to each right pulmonary diaphragm and the area corresponding to each pixel, obtaining the first length sequence corresponding to the dynamic right pulmonary diaphragm sequence. The method for determining the first length sequence corresponding to the dynamic right pulmonary diaphragm sequence based on the sum of the number of first pixel values corresponding to each right pulmonary diaphragm and the area corresponding to each pixel includes: respectively multiplying the sum of the number of first pixel values corresponding to each right pulmonary diaphragm by the area corresponding to each pixel to obtain the first length sequence corresponding to the dynamic right pulmonary diaphragm sequence.

[0158] In an embodiment of the present disclosure, a method for determining the second length sequence corresponding to the dynamic left pulmonary diaphragm sequence includes: respectively counting the sum of the number of second pixel values corresponding to each left pulmonary diaphragm in the dynamic left pulmonary diaphragm sequence; and obtaining the second length sequence corresponding to the dynamic left pulmonary diaphragm sequence based on the sum of the number of second pixel values corresponding to each left pulmonary diaphragm and the area corresponding to each pixel. The method for determining the second length sequence corresponding to the dynamic left pulmonary diaphragm sequence based on the sum of the number of second pixel values corresponding to each left pulmonary diaphragm and the area corresponding to each pixel includes: respectively multiplying the sum of the number of second pixel values corresponding to each left pulmonary diaphragm by the area corresponding to each pixel to obtain the second length sequence corresponding to the dynamic left pulmonary diaphragm sequence.

[0159] In the embodiments of the present disclosure and other possible embodiments, the area corresponding to each pixel can be obtained by reading a DICOM (Digital Imaging and Communications in Medicine) file corresponding to multiple dynamic two-dimensional X-ray chest images during breathing. DICOM, or Digital Imaging and Communications in Medicine, is an international standard (ISO 12052) for medical images and related information, which defines a medical image format that can be used for data exchange and has quality that meets clinical needs. Furthermore, the area corresponding to each pixel can be input using an input device (such as a keyboard).

[0160] In the embodiment of the present disclosure and other possible embodiments, the units of the first length sequence and / or the second length sequence are configured as pixel values. The first length sequence is obtained by counting the sum of the first pixel values corresponding to each right diaphragm muscle in the dynamic right diaphragm sequence, and / or the second length sequence is obtained by counting the sum of the second pixel values corresponding to each left diaphragm muscle in the dynamic left diaphragm sequence.

[0161] Meanwhile, in the embodiments of the present disclosure and other possible embodiments, the first preset length difference and the second preset length difference configuration values may be the same or different. For example, the first value corresponding to the first preset length difference may be configured as any value between 10 and 50 pixels; and the second value corresponding to the second preset length difference may be configured as any value between 10 and 50 pixels. Furthermore, those skilled in the art may also configure the first value corresponding to the first preset length difference and the second value corresponding to the second preset length difference to other values according to actual needs.

[0162] For example, in the embodiment of the present disclosure and other possible embodiments, the first numerical value corresponding to the first preset length difference and the second numerical value corresponding to the second preset length difference can be configured as any one of 10, 20, 30, 40, and 50, respectively.

[0163] In an embodiment of the present disclosure, before acquiring at least one diaphragm sequence of a dynamic right lung diaphragm sequence and a dynamic left lung diaphragm sequence corresponding to multiple dynamic X-ray two-dimensional chest images during breathing, a method for determining the corresponding dynamic right lung diaphragm sequence and / or dynamic left lung diaphragm sequence according to multiple dynamic X-ray two-dimensional chest images during breathing comprises: acquiring at least one mask edge image sequence of a right lung mask edge image sequence (right lung mask edge image) and a left lung mask edge image sequence (left lung mask edge image) corresponding to multiple dynamic X-ray two-dimensional chest images (dynamic X-ray two-dimensional chest images to be positioned during breathing / dynamic lung images during breathing); and determining each right lung mask edge image sequence in the right lung mask edge image sequence. The invention relates to a method for positioning the right pulmonary diaphragm based on the right pulmonary apex, the right costophrenic angle point and the right lung mask edge image corresponding to each of the dynamic multiple X-ray two-dimensional chest images (each right lung mask edge image); and / or, determining the left pulmonary apex corresponding to each left lung mask edge image in the left lung mask edge image sequence, and determining the right costophrenic angle point corresponding to each left lung mask edge image in the right lung mask edge image sequence and / or the left costophrenic angle point corresponding to the left lung mask edge image sequence; positioning the left pulmonary diaphragm based on the right cardiophrenic angle, the left pulmonary apex, the left costophrenic angle point and the left lung mask edge image corresponding to the right pulmonary diaphragm corresponding to each of the dynamic multiple X-ray two-dimensional chest images (each left lung mask edge image). Among them, the set of right lung diaphragms corresponding to each X-ray two-dimensional chest image in the dynamic multiple X-ray two-dimensional chest images constitutes a dynamic right lung diaphragm sequence; similarly, the set of left lung diaphragms corresponding to each X-ray two-dimensional chest image in the dynamic multiple X-ray two-dimensional chest images constitutes a dynamic left lung diaphragm sequence.

[0164] In an embodiment of the present disclosure, the method of respectively determining the right lung apex corresponding to the right lung mask edge image sequence includes: respectively detecting the right lung vertex corresponding to each right lung mask edge image in the right lung mask edge image sequence, and respectively configuring the right lung vertex as the right lung apex corresponding to the right lung mask edge image sequence.

[0165] In an embodiment of the present disclosure, the method of respectively determining the left lung apex corresponding to the left lung mask edge image sequence includes: respectively detecting the left lung vertex corresponding to each left lung mask edge image in the left lung mask edge image sequence, and respectively configuring the left lung vertex as the left lung apex corresponding to the left lung mask edge image sequence.

[0166] In an embodiment of the present disclosure, the method for respectively determining the right costophrenic angle points corresponding to the right lung mask edge image sequence includes: respectively detecting the right lung lowest point corresponding to each right lung mask edge image in the right lung mask edge image sequence, and respectively configuring the right lung lowest point as the right costophrenic angle point corresponding to the right lung mask edge image sequence.

[0167] In an embodiment of the present disclosure, the method for respectively determining the left costophrenic angle points corresponding to the left lung mask edge image sequence includes: respectively detecting the lowest point of the left lung corresponding to each left lung mask edge image in the left lung mask edge image sequence, and respectively configuring the lowest point of the left lung as the left costophrenic angle point corresponding to the left lung mask edge image sequence.

[0168] In an embodiment of the present disclosure, the method for locating the right pulmonary diaphragm based on the right pulmonary apex, the right costophrenic angle point and the right lung mask edge image corresponding to each of the dynamic multiple X-ray two-dimensional chest images includes: determining the corresponding first straight line based on the right pulmonary apex and the right costophrenic angle point corresponding to each of the dynamic multiple X-ray two-dimensional chest images; calculating multiple first distances from multiple first pixel position points (first pixel points) on the right edge line (right heart edge line close to the heart) of the right lung mask edge image from the right pulmonary apex to the right costophrenic angle point to the first straight line; configuring the first pixel position point corresponding to the maximum distance among the multiple first distances as the right cardiophrenic angle, and configuring and locating the mask edge line segment corresponding to the right lung mask edge image between the right cardiophrenic angle and the right costophrenic angle point as the corresponding right pulmonary diaphragm.

[0169] In an embodiment of the present disclosure, the method for locating the left lung diaphragm based on the right cardiophrenic angle, the left lung apex, the left costophrenic angle point and the left lung mask edge image corresponding to the right lung diaphragm respectively corresponding to the dynamic multiple X-ray two-dimensional chest images includes: determining the auxiliary point corresponding to the corresponding lung mask edge image based on the coordinate point of the right cardiophrenic angle corresponding to each of the dynamic multiple X-ray two-dimensional chest images and the set increment in the y direction; determining the corresponding second straight line based on the left lung apex and the left costophrenic angle point; calculating multiple second distances from multiple second pixel position points (second pixel points) on the left edge line (left heart edge line close to the heart side) of the left lung mask edge image from the right lung apex to the auxiliary point to the second straight line; configuring the second pixel position point corresponding to the maximum distance among the multiple second distances as the left cardiophrenic angle (left cardiophrenic angle point), and configuring and locating the mask edge line segment corresponding to the left lung mask edge image between the left cardiophrenic angle and the left costophrenic angle point as the corresponding left lung diaphragm.

[0170] In the embodiments of the present disclosure and other possible embodiments, the right costophrenic angle point or left costophrenic angle point corresponding to the left or right lung is close to the origin of the xoy coordinate system; the ordinate of the right lung apex or left lung apex corresponding to the left or right lung is greater than the ordinate of the corresponding right costophrenic angle point or left costophrenic angle point. For example, the right costophrenic angle point corresponding to the right lung is close to the origin of the xoy coordinate system, and the y-axis is configured in the direction from the right costophrenic angle point to the right lung apex, and the y-axis is configured in the direction from the right costophrenic angle point to the left costophrenic angle point.

[0171] For example, in the embodiment of the present disclosure and other possible embodiments, the method for determining the corresponding first straight line based on the right apex A1 and the right costophrenic angle point B1 includes: based on the right apex A1 (x A1 ,y A1 ) and the right costophrenic angle point B1 (x B1 ,y B1 ) Determine a first coefficient a1, a second coefficient b1, and a third coefficient c1 corresponding to the first straight line Line1; determine the first straight line Line1 based on the first coefficient a1, the second coefficient b1, and the third coefficient c1.

[0172] Line1:a1x+b1y+c1=0.

[0173] Furthermore, before respectively calculating a plurality of first distances from a plurality of first pixel points on the right edge line A1B1 of the right lung mask edge image (the right heart edge line close to the heart side) from the right lung apex A1 to the right costophrenic angle point B1 to the first straight line, the right edge line A1B1 of the right lung mask edge image is determined based on the right lung apex A1 to the right costophrenic angle point B1. The determination method includes: taking the right lung apex A1 as the starting point, respectively calculating the right lung mask edge line of the right lung mask edge image along the right lung mask edge line. The length of the first edge line and the length of the second edge line from the right lung apex to the right costophrenic angle point A1 to the right costophrenic angle point B1 are calculated / the length of the first edge line and the length of the second edge line from the right lung apex to the right costophrenic angle point B1 to the right lung apex A1 are calculated; wherein, the first edge line and the second edge line are respectively distributed on both sides of the first straight line Line1, and the longest edge line between the length of the first edge line and the length of the second edge line is configured as the right edge line A1B1 of the right lung mask edge image.

[0174] For example, in the embodiments of the present disclosure and other possible embodiments, the method of respectively calculating multiple first distances from multiple first pixel points on the right edge line A1B1 (the right heart edge line close to the heart) of the right lung mask edge image from the right lung apex A1 to the right costophrenic angle point B1 to the first straight line includes: taking the right lung apex A1 as the starting point / end point and the right costophrenic angle point B1 as the end point / starting point, and sequentially calculating multiple first distances from multiple first pixel points to the first straight line Line1 along the right edge line A1B1 of the right lung mask edge image. Furthermore, the first pixel point corresponding to the maximum distance among the multiple first distances is configured as the right cardiophrenic angle C1, and the mask edge line segment corresponding to the right lung mask edge image between the right cardiophrenic angle C1 and the right costophrenic angle point B1 is configured and positioned as the right lung diaphragm B1C1.

[0175] Specifically, in the embodiment of the present disclosure and other possible embodiments, a calculation formula corresponding to the right atrial phrenic angle C1 (x, y) is provided.

[0176]

[0177] in, Represents the multiple first pixel points p r1 ,p r2 ,p r3 ,...,p rn A plurality of first distances (d r1 (p r1 ),d r2 (p r2 ),d r3 (p r3 ),...,d rn (p rn )); r represents the right lung; n ≥ 1 and is a positive integer; max() represents the maximum function; (x r1 ,y r1 ),(x r2 ,y r2 ),(x r3 ,y r3 ),...,(x rn ,y rn ) represent multiple first pixel points p r1 ,p r2 ,p r3 ,...,p rn Corresponding coordinates; d r1 ,d r2 ,d r3 ,...,d rn Respectively represent multiple first pixel points p r1 ,p r2 ,pr3 ,...,p rn The corresponding Euclidean distance.

[0178] In an embodiment of the present disclosure, the method for locating the left lung diaphragm based on the right cardiophrenic angle, the left lung apex, the left costophrenic angle point and the left lung mask edge image corresponding to the right lung diaphragm includes: determining the auxiliary point corresponding to the lung mask edge image based on the coordinate point of the right cardiophrenic angle and the set increment in the y direction; determining the corresponding second straight line based on the left lung apex and the left costophrenic angle point; respectively calculating multiple second distances from multiple second pixel points on the left edge line of the left lung mask edge image (the left heart edge line close to the heart side) from the right lung apex to the auxiliary point to the second straight line; configuring the second pixel point corresponding to the maximum distance among the multiple second distances as the left cardiophrenic angle (left cardiophrenic angle point), and configuring and locating the mask edge line segment corresponding to the left lung mask edge image between the left cardiophrenic angle and the left costophrenic angle point as the left lung diaphragm.

[0179] In an embodiment of the present disclosure, the method for determining the auxiliary point corresponding to the lung mask edge image based on the coordinate point of the right cardiophrenic angle and the set increment in the y direction includes: adding the ordinate of the coordinate point to the set increment in the y direction to obtain a corresponding auxiliary line parallel to the x direction; and determining the intersection of the auxiliary line and the left lung mask edge image as the auxiliary point corresponding to the lung mask edge image.

[0180] In an embodiment of the present disclosure, the method of determining the intersection of the auxiliary line and the left lung mask edge image as the auxiliary point corresponding to the lung mask edge image includes: the intersection of the auxiliary line and the left lung mask edge image includes: a first group of intersections and a second group of intersections; and determining the intersection with the smaller / smallest horizontal coordinate in the first group of intersections and the second group of intersections as the auxiliary point corresponding to the lung mask edge image.

[0181] For example, in the embodiment of the present disclosure and other possible embodiments, the ordinate y of the coordinate point C1 (x, y) of the right heart phrenic angle is C1 Add / subtract the above-mentioned increment Δy in the y direction to obtain the corresponding auxiliary line parallel to the x direction (y C1 + / -Δy); the auxiliary line (y C1 The intersection of the auxiliary line (+ / -Δy) and the left lung mask edge image is determined as the auxiliary point C2' corresponding to the lung mask edge image. Specifically, the intersection points of the auxiliary line and the left lung mask edge image include: a first group of intersection points and a second group of intersection points; the intersection point with the smaller / smallest horizontal coordinate in the first group of intersection points and the second group of intersection points is determined as the auxiliary point C2' corresponding to the lung mask edge image.

[0182] Specifically, the ordinate y of the coordinate point C1(x,y) of the right heart diaphragm angle is C1 When the set increment Δy in the y direction is added, the set increment Δy is configured as a negative value; or, the ordinate y of the coordinate point C1 (x, y) of the right heart diaphragm angle is set to C1 When the set increment Δy in the y direction is subtracted, the set increment Δy is configured as a positive value. A calculation formula corresponding to the auxiliary point C2'(x,y) is given, namely C'2(x,y)=C1(x,y-Δy).

[0183] Furthermore, in the embodiment of the present disclosure and other possible embodiments, a corresponding second straight line Line2 is determined based on the left apex A2 and the left costophrenic angle point B2; the method for determining the corresponding second straight line Line2 based on the left apex A2 and the left costophrenic angle point B2 includes: A2 ,y A2 ) and the left costophrenic angle point B2 (x B2 ,y B2 ) Determine the fourth coefficient a2, the fifth coefficient b2 and the sixth coefficient c2 corresponding to the second straight line Line2; based on the fourth coefficient a2, the fifth coefficient b2 and the sixth coefficient c2; determine the second straight line Line2.

[0184] Line2:a2x+b2y+c2=0.

[0185] Furthermore, before respectively calculating a plurality of second distances from a plurality of second pixel points on the left edge line A2B2 (the left heart edge line close to the heart) of the left lung mask edge image from the left lung apex A2 to the ischial diaphragm angle point B2 to the second straight line, the left edge line A2B2 of the left lung mask edge image is determined based on the left lung apex A2 to the ischial diaphragm angle point B2. The determination method includes: taking the left lung apex A2 as the starting point, respectively calculating the left lung mask edge line along the left lung mask edge image. The third edge line length and the fourth edge line length from the apex of the lung to the left costophrenic angle point from the apex of the lung A2 to the ischial phrenic angle point B2 are calculated. The third edge line length and the fourth edge line length from the ischial phrenic angle point B2 to the left apex of the lung A2 to the left costophrenic angle point are calculated. The third edge line and the fourth edge line length are respectively distributed on both sides of the second straight line Line2. The longest edge line between the length of the first edge line and the length of the second edge line is configured as the left edge line A2B2 of the right lung mask edge image.

[0186] For example, in the embodiment of the present disclosure and other possible embodiments, the method of respectively calculating multiple second distances from multiple second pixel points on the left edge line A1B1 (left heart edge line close to the heart) of the right lung mask edge image from the left lung apex A2 to the ischial phrenic angle point B2 to the second straight line includes: taking the left lung apex A2 as the starting point / end point and the ischial phrenic angle point B2 as the end point / starting point, and sequentially calculating multiple second distances from multiple second pixel points to the second straight line Line2 along the left edge line A1B1 of the left lung mask edge image. Furthermore, the second pixel point corresponding to the maximum distance among the multiple second distances is configured as the right cardiophrenic angle C2, and the mask edge line segment corresponding to the right lung mask edge image between the left cardiophrenic angle C2 and the ischial phrenic angle point B2 is configured and positioned as the left lung diaphragm B2C2.

[0187] Specifically, in the embodiment of the present disclosure and other possible embodiments, a calculation formula corresponding to the right atrial phrenic angle C2(x,y) is provided.

[0188]

[0189] in, Represents the plurality of second pixel points p l1 ,p l2 ,p l3 ,...,p ln A plurality of first distances d to the second straight line Line2 l1 (p l1 ),d l2 (p l2 ),d l3 (p l3 ),...,d ln (p ln ); l represents the right lung; n ≥ 1 and is a positive integer; max() represents the maximum function; (x l1 ,y l1 ),(x l2 ,y l2 ),(x l3 ,y l3 ),...,(x ln ,y ln ) represent multiple first pixel points p l1 ,p l2 ,p l3 ,...,p ln Corresponding coordinates; d l1 ,d l2 ,d l3 ,...,d ln Respectively represent multiple first pixel points p l1 ,p l2 ,pl3 ,...,p ln The corresponding Euclidean distance.

[0190] In the embodiments of the present disclosure and other possible embodiments, the right lung diaphragm length is determined by the shortest length in the first length sequence corresponding to the dynamic right lung diaphragm sequence; based on the right lung reference diaphragm length, the first length in the first length sequence other than the right lung reference diaphragm length, and the first preset length difference, the other right lung diaphragms are respectively determined to be normal right diaphragms or abnormal right diaphragms; and / or, the left lung reference diaphragm length is determined by the shortest length in the second length sequence corresponding to the dynamic left lung diaphragm sequence; based on the left lung reference diaphragm length, the second length in the second length sequence other than the left lung reference diaphragm length, and the second preset length difference, the other left lung diaphragms are respectively determined to be normal left diaphragms or abnormal left diaphragms.

[0191] In an embodiment of the present disclosure, the method of determining the right lung reference diaphragm length by the shortest length in the first length sequence corresponding to the dynamic right lung diaphragm sequence; and determining the other right lung diaphragms as a normal right diaphragm or an abnormal right diaphragm based on the right lung reference diaphragm length, the first length in the first length sequence except the right lung reference diaphragm length, and a first preset length difference, includes: determining the right lung reference diaphragm by the right lung diaphragm with the shortest length in the first length sequence corresponding to the dynamic right lung diaphragm sequence; and determining the other right lung diaphragms as a normal right diaphragm or an abnormal right diaphragm based on the first reference length corresponding to the right lung reference diaphragm, the first length corresponding to the other right lung diaphragms in the dynamic right lung diaphragm sequence except the right lung reference diaphragm, and a first preset length difference.

[0192] In an embodiment of the present disclosure, the method of determining the left lung reference diaphragm length by the shortest length in the second length sequence corresponding to the dynamic left lung diaphragm sequence; and determining that the other left lung diaphragms are normal left diaphragms or abnormal left diaphragms based on the left lung reference diaphragm length, the second length in the second length sequence except the left lung reference diaphragm length, and the second preset length difference includes: determining the left lung reference diaphragm by the shortest left lung diaphragm in the second length sequence corresponding to the dynamic left lung diaphragm sequence; and determining that the other left lung diaphragms are normal left diaphragms or abnormal left diaphragms based on the second reference length corresponding to the left lung reference diaphragm, the second length corresponding to the other left lung diaphragms in the dynamic left lung diaphragm sequence except the left lung reference diaphragm, and the second preset length difference.

[0193] In an embodiment of the present disclosure, the method for determining whether the other right lung diaphragms are normal right diaphragms or abnormal right diaphragms based on the right lung baseline diaphragm length, the first length other than the right lung baseline diaphragm length in the first length sequence, and the first preset length difference includes: calculating multiple first differences between the first length other than the right lung baseline diaphragm length and the right lung baseline diaphragm length; if a first difference among the multiple differences is greater than or equal to the first preset length difference, the right diaphragm corresponding to the first difference is determined to be an abnormal right diaphragm; otherwise, it is determined to be a normal right diaphragm.

[0194] For example, in the embodiment of the present disclosure and other possible embodiments, the first preset length difference is configured as 20 mm or 20 pixels. Multiple first differences between a first length other than the right lung baseline diaphragm length and the right lung baseline diaphragm length are calculated respectively; if a first difference among the multiple differences is greater than or equal to the first preset length difference of 20 mm or 20 pixels, the right diaphragm corresponding to the first difference is determined to be an abnormal right diaphragm; if a first difference among the multiple differences is less than the first preset length difference of 20 mm or 20 pixels, the right diaphragm corresponding to the first difference is determined to be a normal right diaphragm.

[0195] In an embodiment of the present disclosure, the method of determining the left lung baseline diaphragm length by the shortest length in the second length sequence corresponding to the dynamic left lung diaphragm sequence; and determining whether the other left lung diaphragms are normal left diaphragms or abnormal left diaphragms based on the left lung baseline diaphragm length, the second length in the second length sequence other than the left lung baseline diaphragm length, and the second preset length difference, includes: respectively calculating multiple second differences between the second length other than the left lung baseline diaphragm length and the left lung baseline diaphragm length; if a second difference among the multiple second differences is greater than or equal to the second preset length difference, determining the left diaphragm corresponding to the second difference as an abnormal left diaphragm; otherwise, determining it as a normal left diaphragm.

[0196] For example, in the embodiment of the present disclosure and other possible embodiments, the first preset length difference is configured as 20 mm or 20 pixels. A plurality of second differences between a second length other than the left lung reference diaphragm length and the left lung reference diaphragm length are calculated respectively; if a second difference among the plurality of second differences is greater than or equal to the second preset length difference of 20 mm or 20 pixels, the left diaphragm corresponding to the second difference is determined to be an abnormal left diaphragm; if a second difference among the plurality of second differences is less than the second preset length difference of 20 mm or 20 pixels, if a second difference among the plurality of second differences is greater than or equal to the second preset length difference of 20 mm or 20 pixels, the left diaphragm corresponding to the second difference is determined to be a normal left diaphragm.

[0197] In an embodiment of the present disclosure, the dynamic lung image intelligent detection method further includes: obtaining at least one diaphragm sequence corresponding to a normal right diaphragm and a right diaphragm sequence corresponding to an abnormal right diaphragm, and a normal left diaphragm and a left diaphragm sequence corresponding to an abnormal left diaphragm corresponding to multiple dynamic X-ray two-dimensional chest images during breathing; wherein the diaphragm sequence includes: a right diaphragm sequence and / or a left diaphragm sequence; positioning and optimizing the right cardiophrenic angle corresponding to the abnormal right diaphragm based on the right cardiophrenic angle corresponding to the normal right diaphragm; and / or positioning and optimizing the left cardiophrenic angle corresponding to the abnormal left diaphragm based on the left cardiophrenic angle corresponding to the normal left diaphragm.

[0198] In the embodiments of the present disclosure and other possible embodiments, the method for locating and optimizing the right cardiophrenic angle corresponding to the abnormal right diaphragm based on the right cardiophrenic angle corresponding to the normal right diaphragm includes: acquiring a normal right diaphragm sequence, an abnormal right diaphragm sequence, a normal left diaphragm sequence and an abnormal left diaphragm sequence corresponding to multiple dynamic X-ray two-dimensional chest images during breathing; using the normal right cardiophrenic angle corresponding to the normal right diaphragm in the normal right diaphragm sequence to locate and optimize the abnormal left cardiophrenic angle corresponding to the abnormal left diaphragm in the abnormal left diaphragm sequence of the same first X-ray two-dimensional chest image; and / or using the normal left cardiophrenic angle corresponding to the normal left diaphragm in the normal left diaphragm sequence to locate and optimize the abnormal right cardiophrenic angle corresponding to the abnormal right diaphragm in the abnormal right diaphragm sequence of the same second X-ray two-dimensional chest image.

[0199] In the embodiments of the present disclosure and other possible embodiments, before the normal right cardiophrenic angle corresponding to the normal right diaphragm in the normal right diaphragm sequence is used to position and optimize the abnormal left cardiophrenic angle corresponding to the abnormal left diaphragm in the abnormal left diaphragm sequence of the same first X-ray two-dimensional chest image, the right diaphragm corresponding to the same first X-ray two-dimensional chest image is a normal right diaphragm. Simultaneously, before the normal left cardiophrenic angle corresponding to the normal left diaphragm in the normal left diaphragm sequence is used to position and optimize the abnormal right cardiophrenic angle corresponding to the abnormal right diaphragm in the abnormal right diaphragm sequence of the same second X-ray two-dimensional chest image, the left diaphragm corresponding to the same second X-ray two-dimensional chest image is a normal left diaphragm.

[0200] In the embodiments of the present disclosure and other possible embodiments, the method for optimizing the positioning of the abnormal left cardiophrenic angle corresponding to the abnormal left diaphragm in the abnormal left diaphragm sequence of the same first X-ray two-dimensional chest image using the normal right cardiophrenic angle corresponding to the normal right diaphragm in the normal right diaphragm sequence includes: determining the standard X-ray two-dimensional chest images corresponding to the normal right diaphragm and the normal left diaphragm in the dynamic multiple X-ray two-dimensional chest images; configuring the normal left cardiophrenic angle corresponding to the normal left diaphragm in the standard X-ray two-dimensional chest image to the initialized left cardiophrenic angle corresponding to the abnormal left diaphragm in the abnormal left diaphragm sequence of the same first X-ray two-dimensional chest image; calculating a first distance in the y direction between the normal left cardiophrenic angle corresponding to the normal left diaphragm in the standard X-ray two-dimensional chest image and the normal left cardiophrenic angle corresponding to the normal left diaphragm in the first X-ray two-dimensional chest image; adjusting the initialized left cardiophrenic angle using the first distance in the y direction to obtain an adjusted left cardiophrenic angle; and completing the positioning optimization of the abnormal left cardiophrenic angle based on the adjusted left cardiophrenic angle and the left lung mask edge image corresponding to the first X-ray two-dimensional chest image.

[0201] In the embodiments of the present disclosure and other possible embodiments, the method of adjusting the initialized left atrial diaphragm angle using the first distance in the y direction to obtain the adjusted left atrial diaphragm angle includes: adjusting the y-direction coordinate point of the initialized left atrial diaphragm angle using the first distance in the y direction to obtain the adjusted left atrial diaphragm angle; wherein, the method of adjusting the y-direction coordinate point of the initialized left atrial diaphragm angle using the first distance in the y direction to obtain the adjusted left atrial diaphragm angle includes: if the first distance in the y direction is greater than or equal to 0, then adding the y-direction coordinate point of the initialized left atrial diaphragm angle to the first distance in the y direction to obtain the adjusted left atrial diaphragm angle; wherein the x-direction coordinate point corresponding to the adjusted left atrial diaphragm angle remains unchanged.

[0202] In the embodiments of the present disclosure and other possible embodiments, the method for completing the positioning optimization of the abnormal left cardiophrenic angle based on the adjusted left cardiophrenic angle and the left lung mask edge image corresponding to the first X-ray two-dimensional chest image includes: configuring the intersection of the first straight line parallel to the x-direction corresponding to the adjusted left cardiophrenic angle and the left lung mask edge image corresponding to the first X-ray two-dimensional chest image as the left cardiophrenic angle after positioning optimization; wherein, the method for configuring the first straight line parallel to the x-direction corresponding to the adjusted left cardiophrenic angle and the focus corresponding to the left lung mask edge image corresponding to the first X-ray two-dimensional chest image as the left cardiophrenic angle after positioning optimization includes: using the y-direction coordinate point corresponding to the adjusted left cardiophrenic angle as a first straight line parallel to the x-direction; configuring the intersection of the first straight line and the left lung mask edge intersection in the left lung mask edge image corresponding to the first X-ray two-dimensional chest image with the smallest x-direction coordinate point as the left cardiophrenic angle after positioning optimization.

[0203] In the embodiments of the present disclosure and other possible embodiments, the method for determining the standard X-ray two-dimensional chest image corresponding to the normal right diaphragm and the normal left diaphragm in the dynamic multiple X-ray two-dimensional chest images includes: obtaining the first moment corresponding to the first X-ray two-dimensional chest image; and determining the X-ray two-dimensional chest image corresponding to the normal right diaphragm and the normal left diaphragm in the dynamic multiple X-ray two-dimensional chest images closest to the first moment as the standard X-ray two-dimensional chest image.

[0204] In the embodiments of the present disclosure and other possible embodiments, the method for optimizing the positioning of the abnormal right cardiophrenic angle corresponding to the abnormal right diaphragm in the abnormal right diaphragm sequence of the same second X-ray two-dimensional chest image using the normal left cardiophrenic angle corresponding to the normal left diaphragm in the normal left diaphragm sequence includes: determining the standard X-ray two-dimensional chest images corresponding to the normal left diaphragm and the normal right diaphragm in the dynamic multiple X-ray two-dimensional chest images; configuring the normal right cardiophrenic angle corresponding to the normal right diaphragm in the standard X-ray two-dimensional chest image to the initialized right cardiophrenic angle corresponding to the abnormal right diaphragm in the abnormal right diaphragm sequence of the same second X-ray two-dimensional chest image; calculating a second distance in the y direction between the normal right cardiophrenic angle corresponding to the normal right diaphragm in the standard X-ray two-dimensional chest image and the normal right cardiophrenic angle corresponding to the normal right diaphragm in the second X-ray two-dimensional chest image; adjusting the initialized right cardiophrenic angle using the second distance in the y direction to obtain an adjusted right cardiophrenic angle; and completing the positioning optimization of the abnormal right cardiophrenic angle based on the adjusted right cardiophrenic angle and the right lung mask edge image corresponding to the second X-ray two-dimensional chest image.

[0205] In the embodiments of the present disclosure and other possible embodiments, the method of adjusting the initialized right atrial diaphragm angle using the second distance in the y direction to obtain the adjusted right atrial diaphragm angle includes: adjusting the y-direction coordinate point of the initialized right atrial diaphragm angle using the second distance in the y direction to obtain the adjusted right atrial diaphragm angle; wherein, the method of adjusting the y-direction coordinate point of the initialized right atrial diaphragm angle using the second distance in the y direction to obtain the adjusted right atrial diaphragm angle includes: if the second distance in the y direction is greater than or equal to 0, then adding the y-direction coordinate point of the initialized right atrial diaphragm angle to the second distance in the y direction to obtain the adjusted right atrial diaphragm angle; wherein the x-direction coordinate point corresponding to the adjusted right atrial diaphragm angle remains unchanged.

[0206] In the embodiments of the present disclosure and other possible embodiments, the method for completing the positioning optimization of the abnormal right cardiophrenic angle based on the adjusted right cardiophrenic angle and the right lung mask edge image corresponding to the second X-ray two-dimensional chest image includes: configuring the intersection of the second straight line parallel to the x-direction corresponding to the adjusted right cardiophrenic angle and the right lung mask edge image corresponding to the second X-ray two-dimensional chest image as the right cardiophrenic angle after positioning optimization; wherein, the method for configuring the second straight line parallel to the x-direction corresponding to the adjusted right cardiophrenic angle and the focus corresponding to the right lung mask edge image corresponding to the second X-ray two-dimensional chest image as the right cardiophrenic angle after positioning optimization includes: using the y-direction coordinate point corresponding to the adjusted right cardiophrenic angle as a second straight line parallel to the x-direction; configuring the intersection of the second straight line and the right lung mask edge intersection in the right lung mask edge image corresponding to the second X-ray two-dimensional chest image with the largest x-direction coordinate point as the right cardiophrenic angle after positioning optimization.

[0207] In the embodiments of the present disclosure and other possible embodiments, the method for determining the standard X-ray two-dimensional chest image corresponding to the normal left diaphragm and the normal right diaphragm in the dynamic multiple X-ray two-dimensional chest images includes: obtaining the second moment corresponding to the second X-ray two-dimensional chest image; and determining the X-ray two-dimensional chest image corresponding to the normal right diaphragm and the normal left diaphragm in the dynamic multiple X-ray two-dimensional chest images closest to the second moment as the standard X-ray two-dimensional chest image.

[0208] In an embodiment of the present disclosure, the dynamic lung image intelligent detection method further includes: obtaining the right cardiophrenic angle after positioning optimization corresponding to each of the abnormal right diaphragms; performing positioning optimization on each of the abnormal diaphragms based on the right cardiophrenic angle, right costophrenic angle point and right lung mask edge image after positioning optimization corresponding to each of the abnormal right diaphragms; and / or obtaining the left cardiophrenic angle after positioning optimization corresponding to each of the abnormal left diaphragms; performing positioning optimization on each of the abnormal diaphragms based on the left cardiophrenic angle, left costophrenic angle point and left lung mask edge image after positioning optimization corresponding to each of the abnormal left diaphragms.

[0209] In the embodiments of the present disclosure and other possible embodiments, a method for optimizing the positioning of each abnormal right diaphragm based on the optimized right cardiophrenic angle, right costophrenic angle point and right lung mask edge image corresponding to each abnormal right diaphragm includes: configuring the line segment between the right lung mask edge in the right lung mask edge image between the optimized right cardiophrenic angle and the right costophrenic angle point corresponding to each abnormal right diaphragm as the optimized right diaphragm.

[0210] Similarly, in the embodiments of the present disclosure and other possible embodiments, the method for optimizing the positioning of each abnormal left diaphragm based on the optimized left cardiophrenic angle, left costophrenic angle point and left lung mask edge image corresponding to each abnormal left diaphragm includes: configuring the line segment between the left lung mask edge in the left lung mask edge image between the optimized left cardiophrenic angle and the left costophrenic angle point corresponding to each abnormal left diaphragm as the optimized left diaphragm.

[0211] The execution subject of the digital X-ray image capturing method may be a digital X-ray image capturing device, for example, the digital X-ray image capturing method may be executed by a terminal device, a server, or other processing device, or a digital X-ray camera. The terminal device may be a user equipment (UE), a mobile device, a user terminal, a terminal, a cellular phone, a cordless phone, a personal digital assistant (PDA), a handheld device, a computing device, a vehicle-mounted device, a wearable device, etc. In some possible implementations, the digital X-ray image capturing method may be implemented by a processor calling computer-readable instructions stored in a memory.

[0212] Those skilled in the art will understand that in the above-mentioned digital X-ray image shooting method of the specific embodiment, the writing order of each step does not mean a strict execution order and does not constitute any limitation on the implementation process. The specific execution order of each step should be determined by its function and possible internal logic.

[0213] An embodiment of the present disclosure also proposes a digital X-ray image shooting device, including: a boundary pixel position acquisition unit, used to obtain the upper boundary pixel position, lower boundary pixel position, left boundary pixel position and right boundary pixel position corresponding to the boundary pixel position of the set frame set in the image of the subject under the set part of the subject shot by a camera installed on the beam splitter; a beam splitter light field size determination unit, used to determine the corresponding beam splitter light field size when the set part of the subject is shot using a digital X-ray camera based on the first horizontal size and the second vertical size of the pixel points in the subject image, the upper boundary pixel position, the lower boundary pixel position, the left boundary pixel position and the right boundary pixel position corresponding to the boundary pixel position.

[0214] An embodiment of the present disclosure further proposes a digital X-ray image shooting device, comprising or further including: a configuration and acquisition unit, for acquiring, if the set part of the subject is configured as the lung, at least one diaphragm sequence of a dynamic right lung diaphragm sequence and a dynamic left lung diaphragm sequence corresponding to multiple dynamic X-ray two-dimensional chest images during breathing within the beam field size of the beam spotter; a diaphragm determination unit, for determining a right lung baseline diaphragm length based on the shortest length in a first length sequence corresponding to the dynamic right lung diaphragm sequence; determining, based on the right lung baseline diaphragm length, a first length in the first length sequence excluding the right lung baseline diaphragm length, and a first preset length difference, respectively, whether the other right lung diaphragms are normal right diaphragms or abnormal right diaphragms; and / or determining a left lung baseline diaphragm length based on the shortest length in a second length sequence corresponding to the dynamic left lung diaphragm sequence; determining, based on the left lung baseline diaphragm length, a second length in the second length sequence excluding the left lung baseline diaphragm length, and a second preset length difference, respectively, whether the other left lung diaphragms are normal left diaphragms or abnormal left diaphragms.

[0215] An embodiment of the present disclosure also proposes a digital X-ray image shooting device, including or also including: a size determination unit, used to obtain the second size corresponding to the vertical direction of the pixel point in the image of the subject shot by a camera installed on the beam splitter; a length determination unit, used to determine the length corresponding to the set stitching range based on the upper boundary corresponding to the set stitching range of the subject image and the lower boundary opposite to the first boundary; a height adjustment unit, used to adjust the starting height and ending height corresponding to the set stitching range based on the camera height of the camera from the ground and the length corresponding to the set stitching range.

[0216] An embodiment of the present disclosure also provides a digital X-ray image capturing device, comprising: an electronic device configured with a processor and a memory for storing processor-executable instructions; wherein the processor is configured to call the instructions stored in the memory to execute the above-mentioned digital X-ray image capturing method.

[0217] An embodiment of the present disclosure further provides a digital X-ray image capturing device, comprising: a processor; and a memory for storing processor-executable instructions; wherein the processor is configured to call the instructions stored in the memory to execute the above-mentioned digital X-ray image capturing method.

[0218] An embodiment of the present disclosure further provides a digital X-ray image capturing device, comprising: a computer-readable storage medium storing computer program instructions, wherein the computer program instructions implement the above-mentioned digital X-ray image capturing method when executed by a processor.

[0219] An embodiment of the present disclosure further provides a digital X-ray image capturing apparatus, comprising: a computer program product, comprising a computer program / instruction, which implements the above-mentioned digital X-ray image capturing method when executed by a processor.

[0220] An embodiment of the present disclosure further provides a digital X-ray camera, comprising: an electronic device, a processor, and a memory for storing processor-executable instructions, a computer-readable storage medium, and a computer program product; wherein the electronic device is configured to execute, the processor is configured to call instructions stored in the memory for execution, the computer program instructions stored in the computer-readable storage medium are implemented when they are executed by the processor, and the computer program / instructions set in the computer program product are executed by the processor: the digital X-ray image shooting method as described above.

[0221] An embodiment of the present disclosure further provides a digital X-ray camera, comprising: the digital X-ray image capturing device as described above.

[0222] In some embodiments, the functions or modules included in the device provided by the embodiments of the present disclosure can be used to execute the method described in the above method embodiment. Its specific implementation can refer to the description of the above digital X-ray image shooting method embodiment. For the sake of brevity, it will not be repeated here.

[0223] The present disclosure may be a system, method and / or computer program product. The computer program product may include a computer-readable storage medium carrying computer-readable program instructions for causing a processor to implement various aspects of the present disclosure.

[0224] Various aspects of the present disclosure are described herein with reference to flowcharts and / or block diagrams of methods, apparatus (systems), and computer program products according to embodiments of the present disclosure. It should be understood that each block of the flowcharts and / or block diagrams, and combinations of blocks in the flowcharts and / or block diagrams, can be implemented by computer-readable program instructions.

[0225] A computer-readable storage medium can be a tangible device that can hold and store instructions for use by an instruction execution device. A computer-readable storage medium can be, for example, but not limited to, an electrical storage device, a magnetic storage device, an optical storage device, an electromagnetic storage device, a semiconductor storage device, or any suitable combination thereof. More specific examples (a non-exhaustive list) of computer-readable storage media include: a portable computer disk, a hard disk, a random access memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), a static random access memory (SRAM), a portable compact disc read-only memory (CD-ROM), a digital versatile disk (DVD), a memory stick, a floppy disk, a mechanical encoding device, such as a punch card or a raised structure in a groove on which instructions are stored, and any suitable combination thereof. As used herein, a computer-readable storage medium is not to be construed as a transient signal per se, such as a radio wave or other freely propagating electromagnetic wave, an electromagnetic wave propagating through a waveguide or other transmission medium (e.g., a light pulse through a fiber optic cable), or an electrical signal transmitted through an electrical wire.

[0226] The computer-readable program instructions described herein can be downloaded from a computer-readable storage medium to each computing / processing device, or downloaded to an external computer or external storage device via a network, such as the Internet, a local area network, a wide area network, and / or a wireless network. The network can include copper transmission cables, fiber optic transmission, wireless transmission, routers, firewalls, switches, gateway computers, and / or edge servers. The network adapter card or network interface in each computing / processing device receives the computer-readable program instructions from the network and forwards the computer-readable program instructions to be stored in the computer-readable storage medium in each computing / processing device.

[0227] The computer program instructions for performing the operations of the present disclosure may be assembly instructions, instruction set architecture (ISA) instructions, machine instructions, machine-dependent instructions, microcode, firmware instructions, state setting data, or source code or object code written in any combination of one or more programming languages, including object-oriented programming languages such as Smalltalk, C++, and conventional procedural programming languages such as "C" language or similar programming languages. Computer-readable program instructions may be executed entirely on a user's computer, partially on a user's computer, as an independent software package, partially on a user's computer, partially on a remote computer, or entirely on a remote computer or server. In the case of a remote computer, the remote computer may be connected to the user's computer via any type of network, including a local area network (LAN) or a wide area network (WAN), or may be connected to an external computer (e.g., utilizing an Internet service provider to connect via the Internet). In some embodiments, an electronic circuit, such as a programmable logic circuit, a field programmable gate array (FPGA), or a programmable logic array (PLA), may be personalized by utilizing the state information of the computer-readable program instructions. The electronic circuit may execute the computer-readable program instructions, thereby realizing various aspects of the present disclosure.

[0228] Various aspects of the present disclosure are described herein with reference to flowcharts and / or block diagrams of methods, apparatus (systems), and computer program products according to embodiments of the present disclosure. It should be understood that each block of the flowcharts and / or block diagrams, and combinations of blocks in the flowcharts and / or block diagrams, can be implemented by computer-readable program instructions.

[0229] These computer-readable program instructions can be provided to a processor of a general-purpose computer, a special-purpose computer, or other programmable data processing device, thereby producing a machine, so that when these instructions are executed by the processor of the computer or other programmable data processing device, a device is generated that implements the functions / actions specified in one or more blocks in the flowchart and / or block diagram. These computer-readable program instructions can also be stored in a computer-readable storage medium, where these instructions cause the computer, programmable data processing device, and / or other device to operate in a specific manner. Thus, the computer-readable medium storing the instructions comprises an article of manufacture that includes instructions for implementing various aspects of the functions / actions specified in one or more blocks in the flowchart and / or block diagram.

[0230] Computer-readable program instructions may also be loaded onto a computer, other programmable data processing apparatus, or other device so that a series of operational steps are performed on the computer, other programmable data processing apparatus, or other device to produce a computer-implemented process, thereby causing the instructions executed on the computer, other programmable data processing apparatus, or other device to implement the functions / actions specified in one or more blocks in the flowchart and / or block diagram.

[0231] The flow charts and block diagrams in the accompanying drawings show the possible architecture, functions and operations of the systems, methods and computer program products according to multiple embodiments of the present disclosure. In this regard, each box in the flow chart or block diagram can represent a part of a module, program segment or instruction, and the part of the module, program segment or instruction contains one or more executable instructions for realizing the prescribed logical function. In some alternative implementations, the functions marked in the box can also occur in a sequence different from that marked in the accompanying drawings. For example, two consecutive boxes can actually be executed substantially in parallel, and they can sometimes be executed in the opposite order, depending on the functions involved. It should also be noted that each box in the block diagram and / or flow chart, and the combination of the boxes in the block diagram and / or flow chart can be implemented by a dedicated hardware-based system that performs the prescribed function or action, or can be implemented by a combination of dedicated hardware and computer instructions.

[0232] While various embodiments of the present disclosure have been described above, the foregoing description is intended to be illustrative, non-exhaustive, and not limited to the disclosed embodiments. Many modifications and variations will be apparent to those skilled in the art without departing from the scope and spirit of the described embodiments. The terminology used herein is selected to best explain the principles of the embodiments, their practical applications, or technological improvements in the marketplace, or to enable others skilled in the art to understand the embodiments disclosed herein.

Claims

1. A digital X-ray image capturing method, characterized in that: include: Obtaining upper boundary pixel positions, lower boundary pixel positions, left boundary pixel positions, and right boundary pixel positions corresponding to boundary pixel positions of a set frame set in an image of the subject photographed by a camera installed on the beam splitter at a set part of the subject; Based on the first horizontal size and the second vertical size of the pixel points in the subject image, the upper boundary pixel position, the lower boundary pixel position, the left boundary pixel position and the right boundary pixel position corresponding to the boundary pixel position, the corresponding beam field size of the subject when the set part of the subject is photographed using a digital X-ray camera is determined.

2. The digital X-ray image capturing method according to claim 1, wherein: Determining the upper boundary pixel position, the lower boundary pixel position, the left boundary pixel position, and the right boundary pixel position corresponding to the boundary pixel position of the set border set in the subject image, comprising: determining the upper boundary pixel position, the lower boundary pixel position, the left boundary pixel position, and the right boundary pixel position corresponding to the boundary pixel position of the set border according to the first width and the first height of the subject image, the first size, the second size, and the second width and the second height corresponding to the set border; and / or, The determining, based on the first width and first height of the subject image, the first size, the second size, and the second width and second height corresponding to the set frame, of the upper boundary pixel position, the lower boundary pixel position, the left boundary pixel position, and the right boundary pixel position corresponding to the boundary pixel position includes: determining, based on the first width, the second width, and the first size, the left boundary pixel position and the right boundary pixel position corresponding to the boundary pixel position; determining, based on the first height, the second height, and the second size, the upper boundary pixel position and the lower boundary pixel position corresponding to the boundary pixel position; and / or, The determining, according to the first width, the second width, and the first size, respectively, of the left boundary pixel position and the right boundary pixel position corresponding to the boundary pixel position includes: determining, according to the second width and the first size, the pixel width corresponding to the set border; obtaining a first ratio and a third ratio corresponding to the light field window of the camera and the beam splitter in the horizontal direction; calculating the first width minus the pixel width to obtain a width difference; calculating the width ratio difference corresponding to the width difference at the first ratio to obtain the left boundary pixel position; calculating the first width plus the pixel width to obtain a width cumulative value; calculating the width ratio cumulative value corresponding to the width cumulative value at the third ratio to obtain the left boundary pixel position; and / or, The determining, based on the first height, the second height, and the second size, respectively, an upper boundary pixel position and a lower boundary pixel position corresponding to the boundary pixel position includes: determining a pixel height corresponding to the set border based on the second height and the second size; determining an upper boundary pixel position and a lower boundary pixel position corresponding to the boundary pixel position based on the first height and the pixel height; and / or, The method of determining the upper boundary pixel position and the lower boundary pixel position corresponding to the boundary pixel position based on the first height and the pixel height includes: determining the pixel height corresponding to the set border according to the second height and the second size; determining the pixel height corresponding to the set border according to the second height and the second size; obtaining the second ratio and the fourth ratio corresponding to the light field window of the camera and the beam splitter in the vertical direction; subtracting the pixel height from the first height to obtain a height difference; calculating the height difference of the height difference at the second ratio to obtain the upper boundary pixel position; adding the pixel height to the first height to obtain a height cumulative value; calculating the height ratio cumulative value corresponding to the height cumulative value at the fourth ratio to obtain the lower boundary pixel position.

3. The digital X-ray image capturing method according to any one of claims 1 to 2, characterized in that: The method of determining the corresponding beamformer light field size when photographing the set part of the subject using a digital X-ray camera based on the first horizontal size and the second vertical size of the pixel points in the subject image, the upper boundary pixel position, the lower boundary pixel position, the left boundary pixel position and the right boundary pixel position corresponding to the boundary pixel position, includes: determining the corresponding horizontal size of the beamformer light field when photographing the set part of the subject using a digital X-ray camera based on the left boundary pixel position and the right boundary pixel position corresponding to the boundary pixel position and the first size; determining the corresponding vertical size of the beamformer light field when photographing the set part of the subject using a digital X-ray camera based on the upper boundary pixel position and the lower boundary pixel position corresponding to the boundary pixel position and the second size; and / or, The determining, based on the left boundary pixel position and the right boundary pixel position corresponding to the boundary pixel position and the first size, of the size of the beam splitter light field corresponding to when photographing the set part of the subject using a digital X-ray camera, includes: calculating a first configuration size corresponding to the product of the first boundary pixel position difference and the first size, and determining the size of the beam splitter light field corresponding to when photographing the set part of the subject using a digital X-ray camera; and / or, Based on the upper boundary pixel position and the lower boundary pixel position corresponding to the boundary pixel position and the second size, the vertical size of the beam spotter light field corresponding to when the set part of the subject is photographed using a digital X-ray camera is determined, including: calculating the second boundary pixel position difference between the upper boundary pixel position and the lower boundary pixel position; calculating the second configuration size corresponding to the product of the second boundary pixel position difference and the second size, and determining the vertical size of the beam spotter light field corresponding to when the set part of the subject is photographed using a digital X-ray camera.

4. The digital X-ray image capturing method according to any one of claims 1 to 3, characterized in that: If the subject's set part is configured as the lung, then at least one diaphragm sequence of a dynamic right lung diaphragm sequence and a dynamic left lung diaphragm sequence corresponding to multiple dynamic X-ray two-dimensional chest images during breathing is acquired within the beam field size; The right lung diaphragm length is determined by the shortest length in the first length sequence corresponding to the dynamic right lung diaphragm sequence; based on the right lung reference diaphragm length, the first length in the first length sequence excluding the right lung reference diaphragm length, and the first preset length difference, the other right lung diaphragms are respectively determined to be normal right diaphragms or abnormal right diaphragms; and / or, the left lung reference diaphragm length is determined by the shortest length in the second length sequence corresponding to the dynamic left lung diaphragm sequence; based on the left lung reference diaphragm length, the second length in the second length sequence excluding the left lung reference diaphragm length, and the second preset length difference, the other left lung diaphragms are respectively determined to be normal left diaphragms or abnormal left diaphragms.

5. The digital X-ray image capturing method according to claim 4, wherein: Before acquiring at least one diaphragm sequence of a dynamic right lung diaphragm sequence and a dynamic left lung diaphragm sequence corresponding to the dynamic multiple X-ray two-dimensional chest images during the breathing process, a method for determining the corresponding dynamic right lung diaphragm sequence and / or dynamic left lung diaphragm sequence based on the dynamic multiple X-ray two-dimensional chest images during the breathing process, includes: respectively acquiring at least one mask edge image sequence of a right lung mask edge image sequence and a left lung mask edge image sequence corresponding to a plurality of dynamic X-ray two-dimensional chest images; Determine the right lung apex corresponding to the right lung mask edge image sequence respectively; locate the right lung diaphragm based on the right lung apex, the right costophrenic angle point and the right lung mask edge image corresponding to each of the dynamic multiple X-ray two-dimensional chest images respectively; and / or, determine the left lung apex corresponding to the left lung mask edge image sequence respectively, and determine the right costophrenic angle point corresponding to the right lung mask edge image sequence and / or the left costophrenic angle point corresponding to the left lung mask edge image sequence respectively; locate the left lung diaphragm based on the right cardiophrenic angle, the left lung apex, the left costophrenic angle point and the left lung mask edge image corresponding to the right lung diaphragm respectively according to the dynamic multiple X-ray two-dimensional chest images; and / or, The method for determining the first length sequence corresponding to the dynamic right pulmonary diaphragm sequence comprises: respectively counting the sum of the number of first pixel values corresponding to each right pulmonary diaphragm in the dynamic right pulmonary diaphragm sequence; respectively based on the sum of the number of first pixel values corresponding to each right pulmonary diaphragm and the area corresponding to each pixel, obtaining the first length sequence corresponding to the dynamic right pulmonary diaphragm sequence; and / or, the method for determining the first length sequence corresponding to the dynamic right pulmonary diaphragm sequence based on the sum of the number of first pixel values corresponding to each right pulmonary diaphragm and the area corresponding to each pixel comprises: respectively multiplying the sum of the number of first pixel values corresponding to each right pulmonary diaphragm by the area corresponding to each pixel, to obtain the first length sequence corresponding to the dynamic right pulmonary diaphragm sequence; and / or, The method for determining the second length sequence corresponding to the dynamic left pulmonary diaphragm sequence includes: respectively counting the sum of the number of second pixel values corresponding to each left pulmonary diaphragm in the dynamic left pulmonary diaphragm sequence; respectively based on the sum of the number of second pixel values corresponding to each left pulmonary diaphragm and the area corresponding to each pixel, obtaining the second length sequence corresponding to the dynamic left pulmonary diaphragm sequence; and / or, the method for determining the second length sequence corresponding to the dynamic left pulmonary diaphragm sequence based on the sum of the number of second pixel values corresponding to each left pulmonary diaphragm and the area corresponding to each pixel, includes: respectively multiplying the sum of the number of second pixel values corresponding to each left pulmonary diaphragm by the area corresponding to each pixel, to obtain the second length sequence corresponding to the dynamic left pulmonary diaphragm sequence.

6. The digital X-ray image capturing method according to any one of claims 4 or 5, characterized in that: The method of determining the right lung reference diaphragm length by the shortest length in the first length sequence corresponding to the dynamic right lung diaphragm sequence; and determining that the other right lung diaphragms are normal right diaphragms or abnormal right diaphragms based on the right lung reference diaphragm length, the first length in the first length sequence other than the right lung reference diaphragm length, and the first preset length difference, comprises: determining the right lung reference diaphragm by the right lung diaphragm with the shortest length in the first length sequence corresponding to the dynamic right lung diaphragm sequence; and determining that the other right lung diaphragms are normal right diaphragms or abnormal right diaphragms based on the first reference length corresponding to the right lung reference diaphragm, the first length corresponding to the other right lung diaphragms in the dynamic right lung diaphragm sequence other than the right lung reference diaphragm, and the first preset length difference; and / or, The method of determining the left lung reference diaphragm length by the shortest length in the second length sequence corresponding to the dynamic left lung diaphragm sequence; and determining that the other left lung diaphragms are normal left diaphragms or abnormal left diaphragms based on the left lung reference diaphragm length, the second length in the second length sequence excluding the left lung reference diaphragm length, and the second preset length difference, includes: determining the left lung reference diaphragm by the shortest left lung diaphragm in the second length sequence corresponding to the dynamic left lung diaphragm sequence; and determining that the other left lung diaphragms are normal left diaphragms or abnormal left diaphragms based on the second reference length corresponding to the left lung reference diaphragm, the second length corresponding to the other left lung diaphragms in the dynamic left lung diaphragm sequence excluding the left lung reference diaphragm, and the second preset length difference.

7. The digital X-ray image capturing method according to any one of claims 1 to 6, characterized in that: Also includes: Obtain a second size in the vertical direction corresponding to a pixel point in an image of the subject photographed by a camera installed on the beam splitter; determine a length corresponding to the set stitching range based on an upper boundary corresponding to the set stitching range of the subject image and a lower boundary relative to the first boundary; adjust a starting height and an ending height corresponding to the set stitching range based on a camera height from the ground and the length corresponding to the set stitching range.

8. A digital X-ray imaging device, characterized in that: include: a boundary pixel position acquisition unit for acquiring an upper boundary pixel position, a lower boundary pixel position, a left boundary pixel position, and a right boundary pixel position corresponding to the boundary pixel position of a set frame set in an image of a subject photographed at a set portion of the subject by a camera mounted on the beam splitter; a beam splitter light field size determination unit for determining a beam splitter light field size corresponding to when photographing the set portion of the subject using a digital X-ray camera based on a first horizontal size and a second vertical size of a pixel point in the subject image, and the upper boundary pixel position, the lower boundary pixel position, the left boundary pixel position, and the right boundary pixel position corresponding to the boundary pixel position; and / or, It also includes: a configuration and acquisition unit for acquiring, if the subject's set part is configured as the lung, at least one diaphragm sequence of a dynamic right lung diaphragm sequence and a dynamic left lung diaphragm sequence corresponding to multiple dynamic X-ray two-dimensional chest images during breathing within the beam field size; a diaphragm determination unit for determining the right lung reference diaphragm length based on the shortest length in the first length sequence corresponding to the dynamic right lung diaphragm sequence; determining the other right lung diaphragms as normal right diaphragms or abnormal right diaphragms based on the right lung reference diaphragm length, the first length in the first length sequence excluding the right lung reference diaphragm length, and a first preset length difference; and / or, determining the left lung reference diaphragm length based on the shortest length in the second length sequence corresponding to the dynamic left lung diaphragm sequence; determining the other left lung diaphragms as normal left diaphragms or abnormal left diaphragms based on the left lung reference diaphragm length, the second length in the second length sequence excluding the left lung reference diaphragm length, and a second preset length difference; and / or, It also includes: a size determination unit, used to obtain the second size corresponding to the vertical direction of the pixel point in the image of the subject photographed by the camera installed on the beam splitter; a length determination unit, used to determine the length corresponding to the set stitching range based on the upper boundary corresponding to the set stitching range of the subject image and the lower boundary opposite to the first boundary; a height adjustment unit, used to adjust the starting height and ending height corresponding to the set stitching range based on the camera height from the ground and the length corresponding to the set stitching range.

9. A digital X-ray imaging device, It is characterized by: include: An electronic device comprising a processor and a memory for storing instructions executable by the processor; wherein the processor is configured to call the instructions stored in the memory to execute the digital X-ray image capturing method according to any one of claims 1 to 7; or comprising: a processor; a memory for storing processor-executable instructions; wherein the processor is configured to call the instructions stored in the memory to execute the digital X-ray image capturing method according to any one of claims 1 to 7; or, comprising: a computer-readable storage medium having computer program instructions stored thereon, wherein when the computer program instructions are executed by a processor, the digital X-ray image capturing method according to any one of claims 1 to 7 is implemented; or The invention comprises: a computer program product, comprising a computer program / instruction, wherein when the computer program / instruction is executed by a processor, the digital X-ray image capturing method according to any one of claims 1 to 6 is implemented.

10. A digital X-ray camera, characterized in that: include: An electronic device, a processor, and a memory for storing processor-executable instructions, a computer-readable storage medium, and a computer program product; wherein the electronic device is configured to execute, the processor is configured to call instructions stored in the memory for execution, the computer program instructions stored in the computer-readable storage medium are implemented when executed by the processor, and the computer program / instructions set by the computer program product are executed by the processor: the digital X-ray image capturing method according to any one of claims 1 to 7; or, including: the digital X-ray image capturing device according to any one of claims 8-9.