Image acquisition methods and systems, in vitro diagnostic equipment, media and electronic equipment
By adjusting the focal length based on the current distance between the lens and the target object, and by using a scaling matrix and a distortion map to correct image pixels, the problems of insufficient lens focusing accuracy and optical distortion are solved, thereby improving the imaging quality and interpretation accuracy of the image acquisition system.
Patent Information
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- SHANGHAI ADVANCED CLINICAL LABORATORY SCIENCE CO LTD
- Filing Date
- 2025-04-11
- Publication Date
- 2026-05-26
Smart Images

Figure CN120238745B_ABST
Abstract
Description
Technical Field
[0001] This invention belongs to the field of medical device technology, specifically relating to an image acquisition method and system, in vitro diagnostic equipment, media, and electronic equipment. Background Technology
[0002] Immunoblotting technology is an important tool in clinical diagnosis and biomedical research, and its imaging quality directly affects the accuracy and reliability of test results. Current fully automated immunoblotting analyzers generally suffer from problems such as insufficient lens focusing accuracy leading to blurred images and optical distortion causing interpretation errors. Summary of the Invention
[0003] The purpose of this invention is to provide an image acquisition method and system, an in vitro diagnostic device, a medium, and an electronic device, which aim to improve the focusing accuracy of the lens and correct optical distortion to improve image quality.
[0004] To achieve the above objectives, the present invention provides an image acquisition method, comprising:
[0005] The current distance between the lens and the target object is obtained based on the ranging device;
[0006] The lens is focused based on the current image distance of the lens and the current distance between the lens and the target object so that the lens is focused on the target object;
[0007] The image of the target object captured by the lens after focusing is obtained as the first image;
[0008] Obtain the original coordinates of each pixel in the first image;
[0009] The scaling matrix is obtained based on the current distance and the reference distance between the lens and the target object;
[0010] The original coordinates are corrected using the scaling matrix and distortion mapping table to obtain multiple target corrected coordinates;
[0011] The corrected image is output based on the corrected coordinates of the multiple targets.
[0012] Optionally, the lens is a liquid lens;
[0013] The step of focusing the lens based on the current image distance of the lens and the current distance between the lens and the target object to make the lens focus on the target object includes:
[0014] The target focal length of the lens is obtained based on the current image distance of the lens and the current distance between the lens and the target object;
[0015] The target voltage of the lens is obtained based on the target focal length of the lens;
[0016] The voltage applied to the lens is adjusted to the target voltage.
[0017] Optionally, the step of focusing the lens according to the current image distance of the lens and the current distance between the lens and the target object to focus the lens on the target object further includes performing the following after adjusting the voltage applied to the lens to the target voltage:
[0018] The lens captures an image of the target object as a second image;
[0019] Obtain the sharpness of the second image;
[0020] Determine whether the sharpness of the second image is less than a preset threshold. If so, reacquire the target focal length of the lens.
[0021] Optionally, the step of correcting each of the original coordinates using the scaling matrix and distortion mapping table to obtain multiple target corrected coordinates includes:
[0022] The original coordinates are corrected once using the scaling matrix to obtain multiple first-corrected coordinates; and,
[0023] The distortion mapping table is used to perform secondary correction on each of the primary correction coordinates to obtain multiple target correction coordinates.
[0024] Optionally, the original coordinates of any pixel are (x0, y0) and the first-correction coordinates are (x1, y1);
[0025] The step of correcting each of the original coordinates using the scaling matrix is performed based on the following formula:
[0026]
[0027] In the formula, M represents the scaling matrix, and M equals s represents the scaling factor, s equals Where H represents the current distance between the lens and the target object, and H0 represents the reference distance.
[0028] Optionally, the image acquisition method further includes:
[0029] Determine whether the current time is the preset time; if so, update the distortion mapping table.
[0030] Optionally, the image acquisition method further includes:
[0031] Obtain the cumulative working time of the lens;
[0032] Determine whether the cumulative working time of the lens has reached the preset time. If so, update the distortion mapping table.
[0033] Optionally, the image acquisition method further includes:
[0034] Get the current ambient temperature;
[0035] Determine whether the deviation between the current ambient temperature and the standard temperature reaches the preset deviation. If so, update the distortion mapping table.
[0036] To achieve the above objectives, the present invention also provides a computer-readable storage medium having a program stored thereon that, when executed, performs the image acquisition method as described in any of the preceding claims.
[0037] To achieve the above objectives, the present invention also provides an electronic device including an actuator and a memory connected in communication, the memory storing a program, and the actuator being configured to execute the program stored in the memory, wherein when the program is executed, the image acquisition method as described in any of the preceding claims is performed.
[0038] To achieve the above objectives, the present invention also provides an image acquisition system, including a lens, a ranging device, and a control unit, wherein the control unit is communicatively connected to the ranging device and the lens, and is configured to perform the image acquisition method as described in any of the preceding claims.
[0039] Optionally, the ranging device is a time-of-flight sensor, the lens is a liquid lens, and the control unit includes a field-programmable gate array.
[0040] Optionally, the detection signal of the time-of-flight sensor is an optical signal;
[0041] The image acquisition system also includes a filter, which is disposed in the signal receiving module of the time-of-flight sensor.
[0042] To achieve the above objectives, the present invention also provides an in vitro diagnostic device, including an image acquisition system as described in any of the preceding claims.
[0043] Optionally, the in vitro diagnostic equipment includes any one of an immunoblotting analyzer, an immunochromatographic analyzer, a dry biochemical analyzer, and a multi-index analyzer.
[0044] Compared with the prior art, the image acquisition method and system, in vitro diagnostic equipment, media and electronic equipment of the present invention have the following advantages:
[0045] The aforementioned image acquisition method includes: obtaining the current distance between the lens and the target object; focusing the lens according to the current image distance of the lens and the current distance between the lens and the target object so that the lens focuses on the target object; acquiring an image of the target object acquired by the focused lens as a first image; obtaining the original coordinates of each pixel in the first image; obtaining a scaling matrix according to the current distance between the lens and the target object and a reference distance; correcting each of the original coordinates using a distortion mapping table and the scaling matrix to obtain multiple target correction coordinates; and outputting a corrected image based on the multiple target correction coordinates. By improving the focusing accuracy of the lens through focusing, the problem of poor image quality caused by insufficient focusing accuracy is solved. The original coordinates of the pixels in the first image are corrected using the distortion mapping table and the scaling matrix, and then a corrected image is output based on the target correction coordinates. This ensures that the final acquired image is less affected by optical distortion and changes in the distance between the lens and the target object, improving image quality and thus improving the accuracy and reliability of subsequent judgments based on the image. Attached Figure Description
[0046] The accompanying drawings are provided to better understand the invention and are not intended to unduly limit the scope of the invention. Wherein:
[0047] Figure 1 This is a schematic diagram of the structure of an image acquisition system provided by the present invention according to an embodiment;
[0048] Figure 2 This is an overall flowchart of the image acquisition method executed by the control unit of the image acquisition system provided in an embodiment of the present invention;
[0049] Figure 3 This is a schematic diagram of the first image of the target object acquired by the control unit of the image acquisition system provided by the present invention during the execution of the image acquisition method according to an embodiment of the present invention;
[0050] Figure 4 This is a schematic diagram of the corrected image of the target object acquired by the control unit of the image acquisition system provided by the present invention during the execution of the image acquisition method according to an embodiment of the present invention;
[0051] Figure 5 This is a partial flowchart of the image acquisition method executed by the control unit of the image acquisition system according to an embodiment of the present invention;
[0052] Figure 6 The figure shows a schematic diagram of the image acquisition system provided by the present invention according to an embodiment, including a calibration plate and a translation stage.
[0053] [The following are the annotations in the attached figures]: 11-Lens, 12-Range measuring device, 13-Control unit, 14-Filter, 15-Translation stage, 16-Drive mechanism, 1-Target object, 2-Calibration plate. Detailed Implementation
[0054] The following specific examples illustrate the implementation of the present invention. Those skilled in the art can easily understand other advantages and effects of the present invention from the content disclosed in this specification. The present invention can also be implemented or applied through other different specific embodiments, and various details in this specification can also be modified or changed based on different viewpoints and applications without departing from the spirit of the present invention. It should be noted that the illustrations provided in this embodiment are only schematic representations of the basic concept of the present invention. Therefore, the drawings only show components related to the present invention and are not drawn according to the actual number, shape, and size of components in the actual implementation. In the actual implementation, the type, quantity, and proportion of each component can be arbitrarily changed, and the component layout may also be more complex.
[0055] Furthermore, while each embodiment described below possesses one or more technical features, this does not imply that users of the present invention must simultaneously implement all technical features in any embodiment, or can only separately implement some or all technical features in different embodiments. In other words, provided it is feasible, those skilled in the art can, based on the disclosure of the present invention and depending on design specifications or implementation requirements, selectively implement some or all technical features in any embodiment, or selectively implement a combination of some or all technical features in multiple embodiments, thereby increasing the flexibility in implementing the present invention.
[0056] As used herein, the singular forms “a,” “an,” and “the” include plural objects, and the plural form “a plurality” includes two or more objects, unless otherwise expressly indicated. As used herein, the term “or” is generally used to include the meaning of “and / or,” unless otherwise expressly indicated, and the terms “installed,” “connected,” and “linked” should be interpreted broadly, for example, as a fixed connection, a detachable connection, or an integral connection. Connections can be mechanical or electrical. Connections can be direct or indirect through an intermediate medium, and can be internal communication between two elements or an interaction between two elements. Relational terms such as “first,” “second,” etc., are used merely 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, nor do they indicate or imply relative importance or implicitly specify the number of indicated technical features. Those skilled in the art will understand the specific meaning of the above terms in this invention according to the specific circumstances.
[0057] To make the objectives, advantages, and features of the present invention clearer, the present invention will be further described in detail below with reference to the accompanying drawings. It should be noted that the drawings are all in a very simplified form and use non-precise proportions, and are only used to facilitate and clearly illustrate the objectives of the embodiments of the present invention. The same or similar reference numerals in the drawings represent the same or similar parts.
[0058] Figure 1 This diagram illustrates the structure of an image acquisition system according to an embodiment of the present invention, as shown below. Figure 1 As shown, the image acquisition system includes a lens 11, a ranging device 12, and a control unit 13. The control unit 13 is communicatively connected to the lens 11 and the ranging device 12, and is configured to execute an image acquisition method to acquire an image of a target object (not shown in the figure).
[0059] The image acquisition system is applied to an in vitro diagnostic device. After acquiring an image of the target object, the in vitro diagnostic system obtains a diagnostic result based on the image. The in vitro diagnostic device includes, but is not limited to, any one of an immunoblotting analyzer, an immunochromatographic analyzer, a dry biochemical analyzer, and a multi-index analyzer. The target object is a reagent kit related to the type of in vitro diagnostic device; for example, when the in vitro diagnostic device is an immunoblotting analyzer, the target object is an immunoblotting reagent kit.
[0060] like Figure 2 As shown, the image acquisition method includes:
[0061] Step S1: Obtain the current distance between the lens 11 and the target object based on the ranging device 12.
[0062] Step S2: Adjust the focus of the lens 11 according to the current image distance of the lens 11 and the current distance between the lens 11 and the target object, so that the lens 11 is focused on the target object.
[0063] Step S3: Acquire an image of the target object captured by the lens 11 after focusing is completed, as a first image, the first image as follows: Figure 3 As shown.
[0064] Step S4: Obtain the coordinates of each pixel in the first image as the first original coordinates.
[0065] Step S5: Obtain the scaling matrix based on the current distance between the lens 11 and the target object and the reference distance.
[0066] Step S6: Correct multiple first original coordinates using the scaling matrix and distortion mapping table to obtain multiple target corrected coordinates.
[0067] Step S7: Output a corrected image based on the multiple target correction coordinates, as the final image obtained by the image acquisition system. The corrected image is as follows: Figure 4 As shown.
[0068] By performing step S2, the focusing accuracy of the lens 11 on the target object is improved, thus mitigating the poor image quality caused by insufficient focusing accuracy. By performing step S6, image distortion caused by changes in the distance between the lens 11 and the target object, as well as optical distortion of the lens 11, can be corrected. Figure 3 and Figure 4 As can be seen, the quality of the final image (i.e., the corrected image) obtained by the image acquisition system is significantly improved compared to the first image. Experiments have shown that by implementing the image acquisition method, the edge feature point offset of the corrected image can be reduced to 0.5 pixels or less.
[0069] In this embodiment of the invention, the ranging device 12 is preferably a Time-of-Flight (TOF) sensor, the lens 11 is a liquid lens, and the control unit 13 includes a Field-Programmable Gate Array (FPGA). The TOF sensor has an extremely fast response speed, on the order of microseconds; by adjusting the voltage applied to the liquid lens, the curvature of the liquid lens can be adjusted, enabling the liquid lens to achieve a mechanical zoom effect within 1ms to 10ms; the FPGA enables accelerated parallel processing. Therefore, through the cooperation of the TOF sensor, the liquid lens, and the FPGA, the static and dynamic distortions of the first image acquired by the lens 11 can be collaboratively corrected, and the response time of the image acquisition system can be controlled to the order of milliseconds, solving the latency problem during multi-mode correction.
[0070] Those skilled in the art will understand that the "static distortion" of the first image captured by the lens 11 refers to the image distortion caused by the optical distortion of the lens 11 itself. The target object is positioned below the lens 11 via a support plate (not shown in the figure). The relative position of the support plate and the lens 11 remains unchanged. The support plate has a slot for securing the target object. When the target object is properly secured in the slot, the distance between the target object and the lens 11 is a reference distance. However, when the target object is not properly secured in the slot, or when the target object shifts during incubation or cleaning, the distance between the target object and the lens 11 deviates from the reference distance, thus changing the distance between the lens 11 and the target object. It is easy to understand that when the distance between the lens 11 and the target object deviates from the reference distance, the imaging ratio and angle of the lens 11 change accordingly. For example, when the distance between the lens 11 and the target object is less than the reference distance, the image captured by the lens 11 is larger, and the edge lines of the image exhibit trapezoidal distortion, etc. The "dynamic distortion" of the first image captured by the lens 11 refers to the image distortion caused by the deviation of the distance between the lens 11 and the target object from the reference distance.
[0071] Furthermore, it can be understood that the TOF sensor is a non-contact sensor. Therefore, using a TOF sensor as the ranging device 12 also has the advantage of avoiding target contamination problems caused by contact ranging. The variable focal length of the liquid lens is between 5mm and 50mm, which meets the requirements of the in vitro diagnostic device. In addition, by executing the image acquisition method through the control unit 13, errors caused by human intervention can be reduced.
[0072] The following section will further explain each step of the image acquisition method.
[0073] It is understood that the TOF sensor and the lens 11 are arranged in parallel, and the relative positions between the TOF sensor and the lens 11 are fixed. The TOF sensor is a reflective sensor that integrates a signal transmitting module and a signal receiving module. The principle by which the control unit 13 measures the distance between the lens 11 and the target object through the TOF sensor is as follows: First, the signal transmitting module of the TOF sensor transmits a detection signal to the target object. When the detection signal is transmitted to the target object, it is reflected by the target object, and the reflected detection signal is received by the signal receiving module of the TOF sensor. Then, the control unit 13 can calculate the distance between the TOF sensor and the target object based on the time difference between the transmission of the detection signal by the signal transmitting module and the reception of the detection signal by the signal receiving module, and the transmission speed of the detection signal. Finally, the distance between the lens 11 and the target object is obtained based on the relative positional relationship between the TOF sensor and the lens 11.
[0074] Preferably, the detection signal of the TOF sensor is an optical signal. More preferably, the image acquisition system further includes a filter 14, which is disposed on the signal receiving module of the TOF sensor to filter out ambient light and prevent ambient light from interfering with the measurement results of the TOF sensor.
[0075] The wavelength of the detection signal of the TOF sensor is determined as needed, and the bandpass of the filter 14 corresponds to the wavelength of the detection signal of the TOF sensor. For example, when the target object is an immunoblot diagnostic test strip, it is preferable that the detection signal of the TOF sensor is a near-infrared light signal with a wavelength of 850nm. This is because the surface of the immunoblot diagnostic test strip is a nitrocellulose membrane, and near-infrared light with a wavelength of 850nm can be reflected by the nitrocellulose membrane. Accordingly, the bandpass of the filter 14 is 800nm to 900nm, which can shield ambient light with wavelengths of 400nm to 700nm. In this way, the disadvantage of low reflectivity of the nitrocellulose membrane can be overcome, and the signal-to-noise ratio of the TOF sensor can be improved to more than 30dB.
[0076] When the lens 11 is the liquid lens, the specific operation of step S2 can be as follows: Figure 5 As shown, it includes:
[0077] Step S21: Obtain the target focal length of the lens 11 based on the current image distance of the lens 11 and the current distance between the lens 11 and the target object.
[0078] Step S22: Obtain the target voltage of the lens 11 based on the target focal length of the lens 11.
[0079] Step S23: Adjust the voltage applied to the lens 11 to the target voltage.
[0080] Step S21 is performed based on the following equation (1):
[0081]
[0082] In equation (1), H represents the current distance between the lens 11 and the target object, v represents the current image distance of the lens 11, and f represents the target focal length of the lens 11.
[0083] Step S22 is something that is well known to those skilled in the art, and will not be described in detail here.
[0084] In a further improvement, step S2 also includes steps S24, S25 and S26, which are performed after step S22.
[0085] Step S24 includes having the lens 11 acquire an image of the target object as a second image.
[0086] Step S25 includes obtaining the sharpness of the second image.
[0087] Step S26 includes determining whether the sharpness of the second image is less than a preset threshold. If not, the focusing is determined to be finished and the lens 11 focuses on the target object. If yes, the process returns to step S21.
[0088] In step S25, the sharpness of the second image can be obtained by calculating the image edge gradient of the second image. The specific calculation method includes, but is not limited to, any one of the following: Brenner gradient method, Tenegrad gradient method, Iaplace gradient method, variance method, and energy gradient method.
[0089] The “preset threshold” in step S26 is determined by the operator as needed, for example, set to 50.
[0090] It should be understood that when the judgment result of step S26 is "yes" and the process returns to execute step S21, the current image distance of the lens 11 is the image distance of the lens 11 after step S22 is completed.
[0091] By executing steps S24 to S26, it can be further ensured that the lens 11 is focused on the target object, avoiding inaccurate focusing due to operational errors.
[0092] It is understood that the lens 11 had already completed focusing when the last step S24 was executed. Therefore, step S3 can actually be the last executed step S24, that is, the first image is the last second image acquired.
[0093] Step S4 can be performed based on existing technology.
[0094] Step S5 can be performed based on the following equation (2):
[0095]
[0096] In the formula, M represents the scaling matrix, and s equals H represents the current distance between lens 11 and the target object, and H0 represents the reference distance.
[0097] Step S5 can be executed synchronously with step S2, synchronously with step S3, synchronously with step S4, or before step S2 or after step S3. This embodiment of the invention does not limit this, as long as step S5 is completed before step S6.
[0098] Step S6 includes:
[0099] Step S61: Use the scaling matrix to correct each of the first original coordinates once to obtain the first corrected coordinates of each pixel.
[0100] Step S62: Use the distortion mapping table to perform secondary correction on each of the primary correction coordinates to obtain the target correction coordinates of each pixel.
[0101] The first original coordinates of any pixel in the first image are denoted as (x0, y0), and the first corrected coordinates are denoted as (x1, y1). Since the change in distance between the lens 11 and the target object is equivalent to the target object being translated relative to the lens 11 in three-dimensional space, step S61 is performed based on the following equation (3):
[0102]
[0103] By executing step S61, the scaling and tilt of the image captured by the lens 11 due to changes in height can be compensated.
[0104] In step S62, each of the primary correction coordinates is used as input values, and the corresponding target correction coordinates of each pixel can be obtained through the distortion mapping table.
[0105] The distortion mapping table is a lookup table that is pre-acquired and stored in the control unit 13. Obtaining the target correction coordinates based on the distortion mapping table can improve the speed of obtaining the target correction coordinates, that is, the execution speed of step S62 is extremely fast.
[0106] Of course, the image acquisition method may include the step of obtaining the distortion mapping table. Furthermore, in a preferred embodiment, the control unit also updates the distortion mapping table according to actual conditions. For example, the distortion mapping table may be updated at a preset time. Thus, the image acquisition method further includes step S01, which includes determining whether the current time is the preset time; if so, updating the distortion mapping table. The preset time may be, for example, the time when the in vitro diagnostic device is powered on and running each time, or a specified time, such as 5 AM every Monday. Alternatively, the distortion mapping table may be updated when the cumulative duration of the lens 11 reaches a preset duration. Thus, the image acquisition method further includes step S02, which includes obtaining the cumulative working time of the lens 11 and determining whether the cumulative working time of the lens 11 has reached the preset duration; if so, updating the distortion mapping table. Alternatively, the distortion mapping table can be updated when the deviation between the current temperature of the operating environment of the in vitro diagnostic device and a preset standard temperature reaches a preset deviation. In this case, the image acquisition method further includes step S03, which involves acquiring the current ambient temperature of the in vitro diagnostic device and determining whether the deviation between the current ambient temperature and the standard temperature reaches the preset deviation. If so, the distortion mapping table is updated. The process of acquiring the distortion mapping table is roughly as follows:
[0107] Step S011, Provide calibration board 1 (e.g. Figure 6 (As shown). The calibration plate 1 has a rectangular area, the size of which is larger than the size of the target object; specifically, the length of the rectangular area is greater than the length of the target object, and the width of the rectangular area is greater than the width of the target object. A checkerboard pattern is set on the rectangular area, the number of squares being m×n, where m and n are both positive integers. In practice, the difference between the size of the rectangular area and the size of the target object, as well as the side length of each square on the checkerboard, can be determined based on the resolution of the lens 11. It can be understood that the higher the resolution of the lens 11, the smaller the difference between the size of the rectangular area and the size of the target object can be, and the smaller the side length of each square on the checkerboard can be.
[0108] Step S012: Drive the calibration plate 1 to move so that the calibration plate 1 is in an initial pose. When the calibration plate 1 is in the initial pose, the center of the calibration plate 1 is located on the optical axis of the lens 11.
[0109] Step S013: Drive the calibration plate 1 to move, and simultaneously control the lens 11 to acquire a third image of the calibration plate 1 in a first pose, a fourth image of the calibration plate 1 in a second pose, and a fifth image of the calibration plate 1 in a third pose. The first pose, the second pose, and the third pose are different, and each of the first pose, the second pose, and the third pose, compared to the initial pose, has a translation amount less than or equal to 5mm and a tilt amount less than or equal to 5°. Furthermore, the third image, the fourth image, and the fifth image respectively display all the corner points of the chessboard grid, where the corner points refer to the vertices of each square.
[0110] Step S014: Obtain the corner coordinates of each corner point in the third image, the fourth image, and the fifth image based on the corner detection algorithm.
[0111] Step S015: Calculate the distortion coefficient based on the corner coordinates of each corner point in the third image, the fourth image, and the fifth image.
[0112] Step S016: Obtain the coordinates of each pixel in the third image, the fourth image, and the fifth image as the second original coordinates.
[0113] Step S017: Based on the distortion coefficients and the second original coordinates, obtain the distortion calibration coordinates of each pixel in the third image, the fourth image, and the fifth image, and then establish the distortion mapping table between the second original coordinates and the distortion calibration coordinates.
[0114] During the execution of steps S012 and S013, the calibration plate 1 is supported on a translation stage 15 (e.g., ...). Figure 6 As shown), the translation stage 15 and a drive mechanism 16 (as shown) Figure 6 The control unit 13 is connected to the drive mechanism 16 and moves under the drive of the drive mechanism 16, thereby driving the calibration plate 1 to move. That is, the control unit 13 is also communicatively connected to the drive mechanism 16 and is configured to control the operation of the drive mechanism 16.
[0115] The specific execution methods of steps S014, S015, and S016 are well known in the art and will not be described in detail here. Specifically, the distortion coefficients in step S015 include radial distortion coefficients and tangential distortion coefficients.
[0116] Let the second original coordinates of any pixel in the third image, the fourth image, and the fifth image be (x 00 y 00 The distortion calibration coordinates calculated in step S017 are denoted as (x...).01 y 01 Step S017 is performed based on the distortion mapping formula, which is the following formula (4):
[0117]
[0118] In formula (4), k1 and k2 represent two different radial distortion coefficients, and p1 and p2 represent two different tangential distortion coefficients.
[0119] Furthermore, the calibration plate used in this embodiment of the invention is made of alumina ceramic, and its coefficient of thermal expansion is no greater than 8 × 10⁻⁶. -6 The temperature is / ℃, exhibiting good stability. Furthermore, the line width tolerance of the chessboard grid is ±5μm.
[0120] Furthermore, embodiments of the present invention also provide an in vitro diagnostic device, which includes the image acquisition system described above. The in vitro diagnostic device includes, but is not limited to, any one of an immunoblotting analyzer, an immunochromatographic analyzer, a dry biochemical analyzer, and a multi-index analyzer.
[0121] Furthermore, this embodiment of the invention also provides an image acquisition method, which includes the aforementioned steps S1 to S7.
[0122] Furthermore, embodiments of the present invention also provide a computer-readable storage medium having a program stored thereon, which, when executed, performs the image acquisition method as described above.
[0123] Furthermore, embodiments of the present invention also provide an electronic device, the electronic device including an actuator and a memory connected in communication, the memory storing a program, the actuator being configured to execute the program, and when the program is executed, performing the image acquisition method as described above.
[0124] While the present invention has been disclosed above, it is not limited thereto. Those skilled in the art can make various modifications and variations to the present invention without departing from its spirit and scope. Therefore, if such modifications and variations fall within the scope of the claims and their equivalents, the present invention also intends to include such modifications and variations.
Claims
1. An image acquisition method applied to an in vitro diagnostic device and executed based on a control unit including a field-programmable gate array, characterized in that, include: The current distance between the lens and the target object is obtained based on the ranging device; the target object is a reagent kit that matches the in vitro diagnostic equipment, the lens is a liquid lens, and the ranging device is a time-of-flight sensor; The lens is focused based on the current image distance of the lens and the current distance between the lens and the target object so that the lens is focused on the target object; The image of the target object captured by the lens after focusing is obtained as the first image; Obtain the original coordinates of each pixel in the first image; The scaling matrix is obtained based on the current distance and the reference distance between the lens and the target object; The original coordinates are corrected once using the scaling matrix to obtain multiple first-corrected coordinates; The distortion mapping table is used to perform secondary correction on each of the primary correction coordinates to obtain multiple target correction coordinates; Output a corrected image based on the multiple target correction coordinates; The target object is positioned below the lens via a support plate, and the relative position of the support plate and the lens remains unchanged. The support plate is provided with a slot for securing the target object. When the target object is secured in the slot, the distance between the target object and the lens is the reference distance. The scaling matrix is s represents the scaling factor, s equals Where H represents the current distance between the lens and the target object. Indicates the reference distance; The step of correcting each of the original coordinates using the scaling matrix is performed based on the following formula: The original coordinates of any of the pixels are The first calibration coordinate is .
2. The image acquisition method according to claim 1, characterized in that, The lens is a liquid lens; The step of focusing the lens based on the current image distance of the lens and the current distance between the lens and the target object to make the lens focus on the target object includes: The target focal length of the lens is obtained based on the current image distance of the lens and the current distance between the lens and the target object; The target voltage of the lens is obtained based on the target focal length of the lens; The voltage applied to the lens is adjusted to the target voltage.
3. The image acquisition method according to claim 2, characterized in that, The step of focusing the lens based on the current image distance of the lens and the current distance between the lens and the target object to make the lens focus on the target object further includes the following step performed after adjusting the voltage applied to the lens to the target voltage: The lens captures an image of the target object as a second image; Obtain the sharpness of the second image; Determine whether the sharpness of the second image is less than a preset threshold. If so, reacquire the target focal length of the lens.
4. The image acquisition method according to claim 1, characterized in that, The image acquisition method further includes: Determine whether the current time is the preset time; if so, update the distortion mapping table.
5. The image acquisition method according to claim 1, characterized in that, The image acquisition method further includes: Obtain the cumulative working time of the lens; Determine whether the cumulative working time of the lens has reached the preset time. If so, update the distortion mapping table.
6. The image acquisition method according to claim 1, characterized in that, The image acquisition method further includes: Get the current ambient temperature; Determine whether the deviation between the current ambient temperature and the standard temperature reaches the preset deviation. If so, update the distortion mapping table.
7. A computer-readable storage medium having a program stored thereon, characterized in that, When the program is executed, the image acquisition method as described in any one of claims 1-6 is performed.
8. An electronic device, characterized in that, The device includes an actuator and a memory connected by communication, the memory storing a program, the actuator being configured to execute the program stored in the memory, and when the program is executed, performing the image acquisition method as described in any one of claims 1-6.
9. An image acquisition system, characterized in that, The device includes a lens, a ranging device, and a control unit. The lens is a liquid lens, the ranging device is a time-of-flight sensor, and the control unit includes a field-programmable gate array. The control unit is communicatively connected to the ranging device and the lens, and is configured to perform the image acquisition method as described in any one of claims 1-6.
10. The image acquisition system according to claim 9, characterized in that, The detection signal of the time-of-flight sensor is an optical signal; The image acquisition system also includes a filter, which is disposed in the signal receiving module of the time-of-flight sensor.
11. An in vitro diagnostic device, comprising an image acquisition system as described in any one of claims 9 or 10.
12. The in vitro diagnostic device according to claim 11, characterized in that, The in vitro diagnostic equipment includes any one of the following: immunoblotting analyzer, immunochromatographic analyzer, dry biochemical analyzer, and multi-index analyzer.