WO2022074171A1 - System and method for digital image processing - Google Patents

System and method for digital image processing Download PDF

Info

Publication number
WO2022074171A1
WO2022074171A1 PCT/EP2021/077797 EP2021077797W WO2022074171A1 WO 2022074171 A1 WO2022074171 A1 WO 2022074171A1 EP 2021077797 W EP2021077797 W EP 2021077797W WO 2022074171 A1 WO2022074171 A1 WO 2022074171A1
Authority
WO
WIPO (PCT)
Prior art keywords
image
focus
focus position
processing means
image processing
Prior art date
Application number
PCT/EP2021/077797
Other languages
French (fr)
Inventor
Louis Ryan
Stephen EGAN
Original Assignee
Ash Technologies Ltd.,
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Ash Technologies Ltd., filed Critical Ash Technologies Ltd.,
Priority to EP21790351.7A priority Critical patent/EP4226324A1/en
Publication of WO2022074171A1 publication Critical patent/WO2022074171A1/en

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T7/00Image analysis
    • G06T7/50Depth or shape recovery
    • G06T7/55Depth or shape recovery from multiple images
    • G06T7/571Depth or shape recovery from multiple images from focus
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T2207/00Indexing scheme for image analysis or image enhancement
    • G06T2207/10Image acquisition modality
    • G06T2207/10056Microscopic image

Definitions

  • the present invention relates to a digital imaging inspection system and method for digital image processing, and more particularly to a system and method to automatically determine an optimal focus position of an object in a digital image.
  • a digital imaging inspection system such as a digital microscope imaging system uses a digital camera and optics to capture an image of an object of interest.
  • the captured image is generally displayed on a computer monitor for analysis.
  • Digital microscope imaging systems are well known in the art.
  • Digital microscope imaging systems with automatic focus means are also known in the art, such as the one disclosed in US6,816,606B2. Such systems can be used in digital image object inspection systems used in manufacturing processes and systems.
  • the known digital microscope imaging systems with automatic focus means are slow and typically allows the system to focus only a fraction of the size of the field of view which reduces the usability of the system, for example it is impossible to inspect objects with varying heights or small relevant features in the Z-axis.
  • a major problem with digital camera microscopes and digital inspection imaging systems is that auto focus that find the best focus for the entire field of view make it almost impossible to inspect an object with varying height components as smaller features will never be in focus.
  • the present invention provides a system and method to automatically determine an optimal focus position of a digital image with the highest image energy while minimizing noise interference, and to automatically inspect and measure heights of objects having varying heights and smaller relevant features in a digital image, as set out in the appended claims.
  • a digital imaging inspection system comprising an image capturing module configured to capture a plurality of digital images of a plurality of objects; a processor operatively coupled to the image capturing module and having a focus element; at least one filter, and an automated image focusing module; the automated focussing module is configured to determine an optimal focus position for one or more objects based on an image energy output from the filter; and the processor determines the height of at least one object in each of the images from the optimal focus position using a set of known calibrated heights, gathered from interpolating between the focus positions of objects of known heights.
  • the system comprises an image capturing means and an image processing means operatively coupled to the image capturing means.
  • the image capturing means for example a digital microscope, comprises an image capturing device, and at least one lens.
  • the image capturing means is configured to capture a plurality of digital images of a plurality of objects which is displayed to a user through a display means.
  • the captured digital image could be for example a live video image or a static image.
  • the lens is positioned along an optical path extending from each of the plurality of objects to the image capturing device.
  • the image processing means comprises a plurality of focus motors, a comb filter or a blur filter or an energy filter, and an automated focussing means.
  • the automated focussing means is configured to determine the optimal focus position of each of the plurality of captured objects, wherein the optimal focus position has the highest image energy.
  • the image energy is measured and outputted by the comb filter or a blur filter.
  • the automated focussing means is configured to navigate the focus motors to the optimal focus position having the highest image energy based on a positive difference in image energy values between a plurality of consecutive focus positions.
  • the image processing means is further configured to measure height of each object in each of the plurality of images based on image energy output from the comb filter or a blur filter.
  • the height of each object is determined from the optimal focus position of the object by using a set of calibrated height values obtained by interpolating between the optimal focus positions of a plurality of objects whose heights are predetermined.
  • a method to determine an optimal focus position having the highest image energy for an object captured in a digital image comprises the first step of initiating an image processing means at an infinite focus position of the object.
  • the image processing means comprises a plurality of focus motors, a comb filter or a blur filter and an automated image focussing means.
  • the image processing means is navigated through a plurality of focus points in various predetermined directions from the infinite focus position.
  • the image energy of each of such plurality of focus points is measured by the comb filter or a blur filter, and the delta or difference in image energy values between consecutive focus points in each of the directions is computed.
  • a positive difference in image energy values between consecutive focus points in a particular direction indicates rising image energy values which further indicates to the image processing means that the optimal focus position with the highest image energy may be in said direction.
  • the direction is then selected for navigating the image processing means to determine the optimal focus position of the object.
  • the optimal focus position of the object is determined based on the image energy at the focus position.
  • the optimal focus position of the object has the highest image energy.
  • a method is provided to determine the height of at least one object captured in a digital image.
  • the height of the object is determined from the optimal focus position of the object, by using a set of calibrated height values obtained by interpolating between the optimal focus position of a plurality of objects whose heights are predetermined.
  • the optimal focus position of the object is determined based on image energy wherein the optimal focus position has the highest image energy.
  • image energy values are outputted by a blur filter.
  • the present invention enables a user to automatically focus the system on an area approximately 1/92 (150px x 150px) or an area 0.011 of the size of their field of view. This vastly improves the usability of the system when inspecting an object with varying heights and smaller relevant features.
  • Usage of a comb filter to measure image energy minimizes noise interference compared to a blur filter and ensures predictable and informative image energy profiles across the focus range which in turn enables faster auto focus. Further, usage of the comb filter allows the image processing means to determine the optimal focus position more easily and efficiently as the comb filter gives the automated focusing means enough information to predict the direction to drive the focus motors even if the optimal focus position is within a range of up to thirty five percent (35%) from a reference focus position. Usage of a comb filter also results in lower resource usage since it takes just a horizontal and vertical comb tap.
  • the image energy outputted by the filter is obtained by adding an input signal with a time delayed version of the input signal, such that constructive interference due to adding of signals indicates a higher image energy output and the automated focussing module subtracts from the captured image only the high energy parts of the image.
  • Figure 1 is a schematic diagram illustrating a system as per a preferred embodiment of the present invention
  • Figure 2 is a graphical representation illustrating minimisation of noise interference due to usage of comb filter for determining image energy, as per a preferred embodiment of the present invention
  • Figure 3 is a flow diagram illustrating a method as per a preferred embodiment of the present invention.
  • Figure 4 is a schematic diagram illustrating a method as per a preferred embodiment of the present invention.
  • Figure 5 illustrates the filtering operation of the captured images or video signal using the image processing module as per a preferred embodiment of the present invention.
  • the present invention relates to a system and method for digital image processing, and more particularly to a system and method to automatically determine an optimal focus position of an object in a digital image with the highest image energy, and to automatically inspect and measure heights of objects having varying sizes and relatively smaller relevant features in a digital image.
  • the invention is particularly suitable for used in digital imaging inspection systems for use in inspecting a large volume of products produced in a manufacturing process, such as for example a Printed Circuit Board assembly or medical device or the like.
  • Figure 1 illustrates a schematic diagram of a system for digital image processing for inspection of objects as per a preferred embodiment of the present invention.
  • the system comprises an image capturing means 101 , an image processing means 102, and a display means 103.
  • the image capturing means 101 for example a digital microscope, comprises an image capturing device 101 a and at least one lens 101 b.
  • the image capturing device 101 a is configured to capture a plurality of images each image having a plurality of objects.
  • the lens is positioned along an optical path extending from each of the plurality of objects captured by the image capturing device 101 a.
  • the image processing means 102 is operatively coupled to the image capturing means 101
  • the display means 103 is operatively coupled to the image capturing means 101 and the image processing means 102.
  • the display means 103 could be, for example, a monitor of a computing device.
  • the image processing means 102 comprises an automated focusing means 102a, one or more focus motors 102b, a comb filter 102c, and a blur filter 102d.
  • An energy filter can be used to perform the function of the comb filter 102c, and/or the blur filter 102d.
  • the automated focusing means 102a is configured to determine an optimal focus position with the highest image energy for each object captured in an image.
  • the image energy for a plurality of focus points in a plurality of predetermined directions is outputted by the comb filter 102c.
  • Image energy is outputted by the comb filter 102c by adding an input signal with the time delayed version of the same input signal. Such addition causes both constructive interference and destructive interference.
  • the resulting interference is mostly destructive due to which there is a lower energy output.
  • more of the interference is constructive which in turn gives a higher energy output. This implies that a higher energy value for a focus position means that said focus position is closer to the optimal focus position.
  • the automated focusing means 102a is configured to compute the difference in image energy values between consecutive focus points in each direction.
  • the automated focusing means 102a is further configured to navigate the focus motors 102b in the direction wherein the numerical difference between image energy values of consecutive focus points is positive, based on the prediction that the optimal focus position would lie in said direction since rising image energy values between consecutive focus points or a positive numerical difference between energy values of consecutive focus points would imply that the peak or the optimal focus position having the highest image energy may lie in said direction.
  • the direction of navigation of focus motors 102b is changed if the numerical difference in image energy values between consecutive focus points in such direction is negative. This is because a negative numerical difference would imply that the focus motors are moving away from the optimal focus position.
  • Figure 2 illustrates image energy readings outputted by a comb filter 102c illustrated by reference numeral 200 and a blur filter 102d illustrated by reference numeral 201 , for a reference focus range for a reference object.
  • the output from the comb filter 102c is illustrated in red and the output from the blur filter 102d is illustrated in blue. As shown, noise interference is minimized in case of the comb filter 102c.
  • Figure 2 further illustrates that the comb filter 102c allows the automated focusing means 102a to determine the optimal focus position more easily and efficiently, as it gives the automated focusing means 102a enough information to predict the direction to drive the focus motors even if the optimal focus position is within a wider range from a reference focus position.
  • the image processing means 102 is further configured to determine height of each object based on the optimal focus position of the object and an image energy output from the blur filter 102d.
  • the image energy output from the blur filter 102d is used since it provides more pronounced peaks.
  • the height of the object is determined from the optimal focus position of the object by using a set of calibrated height values obtained by interpolating between the optimal focus positions of a plurality of objects whose heights are predetermined.
  • the automated focussing means 102a comprises an Auto-Focus algorithm that allows a user to focus in on a particular area or object shown in a general field of view of an image in display means 103.
  • the system is configured to allow a user to focus in by clicking or selecting an area of interest of an image shown on the display means 103.
  • the Auto-Focus algorithm can use a feedback loop to find the focus position with the highest image energy. It takes an energy reading at one position, then moves in one direction and takes another reading. The algorithm uses the difference in these readings to decide on a direction, and then drives the focus motor 102b in the desired direction until an energy peak is found.
  • the image energy is calculated using a filter, which minimizes the image noise leading to a more predictable and informative energy profile across the focus range.
  • the filter is preferably a comb filter 102c or a blur filter 102d or a combination of both. It will be appreciated that any type of energy filter can be configured as set out herein to implement the present invention.
  • the present invention improves the usability of the system when inspecting an object with varying size components or objects in the Z axis.
  • Figure 2 shows the energy readings calculated across the entire focus range when the system was focusing on a test PCB with multiple objects of different heights under inspection. The graph both illustrates the noise elimination and how much further away from the energy peak that a direction can be found.
  • a number of different filtering solutions can be used. With a standard blur filter 201 the focus position needed the peak to be within ⁇ 17% of the range from its current position in order to be able to have enough information to predict which direction to drive the focus motors. With the comb filter 200 this was ⁇ 35%.
  • Figure 3 is a flow diagram illustrating a method to determine an optimal focus position having the highest image energy for an object captured in a digital image.
  • the method comprises the step of initiating an image processing means at an infinite focus position of the object 301 .
  • the infinite focus position is chosen since the image processing means has no information initially regarding the focus position of the image.
  • the infinite focus position has most parts of the object in focus.
  • the image processing means is further navigated through a plurality of focus positions of the object in a plurality of predetermined directions from the infinite focus point 302. This step is performed to compute the numerical difference or delta in image energy values between consecutive focus points in each predetermined direction 303.
  • Figure 4 illustrates determination of the optimal focus position based on the delta or difference in image energy values between consecutive focus positions.
  • the focus position ‘182’ has the highest image energy reading of ‘38155886’.
  • Higher accuracy can be achieved for estimating the optimal focus position by computing the ratio of difference in image energy values between the focus position having the highest reading and the focus positions on either sides of the focus position having the highest reading. Based on this, as illustrated in Figure 4, the optimal focus position is estimated to be at ‘181.875’.
  • the image energy values are outputted by a comb filter, and a higher value of image energy for a focus position implies that the object is in greater focus at said focus position. Therefore, a positive numerical difference between consecutive focus positions in a particular direction would imply that image io energy is increasing in said direction. Hence, the direction wherein the numerical difference in image energy values between consecutive focus positions is positive is selected 304 for navigating the image processing means.
  • the image processing means is then navigated in the selected direction to determine the optimal focus position of the object 305.
  • the selected direction is changed if a negative numerical difference in image energy between consecutive focus points is observed, since a fall in image energy implies that the image processing means is moving further away from the optimal focus position. If the rate of increase in image energy increases, or in other words if the positive numerical difference between consecutive focus positions increases, the speed of navigation of the image processing means is also accelerated as this implies that the image processing means is moving in the right direction. This enables the present invention to determine the optimal focus position much faster. Likewise, if the rate of increase in image energy reduces, the speed of navigation of the image processing means is also reduced since this would imply that the peak or the optimal focus position is close to being found. This ensures that the image processing means does not miss out on the optimal focus position and enables determination of the exact optimal focus position.
  • the optimal focus position of the object, having the highest image energy is hence determined 306.
  • the invention enables Z height measurement for individual objects shown on a digital screen.
  • the user can zoom in to max optical zoom and measure the height of a particular component or object . This is done by using the Auto Focus to get the component or object mostly in focus, and then sampling the energy in the nearby range, using the smallest changes in focus motor position, to ensure that the component is in the best possible focus.
  • This function uses a filter, for example a blur filter, to calculate the energy as it provides more pronounced peaks, and the wider area of detection provided by the comb filter is not needed as the object is already substantially in focus.
  • This focus position is then stored, and converted to a height using a set of stored calibrated heights, gathered from interpolating between the focus positions of objects of known heights.
  • Sub-step accuracy can also be achieved by looking at the ratio of energy readings either side of the highest reading, as shown in Figure 4.
  • FIG. 5 illustrates the filtering operation of the captured images or video using the image processing module as per a preferred embodiment of the present invention.
  • a blur filter 500 is used.
  • the system takes an input video signal and the filter 500 adds to the input video signal a time delayed version of the same input signal.
  • Constructive interference due to adding of signals indicates a higher image energy output and the automated focussing module subtracts from the captured image only the high energy parts of the image.
  • the invention calculates the high energy from a subtracted blur signal.
  • part of a sharpening filter a gaussian blur of a video stream is taken and subtracted from the original stream. This subtracted image contains only the high energy parts of the video.
  • This high energy video data is squared and then sent to an area of interest accumulator block 501 to calculate the least mean squared resulting in the image energy.
  • This invention bypasses the need for a Fourier, Sobel or Laplace transforms typically needed to calculate the energy of an image. By tapping part way through a sharpening filter no additional resources are required. It will be appreciated that multiple area of interest generators and implemented so that the accumulators only sum in areas of interest. This can be used to focus on particular objects in the image and the respective heights calculated as outlined above. In an embodiment of the present invention, a method to determine the height of at least one object captured in a digital image.
  • the height of the object is determined from the optimal focus position of the object having the highest image energy, by using a set of calibrated height values obtained by interpolating between the optimal focus position of a plurality of objects whose heights are predetermined.
  • the image energy for this embodiment is deter ined by a blur filter since output from the blur filter provides more pronounced peaks as compared to that from a comb filter.
  • the optimal focus position is determined by navigating an image processing means based on the delta or difference in numerical values of image energies between consecutive focus points in a selected direction.
  • a direction with consecutive focus points having a positive numerical difference in image energy values is selected. If at any timepoint, a negative numerical difference is observed in image energies of focus points in a selected direction, the selected direction is changed, and the image processing means is navigated in a different direction.
  • the image processing means as per this embodiment comprises a plurality of focus motors, a blur filter, and an automated image focussing means.
  • the processing units, or processors(s) or controller(s) may be implemented within one or more application specific integrated circuits (ASICs), digital signal processors (DSPs), digital signal processing devices (DSPDs), programmable logic devices (PLDs), field programmable gate arrays (FPGAs), processors, controllers, micro-controllers, microprocessors, electronic devices, other electronic units designed to perform the functions described herein, or a combination thereof.
  • ASICs application specific integrated circuits
  • DSPs digital signal processors
  • DSPDs digital signal processing devices
  • PLDs programmable logic devices
  • FPGAs field programmable gate arrays
  • processors controllers, micro-controllers, microprocessors, electronic devices, other electronic units designed to perform the functions described herein, or a combination thereof.
  • software code may be stored in the memory means and executed by a processor.
  • the memory means may be implemented within the processor unit or external to the processor unit.
  • the term “memory” refers to any type of volatile memory or non-volatile memory.
  • the terms “comprise, comprises, comprised and comprising” or any variation thereof and the terms “include, includes, included and including” or any variation thereof are considered to be totally interchangeable and they should all be afforded the widest possible interpretation and vice versa.

Abstract

The present invention relates to a digital imaging system and method to automatically determine an optimal focus position with the highest image energy of an object in a digital image, and to automatically inspect and measure heights of objects having varying sizes and relatively smaller relevant features in a digital image. The invention is particularly suitable for use in digital imaging inspection systems for use in inspecting large volume of products produced in a manufacturing process.

Description

Title
SYSTEM AND METHOD FOR DIGITAL IMAGE PROCESSING
Field
The present invention relates to a digital imaging inspection system and method for digital image processing, and more particularly to a system and method to automatically determine an optimal focus position of an object in a digital image.
Background
A digital imaging inspection system such as a digital microscope imaging system uses a digital camera and optics to capture an image of an object of interest. The captured image is generally displayed on a computer monitor for analysis.
Laboratories working in biomedical specialisations such as for example, anatomic pathology, haematology, and microbiology use microscopic digital imaging to examine tissue for the presence and nature of disease. Digital microscope imaging has several advantages which includes the ability to document disease, share findings, collaborate in case of telemedicine, and to analyse morphologic findings. Digital microscope imaging systems can also be used for testing objects in a range of other industries, for example, for testing of medical devices or electronic components or precision engineering objects.
Digital microscope imaging systems are well known in the art. Digital microscope imaging systems with automatic focus means are also known in the art, such as the one disclosed in US6,816,606B2. Such systems can be used in digital image object inspection systems used in manufacturing processes and systems. The known digital microscope imaging systems with automatic focus means are slow and typically allows the system to focus only a fraction of the size of the field of view which reduces the usability of the system, for example it is impossible to inspect objects with varying heights or small relevant features in the Z-axis. A major problem with digital camera microscopes and digital inspection imaging systems is that auto focus that find the best focus for the entire field of view make it almost impossible to inspect an object with varying height components as smaller features will never be in focus.
Other patent publications in the art include WO2019/0373162; WO201 3/116299; US 5,793,900; DE 102004006246 and EP3185213. However all suffer from the same technical problems
Conventional means used for determining image energy leads to an increase in image noise interference and resource usage. Known methods for image energy measurement such as Laplace or direct form folded symmetric FIR’s require more delays and adder trees to be implemented, since such known methods require a full kernel of values to be summed before giving an output.
There is therefore an unfulfilled and unresolved need in the art for a system and method which enables automated inspection and measurement of heights of objects having varying sizes and smaller relevant features in a digital image to overcome at least one of the above mentioned problems.
Summary of Invention
The present invention provides a system and method to automatically determine an optimal focus position of a digital image with the highest image energy while minimizing noise interference, and to automatically inspect and measure heights of objects having varying heights and smaller relevant features in a digital image, as set out in the appended claims. In a preferred embodiment of the present invention, there is provided a digital imaging inspection system, the system comprising an image capturing module configured to capture a plurality of digital images of a plurality of objects; a processor operatively coupled to the image capturing module and having a focus element; at least one filter, and an automated image focusing module; the automated focussing module is configured to determine an optimal focus position for one or more objects based on an image energy output from the filter; and the processor determines the height of at least one object in each of the images from the optimal focus position using a set of known calibrated heights, gathered from interpolating between the focus positions of objects of known heights.
In one embodiment the system comprises an image capturing means and an image processing means operatively coupled to the image capturing means. The image capturing means, for example a digital microscope, comprises an image capturing device, and at least one lens. The image capturing means is configured to capture a plurality of digital images of a plurality of objects which is displayed to a user through a display means. The captured digital image could be for example a live video image or a static image. The lens is positioned along an optical path extending from each of the plurality of objects to the image capturing device.
The image processing means comprises a plurality of focus motors, a comb filter or a blur filter or an energy filter, and an automated focussing means. The automated focussing means is configured to determine the optimal focus position of each of the plurality of captured objects, wherein the optimal focus position has the highest image energy. The image energy is measured and outputted by the comb filter or a blur filter. The automated focussing means is configured to navigate the focus motors to the optimal focus position having the highest image energy based on a positive difference in image energy values between a plurality of consecutive focus positions.
The image processing means is further configured to measure height of each object in each of the plurality of images based on image energy output from the comb filter or a blur filter. The height of each object is determined from the optimal focus position of the object by using a set of calibrated height values obtained by interpolating between the optimal focus positions of a plurality of objects whose heights are predetermined.
In another preferred embodiment of the present invention, a method to determine an optimal focus position having the highest image energy for an object captured in a digital image is provided. The method comprises the first step of initiating an image processing means at an infinite focus position of the object. The image processing means comprises a plurality of focus motors, a comb filter or a blur filter and an automated image focussing means. The image processing means is navigated through a plurality of focus points in various predetermined directions from the infinite focus position. The image energy of each of such plurality of focus points is measured by the comb filter or a blur filter, and the delta or difference in image energy values between consecutive focus points in each of the directions is computed. A positive difference in image energy values between consecutive focus points in a particular direction indicates rising image energy values which further indicates to the image processing means that the optimal focus position with the highest image energy may be in said direction. The direction is then selected for navigating the image processing means to determine the optimal focus position of the object. The optimal focus position of the object is determined based on the image energy at the focus position. The optimal focus position of the object has the highest image energy. In an embodiment of the present invention, a method is provided to determine the height of at least one object captured in a digital image. The height of the object is determined from the optimal focus position of the object, by using a set of calibrated height values obtained by interpolating between the optimal focus position of a plurality of objects whose heights are predetermined. The optimal focus position of the object is determined based on image energy wherein the optimal focus position has the highest image energy. In said embodiment, image energy values are outputted by a blur filter.
The present invention enables a user to automatically focus the system on an area approximately 1/92 (150px x 150px) or an area 0.011 of the size of their field of view. This vastly improves the usability of the system when inspecting an object with varying heights and smaller relevant features. Usage of a comb filter to measure image energy minimizes noise interference compared to a blur filter and ensures predictable and informative image energy profiles across the focus range which in turn enables faster auto focus. Further, usage of the comb filter allows the image processing means to determine the optimal focus position more easily and efficiently as the comb filter gives the automated focusing means enough information to predict the direction to drive the focus motors even if the optimal focus position is within a range of up to thirty five percent (35%) from a reference focus position. Usage of a comb filter also results in lower resource usage since it takes just a horizontal and vertical comb tap.
In one embodiment the image energy outputted by the filter is obtained by adding an input signal with a time delayed version of the input signal, such that constructive interference due to adding of signals indicates a higher image energy output and the automated focussing module subtracts from the captured image only the high energy parts of the image. The present invention hence provides a robust solution for problems identified in the art.
Brief description of drawings
The invention will be more clearly understood from the following description of an embodiment thereof, given by way of example only, with reference to the accompanying drawings, in which:-
Figure 1 is a schematic diagram illustrating a system as per a preferred embodiment of the present invention;
Figure 2 is a graphical representation illustrating minimisation of noise interference due to usage of comb filter for determining image energy, as per a preferred embodiment of the present invention;
Figure 3 is a flow diagram illustrating a method as per a preferred embodiment of the present invention;
Figure 4 is a schematic diagram illustrating a method as per a preferred embodiment of the present invention; and
Figure 5 illustrates the filtering operation of the captured images or video signal using the image processing module as per a preferred embodiment of the present invention.
Detailed description of Drawings
The present invention relates to a system and method for digital image processing, and more particularly to a system and method to automatically determine an optimal focus position of an object in a digital image with the highest image energy, and to automatically inspect and measure heights of objects having varying sizes and relatively smaller relevant features in a digital image. The invention is particularly suitable for used in digital imaging inspection systems for use in inspecting a large volume of products produced in a manufacturing process, such as for example a Printed Circuit Board assembly or medical device or the like. Figure 1 illustrates a schematic diagram of a system for digital image processing for inspection of objects as per a preferred embodiment of the present invention. The system comprises an image capturing means 101 , an image processing means 102, and a display means 103. The image capturing means 101 , for example a digital microscope, comprises an image capturing device 101 a and at least one lens 101 b. The image capturing device 101 a is configured to capture a plurality of images each image having a plurality of objects. The lens is positioned along an optical path extending from each of the plurality of objects captured by the image capturing device 101 a.
The image processing means 102 is operatively coupled to the image capturing means 101 , and the display means 103 is operatively coupled to the image capturing means 101 and the image processing means 102. The display means 103 could be, for example, a monitor of a computing device. The image processing means 102 comprises an automated focusing means 102a, one or more focus motors 102b, a comb filter 102c, and a blur filter 102d. An energy filter can be used to perform the function of the comb filter 102c, and/or the blur filter 102d.The automated focusing means 102a is configured to determine an optimal focus position with the highest image energy for each object captured in an image. The image energy for a plurality of focus points in a plurality of predetermined directions is outputted by the comb filter 102c. Image energy is outputted by the comb filter 102c by adding an input signal with the time delayed version of the same input signal. Such addition causes both constructive interference and destructive interference. When an object is not in focus, the resulting interference is mostly destructive due to which there is a lower energy output. As the object gets more in focus, more of the interference is constructive which in turn gives a higher energy output. This implies that a higher energy value for a focus position means that said focus position is closer to the optimal focus position. The automated focusing means 102a is configured to compute the difference in image energy values between consecutive focus points in each direction. The automated focusing means 102a is further configured to navigate the focus motors 102b in the direction wherein the numerical difference between image energy values of consecutive focus points is positive, based on the prediction that the optimal focus position would lie in said direction since rising image energy values between consecutive focus points or a positive numerical difference between energy values of consecutive focus points would imply that the peak or the optimal focus position having the highest image energy may lie in said direction. The direction of navigation of focus motors 102b is changed if the numerical difference in image energy values between consecutive focus points in such direction is negative. This is because a negative numerical difference would imply that the focus motors are moving away from the optimal focus position. Figure 2 illustrates image energy readings outputted by a comb filter 102c illustrated by reference numeral 200 and a blur filter 102d illustrated by reference numeral 201 , for a reference focus range for a reference object. The output from the comb filter 102c is illustrated in red and the output from the blur filter 102d is illustrated in blue. As shown, noise interference is minimized in case of the comb filter 102c.
Figure 2 further illustrates that the comb filter 102c allows the automated focusing means 102a to determine the optimal focus position more easily and efficiently, as it gives the automated focusing means 102a enough information to predict the direction to drive the focus motors even if the optimal focus position is within a wider range from a reference focus position.
The image processing means 102 is further configured to determine height of each object based on the optimal focus position of the object and an image energy output from the blur filter 102d. The image energy output from the blur filter 102d is used since it provides more pronounced peaks. The height of the object is determined from the optimal focus position of the object by using a set of calibrated height values obtained by interpolating between the optimal focus positions of a plurality of objects whose heights are predetermined.
The automated focussing means 102a comprises an Auto-Focus algorithm that allows a user to focus in on a particular area or object shown in a general field of view of an image in display means 103. The system is configured to allow a user to focus in by clicking or selecting an area of interest of an image shown on the display means 103. The Auto-Focus algorithm can use a feedback loop to find the focus position with the highest image energy. It takes an energy reading at one position, then moves in one direction and takes another reading. The algorithm uses the difference in these readings to decide on a direction, and then drives the focus motor 102b in the desired direction until an energy peak is found. The image energy is calculated using a filter, which minimizes the image noise leading to a more predictable and informative energy profile across the focus range. The filter is preferably a comb filter 102c or a blur filter 102d or a combination of both. It will be appreciated that any type of energy filter can be configured as set out herein to implement the present invention.
The present invention improves the usability of the system when inspecting an object with varying size components or objects in the Z axis. Figure 2 shows the energy readings calculated across the entire focus range when the system was focusing on a test PCB with multiple objects of different heights under inspection. The graph both illustrates the noise elimination and how much further away from the energy peak that a direction can be found. A number of different filtering solutions can be used. With a standard blur filter 201 the focus position needed the peak to be within ~17% of the range from its current position in order to be able to have enough information to predict which direction to drive the focus motors. With the comb filter 200 this was ~35%.
Figure 3 is a flow diagram illustrating a method to determine an optimal focus position having the highest image energy for an object captured in a digital image. The method comprises the step of initiating an image processing means at an infinite focus position of the object 301 . The infinite focus position is chosen since the image processing means has no information initially regarding the focus position of the image. The infinite focus position has most parts of the object in focus. The image processing means is further navigated through a plurality of focus positions of the object in a plurality of predetermined directions from the infinite focus point 302. This step is performed to compute the numerical difference or delta in image energy values between consecutive focus points in each predetermined direction 303.
Figure 4 illustrates determination of the optimal focus position based on the delta or difference in image energy values between consecutive focus positions. As illustrated, the focus position ‘182’ has the highest image energy reading of ‘38155886’. Higher accuracy can be achieved for estimating the optimal focus position by computing the ratio of difference in image energy values between the focus position having the highest reading and the focus positions on either sides of the focus position having the highest reading. Based on this, as illustrated in Figure 4, the optimal focus position is estimated to be at ‘181.875’.
The image energy values are outputted by a comb filter, and a higher value of image energy for a focus position implies that the object is in greater focus at said focus position. Therefore, a positive numerical difference between consecutive focus positions in a particular direction would imply that image io energy is increasing in said direction. Hence, the direction wherein the numerical difference in image energy values between consecutive focus positions is positive is selected 304 for navigating the image processing means.
The image processing means is then navigated in the selected direction to determine the optimal focus position of the object 305. The selected direction is changed if a negative numerical difference in image energy between consecutive focus points is observed, since a fall in image energy implies that the image processing means is moving further away from the optimal focus position. If the rate of increase in image energy increases, or in other words if the positive numerical difference between consecutive focus positions increases, the speed of navigation of the image processing means is also accelerated as this implies that the image processing means is moving in the right direction. This enables the present invention to determine the optimal focus position much faster. Likewise, if the rate of increase in image energy reduces, the speed of navigation of the image processing means is also reduced since this would imply that the peak or the optimal focus position is close to being found. This ensures that the image processing means does not miss out on the optimal focus position and enables determination of the exact optimal focus position. The optimal focus position of the object, having the highest image energy is hence determined 306.
It will be appreciated that the invention enables Z height measurement for individual objects shown on a digital screen. The user can zoom in to max optical zoom and measure the height of a particular component or object . This is done by using the Auto Focus to get the component or object mostly in focus, and then sampling the energy in the nearby range, using the smallest changes in focus motor position, to ensure that the component is in the best possible focus. This function uses a filter, for example a blur filter, to calculate the energy as it provides more pronounced peaks, and the wider area of detection provided by the comb filter is not needed as the object is already substantially in focus.
This focus position is then stored, and converted to a height using a set of stored calibrated heights, gathered from interpolating between the focus positions of objects of known heights.
Sub-step accuracy can also be achieved by looking at the ratio of energy readings either side of the highest reading, as shown in Figure 4.
Figure 5 illustrates the filtering operation of the captured images or video using the image processing module as per a preferred embodiment of the present invention. In this embodiment a blur filter 500 is used. The system takes an input video signal and the filter 500 adds to the input video signal a time delayed version of the same input signal. Constructive interference due to adding of signals indicates a higher image energy output and the automated focussing module subtracts from the captured image only the high energy parts of the image. In other words the invention calculates the high energy from a subtracted blur signal. As shown in Figure 5 part of a sharpening filter a gaussian blur of a video stream is taken and subtracted from the original stream. This subtracted image contains only the high energy parts of the video. This high energy video data is squared and then sent to an area of interest accumulator block 501 to calculate the least mean squared resulting in the image energy. This invention bypasses the need for a Fourier, Sobel or Laplace transforms typically needed to calculate the energy of an image. By tapping part way through a sharpening filter no additional resources are required. It will be appreciated that multiple area of interest generators and implemented so that the accumulators only sum in areas of interest. This can be used to focus on particular objects in the image and the respective heights calculated as outlined above. In an embodiment of the present invention, a method to determine the height of at least one object captured in a digital image. The height of the object is determined from the optimal focus position of the object having the highest image energy, by using a set of calibrated height values obtained by interpolating between the optimal focus position of a plurality of objects whose heights are predetermined. The image energy for this embodiment is deter ined by a blur filter since output from the blur filter provides more pronounced peaks as compared to that from a comb filter. The optimal focus position is determined by navigating an image processing means based on the delta or difference in numerical values of image energies between consecutive focus points in a selected direction.
A direction with consecutive focus points having a positive numerical difference in image energy values is selected. If at any timepoint, a negative numerical difference is observed in image energies of focus points in a selected direction, the selected direction is changed, and the image processing means is navigated in a different direction. The image processing means as per this embodiment comprises a plurality of focus motors, a blur filter, and an automated image focussing means.
Although the present invention has been described with reference to specific embodiments, this description is not meant to be construed in a limiting sense. Various modifications of the disclosed embodiments, as well as alternate embodiments of the subject matter, will become apparent to persons skilled in the art upon reference to the description of the subject matter. It is therefore contemplated that such modifications can be made without departing from the spirit or scope of the present invention as defined. Further, a person ordinarily skilled in the art will appreciate that the various illustrative method steps described in connection with the embodiments disclosed herein may be implemented using electronic hardware, or a combination of hardware and software. To clearly illustrate this interchangeability of hardware and a combination of hardware and software, various illustrations and steps have been described above, generally in terms of their functionality. Whether such functionality is implemented as hardware or a combination of hardware and software depends upon the design choice of a person ordinarily skilled in the art. Such skilled artisans may implement the described functionality in varying ways for each particular application, but such obvious design choices should not be interpreted as causing a departure from the scope of the present invention. The method described in the present disclosure may be implemented using various means. For example, the system described in the present disclosure may be implemented in hardware, firmware, software, or any combination thereof. For a hardware implementation, the processing units, or processors(s) or controller(s) may be implemented within one or more application specific integrated circuits (ASICs), digital signal processors (DSPs), digital signal processing devices (DSPDs), programmable logic devices (PLDs), field programmable gate arrays (FPGAs), processors, controllers, micro-controllers, microprocessors, electronic devices, other electronic units designed to perform the functions described herein, or a combination thereof.
For a firmware and/or software implementation, software code may be stored in the memory means and executed by a processor. The memory means may be implemented within the processor unit or external to the processor unit. As used herein the term “memory” refers to any type of volatile memory or non-volatile memory. In the specification, the terms "comprise, comprises, comprised and comprising" or any variation thereof and the terms “include, includes, included and including" or any variation thereof are considered to be totally interchangeable and they should all be afforded the widest possible interpretation and vice versa.
The invention is not limited to the embodiments hereinbefore described but may be varied in both construction and detail.

Claims

Claims
1 . A digital imaging inspection system, the system comprising: an image capturing module configured to capture a plurality of digital images of a plurality of objects; a processor operatively coupled to the image capturing module and having a focus element, at least one filter, and an automated image focusing module; the automated focussing module is configured to determine an optimal focus position for one or more objects based on an image energy output from the filter; and the processor determines the height of at least one object in each of the images from the optimal focus position using a set of known calibrated heights, gathered from interpolating between the focus positions of objects of known heights.
2. The system as claimed in claim 1 , wherein the image energy outputted by the filter is obtained by adding an input signal with a time delayed version of the input signal, determine a higher image energy output from the added signals and the automated focussing module subtracts from the captured image only the high energy parts of the image.
3. The system as claimed in claim 1 or 2, wherein the automated focussing module is configured to navigate the focussing module to the optimal focus position having the highest image energy based on a positive numerical difference in image energy values between a plurality of consecutive focus positions.
4. The system as claimed in any preceding claim, further comprising a display screen operatively coupled to the image capturing module and the image processing module. The system as claimed in any preceding claim wherein the automated focus module comprises an auto-focus algorithm configured to allow the system to focus in on a particular area or object obtained from at least one digital image showing a plurality of objects. The system as claimed in any of the preceding claims wherein the filter is a blur filter or a comb filter. The system as claimed in claimed in any of the preceding claims wherein the digital image is a live video image or a static image. A method to determine an optimal focus position having the highest image energy for an object captured in a digital image, for use in a digital imaging inspection system, the method comprising the steps of: a) initiating an image processing means at an infinite focus position of the object; b) navigating the image processing means through a plurality of focus positions in a plurality of predetermined directions from the infinite focus position; c) computing the numerical difference in image energy values between consecutive focus positions in each of the plurality of directions; d) selecting a direction for navigating the image processing means wherein the numerical difference in image energy values between consecutive focus positions in the selected direction is positive; e) navigating the image processing means in the direction selected in step (d) to determine the optimal focus position of the object; and f) determining the optimal focus position of the object based on the image energy of the plurality of focus positions in the direction selected in step(d), wherein the optimal focus position of the image has the highest image energy. The method as claimed in claim 8, further comprising the step of increasing the speed of navigation of the image processing means if the positive numerical difference in image energy values between consecutive focus positions increases. The method as claimed in claim 8 or 9, wherein the image processing means comprises a plurality of focus motors, a filter, and an automated image focussing means, and wherein image energy for each of the plurality of focus positions is outputted by the filter. The method as claimed in any of claims 8 to 10, wherein a different direction is selected for navigation of the image processing means if the numerical difference of image energy values between consecutive focus positions in the selected direction is negative. A method to determine the height of at least one object captured in a digital image, for use in a digital imaging inspection system, the method comprising the steps of: a) initiating an image processing means at an infinite focus position of the object in the image; b) navigating the image processing means through a plurality of focus positions in a plurality of predetermined directions from the infinite focus position; c) computing difference in image energy values between consecutive focus positions in each of the plurality of directions; d) selecting a direction for navigating the image processing means wherein the numerical difference in image energy values between consecutive focus positions in the selected direction is positive; e) navigating the image processing means in the direction selected in step (d) to determine the optimal focus position of the object; and f) determining the optimal focus position of the object based on the image energy of the plurality of focus positions in the direction selected in step(d), wherein the optimal focus position of the object has the highest image energy; and g) determining the height of the object from the optimal focus position determined in step (f), by using a set of calibrated height values obtained by interpolating between the optimal focus position of a plurality of objects whose heights are predetermined.
13. The method as claimed in claim 12, further comprising the step of increasing the speed of navigation of the image processing means if the numerical difference in image energy values between consecutive focus positions increases.
14. The method as claimed in claim 12 or 13, wherein the image processing means comprises a plurality of focus motors, a blur filter, and an automated image focussing means, and wherein image energy for each of the plurality of focus positions is outputted by the blur filter.
15. The method as claimed in any of claims 12 to 14, wherein a different direction is selected for navigation of the image processing means if the numerical difference between image energy values between consecutive focus positions in the selected direction is negative.
16. The method as claimed in any of claims 8 to 15 wherein the image is captured using a digital microscope.
19
PCT/EP2021/077797 2020-10-07 2021-10-07 System and method for digital image processing WO2022074171A1 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
EP21790351.7A EP4226324A1 (en) 2020-10-07 2021-10-07 System and method for digital image processing

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
GB2015901.8 2020-10-07
GBGB2015901.8A GB202015901D0 (en) 2020-10-07 2020-10-07 System and method for digital image processing

Publications (1)

Publication Number Publication Date
WO2022074171A1 true WO2022074171A1 (en) 2022-04-14

Family

ID=73223660

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/EP2021/077797 WO2022074171A1 (en) 2020-10-07 2021-10-07 System and method for digital image processing

Country Status (3)

Country Link
EP (1) EP4226324A1 (en)
GB (1) GB202015901D0 (en)
WO (1) WO2022074171A1 (en)

Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US5793900A (en) 1995-12-29 1998-08-11 Stanford University Generating categorical depth maps using passive defocus sensing
US6816606B2 (en) 2001-02-21 2004-11-09 Interscope Technologies, Inc. Method for maintaining high-quality focus during high-throughput, microscopic digital montage imaging
DE102004006246A1 (en) 2004-02-05 2005-10-13 X3D Technologies Gmbh Areal scenes and objects recording method, involves creating two-dimensional image from sharp image areas of observed n-sequence, by which two-dimensional image and depth chart are obtained
US20090167923A1 (en) * 2007-12-27 2009-07-02 Ati Technologies Ulc Method and apparatus with depth map generation
US20090303321A1 (en) * 2000-05-03 2009-12-10 Aperio Technologies, Inc. System and Computer Readable Medium for Pre-focus of Digital Slides
WO2013116299A1 (en) 2012-01-31 2013-08-08 3M Innovative Properties Company Method and apparatus for measuring the three dimensional structure of a surface
EP3185213A1 (en) 2015-12-23 2017-06-28 Robert Bosch Gmbh Method for creating a depth map by means of a camera
US20190373162A1 (en) 2018-06-05 2019-12-05 Applied Materials, Inc. Methods and apparatus for absolute and relative depth measurements using camera focus distance

Patent Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US5793900A (en) 1995-12-29 1998-08-11 Stanford University Generating categorical depth maps using passive defocus sensing
US20090303321A1 (en) * 2000-05-03 2009-12-10 Aperio Technologies, Inc. System and Computer Readable Medium for Pre-focus of Digital Slides
US6816606B2 (en) 2001-02-21 2004-11-09 Interscope Technologies, Inc. Method for maintaining high-quality focus during high-throughput, microscopic digital montage imaging
DE102004006246A1 (en) 2004-02-05 2005-10-13 X3D Technologies Gmbh Areal scenes and objects recording method, involves creating two-dimensional image from sharp image areas of observed n-sequence, by which two-dimensional image and depth chart are obtained
US20090167923A1 (en) * 2007-12-27 2009-07-02 Ati Technologies Ulc Method and apparatus with depth map generation
WO2013116299A1 (en) 2012-01-31 2013-08-08 3M Innovative Properties Company Method and apparatus for measuring the three dimensional structure of a surface
EP3185213A1 (en) 2015-12-23 2017-06-28 Robert Bosch Gmbh Method for creating a depth map by means of a camera
US20190373162A1 (en) 2018-06-05 2019-12-05 Applied Materials, Inc. Methods and apparatus for absolute and relative depth measurements using camera focus distance

Also Published As

Publication number Publication date
GB202015901D0 (en) 2020-11-18
EP4226324A1 (en) 2023-08-16

Similar Documents

Publication Publication Date Title
US10101572B2 (en) Variable focal length lens system with multi-level extended depth of field image processing
JP6502071B2 (en) Machine vision inspection system and method for obtaining an image having an extended depth of field
JP6792980B2 (en) Methods for defining behaviors that control multi-exposure image acquisition provided by instances of machine vision inspection systems, computer-readable non-temporary storage media and machine vision inspection systems.
US5763871A (en) Cytological system autofocus integrity checking apparatus
US20170078549A1 (en) Machine vision inspection system and method for obtaining an image with an extended depth of field
JP6322456B2 (en) System and method for acquiring an image having an offset used to enhance edge resolution
US6876776B2 (en) System and method for auto-focusing an image
JP2018084821A (en) Machine vision inspection system and method for acquiring images having extended depth of field
JP5676956B2 (en) Image processing apparatus, image processing method, and program
CN110324536B (en) Image change automatic sensing focusing method for microscope camera
JP2004126574A (en) Focusing of electronic imaging apparatus
EP2728392A1 (en) Microscope system
KR100350091B1 (en) Method and apparatus for detecting in-focus state of microscope
Harms et al. Comparison of digital focus criteria for a TV microscope system
EP4226324A1 (en) System and method for digital image processing
JP7302596B2 (en) Image processing device, image processing method, and program
Soldan On extended depth of field to improve the quality of automated thermographic measurements in unknown environments
US9658444B2 (en) Autofocus system and autofocus method for focusing on a surface
JP2005156597A (en) Automatic focusing apparatus and method, program, and storage medium
WO2021246171A1 (en) Imaging device, image processing method, and program
US11800223B2 (en) Focus adjustment device and focus adjustment method
JP3403445B2 (en) Automatic focusing device and microscope using this automatic focusing device
JP2006171574A (en) Microscope image processing method, microscope image processing program and microscope system
CN116263535A (en) Method for determining z-stack boundaries of an image of an object
JP2012063193A (en) Height measurement instrument and height measurement method

Legal Events

Date Code Title Description
121 Ep: the epo has been informed by wipo that ep was designated in this application

Ref document number: 21790351

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE

ENP Entry into the national phase

Ref document number: 2021790351

Country of ref document: EP

Effective date: 20230508