CN111338051B - Automatic focusing method and system based on TFT liquid crystal panel - Google Patents

Automatic focusing method and system based on TFT liquid crystal panel Download PDF

Info

Publication number
CN111338051B
CN111338051B CN202010270663.0A CN202010270663A CN111338051B CN 111338051 B CN111338051 B CN 111338051B CN 202010270663 A CN202010270663 A CN 202010270663A CN 111338051 B CN111338051 B CN 111338051B
Authority
CN
China
Prior art keywords
liquid crystal
focusing
crystal panel
image
tft
Prior art date
Legal status (The legal status 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 status listed.)
Active
Application number
CN202010270663.0A
Other languages
Chinese (zh)
Other versions
CN111338051A (en
Inventor
查世华
杨义禄
李波
左右祥
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Zhongdao Optoelectronic Equipment Co ltd
Original Assignee
Zhongdao Optoelectronic Equipment Co 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 Zhongdao Optoelectronic Equipment Co ltd filed Critical Zhongdao Optoelectronic Equipment Co ltd
Priority to CN202010270663.0A priority Critical patent/CN111338051B/en
Publication of CN111338051A publication Critical patent/CN111338051A/en
Application granted granted Critical
Publication of CN111338051B publication Critical patent/CN111338051B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G02OPTICS
    • G02BOPTICAL ELEMENTS, SYSTEMS OR APPARATUS
    • G02B7/00Mountings, adjusting means, or light-tight connections, for optical elements
    • G02B7/28Systems for automatic generation of focusing signals
    • G02B7/36Systems for automatic generation of focusing signals using image sharpness techniques, e.g. image processing techniques for generating autofocus signals
    • G02B7/38Systems for automatic generation of focusing signals using image sharpness techniques, e.g. image processing techniques for generating autofocus signals measured at different points on the optical axis, e.g. focussing on two or more planes and comparing image data
    • GPHYSICS
    • G02OPTICS
    • G02BOPTICAL ELEMENTS, SYSTEMS OR APPARATUS
    • G02B7/00Mountings, adjusting means, or light-tight connections, for optical elements
    • G02B7/28Systems for automatic generation of focusing signals
    • GPHYSICS
    • G03PHOTOGRAPHY; CINEMATOGRAPHY; ANALOGOUS TECHNIQUES USING WAVES OTHER THAN OPTICAL WAVES; ELECTROGRAPHY; HOLOGRAPHY
    • G03BAPPARATUS OR ARRANGEMENTS FOR TAKING PHOTOGRAPHS OR FOR PROJECTING OR VIEWING THEM; APPARATUS OR ARRANGEMENTS EMPLOYING ANALOGOUS TECHNIQUES USING WAVES OTHER THAN OPTICAL WAVES; ACCESSORIES THEREFOR
    • G03B13/00Viewfinders; Focusing aids for cameras; Means for focusing for cameras; Autofocus systems for cameras
    • G03B13/32Means for focusing
    • G03B13/34Power focusing
    • G03B13/36Autofocus systems

Abstract

The invention discloses an automatic focusing method and system based on a TFT liquid crystal panel, which comprises the following steps: firstly, setting collected image point positions, then calculating the definition of the point images, fitting a curve of the fed back definition of the point images and the relation of focusing positions, calculating the focusing position of the TFT-LCD panel according to the extreme points of the fitted curve, and finally automatically moving a camera to the optimal focusing position of the TFT-LCD panel according to the calculated focusing position. The invention has good application in a visual detection system, is further expanded, and can also be applied in the aspects of size measurement and the like of the visual detection system. The invention has the characteristics of high precision, high speed and simple operation in a visual detection system.

Description

Automatic focusing method and system based on TFT liquid crystal panel
Technical Field
The invention belongs to the technical field of computer vision detection, and particularly relates to an automatic focusing method and system based on a TFT-LCD panel.
Background
With the continuous development and progress of scientific technology, the computer vision detection technology has the advantages of high speed, high efficiency, integration and the like, and is widely applied to the automation field. Optical automatic inspection technology is widely used in the TFT-LCD (thin film transistor liquid crystal display) panel inspection industry, wherein the automatic focusing technology plays an important role in automatic optical inspection with high speed and efficiency. The detection rate of the defects of the TFT-LCD panel is influenced by the definition of the image, and the definition of the image is determined by the focusing method. The focusing position between the TFT-LCD panel and a camera needs to be automatically adjusted for TFT-LCD panels with different thicknesses and materials, and the detection efficiency is improved.
The existing solution is to continuously collect a plurality of images at a TFT-LCD fixed position by continuously moving the position of a camera, calculate the image definition and form a curve with the corresponding position, and the position corresponding to the maximum value of the curve is the clearest position of the image. For example, chinese patent application No. CN201610508675.6 discloses a method for rapidly focusing a multi-magnification microscope in TFT-LCD detection: acquiring experience values of TFT-LCDs of different models when focusing is clear, experience values of upper and lower light sources and camera parameters under lenses of different magnifications, evaluating the definition of an image, forming a curve according to the corresponding lens position, calculating the maximum value of the curve to find the clearest position of the image, and realizing rapid focusing by using a hill climbing search algorithm.
The drawbacks of the above-mentioned auto-focusing technique are: firstly, the TFT-LCD panel is still in the focusing process, for the large-size TFT-LCD panel, the panel which is not cut during detection is composed of a plurality of independent panels, the TFT-LCD panel floats on the precise air floating plate and moves at high speed, the distance between the panel and the lens is influenced by self weight, the focusing position measured in the static state can not truly reflect the focusing position of the TFT-LCD panel during detection, and the focusing precision is low. Secondly, the field of view of the microscope is small, while the field of view is large when the linear array camera for glass detection uses time delay integration, and the linear array camera is easily affected by the horizontal accuracy of camera installation and light source illumination, so that the difference of image definition of the camera in the width direction is large, and the focusing accuracy is low. The microscope focusing method is not suitable for the linear array camera with a large visual field.
Disclosure of Invention
The purpose of the invention is realized by the following technical scheme.
Based on the problems of limitation and low precision of the existing method, the invention provides an automatic focusing method based on a TFT-LCD panel. The method adopts the steps of uniformly setting the point positions of the TFT-LCD panel, simultaneously evaluating the definition of images of two end areas of the image collected by each point position camera, fitting a relation curve of the image definition and the focusing position by using a least square method, wherein the maximum value of the image definition of each secondary curve corresponds to one focusing position, the mean value of the two focusing positions is used as the focusing position of the point position, and the mean value of the focusing positions of all the point positions is used as the final focusing position of the TFT-LCD panel. And then adjusting the distance between the camera and the TFT-LCD panel according to the final focusing position of the TFT-LCD panel.
Specifically, the invention provides an automatic focusing method based on a TFT-LCD panel, which comprises the following steps:
setting an image acquisition point position;
calculating the image definition of the point map;
fitting a curve of the relation between the image definition and the focusing position;
calculating the focusing position of the TFT-LCD panel;
moving the camera to the TFT-LCD panel focus position.
Preferably, the process of setting the collected image point locations is as follows:
and M point locations are equidistantly arranged according to the length of the TFT-LCD panel, and N point locations are equidistantly arranged according to the width of the TFT-LCD panel, wherein the total point number is M N. And in the process of acquiring the image, acquiring a corresponding image from the camera according to the set point location information.
Preferably, the calculating the sharpness of the dot image includes the following steps:
A) for TFT-LCD panels with different thicknesses, acquiring preset camera image acquisition initial positions, wherein the initial positions are empirical values, when the camera position changes, the image changes from a fuzzy state, a clear state and a fuzzy state, and the empirical values ensure that the most clear focused image can be acquired in the camera moving process.
B) The image definition calculating method is characterized in that the absolute value of the gray-scale difference between a Gaussian filtered image of a TFT-LCD panel image and the image is used for representing the image definition. In order to reduce the influence of camera installation horizontal precision and light source illumination on a collected image, the image is uniformly divided into 8 areas in the width direction, the definition of only the 2 nd area and the 7 th area is calculated, the width and the height of the image need to be set for each point for calculating the definition, the width and the height are both 200 pixels, and evaluation images are obtained by respectively using the centers of the 2 nd area and the 7 th area.
C) The 3X3 gaussian nuclei used were as follows:
Figure BDA0002443034750000031
preferably, the fitting of the curve of the relationship between the image definition and the focusing position includes the following steps:
and changing the position of the camera P times at equal intervals, wherein the No. 2 area and the No. 7 area corresponding to each point position have P definition values and the focusing position of the TFT-LCD panel, and performing quadratic curve fitting on the relationship between the P definition values of the two areas and the focusing position of the TFT-LCD panel by using a least square method respectively.
Preferably, the calculating the focusing position of the TFT-LCD panel includes the following steps:
and performing quadratic curve fitting on the image definition of each point position of the TFT-LCD panel and the focusing position corresponding to the point position, wherein the image definition has a maximum value according to the characteristics of the fitted quadratic curve, calculating the maximum values of the definition of the quadratic curves of the 2 nd area and the 7 th area, and acquiring the corresponding focusing positions which are respectively H1 and H2. To balance the hardware effect on the imaging across the camera, the final focus position for each point is the average H of H1 and H2. The average value of the focus positions of all the points is the final focus position of the TFT-LCD panel.
Preferably, the method for moving the camera to the focusing position of the TFT-LCD panel comprises the following steps:
and automatically moving the camera to the focusing position of the TFT-LCD panel according to the obtained focusing position of the TFT-LCD panel.
According to another aspect of the present invention, there is also provided a TFT-LCD panel-based auto-focusing system, including:
the image point location setting module is used for setting the point location of the image definition required to be calculated;
the image definition calculating module is used for calculating the point bit image definition of the point location;
the relation fitting module of the image definition and the focusing position is used for fitting a curve of the relation between the image definition and the focusing position of the point image;
and the TFT-LCD panel focusing position calculating module is used for calculating the optimal focusing position of the TFT-LCD panel.
And the focusing position moving module between the TFT-LCD panel and the camera is used for feeding the calculated optimal focusing position back to the system and then automatically moving the camera to the focusing position.
According to another aspect of the present invention, the present invention further provides a device comprising a memory, a processor and a computer program stored on the memory and executable on the memory, wherein the processor executes the program to realize the TFT-LCD panel auto-focusing method as described above.
According to another aspect of the present invention, there is also provided a non-transitory computer readable storage medium having stored thereon a computer program which is executed by a processor to implement the TFT-LCD panel auto-focusing method as described above.
Compared with the prior art, the invention has the beneficial effects that: the method comprises the steps of calculating the definition of images of two end regions acquired by each point position camera by setting a plurality of point positions, carrying out quadratic curve fitting on the image definition of each point position of a TFT-LCD panel and a focusing position corresponding to the point position by using a least square method, taking the mean value of the focusing positions corresponding to the two regions as the actual focusing position of the point position when the image definitions of the two regions are maximum values, and taking the mean value of the focusing positions of all the point positions as the final focusing position of the TFT-LCD panel. The invention has good application in a visual detection system, is further expanded, and can also be applied in the aspects of size measurement and the like of the visual detection system. The invention has the characteristics of high precision, high speed and simple operation in a visual detection system.
Drawings
Various other advantages and benefits will become apparent to those of ordinary skill in the art upon reading the following detailed description of the preferred embodiments. The drawings are only for purposes of illustrating the preferred embodiments and are not to be construed as limiting the invention. Also, like reference numerals are used to refer to like parts throughout the drawings. In the drawings:
FIG. 1 is a flowchart illustrating an implementation of an auto-focusing method based on a TFT-LCD panel according to the present invention.
FIG. 2 is a schematic diagram of the pixel position setting and image evaluation area of the TFT-LCD panel according to the present invention.
FIG. 3 is a diagram showing the result of fitting quadratic curve of the auto-focus of TFT-LCD panel according to the present invention.
FIG. 4 is a structural diagram of an auto-focusing system of a TFT-LCD panel according to the present invention.
Detailed Description
Exemplary embodiments of the present disclosure will be described in more detail below with reference to the accompanying drawings. While exemplary embodiments of the present disclosure are shown in the drawings, it should be understood that the present disclosure may be embodied in various forms and should not be limited to the embodiments set forth herein. Rather, these embodiments are provided so that this disclosure will be thorough and complete, and will fully convey the scope of the disclosure to those skilled in the art.
In order to solve the above problems, the present invention is solved by a new method. Firstly, images are dynamically acquired, and a real detection state is simulated. Aiming at the fluctuation of the focusing position of the high-speed movement of the TFT-LCD panel during detection, the invention sets uniform point positions on the whole TFT-LCD panel, and images collected by each point position participate in definition evaluation when the TFT-LCD panel moves. And secondly, the influence of hardware on imaging is reduced, two area images close to two ends are simultaneously acquired in the width direction of the camera to evaluate the image definition, and the focusing precision is improved. The difference of the installation level precision of the camera is objective and difficult to overcome. And the line light source illumination causes that two imaging ends of the camera are darker, the middle part is brighter and the imaging is normal, in order to reduce the influence of the camera installation level precision and the light source illumination on the collected image, the imaging width of the camera is uniformly divided into eight areas, and images are taken in the 2 nd area and the 7 th area to be subjected to image definition evaluation. And fitting a relation curve of image definition and camera position by using a least square method, respectively calculating camera focusing positions corresponding to the maximum values of the image definition of the 2 nd area and the image definition of the 7 th area, taking the mean value of the camera focusing positions of the two calculated areas as the final focusing position of the point, and then taking the mean value of the focusing positions of all the point as the final focusing position of the TFT-LCD panel. And the automatic focusing system adjusts the distance between the camera and the TFT-LCD according to the fed-back final focusing position, so that automatic focusing is realized.
Example 1
As shown in FIG. 1, the objective of the present invention is to realize the automatic focusing of TFT-LCD panel, and the calculation process is as follows:
1. setting the point positions of the collected images, as shown in fig. 2, the setting steps are as follows:
and M points are equidistantly arranged according to the length of the TFT-LCD panel, and then N points are equidistantly arranged according to the width of the TFT-LCD panel, wherein the total number of the points is M x N. And in the process of acquiring the image, acquiring a corresponding image from the camera according to the set point location information.
2. Calculating the sharpness of the point image, as shown in fig. 2, the steps are as follows:
A) for TFT-LCD panels with different thicknesses, acquiring preset camera image acquisition initial positions, wherein the initial positions are empirical values, when the camera position changes, the image changes from a fuzzy state, a clear state and a fuzzy state, and the empirical values ensure that the most clear focused image can be acquired in the camera moving process.
B) The image definition calculating method is characterized in that the absolute value of the gray-scale difference between a Gaussian filtered image of a TFT-LCD panel image and the image is used for representing the image definition. In order to reduce the influence of camera installation horizontal precision and light source illumination on a collected image, the image is uniformly divided into 8 areas in the width direction, the definition of only the 2 nd area and the 7 th area is calculated, the width and the height of the image need to be set for each point for calculating the definition, the width and the height are both 200 pixels, and evaluation images are obtained by respectively using the centers of the 2 nd area and the 7 th area.
C) Gaussian filtering uses a kernel of 3X3, the filter being as follows:
Figure BDA0002443034750000061
3. fitting a curve of the relationship between the image definition and the focusing position, as shown in fig. 3, includes the following processes:
and changing the position of the camera P times at equal intervals, wherein the No. 2 area and the No. 7 area corresponding to each point position have P definition values and the focusing position of the TFT-LCD panel, and performing quadratic curve fitting on the relationship between the P definition values of the two areas and the focusing position of the TFT-LCD panel by using a least square method respectively. The horizontal axis represents the point location focusing position, unit millimeter, the vertical axis represents the point location image definition evaluation value, the curve D2 is the relationship curve between the 2 nd area original definition and the focusing position, the curve D7 is the relationship curve between the 7 th area original definition and the focusing position, the curve D2_ Fit is the 2 nd area definition and focusing position fitting curve, and the curve D7_ Fit is the 7 th area definition and focusing position fitting curve.
4. Calculating the focusing position of the TFT-LCD panel, and displaying the result in FIG. 3:
the method for calculating the focusing position of the TFT-LCD panel comprises the following steps:
and performing quadratic curve fitting on the image definition of each point position of the TFT-LCD panel and a focusing position corresponding to the point position, wherein the image definition has a maximum value according to the characteristics of the fitted quadratic curve, the maximum values of the definition of the quadratic curves of the 2 nd area and the 7 th area are respectively A2 and A7, and the corresponding focusing positions are respectively H1 and H2. To balance the hardware effect on the imaging across the camera, the final focus position for each point is the average H of H1 and H2. The average value of the focus positions of all the points is the final focus position of the TFT-LCD panel.
5. Moving the camera to the TFT-LCD panel focus position:
the moving of the camera to the focusing position of the TFT-LCD panel comprises the following steps:
and automatically moving the camera to the focusing position of the TFT-LCD panel according to the obtained focusing position of the TFT-LCD panel.
The beneficial effects of this embodiment: the method comprises the steps of calculating the definition of images of two end regions acquired by each point position camera by setting a plurality of point positions, carrying out quadratic curve fitting on the image definition of each point position of a TFT-LCD panel and a focusing position corresponding to the point position by using a least square method, taking the mean value of the focusing positions corresponding to the two regions as the actual focusing position of the point position when the image definitions of the two regions are maximum values, and taking the mean value of the focusing positions of all the point positions as the final focusing position of the TFT-LCD panel. The invention has good application in a visual detection system, is further expanded, and can also be applied in the aspects of size measurement and the like of the visual detection system.
Example 2
The present embodiment provides an auto-focusing system based on a TFT-LCD panel, as shown in fig. 4, including:
an image point location setting module 100, configured to set a point location at which image definition needs to be calculated;
the image definition calculating module 200 is used for calculating the image definitions of the 2 nd area and the 7 th area of the point location;
the curve fitting module 300 for the relationship between the image definition and the focusing position is used for fitting a curve of the relationship between the image definition and the focusing position of the point image;
and a TFT-LCD panel focusing position calculating module 400 for calculating the optimal position for focusing the TFT-LCD panel.
And a focusing position moving module 500 between the camera and the TFT-LCD panel, for feeding back the calculated optimal focusing position to the system, and then automatically moving the camera to the focusing position.
The beneficial effects of this embodiment: the method comprises the steps of calculating the definition of images of two end regions acquired by each point position camera by setting a plurality of point positions, carrying out quadratic curve fitting on the image definition of each point position of a TFT-LCD panel and a focusing position corresponding to the point position by using a least square method, taking the mean value of the focusing positions corresponding to the two regions as the actual focusing position of the point position when the image definitions of the two regions are maximum values, and taking the mean value of the focusing positions of all the point positions as the final focusing position of the TFT-LCD panel. The invention has good application in a visual detection system, is further expanded, and can also be applied in the aspects of size measurement and the like of the visual detection system.
Example 3
The embodiment provides an electronic device, which comprises a memory, a processor and a computer program stored in the memory and capable of running on the memory, wherein the processor executes the program to realize the TFT-LCD panel-based auto-focusing method as described in embodiment 1.
Example 4
The present embodiment provides a non-transitory computer-readable storage medium having stored thereon a computer program, which is executed by a processor, to implement the TFT-LCD panel-based auto-focusing method as described in embodiment 1.
It should be noted that:
the algorithms and displays presented herein are not inherently related to any particular computer, virtual machine, or other apparatus. Various general purpose devices may be used with the teachings herein. The required structure for constructing such a device will be apparent from the description above. Moreover, the present invention is not directed to any particular programming language. It is appreciated that a variety of programming languages may be used to implement the teachings of the present invention as described herein, and any descriptions of specific languages are provided above to disclose the best mode of the invention.
In the description provided herein, numerous specific details are set forth. It is understood, however, that embodiments of the invention may be practiced without these specific details. In some instances, well-known methods, structures and techniques have not been shown in detail in order not to obscure an understanding of this description.
Similarly, it should be appreciated that in the foregoing description of exemplary embodiments of the invention, various features of the invention are sometimes grouped together in a single embodiment, figure, or description thereof for the purpose of streamlining the disclosure and aiding in the understanding of one or more of the various inventive aspects. However, the disclosed method should not be interpreted as reflecting an intention that: that the invention as claimed requires more features than are expressly recited in each claim. Rather, as the following claims reflect, inventive aspects lie in less than all features of a single foregoing disclosed embodiment. Thus, the claims following the detailed description are hereby expressly incorporated into this detailed description, with each claim standing on its own as a separate embodiment of this invention.
Those skilled in the art will appreciate that the modules in the device in an embodiment may be adaptively changed and disposed in one or more devices different from the embodiment. The modules or units or components of the embodiments may be combined into one module or unit or component, and furthermore they may be divided into a plurality of sub-modules or sub-units or sub-components. All of the features disclosed in this specification (including any accompanying claims, abstract and drawings), and all of the processes or elements of any method or apparatus so disclosed, may be combined in any combination, except combinations where at least some of such features and/or processes or elements are mutually exclusive. Each feature disclosed in this specification (including any accompanying claims, abstract and drawings) may be replaced by alternative features serving the same, equivalent or similar purpose, unless expressly stated otherwise.
Furthermore, those skilled in the art will appreciate that while some embodiments described herein include some features included in other embodiments, rather than other features, combinations of features of different embodiments are meant to be within the scope of the invention and form different embodiments. For example, in the following claims, any of the claimed embodiments may be used in any combination.
The various component embodiments of the invention may be implemented in hardware, or in software modules running on one or more processors, or in a combination thereof. Those skilled in the art will appreciate that a microprocessor or Digital Signal Processor (DSP) may be used in practice to implement some or all of the functions of some or all of the components in the creation apparatus of a virtual machine according to embodiments of the present invention. The present invention may also be embodied as apparatus or device programs (e.g., computer programs and computer program products) for performing a portion or all of the methods described herein. Such programs implementing the present invention may be stored on computer-readable media or may be in the form of one or more signals. Such a signal may be downloaded from an internet website or provided on a carrier signal or in any other form.
It should be noted that the above-mentioned embodiments illustrate rather than limit the invention, and that those skilled in the art will be able to design alternative embodiments without departing from the scope of the appended claims. In the claims, any reference signs placed between parentheses shall not be construed as limiting the claim. The word "comprising" does not exclude the presence of elements or steps not listed in a claim. The word "a" or "an" preceding an element does not exclude the presence of a plurality of such elements. The invention may be implemented by means of hardware comprising several distinct elements, and by means of a suitably programmed computer. In the unit claims enumerating several means, several of these means may be embodied by one and the same item of hardware. The usage of the words first, second and third, etcetera do not indicate any ordering. These words may be interpreted as names.
The above description is only for the preferred embodiment of the present invention, but the scope of the present invention is not limited thereto, and any changes or substitutions that can be easily conceived by those skilled in the art within the technical scope of the present invention are included in the scope of the present invention. Therefore, the protection scope of the present invention shall be subject to the protection scope of the appended claims.

Claims (8)

1. An automatic focusing method based on a TFT liquid crystal panel is characterized by comprising the following steps:
setting an image acquisition point position;
calculating the point image definition of the point location;
fitting a curve of the relation between the definition of the point image and the focusing position;
calculating the focusing position of the TFT liquid crystal panel according to the extreme point of the curve; the method for calculating the focusing position of the TFT liquid crystal panel comprises the following steps:
carrying out quadratic curve fitting on the image definition of each point position of the TFT liquid crystal panel and the focusing position corresponding to the point position;
calculating the maximum values of the definition of the quadratic curves of the 2 nd area and the 7 th area, and acquiring corresponding focusing positions which are respectively H1 and H2;
the final focusing position of each point position is an average value H of H1 and H2, and the average value of all point position focusing positions is taken as the focusing position of the TFT liquid crystal panel;
and moving the camera to the focusing position of the TFT liquid crystal panel.
2. The TFT-based liquid crystal panel automatic focusing method according to claim 1, wherein:
the process of setting the collected image point locations is as follows:
setting M points at equal intervals according to the length of the TFT liquid crystal panel, and then setting N points at equal intervals according to the width of the TFT liquid crystal panel, wherein the total point number is M N; and in the process of acquiring the image, acquiring a corresponding image from the camera according to the set point location information.
3. The automatic focusing method of the TFT-based liquid crystal panel according to claim 1 or 2, wherein:
the process of calculating the point image definition of the point location is as follows:
A) acquiring preset camera image-capturing initial positions for TFT liquid crystal panels with different thicknesses, wherein when the camera position is changed, the image undergoes fuzzy-clear-fuzzy state change;
B) the image definition calculating method is represented by the absolute value of the gray level difference between a Gaussian filter image of a TFT liquid crystal panel image and the TFT liquid crystal panel image; the method comprises the steps of uniformly dividing an image of the TFT liquid crystal panel into 8 areas in the width direction of a camera, sequentially and respectively forming a 1 st area to an 8 th area from the beginning to the end, only calculating the definition of the 2 nd area and the 7 th area, setting the width and the height of the image at each point position of the calculated definition, and respectively obtaining an evaluation image by using the centers of the 2 nd area and the 7 th area.
4. The TFT-based liquid crystal panel automatic focusing method according to claim 3, wherein:
the process of fitting the curve of the relationship between the point image definition and the focusing position is as follows:
changing the focusing position of the camera P times at equal distance, wherein the 2 nd area and the 7 th area of each point position respectively have P definition values and the focusing position of the TFT liquid crystal panel, and performing quadratic curve fitting on the relationship between the P definition values of the two areas and the focusing position of the TFT liquid crystal panel by using a least square method.
5. The TFT-based liquid crystal panel automatic focusing method according to claim 1, wherein:
the method for moving the camera to the focusing position of the TFT liquid crystal panel comprises the following steps:
and automatically moving the camera to the focusing position of the TFT liquid crystal panel according to the obtained focusing position of the TFT liquid crystal panel.
6. An auto-focusing system based on a TFT liquid crystal panel, comprising:
the image point location setting module is used for setting the point location of which the image definition needs to be calculated;
the image definition calculating module is used for calculating the point bit image definition of the point location;
the relation fitting module of the image definition and the focusing position is used for fitting a curve of the relation between the image definition and the focusing position of the point image;
the TFT liquid crystal panel focusing position calculating module is used for calculating the focusing position of the TFT liquid crystal panel according to the extreme point of the curve; the method for calculating the focusing position of the TFT liquid crystal panel comprises the following steps: carrying out quadratic curve fitting on the image definition of each point position of the TFT liquid crystal panel and the focusing position corresponding to the point position; calculating the maximum values of the definition of the quadratic curves of the 2 nd area and the 7 th area, and acquiring corresponding focusing positions which are respectively H1 and H2; the final focusing position of each point position is an average value H of H1 and H2, and the average value of all point position focusing positions is taken as the focusing position of the TFT liquid crystal panel;
and the focusing position moving module between the TFT liquid crystal panel and the camera is used for feeding back the calculated focusing position to the system and then automatically moving the camera to the focusing position.
7. An electronic device comprising a memory, a processor and a computer program stored on and executable on the memory, the processor executing the program to implement the TFT-based liquid crystal panel auto-focusing method as claimed in any one of claims 1 to 5.
8. A non-transitory computer readable storage medium having stored thereon a computer program, wherein the program is executed by a processor to implement the TFT-based liquid crystal panel auto-focusing method as claimed in any one of claims 1 to 5.
CN202010270663.0A 2020-04-08 2020-04-08 Automatic focusing method and system based on TFT liquid crystal panel Active CN111338051B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202010270663.0A CN111338051B (en) 2020-04-08 2020-04-08 Automatic focusing method and system based on TFT liquid crystal panel

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202010270663.0A CN111338051B (en) 2020-04-08 2020-04-08 Automatic focusing method and system based on TFT liquid crystal panel

Publications (2)

Publication Number Publication Date
CN111338051A CN111338051A (en) 2020-06-26
CN111338051B true CN111338051B (en) 2021-09-28

Family

ID=71186373

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202010270663.0A Active CN111338051B (en) 2020-04-08 2020-04-08 Automatic focusing method and system based on TFT liquid crystal panel

Country Status (1)

Country Link
CN (1) CN111338051B (en)

Families Citing this family (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112230491A (en) * 2020-10-30 2021-01-15 广西代达科技有限公司 Application method of technical camera capable of automatically focusing
CN115547909B (en) * 2022-09-16 2023-10-20 魅杰光电科技(上海)有限公司 Wafer definition positioning method
CN117191805B (en) * 2023-10-26 2024-04-26 中导光电设备股份有限公司 Automatic focusing method and system for AOI (automatic optical inspection) detection head

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH07113944A (en) * 1993-10-20 1995-05-02 Nikon Corp Picture read out device
CN103945123A (en) * 2014-04-03 2014-07-23 北京大恒图像视觉有限公司 Method for adjusting level angle of industrial camera
CN105938243A (en) * 2016-06-29 2016-09-14 华南理工大学 Multi-magnification microscope fast focusing method applied to TFT-LCD detection
CN109005340A (en) * 2018-07-27 2018-12-14 武汉精测电子集团股份有限公司 The Atomatic focusing method and device of image definition curve matching are carried out based on least square method
CN110519585A (en) * 2019-08-23 2019-11-29 凌云光技术集团有限责任公司 A kind of imaging calibration method and device applied to image capture device

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105452926B (en) * 2013-09-05 2018-06-22 富士胶片株式会社 Photographic device and focusing control method

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH07113944A (en) * 1993-10-20 1995-05-02 Nikon Corp Picture read out device
CN103945123A (en) * 2014-04-03 2014-07-23 北京大恒图像视觉有限公司 Method for adjusting level angle of industrial camera
CN105938243A (en) * 2016-06-29 2016-09-14 华南理工大学 Multi-magnification microscope fast focusing method applied to TFT-LCD detection
CN109005340A (en) * 2018-07-27 2018-12-14 武汉精测电子集团股份有限公司 The Atomatic focusing method and device of image definition curve matching are carried out based on least square method
CN110519585A (en) * 2019-08-23 2019-11-29 凌云光技术集团有限责任公司 A kind of imaging calibration method and device applied to image capture device

Also Published As

Publication number Publication date
CN111338051A (en) 2020-06-26

Similar Documents

Publication Publication Date Title
CN111338051B (en) Automatic focusing method and system based on TFT liquid crystal panel
JP7075743B2 (en) Variable focal length lens with multi-level magnified depth of field image processing function
CN101655614B (en) Method and device for detecting cloud pattern defects of liquid crystal display panel
CN102298206B (en) Microscope and focus method
CN102590218B (en) Device and method for detecting micro defects on bright and clean surface of metal part based on machine vision
CN102176245B (en) Method for focusing automatic imaging device on specimen
CN103558229B (en) A kind of MURA vision automatic testing method of TFT-LCD processing procedure and device
CN100454006C (en) Machine vision based LCD spot flaw detection method and system
CN111474177A (en) Liquid crystal screen backlight foreign matter defect detection method based on computer vision
CN108088845A (en) A kind of image-forming correction method and device retained based on Weak Information
CN113920090B (en) Prefabricated rod appearance defect automatic detection method based on deep learning
CN104992446B (en) The image split-joint method of non-linear illumination adaptive and its realize system
CN110428463A (en) The method that image automatically extracts center during aspherical optical element defocus blur is fixed
CN113923358A (en) Online automatic focusing method and system in flying shooting mode
EP3422073A1 (en) Phase-contrast microscope and imaging method
CN106773158A (en) A kind of movable type seeks liquid crystal display pixel qualities analytical equipment and a method certainly
CN107784673B (en) Optical fiber image processing method based on non-uniformity correction
CN112378797A (en) Full-automatic indentation measuring device and method
CN116256366A (en) Chip defect detection method, detection system and storage medium
CN106556350B (en) The measuring method and a kind of microscope of microscopic slide curved surface height value
CN115564828A (en) Machine vision positioning method and system based on ambiguity algorithm
US20180149846A1 (en) Method and microscope for measuring and calculating heights on curved surface of microscope slide
CN112839168B (en) Method for automatically adjusting camera imaging resolution in AOI detection system
CN111521617B (en) Optical detection device, control method for optical detection device, and storage medium
CN115917593A (en) Computer-implemented method for quality control of digital images of a sample

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant