VIAL CONTENT DETECTION USING ILLUMINATED BACKGROUND PATTERN
20210056660 ยท 2021-02-25
Assignee
Inventors
Cpc classification
G06T1/0014
PHYSICS
G06V10/145
PHYSICS
International classification
Abstract
A machine vision system that uses an imager to capture an optical image of a target object that may contain a liquid. The target object is illuminated by an illumination source positioned oppositely from the imager and a predetermined pattern is positioned between the illumination source and the target object so that the imager will capture optical images of the background pattern through any liquid positioned in the target object. A processor is programmed to analyze captured images to detect any distortions of the pattern that are attributable to the presence of a liquid in the target object.
Claims
1. A machine vision system, comprising: an imager for capturing an optical image of a target object; an illumination source positioned oppositely from the imager; a predetermined pattern positioned between the illumination source and the target object; and a processor programmed to evaluate the optical image to determine whether there are any distortions of the predetermined pattern attributable to a liquid positioned in the target object.
2. The system of claim 1, wherein the processor is programmed to determine whether there any distortions of the predetermined pattern based upon any refraction of light passing through the predetermined pattern and the target object.
3. The system of claim 2, further comprising a plurality of the target objects and wherein the processor is programmed to evaluate the optical image to determine whether there are any distortions of the predetermined pattern in each of the plurality of the target objects.
4. The system of claim 3, wherein the processor is programed to whether there any distortions of the predetermined pattern using fast Fourier transform.
5. The system of claim 3, wherein the processor is programed to whether there any distortions of the predetermined pattern based on whether there is a change in color.
6. The system of claim 3, wherein the pattern comprises a grid.
7. The system of claim 6, wherein the illumination source comprises a bank of light emitting diodes.
8. The system of claim 7, wherein the target object comprises a vial having a base and a body that extends from the base along a longitudinal axis.
9. The system of claim 8, wherein the grid is positioned below the base of the vial.
10. The system of claim 9, wherein the light emitting diodes are positioned below the grid and oriented to direct illumination through the grid and along the longitudinal axis of the body.
11. A method of determining whether a target object has a liquid positioned therein, comprising the steps of: positioning a predetermined pattern between an illumination source and the target object; directing illumination from the illumination source through the predetermined patterns and the target object; capturing an optical image of the target object and any portion of the predetermined pattern visible through the target object; and using a processor to evaluate the optical image to determine whether there are any distortions of the predetermined pattern attributable to a liquid positioned in the target object.
12. The method of claim 11, wherein the processor is programmed to determine whether there any distortions of the predetermined pattern based upon the refraction of light passing through the predetermined pattern and the target object.
13. The method of claim 12, wherein the step of positioning a predetermined pattern between an illumination source and the target object comprises positioning a plurality of the target objects between the illumination source and the target object and the step of using a processor to evaluate the optical image comprises evaluating the optical image to determine whether there are any distortions of the predetermined pattern in each of the plurality of the target objects.
14. The method of claim 13, wherein step of using the processor comprises determining whether there any distortions of the predetermined pattern using a fast Fourier transform.
15. The method of claim 13, wherein step of using the processor comprises determining whether there is a change in color.
16. The method of claim 11, wherein the pattern comprises a grid.
17. The method of claim 16, wherein the illumination source comprises a bank of light emitting diodes.
18. The method of claim 17, wherein the target object comprises a vial having a base and a body that extends from the base along a longitudinal axis.
19. The method of claim 18, wherein the step of positioning a predetermined pattern between an illumination source and the target object comprises positioned the grid below the base of the vial.
20. The method of claim 19, wherein the step of positioning a predetermined pattern between an illumination source and the target object comprises positioning the light emitting diodes below the grid and orienting the light emitting diodes to direct illumination through the grid and along the longitudinal axis of the body.
Description
BRIEF DESCRIPTION OF THE SEVERAL VIEWS OF THE DRAWING(S)
[0008] The present invention will be more fully understood and appreciated by reading the following Detailed Description in conjunction with the accompanying drawings, in which:
[0009]
[0010]
[0011]
[0012]
[0013] and
[0014]
DETAILED DESCRIPTION OF THE INVENTION
[0015] Referring to the figures, wherein like numeral refer to like parts throughout, there is seen in
[0016] Referring to
[0017] Processor 20 may be programmed using conventional image processing techniques to detect any distortion of predetermined pattern 18 that is attributable to a liquid. For example, fast Fourier transforms (FFTs) may be used alone or in combination with deep learning to detect either or both of frequency and feature changes of predetermined pattern 18. Using predetermined pattern 18 allows for feature extraction and distortion checking of the pattern of predetermined pattern 18, such as pixel correlations. The frequency domain can also be used to look for distortions in a grid used for predetermined pattern 18. If distortion is detected, the vial can be deemed as containing liquid and refracting predetermined pattern 18. The distortion analysis can optionally be extended to the presence or absence of a portion of predetermined pattern 18 to detect solids in the vial, or a liquid that has foam or bubbles that prevent predetermined pattern 18 being analyzed.
[0018] If signal detector 16 comprises a color image, color information may be used to determine the presence of a liquid in target object 12. For example, an RGB image can be converted to a YCbCr image. The YCbCr image may then be used to generate a histogram of the Cb and Cr color components. A mean value of the 30 percent brightest histogram is then calculated to avoid the grid components, which are preferably black, and only get the color information of the bright areas with the capture image. This value may then be compared against the value obtained from a liquid-free image to determine if there is a change in color information indicating the presence of a liquid.
[0019] For FFT analysis, the number of grid lines in a given area will be different when a liquid is present. Hence, in the frequency domain, the frequency will be farther away from the zero point (DC frequency) than the case without liquid. All DC frequency components should be set to zero in order to only keep the high frequency parts. In this way, the below high frequency distribution with/without liquid. This analysis shows that with liquid present in target object 12, the distance of the two horizontal high frequency and the distance of the two vertical high frequency will be much larger than that without liquid. A 2D FFT may be calculated through 1D horizontal FFT followed by 1D vertical FFT. If 1D horizontal FFT is able to find the larger frequency distance, then the 1D vertical FFT may be omitted to save time.
[0020] There is seen in
[0021] As described above, the present invention may be a system, a method, and/or a computer program associated therewith and is described herein with reference to flowcharts and block diagrams of methods and systems. The flowchart and block diagrams illustrate the architecture, functionality, and operation of possible implementations of systems, methods, and computer programs of the present invention. It should be understood that each block of the flowcharts and block diagrams can be implemented by computer readable program instructions in software, firmware, or dedicated analog or digital circuits. These computer readable program instructions may be implemented on the processor of a general purpose computer, a special purpose computer, or other programmable data processing apparatus to produce a machine that implements a part or all of any of the blocks in the flowcharts and block diagrams. Each block in the flowchart or block diagrams may represent a module, segment, or portion of instructions, which comprises one or more executable instructions for implementing the specified logical functions. It should also be noted that each block of the block diagrams and flowchart illustrations, or combinations of blocks in the block diagrams and flowcharts, can be implemented by special purpose hardware-based systems that perform the specified functions or acts or carry out combinations of special purpose hardware and computer instructions.