Image acquisition method and system, in-vitro diagnosis equipment, medium and electronic equipment
By using the ranging device and correction algorithm in the fully automatic immunoblotting detector, the problems of insufficient focus accuracy and optical distortion of the lens are solved, and the imaging quality and accuracy of the judgment results of the image acquisition system are improved.
Patent Information
- Application Number
- CN202510455378.9
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2025-04-11
- Publication Date
- 2025-07-01
- Estimated Expiration
- 2045-04-11
AI Technical Summary
The image acquisition system of the existing fully automatic western blot detector has problems with imaging blur and interpretation error caused by insufficient lens focus accuracy and optical distortion.
The current distance between the lens and the target object is obtained through the ranging device, the lens focal length is adjusted to achieve focus, and the original coordinates are corrected using the scaling matrix and distortion mapping table to output the corrected image.
The focus accuracy of the image acquisition system is improved, the impact of optical distortion is reduced, the image quality is improved, and the accuracy and reliability of the judgment results are improved.
Smart Images

Figure CN120238745A_ABST
Abstract
Description
Technical Field
[0001] The present invention belongs to the technical field of medical devices, and particularly relates to an image acquisition method and system, an in vitro diagnostic device, a medium and an electronic device. Background Art
[0002] As an important tool for clinical diagnosis and biomedical research, the imaging quality of immunoblotting technology directly affects the accuracy and reliability of test results. In the existing image acquisition systems of fully automatic immunoblotting detectors, there are generally problems such as insufficient focusing accuracy of the lens resulting in blurred imaging and optical distortion resulting in reading errors. Summary of the Invention
[0003] The purpose of the present invention is to provide an image acquisition method and system, an in vitro diagnostic device, a medium and an electronic device, aiming to improve the focusing accuracy of the lens and also correct optical distortion to improve image quality.
[0004] To achieve the above purpose, the present invention provides an image acquisition method, including:
[0005] Obtaining the current distance between the lens and the target object based on a ranging device;
[0006] 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;
[0007] Obtaining an image of the target object collected by the focused lens as a first image;
[0008] Obtaining the original coordinates of each pixel point on the first image;
[0009] Obtaining a scaling matrix according to the current distance between the lens and the target object and a reference distance;
[0010] Correcting each of the original coordinates by using the scaling matrix and a distortion mapping table to obtain a plurality of target corrected coordinates;
[0011] Outputting a corrected image based on the plurality of target corrected coordinates.
[0012] Optionally, the lens is a liquid lens;
[0013] 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 so that the lens focuses on the target object includes:
[0014] Obtaining the target focal length of the lens according to the current image distance of the lens and the current distance between the lens and the target object;
[0015] Obtain the target voltage of the lens according to the target focal length of the lens;
[0016] Adjust the voltage applied to the lens 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 so that the lens focuses on the target object further includes, after adjusting the voltage applied to the lens to the target voltage:
[0018] Cause the lens to collect 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, re-obtain the target focal length of the lens.
[0021] Optionally, the step of correcting each of the original coordinates by using the scaling matrix and the distortion mapping table to obtain a plurality of target corrected coordinates includes:
[0022] Perform a first correction on each of the original coordinates by using the scaling matrix to obtain a plurality of first corrected coordinates; and,
[0023] Perform a second correction on each of the first corrected coordinates by using the distortion mapping table to obtain a plurality of the target corrected coordinates.
[0024] Optionally, the original coordinate of any one of the pixel points is (x0, y0), and the first corrected coordinate is (x1, y1);
[0025] The step of performing a first correction on each of the original coordinates by using the scaling matrix is executed based on the following formula:
[0026]
[0027] In the formula, M represents the scaling matrix, and M is equal to s represents the scaling factor, and s is equal to 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 moment is a preset moment. If so, update the distortion mapping table.
[0030] Optionally, the image acquisition method further includes:
[0031] Obtain the cumulative working duration of the lens;
[0032] Determine whether the cumulative working duration of the lens reaches a preset duration. If so, update the distortion mapping table.
[0033] Optionally, the image acquisition method further includes:
[0034] Obtain the current ambient temperature;
[0035] Determine whether the deviation between the current ambient temperature and the standard temperature reaches a preset deviation. If so, update the distortion mapping table.
[0036] To achieve the above object, the present invention also provides a computer-readable storage medium, on which a program is stored. When the program is executed, the image acquisition method described in any one of the previous items is executed.
[0037] To achieve the above object, the present invention also provides an electronic device, including an actuator and a memory connected in communication. A program is stored on the memory, and the actuator is configured to execute the program stored on the memory. When the program is executed, the image acquisition method described in any one of the previous items is executed.
[0038] To achieve the above object, the present invention also provides an image acquisition system, including a lens, a ranging device, and a control unit. The control device is respectively communicatively connected to the ranging device and the lens, and is configured to execute the image acquisition method described in any one of the previous items.
[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 further includes a filter, and the filter is disposed on the signal receiving module of the time-of-flight sensor.
[0042] To achieve the above object, the present invention also provides an in vitro diagnostic device, including the image acquisition system described in any one of the previous items.
[0043] Optionally, the in vitro diagnostic device includes any one of an immunoblot detector, an immunochromatographic analyzer, a dry biochemical analyzer, and a multi-index joint detection analyzer.
[0044] Compared with the prior art, the image acquisition method and system, in vitro diagnostic device, medium, and electronic device of the present invention have the following advantages:
[0045] The foregoing image acquisition method includes: obtaining the current distance between the lens and the target; focusing the lens according to the current image distance of the lens and the current distance between the lens and the target so that the lens focuses on the target; obtaining the image of the target collected by the focused lens as the first image; obtaining the original coordinates of each pixel point on the first image; obtaining a scaling matrix according to the current distance between the lens and the target and a reference distance; correcting each of the original coordinates by using a distortion mapping table and the scaling matrix to obtain a plurality of target corrected coordinates; and outputting a corrected image based on the plurality of target corrected coordinates. By focusing, the focusing accuracy of the lens is improved to solve the problem of poor image quality caused by insufficient focusing accuracy. By correcting the original coordinates of the pixel points of the first image through the distortion mapping table and the scaling matrix, and then outputting a corrected image according to the target corrected coordinates, the finally obtained image is affected as little as possible by optical distortion and the change in the distance between the lens and the target, improving the image quality, thereby improving the accuracy and reliability of the subsequent judgment results based on the image. Description of the Drawings
[0046] The drawings are used to better understand the present invention and do not constitute an improper limitation to the present invention. Among them:
[0047] Figure 1 is a schematic structural diagram of an image acquisition system provided by the present invention according to an embodiment;
[0048] Figure 2 is an overall flowchart of an image acquisition method executed by a control unit of an image acquisition system provided by the present invention according to an embodiment;
[0049] Figure 3 is a schematic diagram of a first image of a target obtained by a control unit of an image acquisition system provided by the present invention according to an embodiment during the execution of an image acquisition method;
[0050] Figure 4 is a schematic diagram of a corrected image of a target obtained by a control unit of an image acquisition system provided by the present invention according to an embodiment during the execution of an image acquisition method;
[0051] Figure 5 is a partial flowchart of an image acquisition method executed by a control unit of an image acquisition system provided by the present invention according to an embodiment;
[0052] Figure 6 shows a schematic structural diagram of an image acquisition system provided by the present invention according to an embodiment, in which a calibration board and a translation stage are shown.
[0053] [Description of the attached drawing reference numerals]:11 - lens, 12 - distance measuring device, 13 - control unit, 14 - filter, 15 - translation stage, 16 - drive mechanism, 1 - target object, 2 - calibration plate. Detailed implementation manners
[0054] The following uses specific specific examples to illustrate the implementation manners 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 implementation manners. 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 drawings provided in this embodiment only illustrate the basic concept of the present invention in a schematic manner. Therefore, only the components related to the present invention are shown in the drawings, rather than being drawn according to the number, shape, and size of the components in actual implementation. The type, quantity, and ratio of each component in actual implementation can be arbitrarily changed, and the component layout type may also be more complex.
[0055] In addition, each of the following description embodiments has one or more technical features. However, this does not mean that those using the present invention must simultaneously implement all the technical features in any one embodiment, or can only separately implement some or all of the technical features in different embodiments. In other words, on the premise that implementation is possible, those skilled in the art can, according to the disclosure of the present invention and depending on design specifications or implementation requirements, selectively implement some or all of the technical features in any one embodiment, or selectively implement the combination of some or all of the technical features in multiple embodiments, thereby increasing the flexibility when implementing the present invention.
[0056] As used in this specification, the singular forms "a", "an", and "the" include plural objects, and the plural form "plural" includes more than two objects, unless the content clearly indicates otherwise. As used in this specification, the term "or" is generally used in the sense of including "and / or", unless the content clearly indicates otherwise. And the terms "mounted", "connected", "connected to" should be understood in a broad sense. For example, it can be a fixed connection, a detachable connection, or an integral connection. It can be a mechanical connection or an electrical connection. It can be directly connected or indirectly connected through an intermediate medium. It can be the internal communication of two components or the interaction relationship between two components. The relational terms such as "first", "second", etc. are only used to distinguish one entity or operation from another entity or operation, and do not necessarily require or imply any such actual relationship or order between these entities or operations, nor indicate or imply relative importance or implicitly specify the quantity of the indicated technical features. For those of ordinary skill in the art, the specific meanings of the above terms in the present invention can be understood according to 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 accompanying drawings are in very simplified forms and use non-precise scales, and are only used to conveniently and clearly assist in explaining the objectives of the embodiments of the present invention. The same or similar reference numerals in the accompanying drawings represent the same or similar components.
[0058] Figure 1 The structural schematic diagram of an image acquisition system provided by an embodiment of the present invention is shown, as Figure 1 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 respectively, 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, and after the in vitro diagnostic system acquires the image of the target object, a diagnostic result is obtained based on the image of the target object. The in vitro diagnostic device includes, but is not limited to, any one of an immunoblot detector, an immunochromatographic analyzer, a dry chemical analyzer, and a multi-index joint detection analyzer. The target object is a kit related to the type of the in vitro diagnostic device. For example, when the in vitro diagnostic device is an immunoblot detector, the target object is an immunoblot kit.
[0060] As Figure 2 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: Focus 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 the image of the target object collected by the focused lens 11 as a first image, and the first image is as Figure 3 shown.
[0064] Step S4: Obtain the coordinates of each pixel point on the first image as first original coordinates.
[0065] Step S5: Obtain a scaling matrix according to the current distance between the lens 11 and the target object and a reference distance.
[0066] Step S6: Correct a plurality of the first original coordinates by using the scaling matrix and a distortion mapping table to obtain a plurality of target corrected coordinates.
[0067] Step S7: Output a corrected image based on the multiple target correction coordinates as the finally obtained image of the image acquisition system. The corrected image is as shown in Figure 4 .
[0068] By executing the step S2, the focusing accuracy of the lens 11 on the target is improved, and the problem of poor image quality caused by insufficient focusing accuracy is solved; by executing the step S6, the image distortion caused by the distance change between the lens 11 and the target and the optical distortion of the lens 11 can be corrected. Comparing Figure 3 and Figure 4 , it can be seen that the quality of the finally obtained image (i.e., the corrected image) of the image acquisition system is significantly improved compared with the first image. Experiments prove that by executing the image acquisition method, the offset of the edge feature points of the corrected image can be reduced to 0.5 pixel or less.
[0069] In the embodiment of the present invention, preferably, the ranging device 12 is 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 response speed of the TOF sensor is extremely fast, at the microsecond level; by adjusting the voltage applied to the liquid lens, the curvature of the liquid lens can be adjusted, so that the liquid lens can achieve the effect of non-mechanical zoom within 1 ms to 10 ms; the FPGA can achieve accelerated parallel processing. Therefore, through the cooperation of the TOF sensor, the liquid lens, and the FPGA, the collaborative correction of the static distortion and the dynamic distortion of the first image collected by the lens 11 can be realized, and the response time of the image acquisition system is controlled at the millisecond level, solving the delay problem in multi-mode correction.
[0070] Those skilled in the art can understand that the "static distortion" of the first image collected by the lens 11 refers to the image distortion caused by the optical distortion of the lens 11 itself. The target object is arranged below the lens 11 through a carrier plate (not shown in the figure). The relative position between the carrier plate and the lens 11 remains unchanged. The carrier plate is provided with a card slot for clamping the target object. When the target object is clamped in place in the card slot, the distance between the target object and the lens 11 is the reference distance. When the target object is not clamped in place in the card slot, or during the incubation or cleaning of the target object, if the target object is displaced, the distance between the target object and the lens 11 deviates from the reference distance, that is, the distance between the lens 11 and the target object changes. 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 collected by the lens 11 is larger, and the edge lines of the image show trapezoidal distortion, etc. The "dynamic distortion" of the first image collected 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] In addition, it can be understood that the TOF sensor is a non-contact sensor. Therefore, when the TOF sensor is used as the distance measuring device 12, it also has the advantage of avoiding the problem of target object contamination caused by contact distance measurement. The variable focal length of the liquid lens is 5mm to 50mm, which meets the requirements of the in vitro diagnostic device. In addition, by the control unit 13 executing the image acquisition method, the error caused by manual intervention can be reduced.
[0072] Next, each step of the image acquisition method will be further described.
[0073] It can be understood that the TOF sensor is arranged in parallel with the lens 11, and the relative position between the TOF sensor and the lens 11 is fixed. The TOF sensor is a reflective sensor integrated with a signal transmission module and a signal reception 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 transmission module of the TOF sensor emits a detection signal towards the target object. When the detection signal reaches the target object, it is reflected by the target object, and the reflected detection signal is received by the signal reception 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 emission of the detection signal by the signal transmission module and the reception of the detection signal by the signal reception module, as well as the transmission speed of the detection signal. Finally, the distance between the lens 11 and the target object is obtained based on the relative position relationship between the TOF sensor and the lens 11.
[0074] Preferably, the detection signal of the TOF sensor is an optical signal. Further preferably, the image acquisition system further includes a filter 14, and the filter 14 is disposed on the signal reception module of the TOF sensor to filter out ambient light and avoid interference of the ambient light on the measurement result of the TOF sensor.
[0075] The wavelength of the detection signal of the TOF sensor is determined according to requirements, 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 preferred that the detection signal of the TOF sensor is a near-infrared optical signal with a wavelength of 850 nm, because the surface of the immunoblot diagnostic test strip is a nitrocellulose membrane, and the near-infrared light with a wavelength of 850 nm can be reflected by the nitrocellulose membrane. Correspondingly, the bandpass of the filter 14 is 800 nm to 900 nm, and it can shield the ambient light with a wavelength in the range of 400 nm to 700 nm. In this way, the disadvantage of the low reflectivity of the nitrocellulose membrane can be overcome, and the signal-to-noise ratio of the TOF sensor can be increased to more than 30 dB.
[0076] When the lens 11 is the liquid lens, the specific operation of step S2 can be as Figure 5 shown, including:
[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] Among them, the step S21 is executed based on the following formula (1):
[0081]
[0082] In formula (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] The step S22 is well-known to those skilled in the art and will not be elaborated here.
[0084] In a further improvement, the step S2 further includes steps S24, S25, and S26 executed after the step S22.
[0085] The step S24 includes causing the lens 11 to collect an image of the target object as a second image.
[0086] The step S25 includes obtaining the sharpness of the second image.
[0087] The step S26 includes determining whether the sharpness of the second image is less than a preset threshold. If not, it is determined that the focusing is completed and the lens 11 is focused on the target object. If so, return to execute the step S21.
[0088] In the step S25, the sharpness of the second image can be obtained by calculating the image edge gradient of the second image. The specific calculation methods include but are not limited to any one of the Brenner gradient method, Tenegrad gradient method, Iaplace gradient method, variance method, and energy gradient method.
[0089] The "preset threshold" in the step S26 is determined by the operator according to needs, for example, set to 50.
[0090] It should be understood that when the judgment result in the step S26 is "yes" and returns to execute the step S21, the current image distance of the lens 11 is the image distance of the lens 11 after the step S22 is executed.
[0091] By executing the steps S24 to S26, it can be further ensured that the lens 11 is focused on the target object, avoiding the problem of inaccurate focusing caused by operation errors.
[0092] It can be understood that the lens 11 during the last execution of the step S24 has completed focusing. Therefore, the step S3 can actually be the last execution of the step S24, that is, the first image is the last obtained second image.
[0093] The step S4 can be executed based on the prior art.
[0094] The step S5 can be executed based on the following formula (2):
[0095]
[0096] In the formula, M represents the scaling matrix, and s is equal to H represents the current distance between the lens 11 and the target object, and H0 represents the reference distance.
[0097] The step S5 can be executed synchronously with the step S2, or synchronously with the step S3, or synchronously with the step S4, or can be executed before the step S2 or after the step S3. The embodiments of the present invention do not make any limitations in this regard, as long as the step S5 is completed before the step S6.
[0098] The step S6 includes:
[0099] Step S61: Use the scaling matrix to perform a primary correction on each of the first original coordinates to obtain the primary correction coordinates of each pixel point.
[0100] Step S62: Use the distortion mapping table to perform a secondary correction on each of the primary correction coordinates to obtain the target correction coordinates of each pixel point.
[0101] Record the first original coordinate of any pixel point in the first image as (x0, y0), and the primary correction coordinate as (x1, y1). Since the change in the distance between the lens 11 and the target object is equivalent to the translation of the target object relative to the lens 11 in three-dimensional space, therefore, the step S61 is executed based on the following formula (3):
[0102]
[0103] By executing the step S61, the image scaling and tilting caused by the height change in the image collected by the lens 11 can be compensated.
[0104] In the step S62, by taking each of the primary correction coordinates as the input value, the corresponding target correction coordinates of each pixel point can be obtained through the distortion mapping table.
[0105] The distortion mapping table is a look-up 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 acquisition speed of 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. Moreover, in a preferred embodiment, the control unit also updates the distortion mapping table according to the actual situation. For example, the distortion mapping table is updated at a preset time. In this way, the image acquisition method further includes step S01, and step S01 includes determining whether the current time is the preset time. If so, the distortion mapping table is updated. The preset time is, for example, the time when the in vitro diagnostic device is powered on and operates each time, or a specified time such as 5 o'clock on Monday every week. Or, the distortion mapping table is updated when the cumulative duration of the lens 11 reaches a preset duration. In this way, the image acquisition method further includes step S02, and step S02 includes obtaining the cumulative working duration of the lens 11 and determining whether the cumulative working duration of the lens 11 reaches the preset duration. If so, the distortion mapping table is updated. Or, the distortion mapping table is updated when the deviation between the current temperature of the working environment of the in vitro diagnostic device and the preset standard temperature reaches a preset deviation. In this way, the image acquisition method further includes step S03, and step S03 includes obtaining 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 obtaining the distortion mapping table is generally as follows, including:
[0107] Step S011: Provide a calibration plate 1 (as Figure 6 shown). The calibration plate 1 has a rectangular area, and the size of the rectangular area 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, and the number of checkerboard grids is 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, and the side length of each grid on the checkerboard can be determined according to 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, and the smaller the side length of each grid on the checkerboard.
[0108] Step S012: Drive the calibration plate 1 to move so that the calibration plate 1 is in the 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 board 1 to move, and at the same time control the lens 11 to collect the third image of the calibration board 1 in the first pose, the fourth image of the calibration board 1 in the second pose, and the fifth image of the calibration board 1 in the third pose. The first pose, the second pose, and the third pose are different. For any one of the first pose, the second pose, and the third pose, compared with the initial pose, the translation amount between the two is less than or equal to 5 mm, and the tilt amount is less than or equal to 5°. In addition, all the corner points of the checkerboard are displayed on the third image, the fourth image, and the fifth image respectively. The corner points of the checkerboard refer to the vertices of each grid.
[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 point detection algorithm.
[0111] Step S015: Calculate the distortion coefficients 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 point 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 point 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 step S012 and step S013, the calibration board 1 is carried on a translation stage 15 (as Figure 6 shown), the translation stage 15 is connected to a driving mechanism 16 (as Figure 6 shown), and moves under the drive of the driving mechanism 16, thereby driving the calibration board 1 to move. That is, the control unit 13 is also communicatively connected to the driving mechanism 16 and is configured to control the operation of the driving mechanism 16.
[0115] The specific implementation manners of step S014, step S015, and step S016 are all well-known in the art and will not be elaborated here. Among them, the distortion coefficients in step S015 include radial distortion coefficients and tangential distortion coefficients.
[0116] Denote the second original coordinates of any pixel point in the third image, the fourth image, and the fifth image as (x 00 , y 00 ), and denote the distortion calibration coordinates calculated in step S017 as (x01 , y 01 ). The step S017 is performed based on the distortion mapping formula, and the distortion mapping formula is Formula (4) as follows:
[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] In addition, the calibration plate used in the embodiments of the present invention is made of alumina ceramics, and its thermal expansion coefficient is not greater than 8×10 -6 / °C, having good stability. In addition, the line width tolerance of the checkerboard is ±5 μm.
[0120] Furthermore, the embodiments of the present invention further provide an in vitro diagnostic device, which includes the image acquisition system as described above. The in vitro diagnostic device includes, but is not limited to, any one of an immunoblot detector, an immunochromatographic analyzer, a dry biochemical analyzer, and a multi-index joint detection analyzer.
[0121] Furthermore, the embodiments of the present invention further provide an image acquisition method, which includes the foregoing steps S1 to the step S7.
[0122] Furthermore, the embodiments of the present invention further provide a computer-readable storage medium, on which a program is stored. When the program is executed, the foregoing image acquisition method is executed.
[0123] Furthermore, the embodiments of the present invention further provide an electronic device, which includes an actuator and a memory connected by communication. A program is stored on the memory, and the actuator is configured to execute the program. When the program is executed, the foregoing image acquisition method is executed.
[0124] Although the present invention is disclosed as above, it is not limited thereto. Those skilled in the art can make various changes and modifications to the present invention without departing from the spirit and scope of the present invention. Thus, if these modifications and variations of the present invention fall within the scope of the claims of the present invention and their equivalent technologies, the present invention also intends to include these changes and modifications.
Claims
1. An image acquisition method, characterized in that: include: Acquire the current distance between the lens and the target object based on the distance measuring device; 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 is focused on the target object; Acquire an image of the target object captured by the lens after focusing as a first image; Obtaining the original coordinates of each pixel point on the first image; Acquire a scaling matrix according to a current distance between the lens and the target object and a reference distance; Correcting each of the original coordinates using the scaling matrix and the distortion mapping table to obtain a plurality of target corrected coordinates; A corrected image is output based on the plurality of target correction coordinates.
2. The image acquisition method according to claim 1, characterized in that: The lens is a liquid lens; The step of adjusting the focus of 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 comprises: Acquire a target focal length of the lens according to a current image distance of the lens and a current distance between the lens and the target object; Acquiring a target voltage of the lens according to a 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 adjusting the focus of 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 further includes the following steps performed after the voltage applied to the lens is adjusted to the target voltage: enabling the lens to capture an image of the target object as a second image; Acquiring the clarity of the second image; It is determined whether the clarity of the second image is less than a preset threshold, and if so, the target focal length of the lens is reacquired.
4. The image acquisition method according to claim 1, characterized in that: The step of correcting each of the original coordinates using the scaling matrix and the distortion mapping table to obtain a plurality of target corrected coordinates comprises: Performing a correction on each of the original coordinates using the scaling matrix to obtain a plurality of first-corrected coordinates; and, The distortion mapping table is used to perform secondary correction on each of the primary correction coordinates to obtain a plurality of the target correction coordinates.
5. The image acquisition method according to claim 4, characterized in that: The original coordinates of any pixel point are (x0, y0), and the first correction coordinates are (x1, y1); The step of correcting each of the original coordinates using the scaling matrix is performed based on the following formula: Where M represents the scaling matrix, and M is equal to s represents the scaling factor, which is equal to H represents the current distance between the lens and the target object, and H0 represents the reference distance.
6. The image acquisition method according to claim 1, characterized in that: The image acquisition method further comprises: It is determined whether the current moment is a preset moment, and if so, the distortion mapping table is updated.
7. The image acquisition method according to claim 1, characterized in that: The image acquisition method further comprises: Obtaining the cumulative working time of the lens; It is determined whether the accumulated working time of the lens reaches a preset time, and if so, the distortion mapping table is updated.
8. The image acquisition method according to claim 1, characterized in that: The image acquisition method further comprises: Get the current ambient temperature; It is determined whether the deviation between the current ambient temperature and the standard temperature reaches a preset deviation, and if so, the distortion mapping table is updated.
9. A computer-readable storage medium having a program stored thereon, characterized in that: When the program is executed, the image acquisition method according to any one of claims 1 to 8 is performed.
10. An electronic device, characterized in that: The invention comprises an executor and a memory which are communicatively connected, wherein a program is stored in the memory, and the executor is configured to execute the program stored in the memory, and when the program is executed, the image acquisition method according to any one of claims 1 to 8 is executed.
11. An image acquisition system, characterized in that: It comprises a lens, a distance measuring device and a control unit, wherein the control device is respectively connected to the distance measuring device and the lens for communication, and is configured to execute the image acquisition method as described in any one of claims 1 to 8.
12. The image acquisition system according to claim 11, characterized in that: The distance measuring device is a time-of-flight sensor, the lens is a liquid lens, and the control unit includes a field-editable gate array.
13. The image acquisition system according to claim 12, characterized in that: The detection signal of the time-of-flight sensor is a light signal; The image acquisition system further includes a filter, which is arranged on the signal receiving module of the time-of-flight sensor.
14. An in vitro diagnostic device comprising the image acquisition system according to any one of claims 10 to 13.
15. The in vitro diagnostic device according to claim 14, characterized in that The in vitro diagnostic equipment includes any one of an immunoblotting detector, an immunochromatographic analyzer, a dry biochemical analyzer, and a multi-index joint detection analyzer.
Citation Information
Patent Citations
System and method for head size equalization in 360 degree panoramic images
CN101160591A
Image processing method and device
CN104363986A
Image sensors with calibrated phase detection pixels, and operation method thereof
CN109982070A
Automatic focusing method, system and device for liquid lens and storage medium
CN113960704A
Image processing method and device
CN117974512A