Ray source attenuation detection system and method and storage medium
By using calibration modules and detection units in the ray source attenuation detection system, using the grayscale values of the image area formed by different calibration objects, intuitive monitoring and automatic adjustment of the attenuation degree of the ray source is achieved, and the problem is that it cannot be visually presented in the prior art. The problem of attenuation level improves the accuracy of detection and user experience.
Patent Information
- Application Number
- CN202411375659.5
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-09-29
- Publication Date
- 2025-01-14
- Estimated Expiration
- 2044-09-29
AI Technical Summary
The existing radiation source attenuation detection technology cannot intuitively present the attenuation degree of the radiation source, making it difficult for users to accurately monitor and judge the status of the radiation source, which may lead to misjudgment or misjudgment.
A ray source attenuation detection system is designed, including a ray source, a calibration module and a detection unit. By the different dimensions of different calibration objects in the calibration module in the target direction, an image area with different gray values is formed, and the detection unit receives it. It also processes image data, outputs target grayscale value and reference grayscale range, and users can intuitively compare the attenuation degree and trend, and automatically adjusts the electrical parameters of the radiation source according to the difference.
It realizes intuitive monitoring and accurate judgment of the attenuation degree of the radiation source, reduces misjudgment and misjudgment, ensures the accuracy of the detection results, and maintains the optimal imaging state through automatic adjustment.
Smart Images

Figure CN119313630A_ABST
Abstract
Description
Technical Field
[0001] The embodiments of the present application relate to radiation source detection technology, and relate to but are not limited to a radiation source attenuation detection system, method and storage medium. Background Art
[0002] Under the existing hardware technology conditions, the radiation source will inevitably attenuate after long-term use. The attenuation of the radiation source will cause the intensity of the emitted light beam to decrease, causing the image formed by the detector based on the received light beam to change. For example, the integrity of the image will be reduced or the grayscale value of the image will change. As a result, when technicians use the image formed by the detector to make quality judgments on the object to be tested, they may miss or misjudge it.
[0003] Although there are algorithms in the related art that use the integrity of an image or the grayscale value of an image to determine whether a ray source is attenuated, they can only obtain the result of whether the ray source is attenuated, but cannot intuitively present the attenuation degree of the ray source. Summary of the invention
[0004] In view of this, the radiation source attenuation detection system, method and storage medium provided in the embodiments of the present application can intuitively present the attenuation degree of the radiation source, facilitate users to accurately monitor the attenuation of the radiation source, and improve user experience.
[0005] In a first aspect, an embodiment of the present application provides a radiation source attenuation detection system, the system comprising a radiation source, a calibration module and a detection unit, wherein:
[0006] The ray source is used to emit a light beam;
[0007] The calibration module is arranged between the ray source and the detection unit, and includes at least two calibration objects, and different calibration objects have different sizes in a target direction, and the target direction is the light beam emission direction of the ray source;
[0008] The detection unit is used to receive and obtain a target image based on the light beam attenuated by the calibration module, the target image includes at least two image areas, and output detection data based on the target grayscale value of the target image area, the detection data includes the target grayscale value, the at least two image areas correspond one-to-one to the at least two calibration objects, and the target image area is one of the at least two image areas.
[0009] In the above-mentioned ray source attenuation detection system, after the detection unit obtains the target image corresponding to the calibration module each time, the target grayscale value of the target image area in at least two image areas is obtained, and detection data including the target grayscale value is output. Since the target grayscale value in the detection data is used as a parameter value characterizing the current light beam intensity, the user can intuitively present the attenuation degree of the ray source by comparing the size relationship between the target grayscale value of the target area and the reference grayscale range. At the same time, the user can also obtain the attenuation trend of the ray source by comparing multiple target grayscale values output by the detection unit multiple times.
[0010] In some embodiments, outputting the detection data according to the target grayscale value of the target image area includes:
[0011] A target image area corresponding to the electrical parameters of the ray source is determined from the at least two image areas, a target grayscale value of the target image area is obtained and recorded, and detection data is output, wherein the detection data includes the recorded target grayscale value.
[0012] It can be understood that by associating the electrical parameters of the ray source with at least two image regions, the process of determining the target image region can be simplified, and the electrical parameters of the ray source at this time can be better reflected by the target grayscale value.
[0013] In some embodiments, the detection unit is further used to:
[0014] Outputting prompt information, wherein the prompt information includes a reference grayscale range, so that the user can determine whether the ray source is attenuated according to a magnitude relationship between the target grayscale value and the reference grayscale range.
[0015] It is understandable that after outputting the detection data, outputting the prompt information including the reference grayscale range can enable the user to more intuitively see the attenuation of the ray source at this time.
[0016] In some embodiments, the detection data is a curve, the curve has the recording order as the horizontal axis and the target grayscale value as the vertical axis, and the prompt information includes a prompt line indicating the reference grayscale range.
[0017] It can be understood that by setting the detection data as a curve and the prompt information as a prompt line indicating the reference grayscale range, the attenuation degree of the ray source at this time can be more intuitively seen.
[0018] In some embodiments, obtaining a target grayscale value of the target image area includes:
[0019] The target image area is obtained, an edge area of the target image area is filtered out, and an average grayscale value of the filtered target image area is determined as the target grayscale value.
[0020] It can be understood that by filtering out the edge area of the target image area and calculating the average grayscale value of the target image area after filtering out the edge area, the grayscale value error caused by overexposure of the edge part of the calibration module can be reduced.
[0021] In some embodiments, the detection unit is further used to:
[0022] Determining a parameter adjustment value according to a difference between a reference grayscale range and the target grayscale value;
[0023] According to the parameter adjustment value, the ray source is controlled to adjust the electrical parameters of the ray source.
[0024] It can be understood that, by automatically adjusting the electrical parameters of the radiation source according to the difference between the reference grayscale range and the target grayscale value, the optimal imaging state can be dynamically maintained.
[0025] In some embodiments, the material of the calibration object is determined by the type of the light beam emitted by the radiation source, thereby achieving compatibility with different types of radiation sources.
[0026] In some embodiments, if the light beam is visible light, the calibration object includes a translucent material; if the light beam is X-rays, the calibration object includes at least one of a square metal plate, an annular metal plate and a metal ball, thereby achieving compatibility with visible light and X-rays.
[0027] In some embodiments, each calibration object in the calibration module is connected by a penetrable material or a hollow connection, thereby achieving automatic segmentation of at least two image areas without the need for an additional algorithm to perform the segmentation process, thereby reducing computing resource consumption.
[0028] In some embodiments, the number of the at least two calibration objects is determined by the maximum operating voltage of the radiation source, so that the number of calibration objects can be accurately controlled according to the electrical parameters of the radiation source.
[0029] In a second aspect, a radiation source attenuation detection method provided in an embodiment of the present application is applied to a radiation source attenuation detection system, the system comprising a radiation source, a calibration module and a detection unit, the calibration module being arranged between the radiation source and the detection unit, the calibration module comprising at least two calibration objects, different calibration objects having different sizes in a target direction, the target direction being a beam emission direction of the radiation source, the method comprising:
[0030] emitting a light beam based on an excitation electrical signal by the ray source;
[0031] The target image is received by the detection unit and obtained based on the light beam attenuated by the calibration module. The target image includes at least two image areas. According to the target grayscale value of the target image area, detection data is output. The detection data includes the target grayscale value. The at least two image areas correspond one-to-one to the at least two calibration objects, and the target image area is one of the at least two image areas.
[0032] In a third aspect, the computer-readable storage medium provided in the embodiments of the present application stores a computer program thereon, and when the computer program is executed by a processor, the method provided in the embodiments of the present application is implemented.
[0033] It should be understood that the second to third aspects of the embodiments of the present application are consistent with the technical solutions of the first aspect of the embodiments of the present application, and the beneficial effects achieved by each aspect and the corresponding feasible implementation methods are similar and will not be repeated here. BRIEF DESCRIPTION OF THE DRAWINGS
[0034] The drawings herein are incorporated into the specification and constitute a part of the specification. These drawings illustrate embodiments consistent with the present application and are used together with the specification to illustrate the technical solution of the present application.
[0035] Figure 1 A schematic diagram of the structure of a radiation source attenuation detection system provided in an embodiment of the present application;
[0036] Figure 2A One of the structural schematic diagrams of at least two calibration objects provided in the embodiments of the present application and the corresponding target image;
[0037] Figure 2B A second structural schematic diagram of at least two calibration objects provided in an embodiment of the present application and a corresponding target image;
[0038] Figure 3 A third structural schematic diagram of at least two calibration objects provided in an embodiment of the present application and a corresponding target image;
[0039] Figure 4 A fourth structural schematic diagram of at least two calibration objects provided in an embodiment of the present application and a corresponding target image;
[0040] Figure 5 One of the schematic diagrams of the detection data provided in the embodiment of the present application;
[0041] Figure 6 A second schematic diagram of detection data provided in an embodiment of the present application;
[0042] Figure 7 A schematic diagram of the structure of a detection environment for detecting an object to be detected provided in an embodiment of the present application;
[0043] Figure 8 A schematic diagram of a process flow of a radiation source attenuation detection method provided in an embodiment of the present application;
[0044] Fig. 9 A schematic diagram of the structure of a computer device provided in an embodiment of the present application. DETAILED DESCRIPTION
[0045] In order to make the purpose, technical solution and advantages of the embodiments of the present application clearer, the specific technical solution of the present application will be further described in detail below in conjunction with the drawings in the embodiments of the present application. The following embodiments are used to illustrate the present application, but are not used to limit the scope of the present application.
[0046] Unless otherwise defined, all technical and scientific terms used herein have the same meaning as those commonly understood by those skilled in the art to which this application belongs. The terms used herein are only for the purpose of describing the embodiments of this application and are not intended to limit this application.
[0047] In the following description, reference is made to “some embodiments”, which describe a subset of all possible embodiments, but it will be understood that “some embodiments” may be the same subset or different subsets of all possible embodiments and may be combined with each other without conflict.
[0048] It should be pointed out that the terms "first\second\third" involved in the embodiments of the present application are used to distinguish similar or different objects, and do not represent a specific ordering of the objects. It can be understood that "first\second\third" can be interchanged in a specific order or sequence where permitted, so that the embodiments of the present application described here can be implemented in an order other than that illustrated or described here.
[0049] Figure 1 This is a schematic diagram of the structure of a radiation source attenuation detection system provided in an embodiment of the present application. Figure 1 As shown, the radiation source attenuation detection system may include a radiation source 101, a calibration module 102 and a detection unit 103, wherein the calibration module 102 is arranged between the radiation source 101 and the detection unit 103, and the calibration module 102 includes at least two calibration objects, and different calibration objects have different sizes in a target direction, and the target direction is a beam emission direction of the radiation source 101, wherein:
[0050] A ray source 101, used for emitting a light beam;
[0051] The detection unit 103 is used to receive and obtain a target image based on the light beam attenuated by the calibration module 102, wherein the target image includes at least two image areas, and output detection data based on the target grayscale value of the target image area, wherein the detection data includes the target grayscale value, and the at least two image areas correspond one-to-one to at least two calibration objects, and the target image area is one of the at least two image areas.
[0052] By implementing the ray source attenuation detection system in this embodiment, each time the detection unit 103 obtains the target image corresponding to the calibration module 102, the target grayscale value of the target image area in at least two image areas is obtained, and detection data including the target grayscale value is output. Since the target grayscale value in the detection data is used as a parameter value characterizing the current light beam intensity and output, the user can manually compare the target grayscale value of the target area with the reference grayscale range to intuitively present whether the ray source 101 is attenuated and the corresponding attenuation degree. At the same time, the user can also obtain the attenuation trend of the ray source 101 by comparing the multiple target grayscale values output by the detection unit 103 after receiving multiple light beams.
[0053] It should be understood that since different calibration objects in the calibration module 102 have different sizes in the target direction, and the larger the size of the calibration object in the target direction, the more light beams are absorbed by the calibration object, and the fewer light beams can be transmitted to the detection unit 103, the detection unit 103 will form at least two image areas with different grayscale values after the light beam emitted by the ray source 101 passes through the calibration module 102 and reaches the detection unit 103. Taking the image area corresponding to 8 bits of data as an example, if the grayscale value of the image area formed by the detection unit 103 is 0, it means that the grayscale value is the lowest, and the image area appears black, indicating that the light beam cannot penetrate the calibration object; if the grayscale value of the image area formed by the detection unit 103 is 255, it means that the grayscale value is the highest, and the image area appears white, indicating that the light beam completely penetrates the calibration object.
[0054] In some embodiments, the detection unit 103 may be an imaging screen, which may form a corresponding image according to the received light beam, and may perform a series of image processing and grayscale recognition on the image before outputting detection data; or, the detection unit 103 may also include a camera and a processing device, the camera may form a corresponding image according to the received light beam, and output the image to the processing device, the processing device may perform a series of image processing and grayscale recognition on the image before outputting detection data, the camera may be any sensor capable of converting a light beam into an image, such as a charge coupled device image sensor (CCD), etc., the processing device may be any electronic device capable of image processing, such as a personal computer, a laptop computer, a PDA, a server or a mobile terminal, etc., and the specific setting shall be made by a technician in this field according to actual conditions, and this application shall not impose any restrictions.
[0055] In some embodiments, the output detection data may include a single target grayscale value or multiple target grayscale values. When the detection data includes only a single target grayscale value, the single target grayscale value may be a target grayscale value obtained by the detection unit 103 in the current acquisition period, or may be a target grayscale value obtained by the detection unit 103 in a certain historical acquisition period, which is specifically set by those skilled in the art according to actual conditions, and is not limited by this application; when the detection data includes multiple target grayscale values, the multiple target grayscale values may be multiple target grayscale values obtained by the detection unit 103 in a target time period, and the target time period may include the current acquisition period and a historical acquisition period adjacent to the current acquisition period, or the target time period may only include multiple historical acquisition periods, which is specifically set by those skilled in the art according to actual conditions, and is not limited by this application. Among them, if the output detection data includes multiple target grayscale values, it is convenient for technicians to compare multiple target grayscale values, so as to know the attenuation trend and attenuation amplitude of the ray source 101 after comparison.
[0056] In some embodiments, the arrangement of the at least two calibration objects may be a linear array distribution or a rectangular array distribution, which is specifically configured by those skilled in the art according to actual conditions and is not limited in this application.
[0057] For example, taking the linear array distribution between at least two calibration objects as an example, Figure 2AAs shown, at least two calibration objects include calibration object A, calibration object B and calibration object C, and the lines between the midpoints of calibration object A, calibration object B and calibration object C are parallel to the horizontal line, and the size of calibration object A in the target direction is the largest, and the size of calibration object C in the target direction is the smallest. Therefore, at least two image areas formed in the detection unit 103 are also arranged horizontally, and the image area corresponding to calibration object A appears black, and the image area corresponding to calibration object C appears white.
[0058] For example, taking the rectangular array distribution between at least two calibration objects as an example, Figure 2B As shown, at least two calibration objects include calibration object A, calibration object B, calibration object C and calibration object D, and calibration objects A, calibration object B, calibration object C and calibration object D are distributed in a rectangular array, and LA>LB>LC>LD, LA is the size of calibration object A in the target direction, LB is the size of calibration object B in the target direction, LC is the size of calibration object C in the target direction, and LD is the size of calibration object D in the target direction. Therefore, at least two image areas formed in the detection unit 103 are also distributed in a rectangular array, and the grayscale value of the image area corresponding to calibration object A is greater than the grayscale value of the image area corresponding to calibration object B, and the grayscale value of the image area corresponding to calibration object B is greater than the grayscale value of the image area corresponding to calibration object C, and the grayscale value of the image area corresponding to calibration object C is greater than the grayscale value of the image area corresponding to calibration object D.
[0059] In some embodiments, each of the at least two calibration objects may include a plurality of entities having the same size in the target direction, for example, Figure 3 As shown, at least two calibration objects are distributed in a linear array, and the at least two calibration objects include calibration object A, calibration object B and calibration object C, and calibration object A includes entity A and entity B, calibration object B includes entity C and entity D, calibration object C includes entity E and entity F, entity A and entity B have the same size in the target direction, entity C and entity D have the same size in the target direction, and entity E and entity F have the same size in the target direction. Therefore, in the at least two image areas formed in the detection unit 103, the grayscale values of the image areas corresponding to entity A and entity B are the same, the grayscale values of the image areas corresponding to entity C and entity D are the same, the grayscale values of the image areas corresponding to entity E and entity F are the same, and the grayscale values of the image areas corresponding to entity A and entity B are greater than the grayscale values of the image areas corresponding to entity C and entity D, and the grayscale values of the image areas corresponding to entity C and entity D are greater than the grayscale values of the image areas corresponding to entity E and entity F.
[0060] In some embodiments, the target image area may be obtained by receiving and responding to a control instruction triggered by a user, or may be obtained based on the correspondence between the preset electrical parameters of the radiation source 101 and the image area. The specific setting is made by those skilled in the art based on actual conditions and is not limited in this application.
[0061] Taking the example that the target image area is obtained by receiving and responding to the control instruction triggered by the user, each time the attenuation detection system of the ray source 101 is used to perform detection, the user can input the control instruction including the target image area to the attenuation detection system of the ray source 101 to specify the gray value of the target image area in the at least two image areas to be detected. If the user does not input the control instruction including the target image area to the attenuation detection system of the ray source 101 during a certain detection, the target image area in the control instruction received last time can be used.
[0062] In some embodiments, when selecting the target image area, the user may exclude the image area with the largest grayscale value and the smallest grayscale value to narrow the area selection range. Due to the limitation of the size of the calibration object, the image area with the largest grayscale value and the smallest grayscale value generally does not produce obvious grayscale value changes before and after the attenuation of the ray source 101, so when determining whether the ray source 101 is attenuated, the image area with the largest grayscale value and the smallest grayscale value will not be used as the target image area. The means of excluding the image area can be that the user excludes it when selecting the area, or when the user selects the target image area, the display area of the detection unit outputs the area selection interface, and only displays other image areas except the image area with the largest grayscale value and the smallest grayscale value in at least two image areas in the area selection interface, so as to ensure that the target image area selected by the user is any one of the other image areas.
[0063] It can be understood that the target image area is determined by receiving a control instruction triggered by the user. Since the grayscale values of different image areas have different value ranges, the user can be provided with the right to select the value range indicated in the detection data.
[0064] Taking the target image area as an example, the target image area is obtained based on the correspondence between the preset electrical parameters of the ray source 101 and the image area, because the voltage and current of the ray source 101 and the grayscale value of the image area are positively correlated, as shown in Table 1:
[0065] Table 1
[0066] Serial number Voltage of the radiation source Current of the radiation source Grayscale value of the image area 1 Elevated constant Brighten 2 reduce constant darken 3 constant Elevated Brighten 4 constant reduce darken
[0067] That is, the grayscale value of the image area is related to the electrical parameters of the ray source 101. The higher the value of the electrical parameters, the brighter the grayscale value of the image area. In order to ensure that no matter how large the electrical parameters of the ray source 101 are, the selected target grayscale value is within a fixed value range, different target image areas need to be selected for ray sources 101 with different electrical parameters. For example, in order to ensure that the target grayscale value is maintained at an appropriate value, such as around 8000, for a ray source 101 with a voltage of 120 kV and a current of 120 uA, image area A needs to be selected, and for a ray source 101 with a voltage of 130 kV and a current of 120 uA, image area B needs to be selected. The size of the calibration object corresponding to image area A in the target direction is smaller than the size of the calibration object corresponding to image area B in the target direction.
[0068] It can be understood that by associating the electrical parameters of the ray source 101 with at least two image regions, the process of determining the target image region can be simplified, and the electrical parameters of the ray source 101 at this time can be better reflected by the target grayscale value.
[0069] In some embodiments, the material of the calibration object is determined by the type of the light beam emitted by the radiation source 101 , thereby achieving compatibility with different types of radiation sources 101 .
[0070] It should be understood that different types of radiation sources 101 emit light beams with different penetrating capabilities. Therefore, when used in a radiation source 101 with a weaker beam penetrating capability, the material of the calibration object needs to be a material that is easy to penetrate. When used in a radiation source 101 with a stronger beam penetrating capability, the material of the calibration object can be a material that is not easily penetrated.
[0071] In some embodiments, if the light beam is visible light, the calibration object includes a translucent material; if the light beam is an X-ray, the calibration object includes at least one of a square metal plate, an annular metal plate and a metal ball, thereby achieving compatibility with visible light and X-rays while reducing the required cost of the calibration object.
[0072] In some embodiments, different image areas in the target image may be identified by identifying the dividing lines between different image areas based on different grayscale values in different image areas, or by setting penetrable materials or hollowing out between calibration objects of different sizes in the calibration module 102. The specific setting is made by those skilled in the art according to actual conditions and is not limited in this application.
[0073] The specific process of identifying the segmentation lines between different image areas according to the different grayscale values in the different image areas may adopt a commonly used image segmentation algorithm, which will not be described in detail here.
[0074] In some embodiments, by connecting each calibration object in the calibration module 102 through easily penetrable materials or hollows, at least two calibration objects can be automatically distinguished, and the portion of the light beam that can be absorbed after passing through the easily penetrable material or the hollow is small, so that the target image formed in the detection unit 103 can be automatically divided into at least two image areas, without the need for additional algorithms to perform the segmentation process, thereby reducing computing resource consumption.
[0075] For example, Figure 4 As shown, there is a certain interval between any two of the at least two calibration objects, and an easily penetrable material or a hollow is arranged in the interval, so that when at least two image areas are formed, there is a white interval part between any two image areas, thereby separating any two image areas.
[0076] In some embodiments, the number of the at least two calibration objects is determined by the maximum operating voltage of the radiation source 101 , so that the number of the calibration objects can be precisely controlled according to the electrical parameters of the radiation source 101 .
[0077] It should be understood that in order to ensure that the grayscale value of the image area is within a specific range, for example, the image area corresponding to the smallest calibration object in the target direction has the highest grayscale value and appears white, and the image area corresponding to the largest calibration object in the target direction has the lowest grayscale value and appears black. Therefore, the size of the calibration object in the target direction is generally restricted. For example, the size range of at least two calibration objects in the target direction is 1 to 5 mm, that is, the largest target size and the smallest target size of at least two calibration objects are fixed, and the target size of at least two calibration objects will not exceed the size range formed by the largest target size and the smallest target size. Therefore, when the number of calibration objects is increased, it means that the size difference between any two calibration objects will be reduced, so that the grayscale value difference between the corresponding two image areas in the target image formed by the detection unit will also be reduced, thereby affecting the recognition of the image area and the grayscale value calculation. Therefore, the number of calibration objects will affect the grayscale value of each image area. Therefore, in order to achieve precise control over the number of calibration objects, the specific number of calibration objects can be determined by the maximum operating voltage of the radiation source 101, that is, the number of steel plates num = VMax / Vgap, wherein VMax is the maximum operating voltage of the radiation source 101, and Vgap is the voltage accuracy of the radiation source 101. The specific value of the voltage accuracy of the radiation source 101 can be set by technical personnel in the field according to actual conditions, for example, 10KV. The smaller the Vgap, the higher the attenuation sensitivity. The number of steel plates num is a non-zero positive integer.
[0078] In some embodiments, the above detection data may be presented in a table or in a curve, which is specifically configured by those skilled in the art according to actual conditions and is not limited in this application.
[0079] Exemplarily, as shown in Table 2, taking the detection data as a table as an example, the table includes two fields: record order and target grayscale value, which respectively record the target grayscale value of each detection. For example, the target grayscale value detected for the first time is 8000, the target grayscale value detected for the second time is 7984, the target grayscale value detected for the third time is 7910, the target grayscale value detected for the fourth time is 7890, and the target grayscale value detected for the fifth time is 7835.
[0080] Table 2
[0081] Record order Target gray value 1 8000 2 7984 3 7910 4 7890 5 7835
[0082] It can be seen from the above table that the target grayscale value is gradually decreasing, which means that the ray source 101 is attenuated, and the attenuation amplitude is getting larger and larger.
[0083] For example, Figure 5 As shown, taking the detection data as an example, the curve has the recording order as the horizontal coordinate and the target gray value as the vertical coordinate. From the overall trend of the target gray value, it can be seen that the ray source 101 is attenuated, and the attenuation amplitude is getting larger and larger.
[0084] In some embodiments, the detection unit 103 is further configured to:
[0085] The prompt information is output, and the prompt information includes a reference grayscale range, so that the user can determine whether the ray source 101 is attenuated according to the size relationship between the target grayscale value and the reference grayscale range.
[0086] The above prompt information can be an audio / video signal, a prompt symbol in a table, or a prompt line in a curve. It is specifically set by technical personnel in this field according to actual conditions, and this application does not impose any limitation.
[0087] In some embodiments, the above-mentioned prompt information can be an acoustic, optical and electrical signal. When the detection unit 103 determines that the target grayscale value at this time has exceeded the reference grayscale range, the detection unit 103 can output prompt information indicating that the ray source 101 has attenuated; when the detection unit 103 determines that the target grayscale value at this time does not exceed the reference grayscale range, the detection unit 103 can output prompt information indicating that the ray source 101 has not attenuated.
[0088] In some embodiments, when the detection data is a curve, the prompt information may include a prompt line indicating the reference grayscale range, such as Figure 6 As shown, after the fourth time, the target grayscale value is smaller than the reference grayscale range, indicating that the attenuation of the ray source 101 has exceeded the warning range, and the user needs to be prompted to replace the ray source 101 or change the electrical parameters of the ray source 101.
[0089] It can be understood that by setting the detection data as a curve and the prompt information as a prompt line indicating the reference grayscale range, the attenuation degree of the ray source 101 at this time can be more intuitively seen.
[0090] In some embodiments, when the detection data is a table, the prompt information may include a prompt indicating that the reference grayscale range is exceeded and / or the reference grayscale range is not exceeded. For example, based on the detection data shown in Table 2, according to the size relationship between the target grayscale value and the reference grayscale range, it is known that the target grayscale value recorded for the 4th time and the target grayscale value recorded for the 5th time have exceeded the reference grayscale range, so in the output table, a "↓" identifier may be added next to the target grayscale value recorded for the 4th time and the target grayscale value recorded for the 5th time to indicate that the target grayscale value has exceeded the reference grayscale range, while the target grayscale values recorded for the 1st, 2nd and 3rd times do not exceed the reference grayscale range, so the "↓" identifier is not added in the output table to indicate that the target grayscale value does not exceed the reference grayscale range, as shown in Table 3:
[0091] Table 3
[0092] Record order Target gray value 1 8000 2 7984 3 7910 4 7890↓ 5 7835↓
[0093] In some embodiments, when the target grayscale value exceeds the reference grayscale range, the difference between the target grayscale value and the reference grayscale range can also be obtained, and the difference can be further identified in the detection data so that the user can intuitively check the gap between the target grayscale value and the reference grayscale range.
[0094] It is understandable that after outputting the detection data, outputting the prompt information including the reference grayscale range can allow the user to more intuitively see the attenuation of the ray source 101 at this time.
[0095] In some embodiments, the process of the detection unit 103 obtaining the target grayscale value of the target image area may include:
[0096] The detection unit 103 obtains the target image region, filters out the edge region of the target image region, and determines the average grayscale value of the filtered target image region as the target grayscale value.
[0097] It should be understood that since the edge part of the calibration module 102 will be overexposed under the action of the light beam, the distribution of the grayscale value of the edge part of the calibration module 102 in the target image generated by the detection unit 103 after receiving the light beam is not uniform, which will cause errors in the calculation of the target grayscale value. Therefore, when calculating the grayscale value of the target image area, it is necessary to first filter out the edge area of the target image area and then calculate the grayscale value.
[0098] In some embodiments, the size of the edge area of the above-mentioned target image area can be set by a person skilled in the art according to actual conditions. For example, the edge area of the target image area can be set to 0.25 times of the entire target image area. After shrinking the target image area by 0.25 times, the filtered target image area can be obtained.
[0099] The average grayscale value of the filtered target image area is calculated by using a commonly used method for calculating the grayscale value of an image, which will not be described in detail here.
[0100] In some embodiments, if the detection unit 103 includes a camera and a processing device, the process of the detection unit 103 obtaining the target grayscale value of the target image area may include:
[0101] The camera receives and obtains and outputs a target image according to the light beam attenuated by the calibration module;
[0102] The processing device receives a target image, determines a target image region in the target image, filters out an edge region of the target image region, and determines an average grayscale value of the filtered target image region as a target grayscale value.
[0103] After determining the target grayscale value, the processing device may output detection data including the target grayscale value.
[0104] It can be understood that by filtering out the edge area of the target image area and calculating the average grayscale value of the target image area after filtering out the edge area, the grayscale value error caused by overexposure of the edge portion of the calibration module 102 can be reduced.
[0105] In some embodiments, the detection unit 103 is further configured to:
[0106] Determining a parameter adjustment value according to a difference between a reference gray value and a target gray value;
[0107] According to the parameter adjustment value, the ray source 101 is controlled to adjust the electrical parameters of the ray source 101 .
[0108] It should be understood that the above-mentioned radiation source 101 detection system can be applicable to an application environment where the object to be detected 104 is detected, such as Figure 7 As shown, the application environment includes a ray source 101, a calibration module 102, an object to be measured 104 and a detection unit 103. The calibration module 102 and the object to be measured 104 are arranged between the ray source 101 and the detection unit 103. The calibration module 102 and the object to be measured 104 can be at different heights or at the same height, so as not to affect the complete target image formed in the detection unit 103. Figure 7 The above is only an example and should not be regarded as a limitation to this embodiment.
[0109] Thus, during the process of detecting the object 104 to be measured by using the radiation source 101, the detection unit 103 can adjust the electrical parameters of the radiation source 101 in real time according to the difference between the target gray value and the reference gray value, so as to automatically adjust the tube voltage and tube current values of the radiation source 101 to dynamically maintain the optimal imaging state and reduce the influence of the attenuation of the radiation source 101 on the detection result of the object 104 to be measured.
[0110] In some embodiments, the above parameter adjustment value can be a fixed value. Once the difference between the reference gray value and the target gray value does not exceed the preset range, the parameter adjustment value can be a first value. Once the difference between the reference gray value and the target gray value exceeds the preset range, the parameter adjustment value can be a second value. The first value and the second value are different, that is, regardless of whether the detected target gray value exceeds the preset range, the electrical parameters of the radiation source 101 are adjusted, but the corresponding adjustment amplitudes are different to adapt to different attenuation degrees of the radiation source 101. For example, when the difference between the reference gray value and the target gray value does not exceed the preset range, the parameter adjustment value is 1, and when the difference between the reference gray value and the target gray value exceeds the preset range, the parameter adjustment value is set to 3.
[0111] Alternatively, when the difference between the reference gray value and the target gray value does not exceed the preset range, no parameter adjustment value is set, that is, the electrical parameters of the radiation source 101 are not adjusted. When the difference between the reference gray value and the target gray value exceeds the preset range, the parameter adjustment value is set to a third parameter value, that is, the electrical parameters of the radiation source 101 are adjusted only when it is detected that the target gray value exceeds the preset range.
[0112] Exemplarily, taking the case where no parameter adjustment value is set when the difference between the reference gray value and the target gray value does not exceed the preset range, that is, the electrical parameters of the radiation source 101 are not adjusted, and the parameter adjustment value is set to 1 when the difference between the reference gray value and the target gray value exceeds the preset range as an example. If the current voltage of the radiation source 101 is V = v (kV) and the current is A = a (uA), the reference gray range is G = 8000, and the preset range is ±100. After the detection unit 103 obtains the target gray value G' of the target image area, if G - G' > 100, the voltage V needs to be adjusted, and each time V = V + 1 until -100 < G - G' < 100. However, if G - G' < -100, the voltage V needs to be adjusted, and each time V = V - 1 until -100 < G - G' < 100.
[0113] In some other embodiments, the above parameter adjustment value can be determined according to the difference between the reference gray value and the target gray value, and the parameter adjustment value is proportional to the difference between the reference gray value and the target gray value.
[0114] Exemplarily, if the current voltage V=v(kV) of the radiation source 101, the current current A=a(uA), the reference grayscale value is G=8000, and the preset range is ±100, after the detection unit 103 obtains the target grayscale value G' of the target image area, if G-G'>100 or G-G'<-100, then the parameter adjustment value V' is determined, V'=|G-G'| / 100, so that when G-G'>100, V=V+V' is set, and when G-G'<-100, V=V-V' is set.
[0115] It can be understood that, by automatically adjusting the electrical parameters of the ray source 101 according to the difference between the reference grayscale range and the target grayscale value, the optimal imaging state can be dynamically maintained.
[0116] Figure 8 This is a flow chart of a method for detecting ray source attenuation provided in an embodiment of the present application. Figure 8 As shown, the method comprises the following steps:
[0117] Step S101, emitting a light beam through a ray source;
[0118] Step S102, receiving by the detection unit and obtaining a target image based on the light beam attenuated by the calibration module, the target image includes at least two image areas, and outputting detection data based on the target grayscale value of the target image area. The detection data includes the target grayscale value. The at least two image areas correspond one-to-one to at least two calibration objects of the calibration module, and the target image area is one of the at least two image areas.
[0119] In some embodiments, the process of outputting the detection data according to the target grayscale value of the target image area in the above step S102 may include:
[0120] A target image area corresponding to the electrical parameters of the ray source is determined from at least two image areas, a target grayscale value of the target image area is obtained and recorded, and detection data is output, the detection data including the recorded target grayscale value.
[0121] In some embodiments, the above method further comprises:
[0122] Output prompt information, which includes a reference grayscale range, so that the user can determine whether the ray source is attenuated according to the size relationship between the target grayscale value and the reference grayscale range.
[0123] In some embodiments, if the detection data is a curve, the curve has the recording order as the horizontal axis and the target gray value as the vertical axis, and the prompt information includes a prompt line indicating the reference gray range.
[0124] In some embodiments, the step of obtaining the target grayscale value of the target image area may include:
[0125] A target image region is obtained, an edge region of the target image region is filtered out, and an average grayscale value of the filtered target image region is determined as a target grayscale value.
[0126] In some embodiments, the above method further comprises:
[0127] Determining a parameter adjustment value according to a difference between a reference grayscale range and a target grayscale value;
[0128] According to the parameter adjustment value, the ray source is controlled to adjust the electrical parameters of the ray source.
[0129] In some embodiments, the material of the calibration object is determined by the type of the light beam emitted by the radiation source.
[0130] In some embodiments, if the light beam is visible light, the calibration object includes a translucent material; if the light beam is an X-ray, the calibration object includes at least one of a square metal plate, a ring-shaped metal plate, and a metal ball.
[0131] In some embodiments, each calibration object in the calibration module is connected by a penetrable material or a hollow connection.
[0132] In some embodiments, the number of the at least two calibration objects is determined by the maximum operating voltage of the radiation source.
[0133] It should be understood that although Figure 8 The steps in the flowchart are shown in sequence as indicated by the arrows, but these steps are not necessarily executed in the order indicated by the arrows. Unless otherwise specified in this document, there is no strict order restriction for the execution of these steps, and these steps can be executed in other orders. Moreover, Figure 8 At least part of the steps may include multiple sub-steps or multiple stages. These sub-steps or stages are not necessarily executed at the same time, but can be executed at different times. The execution order of these sub-steps or stages is not necessarily sequential, but can be executed in turn or alternately with other steps or at least part of the sub-steps or stages of other steps.
[0134] It should be noted that in the embodiment of the present application, if the above method is implemented in the form of a software function module and sold or used as an independent product, it can also be stored in a computer-readable storage medium. Based on such an understanding, the technical solution of the embodiment of the present application can be essentially or partly embodied in the form of a software product that contributes to the relevant technology. The computer software product is stored in a storage medium, including several instructions to enable an electronic device to execute all or part of the methods described in each embodiment of the present application. The aforementioned storage medium includes: various media that can store program codes, such as a U disk, a mobile hard disk, a read-only memory (ROM), a magnetic disk or an optical disk. In this way, the embodiment of the present application is not limited to any specific combination of hardware and software.
[0135] The embodiment of the present application provides a computer device, which may be a server, and its internal structure diagram may be as follows: Fig. 9 As shown. The computer device includes a processor, a memory and a network interface connected through a system bus. Among them, the processor of the computer device is used to provide computing and control capabilities. The memory of the computer device includes a non-volatile storage medium and an internal memory. The non-volatile storage medium stores an operating system, a computer program and a database. The internal memory provides an environment for the operation of the operating system and the computer program in the non-volatile storage medium. The database of the computer device is used to store data. The network interface of the computer device is used to communicate with an external terminal through a network connection. When the computer program is executed by the processor, a method for detecting attenuation of a ray source is implemented.
[0136] An embodiment of the present application provides a computer-readable storage medium on which a computer program is stored. When the computer program is executed by a processor, the steps in the method provided in the above embodiment are implemented.
[0137] An embodiment of the present application provides a computer program product including instructions, which, when executed on a computer, enables the computer to execute the steps of the method provided in the above method embodiment.
[0138] Those skilled in the art will understand that Fig. 9 The structure shown in the figure is only a block diagram of a part of the structure related to the solution of the present application, and does not constitute a limitation on the computer device to which the solution of the present application is applied. The specific computer device may include more or fewer components than those shown in the figure, or combine certain components, or have a different arrangement of components.
[0139] In one embodiment, the memory of the computer device may store various program modules constituting the electronic device. The computer program composed of the various program modules enables the processor to execute the steps of the ray source attenuation detection method of various embodiments of the present application described in this specification.
[0140] In one embodiment, a computer device is provided, including a memory and a processor, wherein the memory stores a computer program, and the processor implements the steps of the above-mentioned ray source attenuation detection method when executing the computer program.
[0141] It should be noted here that the description of the above storage medium and device embodiments is similar to the description of the above method embodiments, and has similar beneficial effects as the method embodiments. For technical details not disclosed in the storage medium, storage medium and device embodiments of this application, please refer to the description of the method embodiments of this application for understanding.
[0142] It should be understood that "one embodiment" or "an embodiment" or "some embodiments" mentioned throughout the specification means that specific features, structures or characteristics related to the embodiment are included in at least one embodiment of the present application. Therefore, "in one embodiment" or "in one embodiment" or "in some embodiments" appearing throughout the specification may not necessarily refer to the same embodiment. In addition, these specific features, structures or characteristics can be combined in one or more embodiments in any suitable manner. It should be understood that in various embodiments of the present application, the size of the sequence number of the above-mentioned processes does not mean the order of execution, and the execution order of each process should be determined by its function and internal logic, and should not constitute any limitation on the implementation process of the embodiment of the present application. The above-mentioned sequence numbers of the embodiments of the present application are only for description and do not represent the advantages and disadvantages of the embodiments. The above description of each embodiment tends to emphasize the differences between the various embodiments, and the same or similar aspects can be referenced to each other. For the sake of brevity, this article will not repeat them.
[0143] The term "and / or" in this article is only a description of the association relationship of associated objects, indicating that there may be three relationships. For example, object A and / or object B can represent three situations: object A exists alone, object A and object B exist at the same time, and object B exists alone.
[0144] It should be noted that, in this article, the terms "include", "comprises" or any other variations thereof are intended to cover non-exclusive inclusion, so that a process, method, article or device including a series of elements includes not only those elements, but also other elements not explicitly listed, or also includes elements inherent to such process, method, article or device. In the absence of further restrictions, an element defined by the sentence "comprises a ..." does not exclude the existence of other identical elements in the process, method, article or device including the element.
[0145] In the several embodiments provided in the present application, it should be understood that the disclosed devices and methods can be implemented in other ways. The embodiments described above are merely illustrative. For example, the division of the modules is only a logical function division. There may be other division methods in actual implementation, such as: multiple modules or components can be combined, or can be integrated into another system, or some features can be ignored, or not executed. In addition, the coupling, direct coupling, or communication connection between the components shown or discussed can be through some interfaces, and the indirect coupling or communication connection of devices or modules can be electrical, mechanical or other forms.
[0146] The modules described above as separate components may or may not be physically separated, and the components displayed as modules may or may not be physical modules; they may be located in one place or distributed on multiple network units; some or all of the modules may be selected according to actual needs to achieve the purpose of the present embodiment.
[0147] In addition, all functional modules in the embodiments of the present application may be integrated into one processing unit, or each module may be a separate unit, or two or more modules may be integrated into one unit; the above-mentioned integrated modules may be implemented in the form of hardware or in the form of hardware plus software functional units.
[0148] A person skilled in the art can understand that all or part of the steps of implementing the above method embodiment can be completed by hardware related to program instructions, and the aforementioned program can be stored in a computer-readable storage medium. When the program is executed, it executes the steps of the above method embodiment; and the aforementioned storage medium includes: mobile storage devices, read-only memories (ROM), magnetic disks or optical disks, etc., various media that can store program codes.
[0149] Alternatively, if the above-mentioned integrated unit of the present application is implemented in the form of a software function module and sold or used as an independent product, it can also be stored in a computer-readable storage medium. Based on this understanding, the technical solution of the embodiment of the present application can essentially or in other words, the part that contributes to the relevant technology can be embodied in the form of a software product, and the computer software product is stored in a storage medium, including a number of instructions for enabling an electronic device to execute all or part of the methods described in each embodiment of the present application. The aforementioned storage medium includes: various media that can store program codes, such as mobile storage devices, ROMs, magnetic disks, or optical disks.
[0150] The methods disclosed in several method embodiments provided in this application can be arbitrarily combined without conflict to obtain new method embodiments.
[0151] The features disclosed in several product embodiments provided in this application can be arbitrarily combined without conflict to obtain new product embodiments.
[0152] The features disclosed in several method or device embodiments provided in this application can be arbitrarily combined without conflict to obtain new method embodiments or device embodiments.
[0153] The above is only an implementation method of the present application, but the protection scope of the present application is not limited thereto. Any person skilled in the art who is familiar with the present technical field can easily think of changes or substitutions within the technical scope disclosed in the present application, which should be included in the protection scope of the present application. Therefore, the protection scope of the present application should be based on the protection scope of the claims.
Claims
1. A radiation source attenuation detection system, characterized in that: The system includes a ray source, a calibration module and a detection unit, wherein: The ray source is used to emit a light beam; The calibration module is arranged between the ray source and the detection unit, and includes at least two calibration objects, and different calibration objects have different sizes in a target direction, and the target direction is the light beam emission direction of the ray source; The detection unit is used to receive and obtain a target image based on the light beam attenuated by the calibration module, the target image includes at least two image areas, and output detection data based on the target grayscale value of the target image area, the detection data includes the target grayscale value, the at least two image areas correspond one-to-one to the at least two calibration objects, and the target image area is one of the at least two image areas.
2. The system according to claim 1, characterized in that The detection unit outputs detection data according to the target grayscale value of the target image area, including: The detection unit determines a target image area corresponding to the electrical parameters of the radiation source from the at least two image areas, obtains and records a target grayscale value of the target image area, and outputs detection data, wherein the detection data includes the recorded target grayscale value.
3. The system according to claim 1 or 2, characterized in that: The detection unit is further used for: Outputting prompt information, wherein the prompt information includes a reference grayscale range, so that the user can determine whether the ray source is attenuated according to a magnitude relationship between the target grayscale value and the reference grayscale range.
4. The system according to claim 3, characterized in that The detection data is a curve, the curve has the recording order as the horizontal axis and the target grayscale value as the vertical axis, and the prompt information includes a prompt line indicating the reference grayscale range.
5. The system according to claim 2, characterized in that The detection unit obtains the target grayscale value of the target image area, including: The detection unit obtains the target image area, filters out the edge area of the target image area, and determines the average grayscale value of the filtered target image area as the target grayscale value.
6. The system according to claim 2, characterized in that The detection unit is further used for: Determining a parameter adjustment value according to a difference between a reference grayscale value and the target grayscale value; According to the parameter adjustment value, the ray source is controlled to adjust the electrical parameters of the ray source.
7. The system according to claim 1, characterized in that The material of the calibration object is determined by the type of the light beam emitted by the ray source.
8. The system according to claim 7, characterized in that If the light beam is visible light, the calibration object includes a translucent material; if the light beam is an X-ray, the calibration object includes at least one of a square metal plate, a ring metal plate and a metal ball.
9. The system according to claim 1, characterized in that Each calibration object in the calibration module is connected by easy-to-penetrate materials or hollowing.
10. The system according to claim 1, wherein: The number of the at least two calibration objects is determined by the maximum operating voltage of the radiation source.
11. A method for detecting radiation source attenuation, characterized in that: Applied to a radiation source attenuation detection system, the system includes a radiation source, a calibration module and a detection unit, the calibration module is arranged between the radiation source and the detection unit, the calibration module includes at least two calibration objects, and different calibration objects have different sizes in a target direction, the target direction is the light beam emission direction of the radiation source, and the method includes: emitting a light beam through the ray source; The detection unit receives and obtains a target image based on the light beam attenuated by the calibration module, the target image includes at least two image areas, and detection data is output based on the target grayscale value of the target image area. The detection data includes the target grayscale value. The at least two image areas correspond one-to-one to the at least two calibration objects, and the target image area is one of the at least two image areas.
12. A computer storage medium having a computer program stored thereon, characterized in that: When the computer program is executed by a processor, the method according to claim 11 is implemented.
Citation Information
Patent Citations
Method and device for determining illumination intensity for detection and optical detection method and device
CN105911724A
Intelligent calibration method for X-ray thickness gauge
CN117109494A
X-ray nondestructive testing and calibration method and equipment based on computed tomography
CN118169154A
X-ray-based nondestructive testing method and system for internal defects of power supply equipment
CN118566266A
Radiographic inspection apparatus
JP2012123011A