CN113406093B - Optical detection equipment and method and device for measuring object attribute thereof - Google Patents

Optical detection equipment and method and device for measuring object attribute thereof Download PDF

Info

Publication number
CN113406093B
CN113406093B CN202110951754.5A CN202110951754A CN113406093B CN 113406093 B CN113406093 B CN 113406093B CN 202110951754 A CN202110951754 A CN 202110951754A CN 113406093 B CN113406093 B CN 113406093B
Authority
CN
China
Prior art keywords
image
target
target image
acquiring
information
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
CN202110951754.5A
Other languages
Chinese (zh)
Other versions
CN113406093A (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.)
Suzhou Vega Technology Co Ltd
Original Assignee
Suzhou Vega Technology 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 Suzhou Vega Technology Co Ltd filed Critical Suzhou Vega Technology Co Ltd
Priority to CN202110951754.5A priority Critical patent/CN113406093B/en
Publication of CN113406093A publication Critical patent/CN113406093A/en
Application granted granted Critical
Publication of CN113406093B publication Critical patent/CN113406093B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G01MEASURING; TESTING
    • G01NINVESTIGATING OR ANALYSING MATERIALS BY DETERMINING THEIR CHEMICAL OR PHYSICAL PROPERTIES
    • G01N21/00Investigating or analysing materials by the use of optical means, i.e. using sub-millimetre waves, infrared, visible or ultraviolet light
    • G01N21/84Systems specially adapted for particular applications
    • G01N21/88Investigating the presence of flaws or contamination
    • G01N21/8851Scan or image signal processing specially adapted therefor, e.g. for scan signal adjustment, for detecting different kinds of defects, for compensating for structures, markings, edges
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T7/00Image analysis
    • G06T7/0002Inspection of images, e.g. flaw detection
    • GPHYSICS
    • G01MEASURING; TESTING
    • G01NINVESTIGATING OR ANALYSING MATERIALS BY DETERMINING THEIR CHEMICAL OR PHYSICAL PROPERTIES
    • G01N21/00Investigating or analysing materials by the use of optical means, i.e. using sub-millimetre waves, infrared, visible or ultraviolet light
    • G01N21/84Systems specially adapted for particular applications
    • G01N21/88Investigating the presence of flaws or contamination
    • G01N21/8851Scan or image signal processing specially adapted therefor, e.g. for scan signal adjustment, for detecting different kinds of defects, for compensating for structures, markings, edges
    • G01N2021/8887Scan or image signal processing specially adapted therefor, e.g. for scan signal adjustment, for detecting different kinds of defects, for compensating for structures, markings, edges based on image processing techniques

Landscapes

  • Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Computer Vision & Pattern Recognition (AREA)
  • Physics & Mathematics (AREA)
  • Life Sciences & Earth Sciences (AREA)
  • Theoretical Computer Science (AREA)
  • Signal Processing (AREA)
  • Health & Medical Sciences (AREA)
  • Quality & Reliability (AREA)
  • Chemical & Material Sciences (AREA)
  • Analytical Chemistry (AREA)
  • Biochemistry (AREA)
  • General Health & Medical Sciences (AREA)
  • Immunology (AREA)
  • Pathology (AREA)
  • Image Analysis (AREA)

Abstract

The invention discloses an optical detection device and a method and a device for measuring object attributes thereof, wherein the measuring method comprises the following steps: acquiring a target image of a to-be-detected area; processing the target image to acquire measurement information of the target image and storing the measurement information of the target image; acquiring a current image in a region to be detected; and calling the measurement information of the target image to automatically measure the current image when the current image is determined to be the same as the target image. The measuring method can acquire the complete target image of the area to be detected, process the target image to acquire and store the measuring information of the target image, and directly call the measuring information when the current image is the same as the target image, thereby realizing automatic detection, effectively shortening the measuring period, improving the measuring efficiency and avoiding the influence of measuring work on the production progress.

Description

Optical detection equipment and method and device for measuring object attribute thereof
Technical Field
The present invention relates to the field of optical measurement technologies, and in particular, to a method for measuring an object property of an optical detection device, an apparatus for measuring an object property of an optical detection device, and a computer-readable storage medium.
Background
At present, an Automatic Optical Inspection (AOI) device needs to move a camera to a corresponding position of an object every time the object is detected, and then fitting calculation is performed, so that production efficiency is not greatly affected under the condition that the number of the objects to be measured is small, but when the number of the objects to be measured is large, time is extremely wasted by the operation of moving the camera to search the objects one by one, and production efficiency is seriously affected.
Disclosure of Invention
The present invention is directed to solving, at least to some extent, one of the technical problems in the related art. Therefore, a first objective of the present invention is to provide a method for measuring an object attribute of an optical detection device, which can acquire a complete target image of a to-be-detected region, process the target image to acquire and store measurement information of the target image, and directly call the measurement information when a current image is the same as the target image, so as to implement automatic detection, effectively shorten a measurement period, improve measurement efficiency, and avoid an influence of measurement work on a production progress.
A second object of the present invention is to propose a device for measuring properties of an object for optical inspection equipment.
A third object of the invention is to propose an optical detection device.
A fourth object of the invention is to propose a computer-readable storage medium.
In order to achieve the above object, a first embodiment of the present invention provides a method for measuring an object property of an optical detection apparatus, including: acquiring a target image of a to-be-detected area; processing the target image to acquire measurement information of the target image and storing the measurement information of the target image; acquiring a current image in the area to be detected; and calling the measurement information of the target image to automatically measure the current image when the current image is determined to be the same as the target image.
According to the method for measuring the object attribute of the optical detection equipment, the target image of the area to be detected is firstly obtained, then the target image is processed to obtain the measurement information of the target image, the measurement information of the target image is stored, then the current image in the area to be detected is obtained, and finally, when the current image is the same as the target image, the measurement information of the target image is called to automatically measure the current image. Therefore, the method can acquire the complete target image of the area to be detected, process the target image to acquire and store the measurement information of the target image, and directly call the measurement information when the current image is the same as the target image, so that automatic detection is realized, the measurement period is effectively shortened, the measurement efficiency is improved, and the influence of measurement work on the production progress is avoided.
In addition, the method for measuring the object property of the optical detection device according to the above embodiment of the present invention may further have the following additional technical features:
according to an embodiment of the present invention, processing the target image to obtain measurement information of the target image includes: processing the target image to acquire basic information of a target object; and determining position information between other objects on the target image and the target object according to the basic information of the target object so as to obtain the measurement information of the target image.
According to an embodiment of the present invention, processing the target image to obtain basic information of the target object includes: acquiring the object type of the target object; and acquiring the edge information of the target object according to the object type so as to acquire the basic information of the target object.
According to one embodiment of the invention, the item types include: obtaining edge information of the target object according to the object type to obtain basic information of the target object, including: acquiring the circle center and the radius of the target object; acquiring an interesting area of the circle according to the circle center, the radius and a first preset tolerance; acquiring an edge path of the circle according to the interesting area of the circle; and acquiring basic information of the target object according to the edge path of the circle.
According to one embodiment of the invention, the item types include: a line segment, wherein the obtaining of the edge information of the target object according to the object type to obtain the basic information of the target object includes: acquiring the slope and the starting point of the target object; acquiring an edge path of the line segment according to the slope, the starting point and a second preset tolerance; and acquiring the basic information of the target object according to the edge path of the line segment.
According to one embodiment of the invention, the item types include: an arc, wherein the obtaining of the edge information of the target object according to the object type to obtain the basic information of the target object includes: acquiring the circle center, the radius, the starting point and the end point of the target object; acquiring an interested area of the circular arc according to the circle center, the radius and a third preset tolerance; acquiring an edge path of the circular arc according to the interesting area, the starting point and the end point of the circular arc; and acquiring the basic information of the target object according to the edge path of the circular arc.
According to one embodiment of the present invention, the basic information includes: at least one of position coordinates, diameter, length, slope, and line width; the location information includes: at least one of distance, angle, and intersection coordinates.
According to an embodiment of the present invention, acquiring a target image of a region to be detected or acquiring a current image of the region to be detected includes: determining the size and the number of images to be acquired according to the area to be detected; determining a region to be filled according to the size and the number of the images; and filling the acquired images into the area to be filled in sequence to obtain a target image of the area to be filled or a current image of the area to be filled.
In order to achieve the above object, a second embodiment of the present invention provides an apparatus for measuring an object property of an optical detection device, including: the first acquisition module is used for acquiring a target image of a to-be-detected area; the image processing module is used for processing the target image to acquire the measurement information of the target image; the storage module is used for storing the measurement information of the target image; the first acquisition module is further used for acquiring a current image in the area to be detected; and the calling module is used for calling the measurement information of the target image to automatically measure the current image when the current image is determined to be the same as the target image.
According to the device for measuring the object attribute, the first acquisition module is used for acquiring the target image of the area to be detected, the image processing module is used for processing the target image to acquire the measurement information of the target image, the storage module is used for storing the measurement information of the target image, and the calling module is used for calling the measurement information of the target image to automatically measure the current image when the current image is determined to be the same as the target image. Therefore, the device can acquire a complete target image of the area to be detected, process the target image, acquire and store the measurement information of the target image, and directly call the measurement information when the current image is the same as the target image, so that automatic detection is realized, the measurement period is effectively shortened, the measurement efficiency is improved, and the influence of measurement work on the production progress is avoided.
In order to achieve the above object, an optical inspection apparatus according to an embodiment of a third aspect of the present invention includes: the processor executes the object property measuring program to realize the object property measuring method for the optical detection equipment.
According to the optical detection equipment provided by the embodiment of the invention, when the processor executes the measurement program of the object attribute, the object attribute measurement method for the optical detection equipment is realized, so that automatic detection is realized, the measurement period is effectively shortened, the measurement efficiency is improved, and the influence of measurement work on the production progress is avoided.
In order to achieve the above object, a computer-readable storage medium is provided in a fourth aspect of the present invention, on which an object property measurement program is stored, and the object property measurement program, when executed by a processor, implements the above object property measurement method for an optical detection apparatus.
According to the computer-readable storage medium of the embodiment of the invention, by executing the method for measuring the object attribute of the optical detection equipment, automatic detection is realized, the measurement period is effectively shortened, the measurement efficiency is improved, and the influence of measurement work on the production progress is avoided.
Additional aspects and advantages of the invention will be set forth in part in the description which follows and, in part, will be obvious from the description, or may be learned by practice of the invention.
Drawings
FIG. 1 is a flow chart of a method for measuring an object property of an optical inspection apparatus according to an embodiment of the present invention;
FIG. 2 is a block diagram of an apparatus for measuring an object property of an optical inspection device according to an embodiment of the present invention;
fig. 3 is a block diagram of an optical detection apparatus according to an embodiment of the present invention.
Detailed Description
Reference will now be made in detail to embodiments of the present invention, examples of which are illustrated in the accompanying drawings, wherein like or similar reference numerals refer to the same or similar elements or elements having the same or similar function throughout. The embodiments described below with reference to the drawings are illustrative and intended to be illustrative of the invention and are not to be construed as limiting the invention.
The method for measuring an object property for an optical inspection apparatus, the apparatus for measuring an object property for an optical inspection apparatus, the optical inspection apparatus, and the computer-readable storage medium according to embodiments of the present invention will be described below with reference to the accompanying drawings.
Fig. 1 is a flowchart of a method for measuring an object property of an optical inspection apparatus according to an embodiment of the present invention.
As shown in fig. 1, a method for measuring an object property of an optical inspection apparatus according to an embodiment of the present invention may include:
and S1, acquiring a target image of the to-be-detected region.
Specifically, for example, the object to be detected is a PCB (Printed Circuit Board), the PCB is placed on a corresponding detection table in the detection process, the motion control device (e.g., a mechanical arm) drives the image acquisition device (e.g., a camera) to scan the entire detection table, and after the scanning is finished, the image acquisition device splices the scanned images to form a complete image of the detection table, that is, the target image of the area to be detected. Under some special operating conditions, for example when ambient brightness is lower, directly gather the target image and can make subsequent measuring result inaccurate, at this moment, can also control light source device and open to the ambient brightness who guarantees to gather the image can reach the settlement threshold value. Wherein, the light source device can directly be set up on the motion control device, can guarantee like this that the ambient brightness in the position that image acquisition device arrived can both satisfy the requirement.
It should be noted that, the image acquisition device may also be set, for example, the image acquisition device has a light supplement function, and when it is detected that the current ambient brightness is low, the light supplement is performed to ensure that the acquired image quality can meet the requirements.
In addition, the image acquisition device can also be fixedly arranged, the detection table top is movable, and at the moment, the detection table top can be driven to move by the motion control device.
In addition, the obtained target image of the to-be-detected area may include the whole detection table, or the detection area on the detection table may be defined according to actual requirements, and the target image is a scan of the defined detection area, and the formed image covers the whole defined detection area, and correspondingly, the to-be-detected object should be completely placed in the corresponding detection area, so as to ensure that the target image includes the to-be-detected object.
According to an embodiment of the present invention, acquiring the target image of the region to be detected may include: determining the size and the number of images to be acquired according to the area to be detected; determining a region to be filled according to the size and the number of the images; and filling the acquired images to the area to be filled in sequence to obtain a target image of the area to be detected. Wherein the filling order of the images corresponds to the acquisition order of the images.
Specifically, before detection is started, the size of an image acquired by the image acquisition device at a single time and the number of images to be acquired are acquired according to the area of the region to be detected, for example, the region to be detected can be equally divided, and the matched region to be filled can be determined according to the size of the image and the number of the images, for example, the width of the image acquired by the image acquisition device at a single time is w, the height of the image is h, the total number of the images is n, and then the area of the region to be filled is w h n. Supposing that the image acquisition directions are from left to right in the transverse direction and from top to bottom in the longitudinal direction, the images are also from left to right in the region to be filled, and sequential filling is performed from top to bottom in the longitudinal direction, at this time, the first image acquired by acquisition is filled to the first position at the upper left corner of the region to be filled, the second image is sequentially filled and seamlessly spliced to the right of the first image, the above operations are repeated, and when n images are filled in the region to be filled, a complete target image of the region to be detected is formed.
And S2, processing the target image to acquire the measurement information of the target image and saving the measurement information of the target image.
Specifically, after the target image of the area to be detected is obtained in the above manner, the target image is processed, the measurement information of the target object in the target image is obtained through the measurement operation, and when the user performs the measurement operation on the target image, the measurement information obtained through the fitting calculation performed by the measurement operation is automatically stored in the program library, so that the measurement method for forming the corresponding target image is stored in the program library.
According to an embodiment of the present invention, processing the target image to obtain the measurement information of the target image may include: processing the target image to acquire basic information of a target object; and determining the position information between other objects on the target image and the target object according to the basic information of the target object so as to obtain the measurement information of the target image. Wherein the basic information includes: at least one of position coordinates, diameter, length, slope, line width.
Specifically, when the basic information such as the position coordinate, the diameter, the length, the slope, or the line width of the target object is determined, the target object and other objects in the target image can be subjected to fitting calculation based on the origin coordinate of the target image, the position information such as the distance, the angle, or the intersection point coordinate between the other objects and the target object can be directly obtained, and the measurement information of the target image can be obtained according to the data. For example, when the type of the target object is a circle, the center coordinates a (a 1, a 2) in the basic information are obtained through the above operations, and at this time, the center coordinates of another circle in the target image are B (B1, B2), and after the centers of the two circles are determined, the distance and the relative position (direction) between the two circles can be determined. For another example, when another object in the target image is a line segment, the distance between the line segment and the target object (circle) and the direction of the circle in which the line segment is located can be determined by the start point coordinates and the end point coordinates of the line segment.
According to one embodiment of the present invention, processing a target image to obtain basic information of a target object includes: acquiring the object type of a target object; and acquiring the edge information of the target object according to the object type so as to acquire the basic information of the target object. Wherein, a gray threshold for evaluating the edge is preset, and the object type may include: one of a circle, a line segment, and an arc.
Specifically, after the target image of the region to be detected is acquired in the above manner, the target image is processed, for example, a target object to be detected (e.g., a circle, a line segment, a circular arc, etc.) can be determined by means of zooming in, zooming out, moving, etc., and the basic information of the target object to be detected is acquired by means of edge detection according to the characteristics of the target object. For example, when the target object to be detected is a circle, it is known from the circle generation characteristic that a circle may be generated when dots and a radius are determined, or a circle may be generated when three points on the circle are determined.
Wherein, the edge of the image refers to: the gray level section of the area can be generally regarded as a step, namely, the gray level changes rapidly from a gray level in a small buffer area to another gray level with a larger gray level difference, the algorithm of the functional design is to find the part with the significant brightness change of the local area of the image, calculate the gray level (0-255) of each pixel point in a specified direction through given coordinates, and the edge point is obtained when the gray level exceeds a set threshold.
According to one embodiment of the invention, the item types may include: the method for acquiring the edge information of the target object according to the object type to acquire the basic information of the target object may include: acquiring the circle center and the radius of a target object; acquiring a circle region of interest according to the circle center, the radius and a first preset tolerance; acquiring a circle edge path according to the circle region of interest; and acquiring basic information of the target object according to the edge path of the circle. Wherein, the first preset tolerance can be set according to practical application.
Specifically, the target images may be displayed through an image display interface, and a rectangular coordinate system is usually established with the upper left corner of the target image as the origin, the horizontal direction as the x-axis, and the vertical direction as the y-axis, so as to determine the position of each target object. The user moves the target object to the center of the image display interface through the operations of zooming in, zooming out and moving the target image, so that the measurement operation is conveniently carried out on the target object. When the type of the object selected by the user is a circle, the clicked position of the user is not always the actual position of the circle due to selection errors, and at the moment, the center and the radius of the circle can be calculated according to three points by utilizing the three points selected by the user on the edge of the circle, and the center coordinate of the circle can be calculated. Then, taking the coordinate of the center of the circle as the center, obtaining the width of the circumscribed rectangle by the obtained radius and a first preset tolerance, for example, twice the sum of the radius and the first preset tolerance, as the width of the circumscribed rectangle, obtaining the region of interest of the circle, then performing edge detection on the region of interest of the circle, for example, taking the center of the circle as a specified coordinate point, obtaining the gray value of each pixel point towards the direction away from the center of the circle, when the gray value is greater than a set threshold, regarding the pixel point as an edge point, and fitting the target object in the region of interest according to the determined edge point, so as to obtain the basic information of the target object.
It should be noted that, in order to improve the accuracy of the obtained edge path of the circle, edge points of a plurality of circles may be detected, and the center of the circle may be generated according to the edge points; or according to the above embodiment, after the circle center is determined, only one edge point needs to be determined, and the basic information of the circle can be obtained.
According to another embodiment of the present invention, the article types may include: the line segment, wherein the edge information of the target object is obtained according to the object type to obtain the basic information of the target object, may include: acquiring the slope and the starting point of a target object; acquiring an edge path of the line segment according to the slope, the starting point and a second preset tolerance; and acquiring basic information of the target object according to the edge path of the line segment. The second preset tolerance can be set according to practical application.
Specifically, when the type of the object is a line segment, an observable edge of the line segment is selected on the target image, a starting point and an end point of the edge of the line segment are further selected, coordinates of the starting point and the end point are determined after the end point and the starting point are selected, and the slope of the target object can be calculated according to the selected coordinates of the starting point and the end point. Taking the starting point of the selected line segment edge as the starting point of the target object, obtaining the edge path of the line segment by using the slope direction of the line segment and a second preset tolerance, obtaining the basic information of the target object according to the edge path of the line segment, for example, the slope is 0.5, the second preset tolerance is +/-0.1, obtaining three line segments with the same starting point and different slopes, thus determining the interesting area of the line segment, then obtaining the pixel value of the pixel point in the interesting area to obtain the edge path of the line segment, and finally determining the basic information (such as the length) of the line segment; for another example, the slope is 0.5, the second preset tolerance is ± 0.1 (the coordinates of the starting point are respectively translated by 0.1 downward and upward), three line segments identical to the slope 0.5 can be obtained, so that the region of interest of the line segment can be determined, then the pixel values of the pixel points in the region of interest are obtained to obtain the edge path of the line segment, and finally the basic information (such as the length) of the line segment is determined.
According to yet another embodiment of the invention, the item types may include: the method includes the following steps of obtaining edge information of a target object according to an object type to obtain basic information of the target object, wherein the arc comprises: acquiring the circle center, the radius, the starting point and the end point of a target object; acquiring an interested area of the circular arc according to the circle center, the radius and a third preset tolerance; acquiring an edge path of the arc according to the interested area, the starting point and the end point of the arc; and acquiring basic information of the target object according to the edge path of the circular arc. Wherein the third preset tolerance is set according to practical application.
Specifically, when the type of the object includes an arc, three points are selected clockwise or counterclockwise on the image to confirm the arc, where a first point and a third point of the three points are a start point and an end point of the arc, respectively, and a second point may be any one point on the arc, and a center and a radius of the arc may be determined based on the three points. The center of the circle is used as a midpoint in the image, the size of the circumscribed rectangle is determined by the radius and a third preset tolerance together, for example, twice the sum of the radius and the third preset tolerance is used as the width of the circumscribed rectangle, the interested region of the circular arc can be obtained, the starting point (or the end point) is used as the starting point for inquiring the edge point, the pixel point with the gray value of the pixel point being greater than the set threshold value is searched in the interested region towards the direction of the end point (or the starting point) to obtain the edge path of the circular arc, and the basic information (such as the center of the circle, the radius and the arc length) of the circular arc is finally determined.
And S3, acquiring the current image in the area to be detected.
And S4, determining that the current image is the same as the target image, and calling the measurement information of the target image to automatically measure the current image.
Specifically, the current image in the region to be detected is first acquired by the image acquisition device, and the acquisition method may adopt the above-mentioned acquisition method of the target image, which is not described herein again. Then comparing the current image with the target image, when the current image is determined to be the same as the target image, namely when the attribute of the same target object is obtained, directly calling corresponding measurement information in a program library, and then directly adopting a measurement method in the measurement information to measure and calculate the basic information and the position information of the target object in the current image, thereby realizing automatic detection. For example, when measuring N circuit boards without program, the same hole pitch measurement or line width measurement needs to be repeated for different circuit boards. Firstly, a circuit board is manually measured by the above method, and the measurement information is stored to obtain the corresponding program. When the subsequent measurement of N-1 circuit boards is carried out, the machine can automatically scan the whole circuit board image and load the program to realize the one-key automatic measurement of the circle, the arc or the line segment without selecting the circle, the arc or the line segment again. When the circuit boards are different but have the same fixed area, the fixed area can be detected as described above, that is, the first fixed area is manually measured, and the same fixed area detection of other circuit boards can directly call the measurement information detected by the first fixed area to realize automatic measurement.
For example, 100 identical circuit boards have no program data, the above method is used to obtain the measurement information (program data) of one circuit board, and the remaining 99 circuit boards can directly call the program data to perform measurement; or, 100 different circuit boards have the same fixed area, the measurement information of the fixed area is obtained by the method, and the remaining 99 circuit boards can directly call the program data to measure the same fixed area.
In summary, according to the method for measuring the object property of the optical detection device in the embodiment of the present invention, the target image of the region to be detected is first acquired, then the target image is processed to acquire the measurement information of the target image, the measurement information of the target image is saved, then the current image in the region to be detected is acquired, and finally, when the current image is the same as the target image, the measurement information of the target image is called to perform automatic measurement on the current image. Therefore, the method can acquire the complete target image of the area to be detected, process the target image to acquire and store the measurement information of the target image, and directly call the measurement information when the current image is the same as the target image, so that automatic detection is realized, the measurement period is effectively shortened, the measurement efficiency is improved, and the influence of measurement work on the production progress is avoided.
The invention further provides a device for measuring the object property of the optical detection equipment, which corresponds to the embodiment.
Fig. 2 is a block diagram of an apparatus for measuring an object property of an optical inspection device according to an embodiment of the present invention.
As shown in fig. 2, an apparatus for measuring an object property of an optical inspection device according to an embodiment of the present invention may include: the system comprises a first acquisition module 10, an image processing module 20, a storage module 30 and a calling module 40.
The first acquiring module 10 is configured to acquire an image of a region to be detected. The image processing module 20 is configured to process the target image to obtain measurement information of the target image. The storage module 30 is used for storing the measurement information of the target image. The first obtaining module 10 is further configured to obtain a current image in the region to be detected. The calling module 40 is configured to call the measurement information of the target image to perform automatic measurement on the current image when the current image is determined to be the same as the target image.
According to an embodiment of the present invention, the image processing module 20 processes the target image to obtain measurement information of the target image, and is specifically configured to: processing the target image to acquire basic information of a target object; and determining the position information between other objects on the target image and the target object according to the basic information of the target object so as to obtain the measurement information of the target image.
According to an embodiment of the present invention, the image processing module 20 is configured to process the target image to obtain basic information of the target object, and specifically configured to: acquiring the object type of a target object; and acquiring the edge information of the target object according to the object type so as to acquire the basic information of the target object.
According to one embodiment of the invention, the item types include: the image processing module 20 obtains edge information of the target object according to the object type to obtain basic information of the target object, and is specifically configured to: acquiring the circle center and the radius of a target object; acquiring a circle region of interest according to the circle center, the radius and a first preset tolerance; acquiring a circle edge path according to the circle region of interest; and acquiring basic information of the target object according to the edge path of the circle.
According to one embodiment of the invention, the item types include: a line segment, wherein the image processing module 20 obtains edge information of the target object according to the object type to obtain basic information of the target object, and is specifically configured to: acquiring the slope and the starting point of a target object; acquiring an edge path of the line segment according to the slope, the starting point and a second preset tolerance; and acquiring basic information of the target object according to the edge path of the line segment.
According to one embodiment of the invention, the item types include: an arc, wherein the image processing module 20 obtains edge information of the target object according to the object type to obtain basic information of the target object, and is specifically configured to: acquiring the circle center, the radius, the starting point and the end point of a target object; acquiring an interested area of the circular arc according to the circle center, the radius and a third preset tolerance; acquiring an edge path of the arc according to the interested area, the starting point and the end point of the arc; and acquiring basic information of the target object according to the edge path of the circular arc.
According to one embodiment of the present invention, the basic information includes: at least one of position coordinates, diameter, length, slope, and line width; the location information includes: at least one of distance, angle, and intersection coordinates.
According to an embodiment of the present invention, the first obtaining module 10 obtains the image of the region to be detected, and may specifically be configured to: determining the size and the number of images to be acquired according to the area to be detected; determining a region to be filled according to the size and the number of the images; and filling the acquired images into the area to be filled in sequence to obtain the image of the area to be detected.
It should be noted that, for details that are not disclosed in the apparatus for measuring an object property of an optical detection device according to the embodiments of the present invention, please refer to details that are disclosed in the method for measuring an object property of an optical detection device according to the above embodiments of the present invention, and detailed descriptions thereof are omitted here.
According to the device for measuring the object attribute, the first acquisition module is used for acquiring the target image of the area to be detected, the image processing module is used for processing the target image to acquire the measurement information of the target image, the storage module is used for storing the measurement information of the target image, and the calling module is used for calling the measurement information of the target image to automatically measure the current image when the current image is determined to be the same as the target image. Therefore, the device can acquire a complete target image of the area to be detected, process the target image, acquire and store the measurement information of the target image, and directly call the measurement information when the current image is the same as the target image, so that automatic detection is realized, the measurement period is effectively shortened, the measurement efficiency is improved, and the influence of measurement work on the production progress is avoided.
Corresponding to the above embodiments, the present invention also provides an optical detection apparatus.
Fig. 3 is a block diagram of an optical detection apparatus according to an embodiment of the present invention.
As shown in fig. 3, the optical inspection apparatus 100 according to an embodiment of the present invention may include: the memory 110, the processor 120, and the measurement program for object properties stored in the memory 110 and executable on the processor 120 implement the above-mentioned method for measuring object properties of an optical detection apparatus when the processor 120 executes the measurement program for object properties.
According to the optical detection equipment provided by the embodiment of the invention, when the processor executes the measurement program of the object attribute, the object attribute measurement method for the optical detection equipment is realized, so that automatic detection is realized, the measurement period is effectively shortened, the measurement efficiency is improved, and the influence of measurement work on the production progress is avoided.
The invention also provides a computer storage medium corresponding to the above embodiment.
The computer storage medium of the embodiment of the invention stores an object property measurement program thereon, and the object property measurement program is executed by a processor to realize the object property measurement method for the optical detection device.
According to the computer-readable storage medium of the embodiment of the invention, by executing the method for measuring the object attribute of the optical detection equipment, automatic detection is realized, the measurement period is effectively shortened, the measurement efficiency is improved, and the influence of measurement work on the production progress is avoided.
It should be noted that the logic and/or steps represented in the flowcharts or otherwise described herein, such as an ordered listing of executable instructions that can be considered to implement logical functions, can be embodied in any computer-readable medium for use by or in connection with an instruction execution system, apparatus, or device, such as a computer-based system, processor-containing system, or other system that can fetch the instructions from the instruction execution system, apparatus, or device and execute the instructions. For the purposes of this description, a "computer-readable medium" can be any means that can contain, store, communicate, propagate, or transport the program for use by or in connection with the instruction execution system, apparatus, or device. More specific examples (a non-exhaustive list) of the computer-readable medium would include the following: an electrical connection (electronic device) having one or more wires, a portable computer diskette (magnetic device), a Random Access Memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber device, and a portable compact disc read-only memory (CDROM). Additionally, the computer-readable medium could even be paper or another suitable medium upon which the program is printed, as the program can be electronically captured, via for instance optical scanning of the paper or other medium, then compiled, interpreted or otherwise processed in a suitable manner if necessary, and then stored in a computer memory.
It should be understood that portions of the present invention may be implemented in hardware, software, firmware, or a combination thereof. In the above embodiments, the various steps or methods may be implemented in software or firmware stored in memory and executed by a suitable instruction execution system. For example, if implemented in hardware, as in another embodiment, any one or combination of the following techniques, which are known in the art, may be used: a discrete logic circuit having a logic gate circuit for implementing a logic function on a data signal, an application specific integrated circuit having an appropriate combinational logic gate circuit, a Programmable Gate Array (PGA), a Field Programmable Gate Array (FPGA), or the like.
In the description herein, references to the description of the term "one embodiment," "some embodiments," "an example," "a specific example," or "some examples," etc., mean that a particular feature, structure, material, or characteristic described in connection with the embodiment or example is included in at least one embodiment or example of the invention. In this specification, the schematic representations of the terms used above do not necessarily refer to the same embodiment or example. Furthermore, the particular features, structures, materials, or characteristics described may be combined in any suitable manner in any one or more embodiments or examples.
Furthermore, the terms "first", "second" and "first" are used for descriptive purposes only and are not to be construed as indicating or implying relative importance or implicitly indicating the number of technical features indicated. Thus, a feature defined as "first" or "second" may explicitly or implicitly include at least one such feature. In the description of the present invention, "a plurality" means at least two, e.g., two, three, etc., unless specifically limited otherwise.
In the present invention, unless otherwise expressly stated or limited, the terms "mounted," "connected," "secured," and the like are to be construed broadly and can, for example, be fixedly connected, detachably connected, or integrally formed; can be mechanically or electrically connected; they may be directly connected or indirectly connected through intervening media, or they may be connected internally or in any other suitable relationship, unless expressly stated otherwise. The specific meanings of the above terms in the present invention can be understood by those skilled in the art according to specific situations.
Although embodiments of the present invention have been shown and described above, it is understood that the above embodiments are exemplary and should not be construed as limiting the present invention, and that variations, modifications, substitutions and alterations can be made to the above embodiments by those of ordinary skill in the art within the scope of the present invention.

Claims (9)

1. A method for measuring an object property for an optical inspection apparatus, comprising:
acquiring a target image of a to-be-detected area, wherein the target image is an image of one circuit board of N program-free circuit boards, the target image comprises a target object, and the N program-free circuit boards need to be repeatedly measured as same as the target object;
processing the target image to acquire measurement information of the target image and storing the measurement information of the target image;
when the subsequent measurement of N-1 circuit boards is carried out, the current image in the area to be detected is obtained;
when the current image is determined to be the same as the target image, calling the measurement information of the target image to automatically measure the current image; wherein when the object of the current image and the object image have the same object type, determining that the current image and the object image are the same;
wherein processing the target image to obtain measurement information of the target image comprises:
processing the target image to acquire basic information of a target object;
determining position information between other objects on the target image and the target object according to the basic information of the target object so as to obtain measurement information of the target image;
wherein, processing the target image to obtain the basic information of the target object comprises:
acquiring the object type of the target object;
and acquiring the edge information of the target object according to the object type so as to acquire the basic information of the target object.
2. The method of claim 1, wherein the object type comprises: the shape of the circle is that of the circle,
the obtaining of the edge information of the target object according to the object type to obtain the basic information of the target object includes:
acquiring the circle center and the radius of the target object;
acquiring an interesting area of the circle according to the circle center, the radius and a first preset tolerance;
acquiring an edge path of the circle according to the interesting area of the circle;
and acquiring basic information of the target object according to the edge path of the circle.
3. The method of claim 1, wherein the object type comprises: the length of the line segment is,
the obtaining of the edge information of the target object according to the object type to obtain the basic information of the target object includes:
acquiring the slope and the starting point of the target object;
acquiring an edge path of the line segment according to the slope, the starting point and a second preset tolerance;
and acquiring the basic information of the target object according to the edge path of the line segment.
4. The method of claim 1, wherein the object type comprises: the arc of a circle,
the obtaining of the edge information of the target object according to the object type to obtain the basic information of the target object includes:
acquiring the circle center, the radius, the starting point and the end point of the target object;
acquiring an interested area of the circular arc according to the circle center, the radius and a third preset tolerance;
acquiring an edge path of the circular arc according to the interesting area, the starting point and the end point of the circular arc;
and acquiring the basic information of the target object according to the edge path of the circular arc.
5. The method according to any one of claims 2 to 4, wherein the basic information comprises: at least one of position coordinates, diameter, length, slope, and line width; the location information includes: at least one of distance, angle, and intersection coordinates.
6. The method for measuring the object property of the optical inspection apparatus according to claim 1, wherein the acquiring the target image of the area to be inspected or the acquiring the current image of the area to be inspected comprises:
determining the size and the number of images to be acquired according to the area to be detected;
determining a region to be filled according to the size and the number of the images;
and filling the acquired images into the area to be filled in sequence to obtain a target image of the area to be filled or a current image of the area to be filled.
7. An apparatus for measuring an object property of an optical inspection device, comprising:
the first acquisition module is used for acquiring a target image of a to-be-detected area;
the image processing module is used for processing the target image to acquire the measurement information of the target image;
the storage module is used for storing the measurement information of the target image, the target image is an image of one circuit board in N program-free circuit boards, the target image comprises a target object, and the N program-free circuit boards are required to be repeatedly measured as the same as the target object;
the first acquisition module is further used for acquiring a current image in the area to be detected when the subsequent N-1 circuit boards are measured;
the calling module is used for calling the measurement information of the target image to automatically measure the current image when the current image is determined to be the same as the target image; wherein when the object of the current image and the object image have the same object type, determining that the current image and the object image are the same;
the image processing module is configured to process the target image to obtain measurement information of the target image, and specifically is configured to:
processing the target image to acquire basic information of a target object;
determining position information between other objects on the target image and the target object according to the basic information of the target object so as to obtain measurement information of the target image;
the image processing module is configured to process the target image to obtain basic information of a target object, and is specifically configured to:
acquiring the object type of the target object;
and acquiring the edge information of the target object according to the object type so as to acquire the basic information of the target object.
8. An optical inspection apparatus, comprising: a memory, a processor and a program for measuring an object property stored in the memory and executable on the processor, the processor implementing the method for measuring an object property for an optical inspection apparatus according to any one of claims 1 to 6 when executing the program for measuring an object property.
9. A computer-readable storage medium, on which an object property measurement program is stored, which when executed by a processor implements the object property measurement method for an optical detection apparatus according to any one of claims 1 to 6.
CN202110951754.5A 2021-08-19 2021-08-19 Optical detection equipment and method and device for measuring object attribute thereof Active CN113406093B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202110951754.5A CN113406093B (en) 2021-08-19 2021-08-19 Optical detection equipment and method and device for measuring object attribute thereof

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202110951754.5A CN113406093B (en) 2021-08-19 2021-08-19 Optical detection equipment and method and device for measuring object attribute thereof

Publications (2)

Publication Number Publication Date
CN113406093A CN113406093A (en) 2021-09-17
CN113406093B true CN113406093B (en) 2021-11-30

Family

ID=77688722

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202110951754.5A Active CN113406093B (en) 2021-08-19 2021-08-19 Optical detection equipment and method and device for measuring object attribute thereof

Country Status (1)

Country Link
CN (1) CN113406093B (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN116152210A (en) * 2022-06-20 2023-05-23 苏州康代智能科技股份有限公司 PCB defect correction method and circuit board manufacturing method

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101334263A (en) * 2008-07-22 2008-12-31 东南大学 Circular target circular center positioning method
CN105738792A (en) * 2016-02-01 2016-07-06 北京鼎汉技术股份有限公司 PCBA test device and test method
CN106803249A (en) * 2016-12-19 2017-06-06 广州视源电子科技股份有限公司 Method and system for highlighting electronic device in card diagram
CN106950487A (en) * 2017-03-02 2017-07-14 广州视源电子科技股份有限公司 Board card detection method and device
CN109357630A (en) * 2018-10-30 2019-02-19 南京工业大学 Multi-type workpiece batch vision measurement system and method
CN110349199A (en) * 2019-06-25 2019-10-18 杭州汇萃智能科技有限公司 A kind of object roundness measurement method

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101334263A (en) * 2008-07-22 2008-12-31 东南大学 Circular target circular center positioning method
CN105738792A (en) * 2016-02-01 2016-07-06 北京鼎汉技术股份有限公司 PCBA test device and test method
CN106803249A (en) * 2016-12-19 2017-06-06 广州视源电子科技股份有限公司 Method and system for highlighting electronic device in card diagram
CN106950487A (en) * 2017-03-02 2017-07-14 广州视源电子科技股份有限公司 Board card detection method and device
CN109357630A (en) * 2018-10-30 2019-02-19 南京工业大学 Multi-type workpiece batch vision measurement system and method
CN110349199A (en) * 2019-06-25 2019-10-18 杭州汇萃智能科技有限公司 A kind of object roundness measurement method

Also Published As

Publication number Publication date
CN113406093A (en) 2021-09-17

Similar Documents

Publication Publication Date Title
JP5953842B2 (en) Image inspection method and inspection area setting method
JPH06103165B2 (en) How to measure the height of circuit elements on a board
CN113406093B (en) Optical detection equipment and method and device for measuring object attribute thereof
CN113310997A (en) PCB defect confirmation method and device, automatic optical detection equipment and storage medium
JP2013065809A (en) Inspection device, inspection method, and inspection program
CN112347292A (en) Defect labeling method and device
JP2000232299A (en) Method and device for recognizing part
US6807288B2 (en) Image processing apparatus, image processing method, and recording medium recording image processing program
CN115760805B (en) Positioning method for processing element surface depression based on visual touch sense
US8351709B2 (en) Projection height measuring method, projection height measuring apparatus and program
US11195294B2 (en) Image measurement method, image measurement program, image measurement device, and object manufacture method
JP4821647B2 (en) Electronic component terminal position detection method
JP2006208187A (en) Shape quality decision device and method
CN111145674B (en) Display panel detection method, electronic device and storage medium
JP7397100B2 (en) Work image analysis device, work image analysis method, and program
US5570298A (en) Dot pattern-examining apparatus
CN116843602B (en) Defect detection method and visual detection equipment
JP3043530B2 (en) Dot pattern inspection equipment
JPH05280932A (en) Measuring device of pin position of electronic component
CN115937273A (en) Image alignment method, system, recording medium, and computer program product
JP4466281B2 (en) Image measuring device and data creation device
US20240070849A1 (en) Method and apparatus for spot-checking visual inspection system
KR102005345B1 (en) An automobile junction box terminal vision inspection method using line scan camera
CN109697714B (en) Information detection method, equipment and computer storage medium
JP4150262B2 (en) Component recognition method and apparatus

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