TDI imaging system and calibration method, device and computer equipment thereof
By automating the parameter adjustment of the TDI imaging system, the problem of long debugging time in the existing technology is solved, and rapid and automatic imaging parameter calibration is achieved, which is suitable for imaging of stacked cells.
Patent Information
- Application Number
- CN202211717168.5
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2022-12-29
- Publication Date
- 2025-12-30
- Estimated Expiration
- 2042-12-29
AI Technical Summary
Existing TDI imaging systems are time-consuming and complex to debug, especially when changing the imaging target, which requires a lot of manual intervention.
By imaging the calibration block, it is determined whether the image effect meets the requirements. If it does not meet the requirements, the line scan frequency or imaging distance is adjusted until the imaging requirements are met, thus realizing automated parameter adjustment.
This significantly shortens the debugging time for changing the model of stacked battery cells, reduces the requirements for the operator's skills, and enables rapid and automatic calibration of imaging parameters.
Smart Images

Figure CN116248803B_ABST
Abstract
Description
Technical Field
[0001] This application relates to the field of scanning imaging technology, and in particular to a TDI imaging system and its calibration method, apparatus, computer equipment and storage medium. Background Technology
[0002] With the development of new energy technologies, more and more battery cells with various structures are being developed. During the design of battery cells, imaging is often required. For stacked battery cells, TDI (Time Delay Integration) imaging systems can be used. Compared to area array imaging systems, TDI line imaging systems are affected by more factors. Traditionally, TDI imaging systems often rely on manual experience for debugging, which is difficult and complex, and requires a long debugging time when changing the imaging target. Summary of the Invention
[0003] The purpose of this application is to at least address one of the aforementioned technical deficiencies, particularly the long debugging time required for TDI imaging systems in the prior art.
[0004] In a first aspect, this application provides a calibration method for a TDI imaging system, comprising:
[0005] The calibration block is imaged according to the current imaging parameters to obtain the first image; the imaging parameters include imaging distance and line scan frequency.
[0006] Determine whether the first image meets the imaging requirements;
[0007] If not, then if the line scanning frequency is less than the line frequency threshold, adjust the line scanning frequency and return to the step of imaging the calibration block according to the current imaging parameters to obtain the first image; if the line scanning frequency is above the line frequency threshold, adjust the imaging distance and return to the step of imaging the calibration block according to the current imaging parameters to obtain the first image.
[0008] If so, then the current imaging parameters are determined to be the standard imaging parameters.
[0009] In one embodiment, determining whether the first image meets the imaging requirements includes:
[0010] Obtain the imaging height and imaging width of the calibration block in the first image;
[0011] Determine whether the difference between the imaging height and the imaging width is greater than a preset threshold;
[0012] If so, then the first image is determined to be non-compliant with imaging requirements;
[0013] If not, then the first image is determined to meet the imaging requirements.
[0014] In one embodiment, adjusting the line scan frequency includes:
[0015] The imaging width is obtained based on the imaging width and the pixel size of the imaging system, and the imaging height is obtained based on the imaging height and the pixel size.
[0016] The first magnification is obtained based on the imaging width dimension and the actual width dimension of the calibration block;
[0017] The second magnification is obtained based on the imaging height dimension and the actual height dimension of the calibration block;
[0018] The adjustment ratio is obtained based on the ratio between the first and second multipliers;
[0019] Adjust the current line scan frequency according to the adjustment ratio.
[0020] In one embodiment, the imaging distance includes the source-image distance and the source-object distance, and adjusting the imaging distance includes:
[0021] The first distance is obtained based on the source-image distance and the source-focal length, and the second distance is obtained based on the source-object distance and the source-focal length.
[0022] The imaging magnification is obtained based on the ratio of the first distance to the second distance;
[0023] The target imaging magnification is obtained by adjusting the scale and imaging magnification.
[0024] Adjust the source-image distance and source-object distance to make the imaging magnification equal to the target imaging magnification.
[0025] In one embodiment, obtaining the imaging height and imaging width of the calibration block in the first image includes:
[0026] The first image is labeled using an object detection algorithm to obtain bounding boxes; the object detection algorithm is used to label the imaging of the calibration blocks.
[0027] The imaging height is obtained based on the side length of the annotation box in the length direction;
[0028] The imaging width is obtained by measuring the side length of the bounding box in the width direction.
[0029] Secondly, embodiments of this application provide a calibration device for a TDI imaging system, comprising:
[0030] The imaging module is used to image the calibration block according to the current imaging parameters to obtain a first image; the imaging parameters include imaging distance and line scan frequency;
[0031] The judgment module is used to determine whether the first image meets the imaging requirements;
[0032] The adjustment module is used to adjust the line scanning frequency and return to image the calibration block according to the current imaging parameters to obtain the first image when the first image does not meet the imaging requirements and the line scanning frequency is less than the line frequency threshold; and to adjust the imaging distance and return to image the calibration block according to the current imaging parameters to obtain the first image when the line scanning frequency is above the line frequency threshold.
[0033] The parameter determination module is used to determine the current imaging parameters as standard imaging parameters when the first image meets the imaging requirements.
[0034] In one embodiment, the determination module is used to obtain the imaging height and imaging width of the calibration block in the first image; determine whether the difference between the imaging height and imaging width is greater than a preset threshold; when the difference between the imaging height and imaging width is greater than the preset threshold, determine that the first image does not meet the imaging requirements; when the difference between the imaging height and imaging width is less than or equal to the preset threshold, determine that the first image meets the imaging requirements.
[0035] Thirdly, embodiments of this application provide a computer device including one or more processors and a memory storing computer-readable instructions. When the computer-readable instructions are executed by one or more processors, they perform the steps of the calibration method in any of the above embodiments.
[0036] Fourthly, embodiments of this application provide a TDI imaging system, including a light source, a detector, a platform, and the computer equipment described in the above embodiments.
[0037] Fifthly, embodiments of this application provide a storage medium storing computer-readable instructions, which, when executed by one or more processors, cause the one or more processors to perform the steps of the calibration method in any of the above embodiments.
[0038] As can be seen from the above technical solutions, the embodiments of this application have the following advantages:
[0039] Based on the calibration method in this embodiment, the calibration block is scanned and imaged, and the imaging effect of the obtained first image is determined to meet the imaging requirements. If it does not meet the imaging requirements, the imaging parameters need to be adjusted, and a similar process is repeated using the adjusted imaging parameters until the obtained first image meets the imaging requirements, indicating that the adjustment is complete, and the current imaging parameters are used as the labeled imaging parameters. During adjustment, if the line scan frequency does not reach the line frequency threshold, the line frequency threshold can be adjusted first; otherwise, the imaging distance is adjusted. This method can achieve automatic and rapid adjustment of the imaging parameters of the TDI imaging system, transforming manual adjustment into system-adaptive detector scanning line frequency imaging. When applicable to imaging stacked battery cells, it can significantly shorten the debugging time for changing the model of stacked battery cells and reduce the requirements for operator skills. Attached Figure Description
[0040] To more clearly illustrate the technical solutions in the embodiments of this application or the prior art, the drawings used in the description of the embodiments or the prior art will be briefly introduced below. Obviously, the drawings described below are only some embodiments of this application. For those skilled in the art, other drawings can be obtained based on these drawings without creative effort.
[0041] Figure 1 This is a flowchart illustrating the calibration method of a TDI imaging system in one embodiment of this application;
[0042] Figure 2 This is an internal structural diagram of a computer device in one embodiment of this application. Detailed Implementation
[0043] The technical solutions of the embodiments of this application will be clearly and completely described below with reference to the accompanying drawings. Obviously, the described embodiments are only some embodiments of this application, and not all embodiments. Based on the embodiments of this application, all other embodiments obtained by those skilled in the art without creative effort are within the scope of protection of this application.
[0044] The purpose of this application is to at least solve one of the aforementioned technical defects, particularly the technical defect in the prior art that fixed barcode readers cannot be adapted to barcode scanning at different heights at low cost.
[0045] Please see Figure 1This application provides a calibration method for a TDI imaging system, which includes a light source, a detector, and a platform. The platform carries the imaging object, which moves with the platform. During this movement, the light source and detector perform line-by-line scanning and imaging of the object. The calibration method includes steps S102 to S108.
[0046] S102, image the calibration block according to the current imaging parameters to obtain the first image.
[0047] It can be understood that a calibration block is a standard-shaped object used to calibrate the TDI imaging system. For example, a tungsten sphere with a known diameter can be used as a calibration block. The calibration block is placed on the platform, and the TDI imaging system is then controlled to operate according to the imaging parameters configured in the current system. The resulting scan image is the first image. According to the characteristics of TDI imaging, the signal-to-noise ratio of the first image is related to the line scan frequency, while the imaging distance affects the magnification of the imaged object. Therefore, in this embodiment, the imaging parameters to be adjusted include the imaging distance and the line scan frequency. The imaging distance generally includes the source-object distance and the source-image distance. The source-object distance is the distance between the X-ray source window and the imaged object, and the source-image distance is the distance between the X-ray source window and the detector (imaging position).
[0048] S104, determine whether the first image meets the imaging requirements.
[0049] If the imaging parameters are not selected properly, the first image will be distorted and deviate significantly from the true shape of the calibration block, meaning the first image does not match the calibration block sufficiently. Therefore, the imaging requirements can be configured according to the object being imaged, ensuring that the object lines in the first image are clear and match the actual object's shape. For example, when the object being imaged is a stacked battery cell, the positive and negative lines must be clearly distinguished, with the protruding lines being the negative lines and the concave lines being the positive lines. The effect presented by the first image determines whether it meets the imaging requirements and whether adjustments to the imaging parameters are necessary.
[0050] S106, if not, then if the line scanning frequency is less than the line frequency threshold, adjust the line scanning frequency and return to the step of imaging the calibration block according to the current imaging parameters to obtain the first image; if the line scanning frequency is above the line frequency threshold, adjust the imaging distance and return to the step of imaging the calibration block according to the current imaging parameters to obtain the first image.
[0051] It is understandable that the initial imaging distance generally takes into account the characteristics of the imaging object. For example, when imaging small objects such as stacked battery cells, an imaging distance that provides a sufficiently high magnification for small objects is used. The line scan frequency affects the signal-to-noise ratio of the first image, and there are currently noise reduction algorithms that can help improve the image's signal-to-noise ratio. Therefore, the adjustment of the line scan frequency is more flexible, as long as the adjustment degree is within the range compatible with the algorithm's measurement processing. Therefore, if the first image does not meet the imaging requirements, the line scan frequency is adjusted first. As long as the line scan frequency is still less than the frequency threshold, the imaging distance remains unchanged, the line scan frequency is adjusted, and after the adjustment is completed, the process returns to step S102 to continue scanning using the adjusted imaging parameters, and then the newly generated first image is judged. If the line scan frequency reaches above the frequency threshold, further adjustment of the line scan frequency will not help the first image much. The first image may not meet the requirements because the imaging magnification is insufficient, making it difficult to distinguish the details of the object in the first image. Therefore, when the line scan frequency reaches above the frequency threshold, the imaging distance is adjusted to ensure the imaging system's detail imaging capability and measurement accuracy. After the adjustment is completed, return to step S102 to continue scanning using the adjusted imaging parameters, and then judge the newly generated first image again.
[0052] S108, if so, then determine the current imaging parameters as standard imaging parameters.
[0053] That is, if the first image meets the imaging requirements, the imaging parameters obtained at this time are the standard imaging parameters with better imaging effect obtained by automatic matching, and the actual product can be scanned using the standard imaging parameters.
[0054] Based on the calibration method in this embodiment, the calibration block is scanned and imaged, and the imaging effect of the obtained first image is determined to meet the imaging requirements. If it does not meet the imaging requirements, the imaging parameters need to be adjusted, and a similar process is repeated using the adjusted imaging parameters until the obtained first image meets the imaging requirements, indicating that the adjustment is complete, and the current imaging parameters are used as the labeled imaging parameters. During adjustment, if the line scan frequency does not reach the line frequency threshold, the line frequency threshold can be adjusted first; otherwise, the imaging distance is adjusted. This method can achieve automatic and rapid adjustment of the imaging parameters of the TDI imaging system, transforming manual adjustment into system-adaptive detector scanning line frequency imaging. When applicable to imaging stacked battery cells, it can significantly shorten the debugging time for changing the model of stacked battery cells and reduce the requirements for operator skills.
[0055] In one embodiment, determining whether the first image meets the imaging requirements includes:
[0056] (1) Obtain the imaging height and imaging width of the calibration block in the first image.
[0057] It can be understood that the imaging height is the size of the region corresponding to the calibration block in the first image along the scanning direction, while the imaging width is the size of the region corresponding to the calibration block in the first image along the direction perpendicular to the scanning direction. Imaging height and imaging width are generally represented by the number of pixels.
[0058] The imaging height and width can be obtained by using an object detection algorithm to annotate the first image, obtaining bounding boxes. The imaging height is then calculated based on the length of the bounding box, and the imaging width is calculated based on the width of the bounding box. The object detection algorithm is used to annotate the images of the calibration blocks. Multiple images with annotated calibration blocks can be used to train the object detection algorithm. The trained object detection algorithm can then be used to generate bounding boxes in the first image.
[0059] (2) Determine whether the difference between the imaging height and the imaging width is greater than a preset threshold.
[0060] It is understandable that X-ray imaging, due to the cone-shaped shape of the light emitted from the X-ray source, suffers distortion and amplification in various directions. Specifically, the line scan frequency affects the imaging height, and the imaging distance affects the imaging width. When adjusting imaging parameters, to ensure the isotropy of the first image, the difference between the imaging height and imaging width must not be less than a preset threshold.
[0061] (3) If so, the first image is determined to be non-compliant with imaging requirements.
[0062] (4) If not, the first image is determined to meet the imaging requirements.
[0063] In one embodiment, adjusting the line scan frequency includes:
[0064] (1) Based on the imaging width and the pixel size of the imaging system, the imaging width dimension is obtained, and based on the imaging height and the pixel size, the imaging height dimension is obtained.
[0065] It can be understood that the pixel size represents the actual size of each pixel in the first image. Imaging height and imaging width are generally expressed in terms of the number of pixels. Therefore, by multiplying the pixel size and imaging width, the width of the calibration block in the first image in actual space can be obtained, i.e., the imaging width. Similarly, by multiplying the pixel size and imaging height, the height of the calibration block in the first image in actual space can be obtained, i.e., the imaging height.
[0066] (2) The first magnification is obtained based on the imaging width size and the actual width size of the calibration block.
[0067] It can be understood that the first magnification reflects the magnification of the calibration block in the width direction. The first magnification can be obtained using the following expression: Where MAL represents the first magnification, Wid represents the imaging width, Psdda represents the pixel size, and Dreal1 represents the actual width of the calibration block.
[0068] (3) The second magnification is obtained based on the imaging height dimension and the actual height dimension of the calibration block.
[0069] It can be understood that the second magnification reflects the magnification of the calibration block in the height direction. The second magnification can be obtained using the following expression: Where MAH represents the first magnification, Hid represents the imaging height, Psdda represents the pixel size, and Dreal2 represents the actual height of the calibration block. If the selected calibration block is a standard tungsten sphere, then Dreal1 and Dreal2 are equal and are both the diameter of the standard tungsten sphere.
[0070] (4) The adjustment ratio is obtained based on the ratio between the first multiplier and the second multiplier.
[0071] (5) Adjust the current line scan frequency according to the adjustment ratio.
[0072] It is understood that the desired adjustment effect in this embodiment is to lower the current line scan frequency if the magnification of the first image in the scanning direction (also known as the height direction) is too large, and vice versa. The ratio between the first magnification and the second magnification reflects whether the magnification of the first image in the scanning direction is too large. Multiplying the current line scan frequency by the adjustment ratio achieves the above adjustment effect. The expression can be: ,in, This refers to the current line scan frequency, and IDF2 is the adjusted line scan frequency. For example, when the calibration block is a standard tungsten ball, if the first image meets the imaging requirements, the image should be a regular circle. If the current line scan frequency is too high, MAH will be greater than MAL, and the image will be a thin, elongated ellipse. In this case, the adjustment ratio is less than 1, which is equivalent to reducing the line scan frequency. If the current line scan frequency is too low, MAH will be less than MAL, and the image will be a wide, flat ellipse. In this case, the adjustment ratio is greater than 1, which is equivalent to increasing the line scan frequency.
[0073] In one embodiment, the imaging distance includes the source-image distance and the source-object distance, and adjusting the imaging distance includes:
[0074] (1) Based on the source-image distance and the source-focal distance, the first distance is obtained, and based on the source-object distance and the source-focal distance, the second distance is obtained.
[0075] (2) The imaging magnification is obtained based on the ratio of the first distance to the second distance.
[0076] It can be understood that the source focal length is the distance from the focal point of the light source to the X-ray source window. According to the imaging principle of the TDI imaging system, the ratio between the second distance and the first distance is the imaging magnification. This can be expressed as: In this expression, FOD is the source focal length, SID1 is the current source-image distance, and SOD1 is the current source-object distance. The denominator of this expression is the first distance, and the numerator of this expression is the second distance.
[0077] (3) Based on the adjustment ratio and imaging magnification, the target imaging magnification is obtained.
[0078] The principle of adjusting the imaging distance is similar to that described above. By adjusting the imaging distance, the magnification of the first image in the direction perpendicular to the scanning direction (also known as the width direction) is changed to ensure the isotropy of the first image. The adjustment effect is achieved by multiplying the current imaging magnification by the adjustment ratio. The expression can be: Where SID2 is the adjusted source-image distance and SOD2 is the adjusted source-object distance.
[0079] (4) Adjust the source-image distance and source-object distance to make the imaging magnification equal to the target imaging magnification.
[0080] The adjusted source-image distance and source-object distance can be obtained using the above expressions. The source-image distance and source-object distance can be adjusted by controlling the movement of the platform and adjusting the position of the detector.
[0081] This application provides a calibration device for a TDI imaging system, including an imaging module, a judgment module, an adjustment module, and a parameter determination module. The imaging module images a calibration block according to current imaging parameters to obtain a first image. The imaging parameters include imaging distance and line scan frequency. The judgment module determines whether the first image meets the imaging requirements. The adjustment module adjusts the line scan frequency and returns to the step of imaging the calibration block according to the current imaging parameters to obtain the first image if the first image does not meet the imaging requirements and the line scan frequency is less than a line scan frequency threshold; if the line scan frequency is above the line scan frequency threshold, it adjusts the imaging distance and returns to the step of imaging the calibration block according to the current imaging parameters to obtain the first image. The parameter determination module determines the current imaging parameters as standard imaging parameters when the first image meets the imaging requirements.
[0082] In one embodiment, the determination module is used to obtain the imaging height and imaging width of the calibration block in the first image; determine whether the difference between the imaging height and imaging width is greater than a preset threshold; when the difference between the imaging height and imaging width is greater than the preset threshold, determine that the first image does not meet the imaging requirements; when the difference between the imaging height and imaging width is less than or equal to the preset threshold, determine that the first image meets the imaging requirements.
[0083] In one embodiment, the adjustment module is used to obtain an imaging width dimension based on the imaging width and the pixel size of the imaging system, and to obtain an imaging height dimension based on the imaging height and the pixel size; to obtain a first magnification based on the imaging width dimension and the actual width dimension of the calibration block; to obtain a second magnification based on the imaging height dimension and the actual height dimension of the calibration block; to obtain an adjustment ratio based on the ratio between the first magnification and the second magnification; and to adjust the current line scan frequency according to the adjustment ratio.
[0084] In one embodiment, the imaging distance includes a source-image distance and a source-object distance. The adjustment module is used to obtain a first distance based on the source-image distance and the source focal length, and a second distance based on the source-object distance and the source focal length; to obtain an imaging magnification based on the ratio of the first distance and the second distance; to obtain a target imaging magnification based on an adjustment ratio and the imaging magnification; and to adjust the source-image distance and the source-object distance so that the imaging magnification is equal to the target imaging magnification.
[0085] In one embodiment, the determination module is used to annotate the first image using a target detection algorithm to obtain an annotation box; the target detection algorithm is used to annotate the imaging of the calibration block; the imaging height is obtained based on the side length of the annotation box in the length direction; and the imaging width is obtained based on the side length of the annotation box in the width direction.
[0086] This application provides a computer device including one or more processors and a memory. The memory stores computer-readable instructions. When the computer-readable instructions are executed by one or more processors, they perform the following steps: imaging a calibration block according to current imaging parameters to obtain a first image; the imaging parameters include imaging distance and line scan frequency; determining whether the first image meets the imaging requirements; if not, if the line scan frequency is less than the line scan frequency threshold, adjusting the line scan frequency and returning to the step of imaging the calibration block according to the current imaging parameters to obtain the first image; if the line scan frequency is above the line scan frequency threshold, adjusting the imaging distance and returning to the step of imaging the calibration block according to the current imaging parameters to obtain the first image; if yes, determining the current imaging parameters as standard imaging parameters.
[0087] In one embodiment, when the computer-readable instructions are executed by one or more processors, the following are performed: obtaining the imaging height and imaging width of a calibration block in a first image; determining whether the difference between the imaging height and imaging width is greater than a preset threshold; if so, determining that the first image does not meet the imaging requirements; if not, determining that the first image meets the imaging requirements.
[0088] In one embodiment, when the computer-readable instructions are executed by one or more processors, the following are performed: obtaining an imaging width dimension based on the imaging width and the pixel size of the imaging system, and obtaining an imaging height dimension based on the imaging height and the pixel size; obtaining a first magnification based on the imaging width dimension and the actual width dimension of the calibration block; obtaining a second magnification based on the imaging height dimension and the actual height dimension of the calibration block; obtaining an adjustment ratio based on the ratio between the first magnification and the second magnification; and adjusting the current line scan frequency according to the adjustment ratio.
[0089] In one embodiment, when the computer-readable instructions are executed by one or more processors, the following are performed: obtaining a first distance based on the source image distance and the source focal length, and obtaining a second distance based on the source object distance and the source focal length; obtaining an imaging magnification based on the ratio of the first distance and the second distance; obtaining a target imaging magnification based on an adjustment ratio and the imaging magnification; and adjusting the source image distance and the source object distance to make the imaging magnification equal to the target imaging magnification.
[0090] In one embodiment, when the computer-readable instructions are executed by one or more processors, the following are performed: annotating a first image using an object detection algorithm to obtain an annotation box; the object detection algorithm is used to annotate the imaging of the calibration block; the imaging height is obtained based on the side length of the annotation box in the length direction; and the imaging width is obtained based on the side length of the annotation box in the width direction.
[0091] Indicatively, such as Figure 2 As shown, Figure 2 This is a schematic diagram of the internal structure of a computer device 200 provided in an embodiment of this application. The computer device 200 can be provided as a server. (Refer to...) Figure 2 The computer device 200 includes a processing component 202, which further includes one or more processors, and memory resources represented by memory 201 for storing instructions, such as application programs, that can be executed by the processing component 202. The application programs stored in memory 201 may include one or more modules, each corresponding to a set of instructions. Furthermore, the processing component 202 is configured to execute instructions to perform the business data calculation methods of any of the above embodiments.
[0092] The computer device 200 may also include a power supply component 203 configured to perform power management of the computer device 200, a wired or wireless network interface 204 configured to connect the computer device 200 to a network, and an input / output (I / O) interface 205. The computer device 200 may operate on an operating system stored in memory 201, such as Windows Server™, Mac OS X™, Unix™, Linux™, Free BSD™, or similar.
[0093] This application provides a TDI imaging system, including a light source, a detector, a platform, and the computer device described in the above embodiments. The computer device is connected to the light source, detector, and platform, and can control the light source, detector, and platform to operate according to the above-described annotation method.
[0094] This application provides a storage medium storing computer-readable instructions. When executed by one or more processors, the computer-readable instructions cause the one or more processors to perform the steps of the calibration method in any of the above embodiments.
[0095] Finally, 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.
[0096] The various embodiments in this specification are described in a progressive manner. Each embodiment focuses on the differences from other embodiments. The various embodiments can be combined as needed, and the same or similar parts can be referred to each other.
[0097] The above description of the disclosed embodiments enables those skilled in the art to make or use this application. Various modifications to these embodiments will be readily apparent to those skilled in the art, and the general principles defined herein may be implemented in other embodiments without departing from the spirit or scope of this application. Therefore, this application is not to be limited to the embodiments shown herein, but is to be accorded the widest scope consistent with the principles and novel features disclosed herein.
Claims
1. A method of calibrating a TDI imaging system, the method comprising: The method comprises the following steps: imaging the calibration block according to current imaging parameters to obtain a first image; the imaging parameters comprise an imaging distance and a line scanning frequency; determining whether the first image meets imaging requirements; if not, adjusting the line scanning frequency and returning to the step of imaging the calibration block according to current imaging parameters to obtain a first image in the case that the line scanning frequency is less than a line frequency threshold, or adjusting the imaging distance and returning to the step of imaging the calibration block according to current imaging parameters to obtain a first image in the case that the line scanning frequency is above the line frequency threshold; if yes, determining that the current imaging parameters are standard imaging parameters; the imaging distance comprises a source image distance and a source object distance, the adjustment of the imaging distance comprises: obtaining a first distance according to the source image distance and a source focal length, and obtaining a second distance according to the source object distance and the source focal length; obtaining an imaging magnification according to the ratio of the first distance and the second distance; obtaining a target imaging magnification according to an adjustment ratio and the imaging magnification; the adjustment ratio is calculated based on the imaging width of the calibration block in the first image and the pixel size of the imaging system; the source image distance and the source object distance are adjusted to make the imaging magnification equal to the target imaging magnification.
2. The method of claim 1, wherein, the determination of whether the first image meets imaging requirements comprises: obtaining the imaging height and the imaging width of the calibration block in the first image; determining whether the difference between the imaging height and the imaging width is greater than a preset threshold; if yes, determining that the first image does not meet the imaging requirements; if not, determining that the first image meets the imaging requirements.
3. The method of claim 2, wherein, the adjustment of the line scanning frequency comprises: obtaining an imaging width size according to the imaging width and the pixel size of the imaging system, and obtaining an imaging height size according to the imaging height and the pixel size; obtaining a first magnification according to the imaging width size and the actual width size of the calibration block; obtaining a second magnification according to the imaging height size and the actual height size of the calibration block; obtaining an adjustment ratio according to the ratio between the first magnification and the second magnification; adjusting the current line scanning frequency according to the adjustment ratio.
4. The method of claim 2, wherein, the obtaining of the imaging height and the imaging width of the calibration block in the first image comprises: annotating the first image by using a target detection algorithm to obtain an annotation box; the target detection algorithm is used for annotating the imaging of the calibration block; obtaining the imaging height according to the length of the side of the annotation box in the length direction; obtaining the imaging width according to the length of the side of the annotation box in the width direction.
5. A calibration device for a TDI imaging system, characterized in that The method comprises the following steps: an imaging module is configured to image a calibration block according to current imaging parameters to obtain a first image; the imaging parameters comprise an imaging distance and a line scanning frequency; a determination module is configured to determine whether the first image meets imaging requirements; an adjusting module configured to, in a case that the first image does not meet the imaging requirement and the line scan frequency is less than a line frequency threshold, adjust the line scan frequency and return to the step of imaging the calibration block according to the current imaging parameters to obtain the first image, and in a case that the line scan frequency is greater than the line frequency threshold, adjust the imaging distance and return to the step of imaging the calibration block according to the current imaging parameters to obtain the first image; a parameter determining module configured to, in a case that the first image meets the imaging requirement, determine the current imaging parameters as standard imaging parameters; the imaging distance includes a source image distance and a source object distance, the adjusting module is configured to obtain a first distance according to the source image distance and a source focal length, and obtain a second distance according to the source object distance and the source focal length, obtain an imaging magnification according to a ratio of the first distance and the second distance, obtain a target imaging magnification according to an adjusting ratio and the imaging magnification, the adjusting ratio is calculated based on an imaging width of the calibration block in the first image and a pixel size of the imaging system, and adjust the source image distance and the source object distance to make the imaging magnification equal to the target imaging magnification.
6. The calibration device of claim 5, wherein, the judging module is configured to obtain an imaging height and an imaging width of the calibration block in the first image, judge whether a difference between the imaging height and the imaging width is greater than a preset threshold, determine that the first image does not meet the imaging requirement in a case that the difference between the imaging height and the imaging width is greater than the preset threshold, and determine that the first image meets the imaging requirement in a case that the difference between the imaging height and the imaging width is less than or equal to the preset threshold.
7. A computer device, comprising: a computer device including one or more processors and a memory, the memory storing computer readable instructions, the computer readable instructions being executed by the one or more processors to perform the steps of the calibration method according to any one of claims 1 to 4.
8. A TDI imaging system characterized by, the computer device including a light source, a detector, a sample platform and the computer device according to claim 7.
9. A storage medium, characterized by the memory storing computer readable instructions, the computer readable instructions being executed by one or more processors to cause the one or more processors to perform the steps of the calibration method according to any one of claims 1 to 4.
Citation Information
Patent Citations
Line frequency self-adaptive debugging method for linear array camera
CN115174809A
Imaging method, pattern inspection method, imaging apparatus and pattern inspection device
JP2006084189A