Image acquisition method and system
By using imaging pulse sequence information to predict the synchronization start time in a non-destructive testing system, the detector automatically synchronizes the X-ray pulses, solving the complexity and cost problems of existing synchronization methods and achieving efficient image acquisition and detection results.
Patent Information
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- IRAY IMAGING TECH (HAINING) LTD
- Filing Date
- 2026-01-29
- Publication Date
- 2026-05-08
AI Technical Summary
Existing software and hardware synchronization methods in nondestructive testing systems suffer from complex control timing, poor real-time performance, and high costs. In particular, in MV-level industrial nondestructive testing systems, the long length of hardware synchronization cables leads to inconvenience in system integration and maintenance.
By pre-designing the imaging pulse sequence information, the detector analyzes the image data in the background scanning state to determine the synchronization start time, and predicts the arrival time of the imaging pulse based on the imaging pulse sequence information. Before the arrival, it switches to the integration state to receive the imaging pulse signal, thereby realizing the automatic synchronization between the detector and the X-ray pulse and eliminating the need for physical synchronization cables.
This improved the data synchronization between the detector and the pulsed X-ray source, reduced system costs and integration difficulty, and enhanced imaging quality and detection performance.
Smart Images

Figure CN121994833A_ABST
Abstract
Description
Technical Field
[0001] This application relates to the field of product testing, and more specifically, the embodiments of this application relate to image acquisition methods and systems. Background Technology
[0002] In a non-destructive testing system (e.g., an MV-level industrial non-destructive testing system), it typically consists of a pulsed X-ray source (e.g., a pulsed accelerator), a detector (e.g., an X-ray flat panel detector), and a computer. The pulsed accelerator generates X-ray pulses with widths on the order of microseconds, while the detector converts the received X-ray intensity signals into digital images.
[0003] Detectors typically operate using a line-by-line scanning method. If an X-ray pulse irradiates the image during the scanning process corresponding to the imaging pulse, a high-grayscale bright line will form on the corresponding scan line, causing image artifacts and severely affecting image quality. Therefore, it is necessary to achieve accurate synchronization between the accelerator's emission pulses and the detector's acquisition timing to improve the quality of the acquired effective images.
[0004] Currently, there are two main synchronization methods: software synchronization and hardware synchronization. Software synchronization uses a computer to control the state of both devices, but its control timing is complex and its real-time performance is poor. Hardware synchronization uses a dedicated synchronization cable to transmit trigger signals between the accelerator and the detector, but this cable is long, which increases system cost and makes integration and maintenance inconvenient.
[0005] In summary, existing software and hardware synchronization methods each have significant drawbacks, thus a more efficient synchronization method applicable to nondestructive testing systems is urgently needed. Summary of the Invention
[0006] The purpose of this application is to provide an image acquisition method and system. The image acquisition method provided by this application sends pre-designed imaging pulse sequence information to a detector. The detector, which is currently performing leakage current scanning and clearing, determines the synchronization start time and calculates the arrival time of subsequent imaging pulses based on the synchronization start time and the imaging pulse sequence information. Before the arrival of the expected later imaging pulse, the leakage current scanning is stopped and the system enters an integration state to receive the imaging pulse signal. After reception, the scanning is restarted for acquisition. The embodiments of this application utilize imaging pulse sequence information to predict the arrival time of each imaging pulse, thereby achieving automatic synchronization between the detector scanning sequence and the X-ray pulses. This eliminates the need for physical synchronization cables, reducing system cost and integration difficulty, and is particularly suitable for non-destructive testing systems for MV-level or other high-energy pulsed X-rays.
[0007] In a first aspect, embodiments of this application provide an image acquisition method applied to a detector. The image acquisition method includes: acquiring imaging pulse sequence information for a test object, wherein the imaging pulse sequence information is attribute information of an imaging pulse sequence to be emitted designed for this detection; synchronously analyzing scanned image data in a background scanning state to determine a synchronization start time with a pulsed X-ray source, wherein the background scanning state is used to clear leakage current; predicting the arrival time of at least one imaging pulse in the imaging pulse sequence to be emitted based on the synchronization start time and the imaging pulse sequence information; before the arrival time, controlling the detector to switch from the background scanning state to an integration state to receive the at least one imaging pulse; and performing an image reading operation to read out the image corresponding to the at least one imaging pulse in response to the completion of receiving the at least one imaging pulse.
[0008] The embodiments of this application utilize the pre-plannable imaging pulse sequence of the object under test to provide the pre-planned imaging pulse sequence information to the detector. This allows the detector to be controlled to prematurely terminate the background scanning state used for leakage current clearance and wait for the imaging pulse to arrive and complete the image acquisition of the imaging pulse. This improves the data synchronization between the detector and the pulsed X-ray source with minimal impact on the detector's leakage current clearance, thereby improving the imaging effect of the imaging pulse sequence and ultimately improving the detection effect of the object under test.
[0009] In some embodiments, the step of synchronously analyzing the scanned image data to determine the synchronization start time with the pulsed X-ray source during background scanning includes: confirming the detection of at least one feature image; and determining the synchronization start time based on the at least one feature image.
[0010] Some embodiments of this application can improve the synchronization effect by identifying the feature image corresponding to at least one synchronization pulse and thus obtaining the synchronization start time.
[0011] In some embodiments, confirming the detection of at least one feature image includes: confirming the detection of a first feature image; determining the synchronization start time based on the at least one feature image includes: determining the arrival time of a first pulse based on the first feature image; and using the arrival time of the first pulse as the synchronization start time.
[0012] Some embodiments of this application use the first pulse as the synchronization pulse and the time of receiving the first pulse as the synchronization start time, which can improve the synchronization speed.
[0013] In some embodiments, determining the arrival time of the first pulse based on the first feature image includes: calculating the arrival time of the first pulse based on the row position and row scan period of the bright line in the first feature image.
[0014] Some embodiments of this application utilize the feature attribute information of the feature image (i.e., the row position of the bright line) and the row scanning period of the detector to determine the arrival time of the corresponding pulse, thereby improving the accuracy of the arrival time calculation.
[0015] In some embodiments, the method further includes: acquiring synchronization pulse sequence information, wherein the synchronization pulse sequence information is used to define synchronization pulse coding rules; wherein confirming the detection of at least one feature image includes: confirming the continuous detection of multiple feature images; determining the synchronization start time based on the at least one feature image includes: confirming that the attribute information of multiple pulses corresponding to the multiple feature images satisfies the synchronization pulse coding rules, wherein one feature image is generated by one pulse; and taking the arrival time of the target pulse among the multiple pulses as the synchronization start time.
[0016] Some embodiments of this application ensure the accuracy of the synchronization start point by determining whether the attribute information of the received multiple pulses meets the synchronization pulse coding rules, thereby eliminating isolated and accidental electrical noise interference and improving the accuracy of the determined synchronization start time.
[0017] In some embodiments, the synchronization pulse coding rule is used to define the time interval between multiple synchronization pulses in a synchronization pulse sequence; confirming that the attribute information of multiple pulses corresponding to the multiple feature images satisfies the synchronization pulse coding rule includes: obtaining the arrival time of the multiple pulses to obtain a pulse arrival time sequence; if it is confirmed that the time interval between adjacent arrival times in the pulse arrival time sequence matches the time interval defined in the synchronization pulse sequence coding rule, then it is confirmed that the synchronization pulse coding rule is satisfied.
[0018] The embodiments of this application improve the accuracy of the synchronization start point by determining whether the arrival time interval of multiple pulses corresponding to multiple feature images meets the preset synchronization pulse coding rules.
[0019] In some embodiments, the feature image is an image with a bright line; confirming that at least one feature image has been detected includes: if it is confirmed that the gray value of a row of the j-th image or the gray value of multiple consecutive rows exceeds the background gray value threshold, then the j-th image is determined to be the feature image; or, if it is confirmed that the gray value difference between the row containing the bright line in the j-th image and the adjacent rows of the row containing the bright line meets the requirements, then the j-th image is determined to be the feature image; wherein, the j-th image is any image to be analyzed, and j is an integer.
[0020] The embodiments of this application determine whether a feature image is recognized by using grayscale features that match the application scenario of this application, thereby improving the accuracy of feature image recognition.
[0021] Secondly, some embodiments of this application provide an image acquisition method applied to a pulsed X-ray source. The method includes: in response to a synchronization pulse sequence triggering command received from a host computer, transmitting a synchronization pulse sequence to a detector according to a synchronization pulse coding rule to achieve synchronization with the detector; and in response to an imaging pulse sequence triggering command received from the host computer, transmitting an imaging pulse sequence to the detector according to imaging pulse sequence information, so that the detector completes image acquisition of the object under test according to the imaging pulse sequence.
[0022] Thirdly, some embodiments of this application provide an image acquisition method applied to a host computer. The image acquisition method includes: determining imaging pulse sequence information for a target object, wherein determining synchronization pulse sequence information; sending the imaging pulse sequence information and the synchronization pulse sequence information to a detector; sending a synchronization pulse sequence trigger command to an accelerator, instructing the accelerator to start emitting a synchronization pulse sequence; sending an imaging pulse sequence trigger command to the accelerator, instructing the accelerator to start emitting an imaging pulse sequence; receiving an image acquired by the detector according to the imaging pulse sequence, and determining parameters of the target object based on the image.
[0023] Fourthly, some embodiments of this application provide an image acquisition system, the system comprising: a host computer configured to: determine imaging pulse sequence information for a target object, wherein the imaging pulse sequence information is attribute information of an imaging pulse sequence to be emitted designed for this detection; determine synchronization pulse sequence information; send the imaging pulse sequence information and the synchronization pulse sequence information to a detector; send a synchronization pulse sequence trigger command to an accelerator, instructing the accelerator to start emitting the synchronization pulse sequence; send an imaging pulse sequence trigger command to the accelerator, instructing the accelerator to start emitting the imaging pulse sequence; receive an image acquired by the detector according to the imaging pulse sequence, and determine parameters of the target object based on the image; and a pulsed X-ray source configured to: respond to the synchronization pulse sequence trigger command received from the host computer, emit a synchronization pulse sequence to the detector according to a synchronization pulse coding rule to complete the detection of the target object. Detector synchronization; in response to an imaging pulse sequence trigger command received from the host computer, transmitting an imaging pulse sequence to the detector according to the imaging pulse sequence information, so that the detector completes image acquisition of the object under test according to the imaging pulse sequence; the detector is configured to: receive the imaging pulse sequence information; in a background scanning state, synchronously analyze the scanned image data to determine the synchronization start time with the pulsed X-ray source, wherein the background scanning state is used to clear leakage current; predict the arrival time of at least one imaging pulse in the imaging pulse sequence to be emitted according to the synchronization start time and the imaging pulse sequence information; before the arrival time, control the detector to switch from the background scanning state to the integration state to receive the at least one imaging pulse; in response to the completion of receiving the at least one imaging pulse, perform an image reading operation to read out the image corresponding to the at least one imaging pulse.
[0024] Fifthly, some embodiments of this application provide a detector comprising: a receiving module configured to acquire imaging pulse sequence information for a target object, wherein the imaging pulse sequence information is attribute information of an imaging pulse sequence to be emitted designed for this detection; a synchronization time identification module configured to synchronously analyze scanned image data in a background scanning state to determine a synchronization start time with a pulsed X-ray source, wherein the background scanning state is used to clear leakage current; a prediction module configured to predict the arrival time of at least one imaging pulse in the imaging pulse sequence to be emitted based on the synchronization start time and the imaging pulse sequence information; an imaging pulse interface module configured to control the detector to switch from the background scanning state to an integration state before the arrival time to receive the at least one imaging pulse; and a target image readout module configured to perform an image reading operation to read out an image corresponding to the at least one imaging pulse in response to the completion of receiving the at least one imaging pulse.
[0025] Sixthly, some embodiments of this application provide a computer program product, characterized in that it includes computer program instructions, which, when read and executed by a processor, can implement the method described in any of the above embodiments. Attached Figure Description
[0026] To more clearly illustrate the technical solutions of the embodiments of this application, the accompanying drawings used in the embodiments of this application will be briefly introduced below. It should be understood that the following drawings only show some embodiments of this application and should not be regarded as a limitation of the scope. For those skilled in the art, other related drawings can be obtained based on these drawings without creative effort.
[0027] Figure 1 This is an architecture diagram of the image acquisition system provided in an embodiment of this application.
[0028] Figure 2 This is one of the flowcharts for the image acquisition method in this application.
[0029] Figure 3 The second flowchart of the image acquisition method provided in this application embodiment.
[0030] Figure 4 The third flowchart of the image acquisition method provided in the embodiments of this application.
[0031] Figure 5 This is a block diagram of the image acquisition device provided in the embodiments of this application. Detailed Implementation
[0032] The technical solutions in the embodiments of this application will now be described with reference to the accompanying drawings.
[0033] It should be noted that similar reference numerals and letters in the following figures indicate similar items; therefore, once an item is defined in one figure, it does not need to be further defined and explained in subsequent figures. Furthermore, in the description of this application, terms such as "first," "second," etc., are used only to distinguish descriptions and should not be construed as indicating or implying relative importance.
[0034] At least to address the problems pointed out in the background section, the image acquisition method provided by the embodiments of this application includes: sending imaging pulse sequence information to a detector; starting the detector to perform background scanning and detecting feature images formed by X-ray pulses in the image in real time; determining the synchronization start time when a feature image is detected; thereafter, the detector, based on the imaging pulse sequence information, stops background scanning and enters integration state to receive the imaging pulse signal before the expected imaging pulse arrives; after receiving the completed imaging pulse signal, it restarts the effective image acquisition scan to acquire an image corresponding to the imaging pulse sequence. This invention utilizes the characteristics of pulsed X-ray imaging on the detector to achieve automatic synchronization between the detector scanning sequence and the X-ray pulse, eliminating the need for synchronization cables, reducing system cost and integration difficulty, and is applicable to MV-level high-energy pulsed X-ray non-destructive testing systems. For example, some embodiments of this application combine the X-ray characteristics output by the accelerator with the workflow of non-destructive testing to achieve synchronization between the accelerator emitting X-rays and the detector receiving X-rays, eliminating exposure synchronization cables, saving system cost, and increasing the convenience of system integration.
[0035] Please refer to Figure 1 , Figure 1 Some embodiments of this application provide an image acquisition system, which includes: a host computer 100, a pulsed X-ray source 200, and a detector 300.
[0036] The host computer 100 includes a task planning module 110 and a communication interface module 120.
[0037] The task planning module 110 pre-plans imaging pulses based on the input workpiece parameters (as an example of the object to be tested) and / or the detection mode to obtain imaging pulse sequence information. That is, in some embodiments of this application, the task planning module 110 obtains the imaging pulse sequence information based on the workpiece parameters. In some embodiments of this application, the task planning module 110 determines the imaging pulse sequence information based on the detection mode. In some embodiments of this application, the task planning module 110 obtains the imaging pulse sequence information based on both the workpiece parameters and the detection mode.
[0038] For example, some embodiments of this application can be applied to the field of industrial nondestructive testing. In MV applications, the task planning module 110 is configured to plan the number of MV pulses required for the workpiece to be inspected and the intervals between different MV pulses based on the differences in image quality requirements between DR and CT detection modes, thereby obtaining imaging pulse sequence information. It is easy to understand that the embodiments of this application, by pre-planning the imaging pulse sequence information of the pulsed X-ray source (i.e., the MV-level industrial nondestructive testing accelerator) for the detection target, can enable the detector to synchronize based on this information.
[0039] A communication interface module (e.g., an Ethernet interface module) is used to establish a connection with the detector. For example, in some embodiments of this application, the communication interface module can provide the detector with pre-planned imaging pulse sequence information, so that the detector can predict the arrival time of the imaging pulse based on the imaging pulse sequence information, and then stop background scanning before the arrival time to wait for the imaging pulse to arrive, thereby better completing data synchronization.
[0040] It should be noted that, in this embodiment of the application, the host computer can be connected to the detector via a communication line to send imaging pulse sequence information and control commands to the detector. Alternatively, the host computer can be connected to the pulsed X-ray source via another communication line to send start commands, synchronization pulse emission commands, or imaging pulse emission commands to the pulsed X-ray source.
[0041] The pulsed radiation source (such as an MV-level accelerator) in this application embodiment includes a pulse generator 210 and a clock 220.
[0042] Pulse generator 210 is used to generate synchronization pulses and imaging pulses, such as radiation pulses (e.g., X-ray pulses), and clock 220 is used to maintain its own timing.
[0043] In the embodiments of this application, there is no synchronization cable between the pulsed X-ray source and the detector. In some embodiments of this application, the pulsed X-ray source can emit a synchronization pulse sequence and an imaging pulse sequence to the detector. The synchronization pulse sequence serves as a dedicated coded pulse for the synchronization start signal. For example, the synchronization pulse sequence can consist of a few pulses that are continuous and have a specific time interval (e.g., two pulses with a 15ms interval). The detector identifies and verifies this specific code to confirm the formal start of the detection process and records the arrival time of the target pulse in the synchronization pulse sequence as the absolute time start point t0 of the entire imaging pulse sequence (i.e., the synchronization start time). It should be noted that the synchronization pulses in the synchronization pulse sequence are not used to generate effective workpiece images. The imaging pulse sequence is the effective exposure pulse used to actually irradiate the workpiece (as an example of the object under test) and image it. For example, in the embodiments of this application, the number of imaging pulses (e.g., 8) and the interval (e.g., 300ms) in the imaging pulse sequence can be pre-planned according to the current detection task (workpiece shape or working mode DR / CT mode) (i.e., imaging pulse sequence information). It should be noted that each imaging pulse in the imaging pulse sequence is used to provide the X-ray imaging pulse signal required for effective imaging. After the detector is synchronized based on t0 and the known sequence, each imaging pulse will arrive within the static integration window predicted and prepared by the detector, thereby generating multiple artifact-free effective images for reconstructing or analyzing the object under test. Relevant parameters of the workpiece under test can be obtained through these images.
[0044] Some embodiments of this application achieve high-precision exposure control between the pulsed X-ray source and the detector in the absence of a physical synchronization line by working together with the synchronization pulse sequence and the imaging pulse sequence.
[0045] The detector 300 in some embodiments of this application includes a sensor panel 310, a scanning control and readout circuit 320, and a real-time image processing unit 330. The real-time image processing unit 330 includes a background scanning controller 331, a feature image detection module 332, a synchronization logic verification module 333, a timing predictor 334, and a state machine controller 335.
[0046] The sensor panel is used to receive X-ray pulses (including synchronization pulses or imaging pulses) emitted by a pulsed X-ray source and convert the pulsed X-rays into charge signals to obtain an image.
[0047] For example, in an MV-level industrial non-destructive testing system, the detector's sensor panel includes a scintillator layer and a photodiode / transistor array. The scintillator converts high-energy X-ray photons into visible light, which is then converted into charge signals by the closely spaced photodiodes below. Each photodiode, along with its associated storage capacitor and readout switch, constitutes a pixel unit.
[0048] The components associated with leakage current are these photodiodes and storage capacitors. Under bias voltage, photodiodes generate dark current, and storage capacitors also have leakage paths. These leakage currents are continuously injected into the storage capacitors during integration, forming a useless charge that is independent of the light signal and grows linearly over time. Due to minute variations in the manufacturing process, the leakage current varies for each pixel, resulting in inconsistent background signals for each pixel when there is no exposure. This manifests as fixed pattern noise in the image, thus requiring background scanning to remove the leakage current.
[0049] To address the leakage current accumulation problem, related technologies involve detectors performing background scanning during non-exposure periods. This involves periodically closing the readout switch of each pixel, transferring the charge (mainly leakage current) from the storage capacitor to the readout circuit, and resetting the capacitor. This process is considered a necessary maintenance operation, and the readout data is discarded. In contrast, the embodiments of this application creatively integrate this necessary maintenance background scanning process with synchronous information sensing capabilities. Specifically, in the embodiments of this application, the image data stream generated by the sensor panel during background scanning, containing the leakage current background and possible pulse signals, is sent in real-time to the image processing unit (where the feature image detection module performs feature image recognition) for analysis. This algorithm can identify characteristic bright lines (i.e., feature images) caused by brief ray pulses with intensity exceeding the leakage current from the leakage current-based background signal. It is easy to understand that the embodiments of this application transform the sensor panel and its leakage current characteristics in related technologies from a technical defect that needed to be overcome into a signal carrier and detection background for achieving cableless synchronization.
[0050] In other words, the embodiments of this application, through innovative timing control and data processing methods, reshape the periodic background scanning process driven by the inherent leakage current characteristics of the detector into a sensing process that simultaneously completes leakage current clearing and pulse synchronization detection, thereby enabling the elimination of physical synchronization cables and autonomous synchronization.
[0051] The scan control and readout circuitry is used to control two scan modes: background scan and active image scan.
[0052] The scan control and readout circuit manages and switches the detector's operating state according to instructions from the upper-level processing unit. For example, the control process for the background scan mode includes: the circuit continuously generating a scan clock and drive signal at a fixed period (e.g., 120 microseconds per line), sequentially and cyclically activating the readout switch for each pixel; transferring the charge in the storage capacitor of each pixel (mainly invalid charge accumulated from leakage current) to the readout amplifier, converting it from analog to digital to form an image data stream for identifying feature images, and then resetting the capacitor. This enables detector self-maintenance (clearing leakage current) and provides a synchronous analysis data source. For example, the triggering and control process for the effective image scanning mode includes: after receiving the instruction from the timing predictor (used to calculate the arrival time of the imaging pulse based on the synchronization start time and imaging pulse sequence information), the circuit pauses the background scanning cycle at the calculated arrival time of the imaging pulse, controls the detector to stand still and switches to the integration state to complete the reception of the imaging pulse. After the image pulse is received, the circuit restarts a complete progressive scan. The scan reads the signal charge generated by the effective X-ray pulse (i.e., the imaging pulse) during the integration period of the pixel. The circuit converts this signal into a digital signal to obtain an effective image frame and outputs it to the host computer for analysis of the workpiece under test.
[0053] The background scan controller maintains the background scan. The feature image detection module detects bright lines (i.e., feature images). The synchronization logic verification module verifies the pulse sequence encoding, i.e., whether the attribute information of multiple pulses from multiple received feature images meets the synchronization pulse encoding rules. The timing predictor calculates the arrival time of each imaging pulse in the imaging pulse sequence, so that the scan control and readout circuit controls the detector to switch from background scan to integration state according to the arrival time. The state machine controller controls the mode switching. The data interface (e.g., 10Gb Ethernet) transmits the valid image data back to the host computer, so that the host computer can perform comprehensive analysis on these valid images to determine the parameters of the object under test and complete the detection of the object under test. The scan control and readout circuit is controlled by the state machine controller. The data interface is connected back to the host computer via a communication line.
[0054] In some embodiments i of this application, the host computer is configured to: determine imaging pulse sequence information for the object under test, wherein the imaging pulse sequence information is attribute information of the imaging pulse sequence to be emitted designed for this detection; determine synchronization pulse sequence information; send the imaging pulse sequence information and the synchronization pulse sequence information to the detector; send a synchronization pulse sequence trigger command to the accelerator, instructing the accelerator to start emitting the synchronization pulse sequence; send an imaging pulse sequence trigger command to the accelerator, instructing the accelerator to start emitting the imaging pulse sequence; receive an image acquired by the detector according to the imaging pulse sequence, and determine the parameters of the object under test based on the image. A pulsed X-ray source is configured to: in response to the synchronization pulse sequence trigger command received from the host computer, emit a synchronization pulse sequence to the detector according to the synchronization pulse coding rules to achieve synchronization with the detector; and in response to the imaging pulse sequence trigger command received from the host computer, emit an imaging pulse sequence to the detector according to the imaging pulse sequence information, so that the detector completes image acquisition of the object under test based on the imaging pulse sequence. The detector is configured to: receive the imaging pulse sequence information; synchronously analyze the scanned image data in a background scanning state to determine the synchronization start time with the pulsed X-ray source, wherein the background scanning state is used to clear leakage current; predict the arrival time of at least one imaging pulse in the imaging pulse sequence to be emitted based on the synchronization start time and the imaging pulse sequence information; control the detector to switch from the background scanning state to an integration state before the arrival time to receive the at least one imaging pulse; and perform an image readout operation to read out the image corresponding to the at least one imaging pulse in response to the completion of receiving the at least one imaging pulse.
[0055] The following example illustrates the collaborative workflow of the host computer, pulsed X-ray source, and detector in an embodiment of this application. The workflow includes:
[0056] First, the preparation stage.
[0057] The host computer plans the imaging pulse sequence and sends the planned imaging pulse sequence information to the detector, and sends the start and imaging sequence commands to the accelerator.
[0058] The detector enters background scanning mode.
[0059] The pulsed radiation source (or accelerator) is ready.
[0060] The second step is the initial synchronization phase.
[0061] The host computer sends a start command to the accelerator.
[0062] The accelerator emits sync pulses (e.g., two pulses spaced 15 ms apart).
[0063] The detector detected these two pulses during the scan, verified the interval was 15ms, recorded t0, and synchronization began.
[0064] The third step is the imaging acquisition stage.
[0065] The accelerator emits pulses in accordance with the imaging sequence (e.g., at 300 ms intervals).
[0066] The detector stops scanning before each pulse is expected to arrive, receives the pulse, reads out the image, and transmits it, based on the time interval between t0 and the imaging pulse sequence.
[0067] The host computer receives and stores the images.
[0068] The fourth step is the final stage.
[0069] After all imaging pulses are emitted / acquired, the accelerator stops, the detector resumes background scanning, and the host computer performs image processing.
[0070] The embodiments of this application achieve high-precision synchronization without a synchronization line by encoding synchronization information into the initial pulse sequence and having the detector autonomously extract the synchronization starting point through image analysis, combined with the imaging pulse sequence information. The host computer, accelerator, and detector work together to complete the entire detection process. Specifically, the detector analyzes the image obtained from the background scan and actively synchronizes with the accelerator, while the host computer plans the imaging pulse sequence information of the accelerator to ensure that active synchronization is achieved. This design not only eliminates the synchronization line but also improves the system's flexibility and reliability, making it particularly suitable for high-energy, pulsed working environments such as MV-level industrial non-destructive testing.
[0071] The following is combined with Figure 2 This application provides an exemplary embodiment of an image acquisition method, which is provided by... Figure 1 The detector is operating and the image acquisition method includes:
[0072] S110, acquire imaging pulse sequence information for the object under test, wherein the imaging pulse sequence information is the attribute information of the imaging pulse sequence to be emitted designed for this detection.
[0073] In some embodiments of this application, the attribute information of the imaging pulse sequence to be emitted includes: the number of imaging pulses to be emitted and the emission time interval of each imaging pulse to be emitted relative to the synchronization start time. In some embodiments of this application, the attribute information of the imaging pulse sequence to be emitted includes: the emission time interval of each imaging pulse to be emitted relative to the first emitted pulse. In some embodiments of this application, the attribute information of the imaging pulse sequence to be emitted includes the emission time interval of each imaging pulse to be emitted relative to the target pulse included in the synchronization pulse sequence.
[0074] S120, in the background scanning state, the scanned image data is analyzed synchronously to determine the synchronization start time with the pulsed X-ray source, wherein the background scanning state is used to clear leakage current.
[0075] For example, in some embodiments of this application, S120 exemplarily includes: a first step, confirming that at least one feature image has been detected; and a second step, determining the synchronization start time based on the at least one feature image.
[0076] Unlike related technologies that do not analyze the images obtained from background scanning, the embodiments of this application can identify feature images by analyzing the images read during background scanning, and further determine the synchronization start time based on the feature images.
[0077] S130, based on the synchronization start time and the imaging pulse sequence information, predict the arrival time of at least one imaging pulse in the imaging pulse sequence to be emitted.
[0078] For example, in some embodiments of this application, the imaging pulse sequence information includes the time interval between each imaging pulse and the synchronization start time. S130 obtains the arrival time of the corresponding imaging pulse by calculating the sum of the synchronization start time and each time interval.
[0079] The imaging pulses in this embodiment carry parameter information of the object under test.
[0080] S140, before the arrival time, control the detector to switch from the background scanning state to the integration state to receive the at least one imaging pulse.
[0081] For example, during imaging pulse illumination, the detector is in an integration state, collecting imaging pulse signals.
[0082] S150, in response to the completion of receiving the at least one imaging pulse, an image reading operation is performed to read out the image corresponding to the at least one imaging pulse.
[0083] In some embodiments of this application, after an imaging pulse ends, the scan is restarted, and the signals collected during integration are read out line by line to form a frame image. This process includes:
[0084] The first step is to begin the image scanning process, reading the charge accumulated on the sensor during integration. This frame corresponds to the exposure of one or more pulses.
[0085] The second step is that after the image frame is read out, it is actively transmitted to the host computer through the detector's interface (such as GigE Vision, Camera Link, etc.) and marked as the image with the corresponding imaging pulse number.
[0086] The detector in the embodiments of this application determines the synchronization start time during the background scanning state, estimates the arrival time of each imaging pulse based on the obtained synchronization start time and the acquired imaging pulse sequence information, and switches to the integration state before the arrival time arrives to complete the synchronization data reception, thereby improving the synchronization effect and ultimately improving the detection effect of the object under test.
[0087] The following example illustrates... Figure 2 The implementation method of the relevant steps.
[0088] Example 1
[0089] Some embodiments of this application determine the synchronization start time by emitting a pulse to the detector using a pulsed X-ray source. For example, in some embodiments of this application, S120, confirming the detection of at least one feature image, includes: confirming the detection of the first feature image; correspondingly, S120, determining the synchronization start time based on the at least one feature image, includes: determining the arrival time of the first pulse based on the first feature image; and using the arrival time of the first pulse as the synchronization start time.
[0090] In some embodiments of this application, determining the arrival time of the first pulse based on the first feature image includes: calculating the arrival time of the first pulse based on the row position and row scan period of the bright line in the first feature image. That is, in some embodiments of this application, if the detector detects the feature image formed by the first X-ray pulse, the moment of detection of the first pulse is directly determined as the exposure synchronization start time.
[0091] For example, in some embodiments of this application, the imaging pulse emission sequence information required for scanning the workpiece is transmitted to the detector, the detector is started to start the acquisition command, and the first pulse detected by the detector is recorded as t0. From this moment, it is considered that the formal detection procedure has been entered.
[0092] For example, the process of determining the synchronization start time includes: First, determining the row position, i.e., identifying the first feature image (bright line) in the real-time image stream and locking the specific row number (e.g., row N) of the bright line in the image frame. Second, obtaining the timing reference, i.e., obtaining the absolute timestamp (t_frame_start) when the current image frame begins scanning, and calling the detector's row scanning cycle (Tscan, i.e., the time required to scan one row). Third, performing time mapping calculation, i.e., mapping the spatial row position of the bright line onto the time axis according to the working principle of the detector's sequential scanning line by line. The basic formula for calculation is: Pulse arrival time = t_frame_start + N × Tscan, where N is the row number of the bright line. For greater accuracy, some embodiments of this application also add a compensation term (e.g., Tscan / 2) to assume that the pulse usually occurs at the midpoint of a row scan. Fourth, outputting the result, i.e., using the calculated time value as the synchronization start time for subsequent sequence prediction and control logic. It is easy to understand that this process utilizes the determinism and regularity of the detector scanning sequence, and through deterministic conversion from space (row position) to time (moment), it converts the phenomena observed in the image into a precise system time reference, thereby achieving autonomous timing without the need for an external clock synchronization signal.
[0093] Example 2
[0094] Some embodiments of the image acquisition method provided in this application further include: acquiring synchronization pulse sequence information, wherein the synchronization pulse sequence information is used to define synchronization pulse coding rules; correspondingly, S120 confirming the detection of at least one feature image includes: confirming the continuous detection of multiple feature images; S120 determining the synchronization start time based on the at least one feature image includes: confirming that the attribute information of multiple pulses corresponding to the multiple feature images satisfies the synchronization pulse coding rules, wherein a feature image is generated by a pulse trigger; and taking the arrival time of the target pulse among the multiple pulses as the synchronization start time.
[0095] It should be noted that, in some embodiments of this application, the synchronization pulse coding rule is used to define the time interval between multiple synchronization pulses in a synchronization pulse sequence; correspondingly, confirming that the attribute information of multiple pulses corresponding to the multiple feature images satisfies the synchronization pulse coding rule includes: obtaining the arrival time of the multiple pulses to obtain a pulse arrival time sequence; if it is confirmed that the time interval between adjacent arrival times in the pulse arrival time sequence matches the time interval defined in the synchronization pulse sequence coding rule, then it is confirmed that the synchronization pulse coding rule is satisfied.
[0096] In other words, in order to reduce interference, some embodiments of this application also use pulse sequence encoding as the start time; for example, after the detector starts the acquisition command, the detector detects multiple pulses, and the times when these multiple pulses are detected are recorded as t0, t1, t2, and tn, respectively. If it is confirmed that the time interval between the multiple times corresponding to the multiple pulses meets the set value (i.e., an example of satisfying the synchronization pulse encoding rule), it is considered to enter the formal detection procedure. One of the multiple arrival times can be selected as the synchronization start time, and the arrival time of each imaging pulse is calculated according to the synchronization start time. Before the corresponding arrival time arrives, the integration mode is started to receive the corresponding imaging pulse.
[0097] For example, in some embodiments of this application, during background scanning, the detector records the arrival times of pulses corresponding to multiple consecutively detected feature images; it determines whether the time interval between the arrival times of the multiple pulses conforms to a preset pulse sequence encoding rule; if it does, the arrival time of the first pulse conforming to the encoding rule, or the arrival time of any pulse (the selection of the target pulse can be preset by the synchronization pulse encoding rule), is determined as the synchronization start time. In other words, some embodiments of this application can design a simple pulse encoding, which uses N pulses (N being an integer greater than 1) emitted continuously at specific and non-equal intervals as a start signal. The detector only confirms the start of synchronization when the time interval between the multiple consecutively detected pulses completely conforms to the preset encoding. This fully utilizes the controllable and programmable characteristics of MV pulses, upgrading brightness detection to cryptographic verification, eliminating isolated and accidental electrical noise interference, and ensuring the accuracy of the synchronization start point.
[0098] In other words, the detectors in some embodiments of this application determine the absolute time starting point t0 (i.e., the synchronization start time) of the entire synchronization process by identifying the first pulse or multiple pulses corresponding to a set of codes.
[0099] The following exemplarily illustrates the process of recognizing feature images provided in some embodiments of this application.
[0100] In some embodiments of this application, the feature image is an image in which bright lines appear.
[0101] The confirmation of detecting at least one feature image in S120 above includes: if the grayscale value of a row of the j-th image or the grayscale statistical value of multiple consecutive rows exceeds the background grayscale threshold, then the j-th image is determined to be the feature image; or, if the grayscale difference between the row containing the bright line in the j-th image and the adjacent rows of the row containing the bright line meets the requirements, then the j-th image is determined to be the feature image. It can be understood that j is an integer, and the j-th image is any image acquired during the background scanning phase.
[0102] In other words, in some embodiments of this application, if a ray pulse arrives at the detector during background scanning, a bright line can be obtained on the corresponding image (the image with the bright line is the feature image). Then, the arrival time of the corresponding pulse can be determined based on the position of the bright line and the grayscale difference of nearby lines, thereby determining the synchronization start time. In the embodiments of this application, if a bright line is obtained on the image during the detector's background scanning process, it confirms the identification of the feature image.
[0103] In some embodiments of this application, the identification process of the feature image used to determine the presence of a pulse is as follows: confirming whether a bright line with a gray value higher than the background gray value threshold and a width corresponding to the width of the ray pulse appears in a single or multiple rows of the corresponding image.
[0104] Because the MV pulse has extremely high energy, even when penetrating a thick workpiece, the signal hitting the detector is very strong, making the grayscale value of this bright line higher than the uniform background grayscale formed by at least the accumulation of leakage current. The embodiments of this application cleverly transform the interference pattern (bright line) that is traditionally to be avoided into a characteristic signal (synchronization marker) that initiates synchronization in this scheme.
[0105] For example, in some embodiments of this application, the FPGA or dedicated ASIC chip inside the detector sets up a feature extraction pipeline after the image data is converted from the sensor analog-to-digital converter (ADC) and before it enters the image buffer. This pipeline calculates grayscale statistics (e.g., average grayscale, maximum grayscale, grayscale difference from the previous row, etc.) of each row (or rows) of the image being scanned in real time to determine whether a feature image exists.
[0106] In other words, the pulse feature detection algorithm used to determine the feature image in the embodiments of this application can be a threshold comparison, or a more complex template matching or mutation detection algorithm.
[0107] Specific content:
[0108] a. Threshold detection: Set a grayscale threshold (this threshold should be higher than the background grayscale threshold). When the maximum grayscale value (or average value) of a certain row (or several consecutive rows) exceeds this threshold, it is considered that a feature image corresponding to a synchronization pulse has been detected.
[0109] b. Pulse Width Verification: Since the width of the MV pulse, Tpulse, is known to be very short (a few microseconds), while the time it takes for the detector to scan one line, Tscan, is fixed (tens to hundreds of microseconds), the number of lines covered by the pulse on the image, N_pulse = Tpulse / Tscan (usually less than 1, but may span multiple lines). The detection algorithm can check whether the width of the high grayscale region is within a reasonable range (e.g., 1-2 lines) to determine whether the feature image has been detected.
[0110] c. Gradient Detection: Because the pulse appears and disappears suddenly, the image grayscale will have a steep rising and falling edge. The algorithm can detect the grayscale difference (gradient) between rows. When the positive gradient between two consecutive rows exceeds a threshold, and the subsequent negative gradient also exceeds a threshold, it is determined that a feature image corresponding to an imaging pulse has been identified.
[0111] In some embodiments of this application, when the feature image corresponding to the first imaging pulse is detected, it is not immediately used as the start of synchronization, but rather a verification process is initiated. This requires a state machine inside the detector to record the time interval of continuous pulses and match it with a preset synchronization pulse coding rule.
[0112] The following example illustrates the process of entering the integration state using a synchronization pulse sequence.
[0113] The first step is timestamp recording, which records the arrival time of the pulse corresponding to the feature image each time a feature image is detected (provided by the detector's internal clock).
[0114] The second step is sequence matching, which compares the time intervals of multiple pulses corresponding to the multi-feature image that are detected consecutively with the pulse sequence intervals defined by the synchronization pulse sequence coding rules (which can be equal intervals or specific non-equal intervals). If multiple consecutive intervals (e.g., 3) match within the allowable error range, it is considered a valid start signal, and the timestamp of the first or last pulse is recorded as t0.
[0115] The third step is to determine the synchronization start time t0. The timing controller inside the detector (usually implemented by an FPGA) will calculate the expected arrival time of each imaging pulse based on the pre-stored imaging pulse sequence information.
[0116] Specific content:
[0117] a. Timing calculation: Based on t0 and the intervals in the pulse sequence, calculate the expected arrival time t_n of the nth pulse = t0 + Σ(interval i).
[0118] b. Scan Control: A fixed time before t_n (e.g., one or more scan times in advance), the timing controller sends a control signal to stop scanning and put the detector into integration mode. After t_n (considering the pulse width), the detector is controlled to restart scanning.
[0119] It should be noted that, in the embodiments of this application, after the synchronization start time is obtained and the formal detection procedure is entered, the detector controls the scanning sequence. Before the arrival of the MV imaging pulse, the scanning stops, and the detector waits to receive the imaging X-ray pulse. After the pulse is received, the scanning is restarted to acquire images and actively transmit the images to the computer. This process is repeated until the image acquisition and transmission corresponding to all imaging pulse emission sequences are completed. Thus, the automatic exposure synchronization acquisition of the detector using the characteristics of MV-level X-rays is achieved.
[0120] Example 3
[0121] The following explanation uses Example 3 as an example. Figure 2 The process.
[0122] Assume that it takes 5 imaging pulses to detect a workpiece, and the time interval between the imaging pulses is 100ms.
[0123] The first step is for the computer to send the imaging pulse sequence information, consisting of the imaging pulse sequence [pulse 1, pulse 2, pulse 3, pulse 4, pulse 5] and the interval [100ms, 100ms, 100ms, 100ms], to the detector.
[0124] The second step is for the detector to begin scanning.
[0125] Start synchronization:
[0126] The accelerator emits a sequence of synchronization pulses according to the synchronization pulse coding rules (for example, emitting three synchronization pulses consecutively with an interval of 10ms).
[0127] The detector detects three images with bright lines, thus obtaining three feature images. The arrival time sequence of the pulses corresponding to these three feature images is further determined to be [10.01ms, 9.99ms].
[0128] If the time sequence is matched with the synchronization pulse coding rule [10ms, 10ms] and the error is <0.1ms, then synchronization locking can be determined.
[0129] According to the synchronization pulse coding rules, the arrival time of the target pulse (e.g., the second pulse) among the three pulses is taken as the synchronization start time t0 to enter the formal detection.
[0130] Step 3, Active Synchronous Data Collection:
[0131] t0 + 100ms - Tscan (one or several lines ahead): Stop background scanning.
[0132] t0 + 100ms: Imaging pulse arrives, waiting to be received.
[0133] t0 + 100ms + Tpulse: Start scanning, read out the image, and transmit it.
[0134] It should be noted that in some embodiments of this application, after the imaging pulse arrives, the scanning position is quickly adjusted to the first line according to the arrival position, which takes longer than T_Pluse.
[0135] Repeat until 5 imaging pulses are completed.
[0136] After acquiring all imaging pulses, the detector automatically returns to the background scanning state, waiting for the next task.
[0137] Unlike related technologies, the pulse sequence in some embodiments of this application is divided into two parts:
[0138] Synchronization Pulse Sequence: This pulse sequence consists of multiple synchronization pulses (e.g., one or two to three) used to establish a time reference, i.e., the synchronization start time t0. The synchronization pulses in the synchronization pulse sequence are used for synchronization and are not included in the number of pulses required for imaging.
[0139] Imaging pulse sequence: The number of imaging pulses planned for acquiring images of the workpiece can be determined by the detection requirements (such as CT angles).
[0140] The imaging pulse sequence information needs to be sent to the detector in advance, and the encoding rules of the start synchronization pulse (such as two pulses with a 15ms interval) need to be agreed upon with the detector in advance, but the specific transmission time does not need to be told in advance.
[0141] Example: An 8-angle CT scan
[0142] Imaging requirements: 8 projections at different angles, requiring 8 or more imaging pulses.
[0143] Synchronization requirements: A time reference needs to be established, for example, two synchronization pulses are needed (for code verification).
[0144] The actual pulse sequence emitted by the accelerator is: 2 (number of synchronization pulses) + 8 (number of imaging pulses) = 10 pulses.
[0145] Actual detector acquisition: Only the images corresponding to the last 8 imaging pulses are acquired for actual detection of the workpiece. The images of the synchronization pulses are discarded after the synchronization start time is determined.
[0146] In other words, the detector of this application is configured to perform the following operations:
[0147] Initialization: The detector is powered on and begins background scanning (to clear leakage current). At the same time, it receives the imaging pulse sequence information of this detection from the host and stores it in the internal buffer.
[0148] Initial synchronization: The real-time image processing pipeline monitors image data. When a pulse sequence that meets the pulse characteristics and encoding rules is detected, the synchronization start time t0 is determined, and the system enters the formal detection state.
[0149] Active synchronous acquisition: The timing controller predicts the arrival time of each imaging pulse based on the synchronization start time t0 and the imaging pulse sequence information, and controls the detector to stop background scanning, wait for imaging pulses, acquire images, and transmit images at the corresponding time points.
[0150] It is not difficult to understand that, as Figure 3 As shown, the image acquisition method for an accelerator according to an embodiment of this application includes: S210, responding to a synchronization pulse sequence triggering command received from a host computer, transmitting a synchronization pulse sequence to a detector according to a synchronization pulse coding rule to complete synchronization with the detector; S220, responding to an imaging pulse sequence triggering command received from the host computer, transmitting an imaging pulse sequence to the detector according to imaging pulse sequence information, so that the detector completes image acquisition of the object under test according to the imaging pulse sequence.
[0151] like Figure 4 As shown, the image acquisition method for a host computer provided in this application includes:
[0152] S310, determine the imaging pulse sequence information for the object under test; S320, determine the synchronization pulse sequence information; S330, send the imaging pulse sequence information and the synchronization pulse sequence information to the detector; S340, send a synchronization pulse sequence trigger command to the accelerator, instructing the accelerator to start emitting the synchronization pulse sequence; S350, send an imaging pulse sequence trigger command to the accelerator, instructing the accelerator to start emitting the imaging pulse sequence; S360, receive the image acquired by the detector according to the imaging pulse sequence, and determine the parameters of the object under test according to the image.
[0153] like Figure 5As shown, some embodiments of this application provide a detector. It should be understood that this device is similar to the one described above. Figure 2 Corresponding to the method embodiments, it can execute the various steps involved in the above method embodiments. The specific functions of the device can be found in the description above; to avoid repetition, detailed descriptions are appropriately omitted here. The device includes at least one software function module that can be stored in a memory or embedded in the device's operating system in the form of software or firmware. The detector includes: a receiving module 510, a synchronization time identification module 520, a prediction module 530, an imaging pulse interface module 540, and a target image readout module 550.
[0154] The receiving module is configured to acquire imaging pulse sequence information for the object under test, wherein the imaging pulse sequence information is attribute information of the imaging pulse sequence to be emitted designed for this detection.
[0155] The synchronization timing identification module is configured to synchronously analyze the scanned image data during background scanning to determine the synchronization start time with the pulsed X-ray source, wherein the background scanning state is used to clear leakage current.
[0156] The prediction module is configured to predict the arrival time of at least one imaging pulse in the imaging pulse sequence to be emitted, based on the synchronization start time and the imaging pulse sequence information.
[0157] An imaging pulse interface module is configured to control the detector to switch from the background scanning state to the integration state before the arrival time, so as to receive the at least one imaging pulse;
[0158] The target image readout module is configured to perform an image reading operation to read out the image corresponding to the at least one imaging pulse in response to the completion of receiving the at least one imaging pulse.
[0159] Those skilled in the art will understand that, for the sake of convenience and brevity, the specific working process of the device described above can be referred to the corresponding process in the aforementioned method, and will not be elaborated further here.
[0160] Some embodiments of this application provide a computer-readable storage medium storing a computer program thereon, which, when executed by a processor, can implement the image acquisition method as described in the above embodiments.
[0161] Some embodiments of this application provide a computer program product, including computer program instructions, which, when read and executed by a processor, can implement the image acquisition method described in any of the above embodiments.
[0162] In the several embodiments provided in this application, it should be understood that the disclosed apparatus and methods can also be implemented in other ways. The apparatus embodiments described above are merely illustrative. For example, the flowcharts and block diagrams in the accompanying drawings illustrate the architecture, functionality, and operation of possible implementations of apparatus, methods, and computer program products according to various embodiments of this application. In this regard, each block in a flowchart or block diagram may represent a module, segment, or portion of code containing one or more executable instructions for implementing a specified logical function. It should also be noted that in some alternative implementations, the functions marked in the blocks may occur in a different order than those marked in the drawings. For example, two consecutive blocks may actually be executed substantially in parallel, and they may sometimes be executed in reverse order, depending on the functions involved. It should also be noted that each block in a block diagram and / or flowchart, and combinations of blocks in block diagrams and / or flowcharts, can be implemented using a dedicated hardware-based system that performs the specified function or action, or using a combination of dedicated hardware and computer instructions.
[0163] In addition, the functional modules in the various embodiments of this application can be integrated together to form an independent part, or each module can exist independently, or two or more modules can be integrated to form an independent part.
[0164] If the aforementioned functions are implemented as software functional modules and sold or used as independent products, they can be stored in a computer-readable storage medium. Based on this understanding, the technical solution of this application, in essence, or the part that contributes to the prior art, or a portion of the technical solution, can be embodied in the form of a software product. This computer software product is stored in a storage medium and includes several instructions to cause a computer device (which may be a personal computer, server, or network device, etc.) to execute all or part of the steps of the methods described in the various embodiments of this application. The aforementioned storage medium includes various media capable of storing program code, such as USB flash drives, portable hard drives, read-only memory (ROM), random access memory (RAM), magnetic disks, or optical disks.
[0165] The above description is merely an embodiment of this application and is not intended to limit the scope of protection of this application. Various modifications and variations can be made to this application by those skilled in the art. Any modifications, equivalent substitutions, improvements, etc., made within the spirit and principles of this application should be included within the scope of protection of this application. It should be noted that similar reference numerals and letters in the following figures indicate similar items; therefore, once an item is defined in one figure, it does not need to be further defined and explained in subsequent figures.
[0166] The above description is merely a specific embodiment of this application, but the scope of protection of this application is not limited thereto. Any variations or substitutions that can be easily conceived by those skilled in the art within the scope of the technology disclosed in this application should be included within the scope of protection of this application. Therefore, the scope of protection of this application should be determined by the scope of the claims.
[0167] It should be noted that, in this document, relational terms such as "first" and "second" are used only to distinguish one entity or operation from another, and do not necessarily require or imply any such actual relationship or order between these entities or operations. Furthermore, the terms "comprising," "including," or any other variations thereof are intended to cover non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements includes not only those elements but also other elements not expressly listed, or elements inherent to such a process, method, article, or apparatus. Without further limitations, an element defined by the phrase "comprising one..." does not exclude the presence of other identical elements in the process, method, article, or apparatus that includes said element.
Claims
1. An image acquisition method applied to a detector, the image acquisition method comprising: Acquire imaging pulse sequence information for the object under test, wherein the imaging pulse sequence information is the attribute information of the imaging pulse sequence to be emitted designed for this detection; During background scanning, the scanned image data is analyzed synchronously to determine the synchronization start time with the pulsed X-ray source, wherein the background scanning state is used to clear leakage current; Based on the synchronization start time and the imaging pulse sequence information, predict the arrival time of at least one imaging pulse in the imaging pulse sequence to be emitted; Before the arrival time, the detector is controlled to switch from the background scanning state to the integration state in order to receive the at least one imaging pulse; In response to the completion of receiving the at least one imaging pulse, an image reading operation is performed to read out the image corresponding to the at least one imaging pulse.
2. The image acquisition method as described in claim 1, characterized in that, During background scanning, the synchronous analysis of the scanned image data to determine the synchronization start time with the pulsed X-ray source includes: At least one feature image was detected; The synchronization start time is determined based on the at least one feature image.
3. The image acquisition method according to claim 2, characterized in that, The confirmation that at least one feature image has been detected includes: The first feature image has been detected. Determining the synchronization start time based on the at least one feature image includes: The arrival time of the first pulse is determined based on the first feature image; The arrival time of the first pulse is taken as the synchronization start time.
4. The method according to claim 3, characterized in that, Determining the arrival time of the first pulse based on the first feature image includes: calculating the arrival time of the first pulse based on the row position and row scanning period of the bright line in the first feature image.
5. The image acquisition method as described in claim 2, characterized in that, The method further includes: Acquire synchronization pulse sequence information, wherein the synchronization pulse sequence information is used to define synchronization pulse coding rules; in, The confirmation that at least one feature image has been detected includes: Confirmed that multiple feature images were detected consecutively; Determining the synchronization start time based on the at least one feature image includes: The attribute information of multiple pulses corresponding to the multiple feature images is confirmed to satisfy the synchronization pulse coding rule, wherein a feature image is generated by triggering a pulse; The arrival time of the target pulse among the plurality of pulses is taken as the synchronization start time.
6. The image acquisition method as described in claim 5, characterized in that, The synchronization pulse coding rule is used to define the time interval between multiple synchronization pulses in a synchronization pulse sequence; The confirmation that the attribute information of the multiple pulses corresponding to the multiple feature images satisfies the synchronization pulse coding rule includes: The arrival times of the multiple pulses are obtained to obtain a pulse arrival time sequence; If it is confirmed that the time interval between adjacent arrival times in the pulse arrival time sequence matches the time interval defined in the synchronization pulse sequence encoding rule, then the synchronization pulse encoding rule is satisfied.
7. The method according to any one of claims 1-6, characterized in that, The feature image is an image in which bright lines appear; The confirmation that at least one feature image has been detected includes: If it is confirmed that the gray value of one row of the j-th image or the gray value of multiple consecutive rows exceeds the background gray value threshold, then the j-th image is determined to be the feature image. or, If it is confirmed that the grayscale difference between the row containing the bright line in the j-th image and the nearby rows of the row containing the bright line meets the requirements, then the j-th image is determined to be the feature image.
8. An image acquisition method applied to a pulsed X-ray source, the method comprising: In response to the synchronization pulse sequence trigger command received from the host computer, a synchronization pulse sequence is transmitted to the detector according to the synchronization pulse coding rules to complete the synchronization with the detector; In response to the imaging pulse sequence trigger command received from the host computer, an imaging pulse sequence is transmitted to the detector according to the imaging pulse sequence information, so that the detector completes image acquisition of the object under test according to the imaging pulse sequence.
9. An image acquisition method, applied to a host computer, the image acquisition method comprising: Determine the imaging pulse sequence information for the object under test; Determine the synchronization pulse sequence information; The imaging pulse sequence information and the synchronization pulse sequence information are sent to the detector; Send a synchronization pulse sequence trigger command to the accelerator, instructing the accelerator to start emitting the synchronization pulse sequence; Send an imaging pulse sequence trigger command to the accelerator, instructing the accelerator to start emitting the imaging pulse sequence; The detector receives images acquired by the detector based on the imaging pulse sequence, and determines the parameters of the object under test based on the images.
10. An image acquisition system, characterized in that, The system includes: The host computer is configured as follows: Determine the imaging pulse sequence information for the object under test, wherein the imaging pulse sequence information is the attribute information of the imaging pulse sequence to be emitted designed for this detection; Determine the synchronization pulse sequence information; The imaging pulse sequence information and the synchronization pulse sequence information are sent to the detector; Send a synchronization pulse sequence trigger command to the accelerator, instructing the accelerator to start emitting the synchronization pulse sequence; Send an imaging pulse sequence trigger command to the accelerator, instructing the accelerator to start emitting the imaging pulse sequence; Receive images acquired by the detector according to the imaging pulse sequence, and determine the parameters of the object under test based on the images; The pulsed X-ray source is configured as follows: In response to the synchronization pulse sequence trigger command received from the host computer, a synchronization pulse sequence is transmitted to the detector according to the synchronization pulse coding rules to complete the synchronization with the detector; In response to an imaging pulse sequence trigger command received from the host computer, an imaging pulse sequence is transmitted to the detector according to the imaging pulse sequence information, so that the detector completes image acquisition of the object under test according to the imaging pulse sequence; The detector is configured as follows: Receive the imaging pulse sequence information; During background scanning, the scanned image data is analyzed synchronously to determine the synchronization start time with the pulsed X-ray source, wherein the background scanning state is used to clear leakage current; Based on the synchronization start time and the imaging pulse sequence information, predict the arrival time of at least one imaging pulse in the imaging pulse sequence to be emitted; Before the arrival time, the detector is controlled to switch from the background scanning state to the integration state in order to receive the at least one imaging pulse; In response to the completion of receiving the at least one imaging pulse, an image reading operation is performed to read out the image corresponding to the at least one imaging pulse.
11. A detector, characterized in that, The detector includes: The receiving module is configured to acquire imaging pulse sequence information for the object under test, wherein the imaging pulse sequence information is attribute information of the imaging pulse sequence to be emitted designed for this detection. The synchronization timing identification module is configured to synchronously analyze the scanned image data during background scanning to determine the synchronization start time with the pulsed X-ray source, wherein the background scanning state is used to clear leakage current. The prediction module is configured to predict the arrival time of at least one imaging pulse in the imaging pulse sequence to be emitted, based on the synchronization start time and the imaging pulse sequence information. An imaging pulse interface module is configured to control the detector to switch from the background scanning state to the integration state before the arrival time, so as to receive the at least one imaging pulse; The target image readout module is configured to perform an image reading operation to read out the image corresponding to the at least one imaging pulse in response to the completion of receiving the at least one imaging pulse.
12. A computer program product, characterized in that, It includes computer program instructions, which, when read and executed by a processor, can implement the method as described in any one of claims 1-10.