CN112752021A - Automatic focusing method of camera system and automatic focusing camera system - Google Patents

Automatic focusing method of camera system and automatic focusing camera system Download PDF

Info

Publication number
CN112752021A
CN112752021A CN202011360349.8A CN202011360349A CN112752021A CN 112752021 A CN112752021 A CN 112752021A CN 202011360349 A CN202011360349 A CN 202011360349A CN 112752021 A CN112752021 A CN 112752021A
Authority
CN
China
Prior art keywords
origin point
point position
automatic focusing
camera
substrate
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.)
Granted
Application number
CN202011360349.8A
Other languages
Chinese (zh)
Other versions
CN112752021B (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.)
LG Display Optoelectronics Technology China Co Ltd
Original Assignee
LG Display Optoelectronics Technology China 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 LG Display Optoelectronics Technology China Co Ltd filed Critical LG Display Optoelectronics Technology China Co Ltd
Priority to CN202011360349.8A priority Critical patent/CN112752021B/en
Publication of CN112752021A publication Critical patent/CN112752021A/en
Application granted granted Critical
Publication of CN112752021B publication Critical patent/CN112752021B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N23/00Cameras or camera modules comprising electronic image sensors; Control thereof
    • H04N23/60Control of cameras or camera modules
    • H04N23/67Focus control based on electronic image sensor signals
    • H04N23/671Focus control based on electronic image sensor signals in combination with active ranging signals, e.g. using light or sound signals emitted toward objects
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N23/00Cameras or camera modules comprising electronic image sensors; Control thereof
    • H04N23/60Control of cameras or camera modules
    • H04N23/67Focus control based on electronic image sensor signals

Landscapes

  • Engineering & Computer Science (AREA)
  • Multimedia (AREA)
  • Signal Processing (AREA)
  • Automatic Focus Adjustment (AREA)
  • Length Measuring Devices By Optical Means (AREA)

Abstract

The embodiment of the invention discloses an automatic focusing method of a camera system and the automatic focusing camera system. The automatic focusing camera system is provided with a focusing control module, a distance positioning module, an automatic focusing camera and a driving mechanism, and can acquire distance values of different point positions of a substrate to be measured by using the distance positioning module under the control and driving of the focusing control module; the method comprises the steps that an automatic focusing camera is used for automatically focusing different point positions on a substrate to be detected within a preset focusing range, and a driving mechanism is controlled to compensate and adjust the height position of the automatic focusing camera according to the height difference between a non-origin point position except an origin point position on the substrate to be detected and the origin point position; and driving the automatic focusing camera to automatically focus the origin point position and the non-origin point position within a preset focusing range. The invention solves the problem that the existing optical detection system needs manual adjustment, can realize automatic adjustment focusing, ensures the accuracy of lens adjustment, and improves the optical detection speed and efficiency.

Description

Automatic focusing method of camera system and automatic focusing camera system
Technical Field
The embodiment of the invention relates to the field of display and the technical field of machine vision, in particular to an automatic focusing method of a camera system and the automatic focusing camera system.
Background
An optical detection system for a liquid crystal panel is an essential important device for optical detection of the liquid crystal panel in the industrial production of the liquid crystal panel. After the liquid crystal display panel is manufactured, optical detection is generally required to eliminate defects, so that the yield of finished products is improved. In the optical detection stage, when the panel is placed on the workbench, the panel can be in a bent state with sagging in the middle and protruding four corners under the action of gravity because the panel is relatively large in size. Meanwhile, the local position of the panel can also present certain unevenness under the influence of the flatness of the workbench. Therefore, in the process of optical detection through image acquisition, the focal length of the lens needs to be adjusted to ensure clear imaging.
However, although the existing optical detection system for the liquid crystal panel has an automatic focusing function of the lens, because the automatic focusing range is limited, the deformation degree of the panel usually exceeds the focusing range of the lens, and the height of the lens needs to be adjusted manually, on one hand, the system cannot ensure the accuracy of lens adjustment while causing dependence on workers, on the other hand, the detection speed is reduced, and the optical detection efficiency is affected.
Disclosure of Invention
The invention provides an automatic focusing method of a camera system and the automatic focusing camera system, which are used for meeting the requirement of the existing optical detection stage on automatic focusing and improving the detection efficiency of the optical detection system.
In a first aspect, an embodiment of the present invention provides an auto-focusing camera system, including a focusing control module, a distance positioning module, an auto-focusing camera, and a driving mechanism; the automatic focusing camera is arranged on the driving mechanism; the focusing control module is respectively and electrically connected with the distance positioning module, the automatic focusing camera and the driving mechanism;
the distance positioning module is used for acquiring distance values of different point positions of the substrate to be detected; the automatic focusing camera is used for automatically focusing different point positions on the substrate to be measured in a preset focusing range; the driving mechanism is used for moving the position of the automatic focusing camera;
the focusing control module is used for acquiring distance values of different point positions of the substrate to be detected, which are acquired by the distance positioning module; controlling a driving mechanism to move an automatic focusing camera to a target height position of an original point position; driving the automatic focusing camera to automatically focus the original point location within a preset focusing range; controlling the driving mechanism to perform compensation adjustment on the height position of the automatic focusing camera according to the height difference between the non-origin point position except the origin point position on the substrate to be detected and the origin point position so as to move the automatic focusing camera to the target height position of the non-origin point position; and driving the automatic focusing camera to automatically focus the non-origin point position within a preset focusing range.
Optionally, the focus control module is further configured to, after obtaining distance values of different point locations of the substrate to be detected, which are acquired by the distance positioning module, determine a height compensation value of a non-origin point location and the origin point location according to a height difference between the non-origin point location and the origin point location on the substrate to be detected, except for the origin point location; and controlling the driving mechanism to perform compensation adjustment on the height position of the automatic focusing camera according to the height compensation values of the non-origin point position and the origin point position so as to move the automatic focusing camera to the target height position of the non-origin point position.
Optionally, the auto-focus camera comprises a plurality of lenses of different magnifications;
the focusing control module is also used for determining a preset magnification lens before controlling the driving mechanism to move the automatic focusing camera to the target height position of the original point position; and controlling a driving mechanism to move the preset magnification lens to a target height position of the original point position; driving the lens with the preset magnification ratio to automatically focus the original point location within a preset focusing range; controlling the driving mechanism to perform compensation adjustment on the height position of the preset magnification lens according to the height difference between the non-origin point position except the origin point position on the substrate to be detected and the origin point position so as to move the preset magnification lens to the target height position of the non-origin point position; and driving the lens with the preset magnification ratio to automatically focus the non-origin point position within a preset focusing range.
Optionally, the focusing control module is further configured to divide the substrate to be tested into a plurality of image acquisition view fields arranged in an array according to a preset step length; and driving the distance positioning module to acquire the distance value of the substrate to be detected in each image acquisition view field.
In a second aspect, an embodiment of the present invention further provides an auto-focusing method for a camera system, including:
acquiring distance values of different point positions of the substrate to be detected, which are acquired by a distance positioning module;
controlling a driving mechanism to move an automatic focusing camera to a target height position of an original point position;
driving the automatic focusing camera to automatically focus the original point location within a preset focusing range;
controlling the driving mechanism to perform compensation adjustment on the height position of the automatic focusing camera according to the height difference between the non-origin point position except the origin point position on the substrate to be detected and the origin point position so as to move the automatic focusing camera to the target height position of the non-origin point position;
and driving the automatic focusing camera to automatically focus the non-origin point position within a preset focusing range.
Optionally, after obtaining the distance values of different point locations of the substrate to be measured, which are collected by the distance positioning module, the method further includes:
determining a height compensation value of a non-origin point position and an origin point position according to a height difference between the non-origin point position except the origin point position and the origin point position on the substrate to be detected;
according to the height difference between the non-origin point position except the origin point position on the substrate to be detected and the origin point position, controlling the driving mechanism to perform compensation adjustment on the height position of the automatic focusing camera so as to move the automatic focusing camera to the target height position of the non-origin point position, the method comprises the following steps:
and controlling the driving mechanism to perform compensation adjustment on the height position of the automatic focusing camera according to the height compensation values of the non-origin point position and the origin point position so as to move the automatic focusing camera to the target height position of the non-origin point position.
Optionally, the auto-focus camera comprises a plurality of lenses of different magnifications;
before controlling drive mechanism to move the auto focus camera to the target height position of origin point position, still include:
determining a lens with a preset magnification;
control actuating mechanism and remove the target height position of auto focus camera to the initial point position, include:
controlling a driving mechanism to move the preset magnification lens to a target height position of the original point position;
driving the automatic focusing camera to automatically focus the original point location within a preset focusing range, comprising:
driving the lens with the preset magnification ratio to automatically focus the original point location within a preset focusing range;
according to the height difference between the non-origin point position except the origin point position on the substrate to be detected and the origin point position, controlling the driving mechanism to perform compensation adjustment on the height position of the automatic focusing camera so as to move the automatic focusing camera to the target height position of the non-origin point position, the method comprises the following steps:
controlling the driving mechanism to perform compensation adjustment on the height position of the preset magnification lens according to the height difference between the non-origin point position except the origin point position on the substrate to be detected and the origin point position so as to move the preset magnification lens to the target height position of the non-origin point position;
the automatic focusing camera is driven to automatically focus on the non-origin point location within a preset focusing range, and the method comprises the following steps:
and driving the lens with the preset magnification ratio to automatically focus the non-origin point position within a preset focusing range.
Optionally, obtaining distance values of different point locations of the substrate to be measured, which are collected by the distance positioning module, includes:
dividing the substrate to be detected into a plurality of image acquisition view fields which are arranged in an array according to a preset step length;
and driving the distance positioning module to acquire the distance value of the substrate to be detected in each image acquisition view field.
In the embodiment of the invention, by arranging the focusing control module, the distance positioning module, the automatic focusing camera and the driving mechanism, the distance values of different point positions of the substrate to be detected can be acquired by utilizing the distance positioning module under the control and the driving of the focusing control module; the method comprises the steps that an automatic focusing camera is used for automatically focusing different point positions on a substrate to be detected within a preset focusing range, and a driving mechanism is controlled to compensate and adjust the height position of the automatic focusing camera according to the height difference between a non-origin point position except an origin point position on the substrate to be detected and the origin point position; and driving the automatic focusing camera to automatically focus the origin point position and the non-origin point position within a preset focusing range. The embodiment of the invention solves the problem that the existing optical detection system needs manual adjustment due to limited automatic focusing range, not only can get rid of dependence on manual adjustment and realize automatic focusing adjustment, but also can ensure the accuracy of lens adjustment, improve the optical detection speed and improve the optical detection efficiency.
Drawings
Fig. 1 is a schematic structural diagram of an auto-focus camera system according to an embodiment of the present invention;
fig. 2 is a schematic view of an auto-focusing structure of a substrate to be tested according to an embodiment of the present invention;
FIG. 3 is a schematic view illustrating the flatness of a substrate to be tested according to an embodiment of the invention;
fig. 4 is a flowchart of an auto-focusing method of a camera system according to an embodiment of the present invention;
FIG. 5 is a schematic diagram illustrating a comparison between a front view and a rear view of a height compensation system provided by an embodiment of the present invention;
fig. 6 is a schematic structural diagram of an auto-focus camera according to an embodiment of the present invention.
Detailed Description
The present invention will be described in further detail with reference to the accompanying drawings and examples. It is to be understood that the specific embodiments described herein are merely illustrative of the invention and are not limiting of the invention. It should be further noted that, for the convenience of description, only some of the structures related to the present invention are shown in the drawings, not all of the structures.
Fig. 1 is a schematic structural diagram of an auto-focus camera system according to an embodiment of the present invention, fig. 2 is a schematic structural diagram of auto-focus of a substrate to be tested according to an embodiment of the present invention, fig. 3 is a schematic structural diagram of flatness of the substrate to be tested according to an embodiment of the present invention, and referring to fig. 1 to fig. 3, the auto-focus camera system includes a focus control module 10, a distance positioning module 20, an auto-focus camera 30, and a driving mechanism 40; the auto-focusing camera 30 is mounted on the driving mechanism 40; the focusing control module 10 is electrically connected with the distance positioning module 20, the automatic focusing camera 30 and the driving mechanism 40 respectively;
the distance positioning module 20 is used for acquiring distance values of different point positions of the substrate 1 to be measured; the automatic focusing camera 30 is used for automatically focusing different point positions on the substrate 1 to be measured within a preset focusing range; the driving mechanism 40 is used for moving the position of the auto-focus camera 30;
the focusing control module 10 is configured to obtain distance values of different point locations of the substrate 1 to be measured, which are collected by the distance positioning module 20; controlling the driving mechanism 40 to move the auto-focusing camera 30 to the target height position of the origin point; driving the automatic focusing camera 30 to automatically focus the point location of the origin within a preset focusing range; according to the height difference between the non-origin point position except the origin point position on the substrate 1 to be measured and the origin point position, controlling the driving mechanism 40 to perform compensation adjustment on the height position of the automatic focusing camera 30 so as to move the automatic focusing camera 30 to the target height position of the non-origin point position; the autofocus camera 30 is driven to perform autofocus on the non-origin point location within the preset focus range.
The automatic focusing camera system is used for carrying out image acquisition on the substrate in an optical detection stage, and lens focusing is required to be realized before image acquisition so as to ensure the clarity of an image. In the optical detection stage, the substrate 1 to be detected is placed on the workpiece stage, and in the embodiment of the present invention, the distance positioning module 20, the auto-focus camera 30 and the driving mechanism 40 in the auto-focus camera system are all disposed above the workpiece stage, so as to align the substrate 1 to be detected on the workpiece stage. The distance positioning module 20 is a mechanical or optical distance measuring module, and may be a sensor module such as a laser distance measuring module, for example, which utilizes the laser distance measuring principle to measure the distances of different positions on the substrate 1 to be measured. It can be understood that due to the bending of the substrate 1 to be measured, different positions, i.e. different points, of the substrate 1 to be measured are not on the same plane. Taking the distance as the deformation standard of different point locations of the substrate 1 to be measured, the distances between the different point locations and the distance positioning module 20 are different.
Based on the automatic focusing camera system, the embodiment of the invention also provides an automatic focusing method. Fig. 4 is a flowchart of an auto-focusing method of a camera system according to an embodiment of the present invention, and a specific auto-focusing process of the auto-focusing camera system according to the embodiment of the present invention is described with reference to fig. 1 to 4. The automatic focusing method of the camera system is mainly executed by a focusing control module 10, and specifically comprises the following steps:
s110, obtaining distance values of different point positions of the substrate to be detected, which are acquired by a distance positioning module;
this step is essentially performed by the focus control module 10 controlling the distance positioning module 20, and the distance positioning module 20 moves above the substrate 1 to be tested so as to detect the distance values at different positions of the substrate 1 to be tested. It can be understood that the bending of the substrate 1 to be measured is in a smooth transition state, and it is not practical to completely determine the distance values of the positions on the substrate 1 to be measured. In this embodiment, a plurality of uniformly distributed point locations may be determined on the substrate 1 to be tested, and the deformation states of different positions of the substrate 1 to be tested are represented by the plurality of point locations. It should be noted that the division of the point locations on the substrate 1 to be measured needs to be determined according to the image acquisition view field of the auto-focus camera, each point location corresponds to one image acquisition view field, and the distance value of the image acquisition view field is represented by the distance value of each point location.
With reference to fig. 3, optionally, in this embodiment, the substrate 1 to be tested may include a plurality of image capturing fields, and each image capturing field is set to have a point. Therefore, the step S110 may specifically include:
s111, dividing the substrate to be detected into a plurality of image acquisition view fields which are arranged in an array according to a preset step length;
and S112, the driving distance positioning module acquires the distance value of the substrate to be detected in each image acquisition view field.
It can be understood that the complete image acquisition process of the substrate 1 to be measured needs image splicing formation of a plurality of image acquisition view fields, and when image acquisition is performed on each image acquisition view field, focusing is required to ensure that the images are clear. Therefore, the substrate to be tested is divided into a plurality of image acquisition view fields, each image acquisition view field is a point position substantially, and the distance value of the image acquisition view field can be represented according to the distance value of the point position. On the basis, the distance value of each image acquisition view field can be acquired according to the distance positioning module. It should be noted that, in the dividing process, the dividing number and the dividing step length in the length and width directions of the substrate 1 to be measured may be the same or different. As exemplified in fig. 3, 17 parts by weight in the longitudinal direction and 10 parts by weight in the short direction may be provided.
S120, controlling a driving mechanism to move an automatic focusing camera to a target height position of an original point position;
this step is essentially executed by the focus control module 10 controlling the driving mechanism 40, and the driving mechanism 40 is a mechanical moving mechanism, which can drive the auto-focus camera 30 to move horizontally and vertically. In this step, the auto-focus camera 30 is aligned to the position of the origin point of the substrate 1 to be measured by horizontal movement, and then the auto-focus camera 30 can be moved to a height position satisfying the focusing requirement of the origin point, that is, a target height position, by vertical movement. The position of the origin is set manually, and in the present embodiment, a certain edge position of the substrate 1 to be measured can be optionally set as the origin position.
S130, driving an automatic focusing camera to automatically focus the point location of the origin within a preset focusing range;
according to the alignment process in step S120, the autofocus camera 30 only needs to perform autofocus to obtain a clear image of the field of view corresponding to the origin point. It should be noted that, since there may be errors in both the distance positioning module 20 and the driving mechanism 40, the accuracy of the position of the auto-focusing camera 30 may not meet the focusing requirement. On the basis, the auto-focus camera 30 can properly adjust the focal length thereof, thereby realizing the focusing of the origin point. After the step is realized, image acquisition can be carried out after automatic focusing is realized, and the image of the field of view corresponding to the point location of the origin is obtained.
S140, according to the height difference between the non-origin point position except the origin point position on the substrate to be detected and the origin point position, controlling a driving mechanism to perform compensation adjustment on the height position of the automatic focusing camera so as to move the automatic focusing camera to the target height position of the non-origin point position;
due to the deformation problem of the substrate 1 to be measured, the distance values of different point locations are different, and when image acquisition is performed on a non-origin point location on the substrate 1 to be measured, the process of focusing the origin point location is consistent, and the automatic focusing camera needs to be moved to a target height position of the non-origin point location. Therefore, this step is essentially a process of adjusting and compensating for the distance between the auto-focus camera 30 and the substrate 1 to be measured due to the deformation of the substrate 1 to be measured itself by using the driving mechanism. At this time, the auto-focusing camera 30 can be ensured to be always located at the preset height position above the point location, and the auto-focusing requirement is met.
Fig. 5 is a schematic diagram illustrating comparison between before and after the height compensation according to the embodiment of the present invention, and it can be known from fig. 5 that the deformation degree of the point in the middle area of the substrate 1 to be measured is larger. The origin point position located in the edge area and the non-origin point position located in the middle area are obviously located on different planes, and the height difference between the non-origin point position and the origin point position is used for compensating the height of the automatic focusing camera, so that the non-origin point position is always located in the automatic focusing range (shown in the range of a dotted line frame) of the automatic focusing camera. Compared with an automatic focusing camera without height compensation, the automatic focusing camera is difficult to realize by itself, and therefore the height adjustment is carried out manually.
And S150, driving the automatic focusing camera to automatically focus the non-origin point position within a preset focusing range.
The auto-focusing camera 30 is moved in the horizontal direction to be aligned with a non-origin point position, after the height compensation is performed in the vertical direction, the auto-focusing camera 30 can realize the auto-focusing of any point position, at the moment, the camera can focus on any point position, and a clear image of a corresponding view field is obtained.
In the embodiment of the invention, by arranging the focusing control module, the distance positioning module, the automatic focusing camera and the driving mechanism, the distance values of different point positions of the substrate to be detected can be acquired by utilizing the distance positioning module under the control and the driving of the focusing control module; the method comprises the steps that an automatic focusing camera is used for automatically focusing different point positions on a substrate to be detected within a preset focusing range, and a driving mechanism is controlled to compensate and adjust the height position of the automatic focusing camera according to the height difference between a non-origin point position except an origin point position on the substrate to be detected and the origin point position; and driving the automatic focusing camera to automatically focus the origin point position and the non-origin point position within a preset focusing range. The embodiment of the invention solves the problem that the existing optical detection system needs manual adjustment due to limited automatic focusing range, not only can get rid of dependence on manual adjustment and realize automatic focusing adjustment, but also can ensure the accuracy of lens adjustment, improve the optical detection speed and improve the optical detection efficiency.
With continued reference to fig. 1-5, in another embodiment of the present invention, the focus control module may be further configured to control the driving mechanism to perform compensation adjustment on the height position of the auto-focus camera according to a height difference between a non-origin point position and an origin point position on the substrate to be measured, where the non-origin point position is different from the origin point position, so as to determine that the height difference between the non-origin point position and the origin point position exceeds a preset focus range of the auto-focus camera before moving the auto-focus camera to a target height position of the non-origin point position. In other words, before step S140 of the auto-focusing method provided by the present invention, step S131 may be further set to determine that the height difference between the non-origin point and the origin point exceeds the preset focusing range of the auto-focusing camera.
It will be appreciated that in the above embodiment, before the autofocus step is performed for any one of the non-origin points, contrast detection of the height difference and the focus range is added. When the height difference between the non-origin point and the origin point exceeds the preset focusing range of the automatic focusing camera, it is indicated that the deformation degree of the non-origin point is larger than that of the origin point, and the non-origin point cannot enter the automatic focusing range of the automatic focusing camera. On this basis, after the height compensation is realized by the driving mechanism 40, the autofocus camera 30 can be moved downward, so that the non-origin point is within the autofocus range of the autofocus camera. When the height difference between the non-origin point and the origin point does not exceed the preset focusing range of the automatic focusing camera, the non-origin point and the origin point are indicated to have lower deformation degree compared with the origin point, and the automatic focusing camera can realize focusing through self focal length adjustment, so that for the point with lower deformation degree, the height compensation process of the driving mechanism 40 can be greatly saved, and the automatic focusing speed and efficiency can be improved.
Further, on the basis of the above embodiment, the focus control module may be further configured to determine a height compensation value of the non-origin point and the origin point according to a height difference between the non-origin point and the origin point on the substrate to be measured, except for the origin point, after obtaining the distance values of the different points of the substrate to be measured, which are collected by the distance positioning module; and controlling the driving mechanism to compensate and adjust the height position of the automatic focusing camera according to the height compensation value of the non-origin point position and the origin point position so as to move the automatic focusing camera to the target height position of the non-origin point position.
At the moment, the focusing control module determines the height compensation value of the automatic focusing camera in advance according to the distance values of different point locations, and only the height compensation value corresponding to the point location needs to be extracted in the process of controlling the driving mechanism to perform height compensation, so that the real-time calculation process is not needed. Moreover, the process of predetermining the height compensation value by the focusing control module can be synchronous with the process of moving the automatic focusing camera to the target height position of the original point position by the driving mechanism and the process of carrying out automatic focusing on the original point position by the automatic focusing camera, so that the program integration level of automatic focusing is improved to a certain extent, the accuracy of the automatic focusing process can be ensured, and the speed and the efficiency of optical detection are improved.
On this basis, in the auto-focusing method provided in the embodiment of the present invention, after the step S110, the method further includes: and S111, determining a height compensation value of the non-origin point and the origin point according to the height difference between the non-origin point and the origin point on the substrate to be detected except the origin point. Correspondingly, step S140, controlling the driving mechanism to perform compensation adjustment on the height position of the auto-focus camera according to the height difference between the non-origin point and the origin point on the substrate to be measured except the origin point, so as to move the auto-focus camera to the target height position of the non-origin point, which may include: and controlling the driving mechanism to perform compensation adjustment on the height position of the automatic focusing camera according to the height compensation values of the non-origin point position and the origin point position so as to move the automatic focusing camera to the target height position of the non-origin point position.
In addition, in the embodiment of the present invention, it may be specifically configured that the auto-focus camera includes a plurality of lenses with different magnifications. Therefore, the focusing control module can be further used for determining a preset magnification lens before controlling the driving mechanism to move the automatic focusing camera to the target height position of the origin point; controlling a driving mechanism to move a preset magnification lens to a target height position of the original point position; driving a lens with preset magnification to automatically focus the original point location within a preset focusing range; according to the height difference between a non-origin point position except the origin point position on the substrate to be detected and the origin point position, controlling a driving mechanism to perform compensation adjustment on the height position of the preset magnification lens so as to move the preset magnification lens to a target height position of the non-origin point position; and driving the lens with the preset magnification to automatically focus the non-origin point position within the preset focusing range.
Fig. 6 is a schematic structural diagram of an auto-focus camera according to an embodiment of the present invention, and referring to fig. 6, the auto-focus camera includes a plurality of lenses with different magnifications, and the magnifications can satisfy optical inspection processes with different degrees of fineness. It can be understood that when a lens with higher magnification is adopted, the magnification at the same position on the substrate 1 to be measured is larger, the image view field is smaller, and the image is clearer. Therefore, in the actual optical inspection stage, a lens with a preset magnification can be selected by those skilled in the art according to the inspection requirement. On this basis, in the automatic focusing camera system in the embodiment of the present invention, the focusing control module needs to control the driving mechanism to drive the lens with the preset magnification to reach the target height position of the substrate 1 to be measured according to the determined lens with the preset magnification.
Based on the above, the embodiment of the invention provides another automatic focusing method for a camera system. The automatic focusing method of the camera system comprises the following steps:
s210, obtaining distance values of different point positions of the substrate to be detected, which are acquired by a distance positioning module;
s220, determining a lens with a preset magnification;
s230, controlling a driving mechanism to move a preset magnification lens to a target height position of the original point position;
s240, driving a lens with preset magnification to automatically focus the original point location within a preset focusing range;
s250, controlling a driving mechanism to perform compensation adjustment on the height position of the preset magnification ratio lens according to the height difference between the non-origin point position except the origin point position on the substrate to be detected and the origin point position so as to move the preset magnification ratio lens to the target height position of the non-origin point position;
and S260, driving the lens with the preset magnification to automatically focus the non-origin point in the preset focusing range.
It is to be noted that the foregoing is only illustrative of the preferred embodiments of the present invention and the technical principles employed. It will be understood by those skilled in the art that the present invention is not limited to the particular embodiments described herein, but is capable of various obvious modifications, rearrangements, combinations and substitutions as will now become apparent to those skilled in the art without departing from the scope of the invention. Therefore, although the present invention has been described in greater detail by the above embodiments, the present invention is not limited to the above embodiments, and may include other equivalent embodiments without departing from the spirit of the present invention, and the scope of the present invention is determined by the scope of the appended claims.

Claims (8)

1. An automatic focusing camera system is characterized by comprising a focusing control module, a distance positioning module, an automatic focusing camera and a driving mechanism; the automatic focusing camera is arranged on the driving mechanism; the focusing control module is respectively and electrically connected with the distance positioning module, the automatic focusing camera and the driving mechanism;
the distance positioning module is used for acquiring distance values of different point positions of the substrate to be detected; the automatic focusing camera is used for automatically focusing different point positions on the substrate to be measured in a preset focusing range; the driving mechanism is used for moving the position of the automatic focusing camera;
the focusing control module is used for acquiring distance values of different point positions of the substrate to be detected, which are acquired by the distance positioning module; controlling a driving mechanism to move an automatic focusing camera to a target height position of an original point position; driving the automatic focusing camera to automatically focus the original point location within a preset focusing range; controlling the driving mechanism to perform compensation adjustment on the height position of the automatic focusing camera according to the height difference between the non-origin point position except the origin point position on the substrate to be detected and the origin point position so as to move the automatic focusing camera to the target height position of the non-origin point position; and driving the automatic focusing camera to automatically focus the non-origin point position within a preset focusing range.
2. The auto-focus camera system according to claim 1, wherein the focus control module is further configured to determine a height compensation value of a non-origin point and an origin point on the substrate to be measured according to a height difference between the non-origin point and the origin point, excluding the origin point, after obtaining distance values of different points of the substrate to be measured, which are collected by the distance positioning module; and controlling the driving mechanism to perform compensation adjustment on the height position of the automatic focusing camera according to the height compensation values of the non-origin point position and the origin point position so as to move the automatic focusing camera to the target height position of the non-origin point position.
3. The autofocus camera system of claim 1, wherein the autofocus camera comprises a plurality of lenses of different magnifications;
the focusing control module is also used for determining a preset magnification lens before controlling the driving mechanism to move the automatic focusing camera to the target height position of the original point position; and controlling a driving mechanism to move the preset magnification lens to a target height position of the original point position; driving the lens with the preset magnification ratio to automatically focus the original point location within a preset focusing range; controlling the driving mechanism to perform compensation adjustment on the height position of the preset magnification lens according to the height difference between the non-origin point position except the origin point position on the substrate to be detected and the origin point position so as to move the preset magnification lens to the target height position of the non-origin point position; and driving the lens with the preset magnification ratio to automatically focus the non-origin point position within a preset focusing range.
4. The auto-focusing camera system according to claim 1, wherein the focusing control module is further configured to divide the substrate to be tested into a plurality of image capturing fields of view arranged in an array according to a preset step length; and driving the distance positioning module to acquire the distance value of the substrate to be detected in each image acquisition view field.
5. An auto-focusing method of a camera system, comprising:
acquiring distance values of different point positions of the substrate to be detected, which are acquired by a distance positioning module;
controlling a driving mechanism to move an automatic focusing camera to a target height position of an original point position;
driving the automatic focusing camera to automatically focus the original point location within a preset focusing range;
controlling the driving mechanism to perform compensation adjustment on the height position of the automatic focusing camera according to the height difference between the non-origin point position except the origin point position on the substrate to be detected and the origin point position so as to move the automatic focusing camera to the target height position of the non-origin point position;
and driving the automatic focusing camera to automatically focus the non-origin point position within a preset focusing range.
6. The auto-focusing method of a camera system according to claim 5, after obtaining distance values of different point locations of the substrate to be measured collected by the distance positioning module, further comprising:
determining a height compensation value of a non-origin point position and an origin point position according to a height difference between the non-origin point position except the origin point position and the origin point position on the substrate to be detected;
according to the height difference between the non-origin point position except the origin point position on the substrate to be detected and the origin point position, controlling the driving mechanism to perform compensation adjustment on the height position of the automatic focusing camera so as to move the automatic focusing camera to the target height position of the non-origin point position, the method comprises the following steps:
and controlling the driving mechanism to perform compensation adjustment on the height position of the automatic focusing camera according to the height compensation values of the non-origin point position and the origin point position so as to move the automatic focusing camera to the target height position of the non-origin point position.
7. The camera system auto-focusing method according to claim 5, wherein the auto-focusing camera comprises a plurality of lenses of different magnifications;
before controlling drive mechanism to move the auto focus camera to the target height position of origin point position, still include:
determining a lens with a preset magnification;
control actuating mechanism and remove the target height position of auto focus camera to the initial point position, include:
controlling a driving mechanism to move the preset magnification lens to a target height position of the original point position;
driving the automatic focusing camera to automatically focus the original point location within a preset focusing range, comprising:
driving the lens with the preset magnification ratio to automatically focus the original point location within a preset focusing range;
according to the height difference between the non-origin point position except the origin point position on the substrate to be detected and the origin point position, controlling the driving mechanism to perform compensation adjustment on the height position of the automatic focusing camera so as to move the automatic focusing camera to the target height position of the non-origin point position, the method comprises the following steps:
controlling the driving mechanism to perform compensation adjustment on the height position of the preset magnification lens according to the height difference between the non-origin point position except the origin point position on the substrate to be detected and the origin point position so as to move the preset magnification lens to the target height position of the non-origin point position;
the automatic focusing camera is driven to automatically focus on the non-origin point location within a preset focusing range, and the method comprises the following steps:
and driving the lens with the preset magnification ratio to automatically focus the non-origin point position within a preset focusing range.
8. The method of claim 5, wherein obtaining distance values from different points of the substrate to be measured collected by the positioning module comprises:
dividing the substrate to be detected into a plurality of image acquisition view fields which are arranged in an array according to a preset step length;
and driving the distance positioning module to acquire the distance value of the substrate to be detected in each image acquisition view field.
CN202011360349.8A 2020-11-27 2020-11-27 Automatic focusing method of camera system and automatic focusing camera system Active CN112752021B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202011360349.8A CN112752021B (en) 2020-11-27 2020-11-27 Automatic focusing method of camera system and automatic focusing camera system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202011360349.8A CN112752021B (en) 2020-11-27 2020-11-27 Automatic focusing method of camera system and automatic focusing camera system

Publications (2)

Publication Number Publication Date
CN112752021A true CN112752021A (en) 2021-05-04
CN112752021B CN112752021B (en) 2022-09-13

Family

ID=75648359

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202011360349.8A Active CN112752021B (en) 2020-11-27 2020-11-27 Automatic focusing method of camera system and automatic focusing camera system

Country Status (1)

Country Link
CN (1) CN112752021B (en)

Cited By (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113489912A (en) * 2021-09-06 2021-10-08 中导光电设备股份有限公司 Tracking focusing device and method
CN114413777A (en) * 2022-01-18 2022-04-29 南京工程学院 High-speed rail axle deformation detection device and method based on image definition evaluation function
CN114484243A (en) * 2022-01-25 2022-05-13 天津天元海科技开发有限公司 Hand-held navigation mark data collector
CN114979491A (en) * 2022-05-31 2022-08-30 广东利元亨智能装备股份有限公司 Image acquisition method and device
CN115514884A (en) * 2022-08-23 2022-12-23 苏州华星光电技术有限公司 Precise ultrahigh-speed position correction method and device
WO2023103426A1 (en) * 2022-08-04 2023-06-15 中电科机器人有限公司 Automatic focusing method and device for part visual inspection

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
TW200738384A (en) * 2006-04-11 2007-10-16 Chung Shan Inst Of Science Control method for laser cutting machine
US20130113919A1 (en) * 2010-07-16 2013-05-09 3M Innovative Properties Company High resolution autofocus inspection system
CN103698879A (en) * 2013-12-18 2014-04-02 宁波江丰生物信息技术有限公司 Real-time focusing device and real-time focusing method
CN104316506A (en) * 2014-10-14 2015-01-28 上海交通大学 Raman probe and Raman signal detection system and method capable of focusing automatically
CN106483622A (en) * 2016-11-25 2017-03-08 苏州均华精密机械有限公司 There is provided and check and the automatic focusing mechanism measuring and its method

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
TW200738384A (en) * 2006-04-11 2007-10-16 Chung Shan Inst Of Science Control method for laser cutting machine
US20130113919A1 (en) * 2010-07-16 2013-05-09 3M Innovative Properties Company High resolution autofocus inspection system
CN103698879A (en) * 2013-12-18 2014-04-02 宁波江丰生物信息技术有限公司 Real-time focusing device and real-time focusing method
CN104316506A (en) * 2014-10-14 2015-01-28 上海交通大学 Raman probe and Raman signal detection system and method capable of focusing automatically
CN106483622A (en) * 2016-11-25 2017-03-08 苏州均华精密机械有限公司 There is provided and check and the automatic focusing mechanism measuring and its method

Cited By (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113489912A (en) * 2021-09-06 2021-10-08 中导光电设备股份有限公司 Tracking focusing device and method
CN114413777A (en) * 2022-01-18 2022-04-29 南京工程学院 High-speed rail axle deformation detection device and method based on image definition evaluation function
CN114484243A (en) * 2022-01-25 2022-05-13 天津天元海科技开发有限公司 Hand-held navigation mark data collector
CN114484243B (en) * 2022-01-25 2023-10-31 天津天元海科技开发有限公司 Handheld navigation mark data acquisition instrument
CN114979491A (en) * 2022-05-31 2022-08-30 广东利元亨智能装备股份有限公司 Image acquisition method and device
CN114979491B (en) * 2022-05-31 2023-09-19 广东利元亨智能装备股份有限公司 Image acquisition method and device
WO2023103426A1 (en) * 2022-08-04 2023-06-15 中电科机器人有限公司 Automatic focusing method and device for part visual inspection
CN115514884A (en) * 2022-08-23 2022-12-23 苏州华星光电技术有限公司 Precise ultrahigh-speed position correction method and device

Also Published As

Publication number Publication date
CN112752021B (en) 2022-09-13

Similar Documents

Publication Publication Date Title
CN112752021B (en) Automatic focusing method of camera system and automatic focusing camera system
CN110006905B (en) Large-caliber ultra-clean smooth surface defect detection device combined with linear area array camera
WO2017088469A1 (en) High-precision automatic optical detection system and method based on mechanical arm
KR101306289B1 (en) Method of inspecting plat panel
CN104181685B (en) Based on microscopical digital slices autofocus and its method
EP3029930B1 (en) Vision measuring device with auto-focusing control
CN110300255B (en) Information processing device, information processing method, program, and vision measuring device
CN102789111A (en) Lens calibration system and method thereof
CN109085695B (en) Method for quickly focusing and photographing plane sample
CN111735768B (en) Micro imaging method and device for Micro LED screen
US20110157349A1 (en) Stage control device, stage control method, stage control program, and microscope
CN113176274A (en) Automatic focusing method, device and system for detecting defects of display panel
CN111965960A (en) 3D mobile phone cover plate glass exposure device and method based on linear array imaging assembly
KR20150114199A (en) Defect inspecting apparatus for ir filter with automatic focus control unit
CN106131436A (en) The focusing test device of a kind of aerial camera and focusing test method
CN113079318B (en) System and method for automatically focusing edge defects and computer storage medium
KR101694390B1 (en) Auto focusing apparatus and the method using multi cameras
JP6312410B2 (en) Alignment apparatus, microscope system, alignment method, and alignment program
CN112505994A (en) Ultra-short focus projection system and automatic focusing method thereof
JP4384446B2 (en) Autofocus method and apparatus
JP2008209295A (en) Device for measuring size
CN1796987A (en) Optical detection device and detection method
JP5881445B2 (en) microscope
KR102329643B1 (en) Apparatus for characteristics test of devices for autofocus and image stabilization for mobile camera and operation method thereof
CN220823192U (en) Image acquisition device

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