Calibration method and device of automatic optical detection equipment, storage medium and equipment
By using calibration software and visual calibration interface in automatic optical detection equipment, error calibration is performed based on calibration point images, the problem of position deviation during device scanning is solved, detection accuracy is improved and calibration cost is reduced.
Patent Information
- Application Number
- CN202311302800.4
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2023-10-09
- Publication Date
- 2025-04-11
AI Technical Summary
During the scanning process of automatic optical detection equipment, due to hardware accuracy limitations, the actual coordinates of the camera's arrival position may be deviated from the set coordinates, resulting in a decrease in detection accuracy.
By installing calibration software in the automatic optical detection device, the calibration plate is transmitted to the detection area using the conveying track, the image acquisition device moves to the preset position of the calibration plate, displays the visual calibration interface, calibrates based on the acquired calibration point image, obtains the error value of the position coordinates, and performs calibration.
It reduces the position deviation during the movement of the image acquisition device, improves the detection accuracy of the automatic optical detection device, and does not require additional sensors or laser interferometers, which is low cost and simple to operate.
Smart Images

Figure CN119804314A_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the field of automatic optical detection equipment, and in particular to a calibration method, device, storage medium and equipment for automatic optical detection equipment. Background Art
[0002] Automatic Optic Inspection (AOI) is a device that detects common defects encountered in welding production based on optical principles.
[0003] When the automatic optical inspection equipment scans the circuit board, its camera usually moves along a set trajectory and takes pictures at the specified coordinates. Due to the limitation of hardware accuracy, there may be a certain deviation between the actual coordinates of the camera's actual arrival position and the set coordinates. As the number of scanning points increases, the deviation between the actual coordinates of the camera's arrival position and the set coordinates becomes larger and larger, affecting the detection accuracy of the automatic optical inspection equipment. Summary of the invention
[0004] The embodiments of the present application provide a calibration method, apparatus, storage medium and device for an automatic optical inspection device, which can improve the inspection accuracy of the automatic optical inspection device.
[0005] In a first aspect, an embodiment of the present application provides a calibration method for an automatic optical inspection device, wherein the automatic optical inspection device includes a conveying track and an image acquisition module, and calibration software is installed on the automatic optical inspection device, wherein the calibration software interface includes a board entry control button, a direction control button, and a calibration and compensation control button, and the method includes:
[0006] In response to a click instruction of a plate feed control button on the interface, the calibration plate is transported to a detection area of an automatic optical detection device by using the transport track;
[0007] In response to a click instruction of a direction control button on the interface, the image acquisition device is moved to a preset position of the calibration plate;
[0008] In response to a click instruction of a calibration and compensation control button on the interface, a visual calibration interface is displayed;
[0009] In response to a click instruction of a calibration control button on the visual calibration interface, calibration is performed based on the calibration point image acquired by the image acquisition device to obtain an error value of the position coordinates of the image acquisition device;
[0010] In response to a click instruction of a compensation control button on the visual calibration interface, the position coordinates of the image acquisition device are calibrated based on the error value.
[0011] In a second aspect, an embodiment of the present application provides a calibration device for an automatic optical inspection device, the automatic optical inspection device comprising a conveying track and an image acquisition module, the automatic optical inspection device being installed with calibration software, the calibration software interface comprising a board entry control button, a direction control button, and a calibration and compensation control button, the device comprising:
[0012] A board feeding module, used to respond to a click instruction of a board feeding control button on the interface, and to use the conveying track to transport the calibration board to the inspection area of the automatic optical inspection device;
[0013] A moving module, used to move the image acquisition device to a preset position of the calibration plate in response to a click instruction of a direction control button on the interface;
[0014] A display module, for displaying a visual calibration interface in response to a click instruction of a calibration and compensation control button on the interface;
[0015] an error value acquisition module, configured to respond to a click instruction of a calibration control button on the visual calibration interface, perform calibration based on the calibration point image acquired by the image acquisition device, and acquire an error value of the position coordinates of the image acquisition device;
[0016] The calibration module is used to calibrate the position coordinates of the image acquisition device based on the error value in response to a click instruction of a compensation control button on the visual calibration interface.
[0017] In a third aspect, an embodiment of the present application provides a computer-readable storage medium having a computer program stored thereon, which, when executed by a processor, implements the steps of a calibration method for an automatic optical inspection device as described in any one of the above.
[0018] In a fourth aspect, an embodiment of the present application provides an automatic optical inspection device, comprising a conveying track, an image acquisition device, a memory, a processor, and a computer program stored in the memory and executable by the processor; the conveying track and the image acquisition device are respectively connected to the processor;
[0019] When the processor executes the computer program, the steps of the calibration method of the automatic optical inspection device as described in any one of the above are implemented.
[0020] In an embodiment of the present application, by responding to a click instruction of a board entry control button on an interface, the calibration plate is transferred to the detection area of the optical detection equipment by using a conveyor track, responding to a click instruction of a direction control button on the interface, the image acquisition device is moved to a preset position of the calibration plate, responding to a click instruction of a calibration and compensation control button on the interface, a visual calibration interface is displayed, and according to a click instruction of a calibration control button on the visual calibration interface, calibration is performed based on the calibration point image acquired by the image acquisition device to obtain an error value of the position coordinates of the image acquisition device, and responding to a click instruction of a compensation control button on the visual calibration interface, the position coordinates of the image acquisition device are calibrated based on the error value. The present application can reduce the position deviation caused by the movement of the image acquisition device and improve the detection accuracy of the automatic optical detection equipment.
[0021] For better understanding and implementation, the present invention is described in detail below with reference to the accompanying drawings. BRIEF DESCRIPTION OF THE DRAWINGS
[0022] Figure 1 A flowchart of a calibration method for an automatic optical inspection device according to an embodiment of the present invention;
[0023] Figure 2 A schematic diagram of a calibration plate in one embodiment of the present invention;
[0024] Figure 3 is a flowchart of step S140 in one embodiment of the present invention;
[0025] Figure 4 is a schematic diagram of a visual calibration interface in one embodiment of the present invention;
[0026] Figure 5 is a flowchart of step S142 in one embodiment of the present invention;
[0027] Figure 6 is a flowchart of step S140 in another embodiment of the present invention;
[0028] Figure 7 is a flow chart of step S150 in another embodiment of the present invention;
[0029] Figure 8 A schematic diagram of the structure of a calibration device for automatic optical inspection equipment according to an embodiment of the present invention;
[0030] Fig. 9 It is a schematic structural diagram of an automatic optical detection device in one embodiment of the present invention. DETAILED DESCRIPTION
[0031] In order to make the objectives, technical solutions and advantages of the present application more clear, the embodiments of the present application will be further described in detail below with reference to the accompanying drawings.
[0032] It should be clear that the described embodiments are only part of the embodiments of the present application, not all of the embodiments. Based on the embodiments in the present application, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the embodiments of the present application.
[0033] The terms used in the embodiments of the present application are only for the purpose of describing specific embodiments, and are not intended to limit the embodiments of the present application. The singular forms of "a", "said" and "the" used in the embodiments of the present application and the appended claims are also intended to include plural forms, unless the context clearly indicates other meanings. It should also be understood that the term "and / or" used herein refers to and includes any or all possible combinations of one or more associated listed items.
[0034] When the following description refers to the drawings, unless otherwise indicated, the same numbers in different drawings represent the same or similar elements. The embodiments described in the following exemplary embodiments do not represent all embodiments consistent with the present application. On the contrary, they are merely examples of devices and methods consistent with some aspects of the present application as detailed in the attached claims. In the description of the present application, it should be understood that the terms "first", "second", "third", etc. are only used to distinguish similar objects, and do not have to be used to describe a specific order or sequence, nor can they be understood as indicating or implying relative importance. For those of ordinary skill in the art, the specific meanings of the above terms in the present application can be understood according to the specific circumstances.
[0035] In addition, in the description of this application, unless otherwise specified, "several" means two or more. "And / or" describes the association relationship of associated objects, indicating that three relationships may exist. For example, A and / or B can mean: A exists alone, A and B exist at the same time, and B exists alone. The character " / " generally indicates that the associated objects are in an "or" relationship.
[0036] The existing calibration method of automatic optical inspection equipment usually uses a laser interferometer that is assumed to be outside the automatic optical inspection equipment to measure the movement error of the image acquisition device, and calibrates the image acquisition device according to the measured error. This method requires the installation of an additional laser interferometer, and the calibration accuracy is easily affected by the calibration operation. If there is a slight operational error, recalibration is required, which is inconvenient.
[0037] Therefore, in response to the above problems, an embodiment of the present application provides a calibration method for an automatic optical inspection device. The calibration method for an automatic optical inspection device can be applied in an automatic optical inspection device. The automatic optical inspection device is provided with an image acquisition device for acquiring images of components to be inspected, such as a camera or other equipment. The automatic optical inspection device can be used to detect mounting errors or welding defects of components to be inspected, and when there are defects on the components to be inspected, the defect locations are marked on a display device for maintenance personnel to repair and handle related defects, thereby improving production efficiency and maintenance efficiency.
[0038] Specifically, when the automatic optical inspection equipment is detecting welding defects of the component to be inspected, it can collect the solder point parameters of the solder point of the component to be inspected and compare them with the qualified solder point parameters in the database to check whether there are welding defects such as insufficient solder on the pad, excessive solder on the pad, and the presence of solder bridges between pads on the component to be inspected. When there are welding defects on the component to be inspected, the location of the welding defect (such as the location of the solder point) will be marked on the display device for maintenance personnel to repair and handle the relevant defects, thereby improving the welding quality of the component to be inspected.
[0039] The present application can realize the calibration of the motion error of the camera of the automatic optical inspection equipment and improve the inspection accuracy of the automatic optical inspection equipment.
[0040] The automatic optical inspection device of the present application may include a conveying track and an image acquisition module. The automatic optical inspection device is installed with calibration software for calibrating the automatic optical inspection device. The calibration software interface includes a board entry control button, a direction control button, and a calibration and compensation control button.
[0041] The conveyor track can be a track with automatic conveying function such as a conveyor belt, and the conveyor track is used to transfer objects in the track to a designated area, so as to facilitate the automatic optical detection equipment to detect the objects. In the present application, the designated area can be the detection area of the optical detection equipment. The conveyor track can be used to transfer objects such as calibration plates or components to be detected.
[0042] The image acquisition module is used to acquire images of the calibration plate. In the embodiment of the present application, the image acquisition module is used to acquire images of calibration points on the calibration plate.
[0043] See also Figure 1 The calibration method of the automatic optical detection device provided in this application specifically includes the following steps:
[0044] S110: In response to a click instruction of a plate feed control button on the interface, the calibration plate is transported to a detection area of an automatic optical detection device by using the transport track;
[0045] The calibration plate may include one or more calibration points. When the calibration plate includes multiple calibration points, the spacing distances between the calibration points may be the same or different. The size of the calibration plate, the number, shape and spacing distance of the calibration points may be specifically set according to the size, shooting range, calibration requirements, etc. of the automatic optical inspection equipment.
[0046] Preferably, the calibration plate may include m*n calibration points, and the calibration points are arranged in an array of m rows and n columns on the calibration plate. The intervals between the calibration points are the same and the shapes of the calibration points are regular polygons, which makes it easier to plan the motion trajectory of the image acquisition device and to move the image acquisition device to acquire the calibration point images of each calibration point.
[0047] like Figure 2 As shown, in an embodiment of the present application, the calibration plate can be a plate with a white background and neatly arranged dots with a fixed spacing. The calibration points are the black dots shown in the figure, and the calibration plate includes 7*7 dots arranged in an array.
[0048] The detection area may be a shooting area of an image acquisition device of the automatic optical detection device. When the calibration plate is located in the detection area, the automatic optical detection device may detect the calibration plate in the area.
[0049] In the present application, according to the user's click instruction on the board input control button, the conveyor track is controlled to automatically transfer the calibration plate to the detection area of the automatic optical inspection equipment, thereby facilitating the automatic optical inspection equipment to detect the calibration plate.
[0050] S120: In response to a click instruction of a direction control button on the interface, move the image acquisition device to a preset position of the calibration plate;
[0051] The preset position may correspond to the position of a calibration point on the calibration board. In the embodiment of the present application, the image acquisition device may be moved to the preset position corresponding to the first calibration point on the calibration board. When the image acquisition device is located at the preset position, the lens center of the image acquisition device coincides with the center of the first calibration point. The first calibration point is the first calibration point on the calibration board. The first calibration point can be set according to user needs. For example, the present application can be set to the first calibration point in the lower right corner of the calibration board.
[0052] S130: In response to a click instruction of a calibration and compensation control button on the interface, displaying a visual calibration interface;
[0053] The visual calibration interface may include a calibration control button and a compensation control button. The calibration control button may be used to obtain the error of the calibration point, and the compensation control button may be used to calibrate the position of the calibration point.
[0054] S140: In response to a click instruction of a calibration control button on the visual calibration interface, calibration is performed based on the calibration point image acquired by the image acquisition device to obtain an error value of the position coordinates of the image acquisition device;
[0055] The calibration point image may be an image obtained by an image acquisition device of the automatic optical inspection equipment photographing a calibration point on the calibration plate.
[0056] Calibration is a method of obtaining certain parameters of the image acquisition device by establishing a correspondence between points with known coordinates on the calibration object and image points using a certain algorithm.
[0057] When calibrating the automatic optical inspection equipment, the image acquisition device of the automatic optical inspection equipment can be controlled to scan in rows or columns. Under ideal scanning conditions, the lens center of the image acquisition device should coincide with the calibration point. When the calibration point is a circle, the lens center of the image acquisition device coincides with the center of the calibration point. However, in actual application, due to mechanical errors, there is a slight deviation between the lens center of the image acquisition device and the calibration point during scanning, and as the image acquisition device moves, the deviation value between the lens center of the image acquisition device and the calibration point becomes larger and larger, affecting the detection accuracy of the automatic optical inspection equipment.
[0058] Therefore, in the present application, calibration is performed based on the calibration point image captured by the image acquisition device, the error value of the position coordinates of the image acquisition device is obtained, and the position coordinates of the image acquisition device are calibrated according to the error value.
[0059] Specifically, when obtaining the error value, it can be calculated based on the position information of the calibration point of the calibration point image and the position information of the actual calibration point, or, in another embodiment, the error value can also be calculated based on the center point coordinates of the center point of the calibration point image and the calibration point coordinates of the calibration point.
[0060] S150: In response to a click instruction of a compensation control button on the visual calibration interface, calibrate the position coordinates of the image acquisition device based on the error value.
[0061] Specifically, the compensation value of the image acquisition device can be calculated according to the error value, and the position of the image acquisition device can be adjusted according to the compensation value and the position coordinates of the image acquisition device, thereby achieving calibration of the position coordinates of the image acquisition device.
[0062] In an embodiment of the present application, by responding to a click instruction of a board entry control button on an interface, the calibration plate is transferred to the detection area of the optical detection equipment by using a conveyor track, responding to a click instruction of a direction control button on the interface, the image acquisition device is moved to a preset position of the calibration plate, responding to a click instruction of a calibration and compensation control button on the interface, a visual calibration interface is displayed, and according to a click instruction of a calibration control button on the visual calibration interface, calibration is performed based on the calibration point image acquired by the image acquisition device to obtain an error value of the position coordinates of the image acquisition device, and responding to a click instruction of a compensation control button on the visual calibration interface, the position coordinates of the image acquisition device are calibrated based on the error value. The present application can reduce the position deviation caused by the movement of the image acquisition device and improve the detection accuracy of the automatic optical detection equipment.
[0063] In step S140, the calibration point image may be obtained by controlling the automatic optical detection device to scan the calibration points on the calibration plate according to the calibration instruction of the user.
[0064] like Figure 3 As shown, before obtaining the error value of the position coordinates of the image acquisition device, the following steps are also included:
[0065] S141: receiving input of calibration information on the visual calibration interface;
[0066] S142: Controlling the automatic optical inspection device to scan the calibration points of the calibration plate according to the calibration information to obtain an image of the calibration points.
[0067] When the automatic optical inspection device scans the calibration points on the calibration plate, it can control the image acquisition device of the automatic optical inspection device to move a distance d each time, so that the lens center of the image acquisition device coincides with the circle of the next calibration point to obtain the calibration point image, where d can be the interval distance between the calibration points.
[0068] Preferably, before receiving the calibration information input by the user, a prompt message can be displayed on the visual calibration interface to prompt the user to input the corresponding calibration information in time. The visual calibration interface can be displayed on the display screen of the automatic optical inspection device, or on an external display device such as a laptop computer connected to the automatic optical inspection device.
[0069] like Figure 4 As shown, the visual calibration interface displays a prompt message 101 of "Please enter calibration information" and multiple information input boxes 102, and the information input boxes 102 are used for the user to input calibration information such as the number, radius and interval distance of calibration points.
[0070] The calibration information can be used to control the automatic optical inspection equipment to scan the calibration points on the calibration plate.
[0071] In the embodiment of the present application, the calibration points may be circular points of radius r with the same interval distance, and the interval distance between each calibration point may refer to the circular distance between adjacent circular points.
[0072] After receiving the calibration information input by the user, the image acquisition device of the automatic optical detection device is controlled according to the calibration information to scan each calibration point on the calibration plate to obtain a plurality of calibration point images.
[0073] Specifically, Figure 5 As shown, the step of controlling the automatic optical detection device to scan the calibration plate according to the calibration information specifically includes:
[0074] S142a: Control the lens center of the image acquisition device to coincide with the center of the first calibration point of the calibration plate, take the current position of the image acquisition device as the initial position, and obtain a calibration point image corresponding to the first calibration point;
[0075] S142b: Starting from the initial position, controlling the image acquisition device to move according to the calibration information to acquire a calibration point image corresponding to a next calibration point, until the calibration point images of all calibration points on the calibration plate are acquired;
[0076] When the calibration point is a circle with a radius of r, and the interval distances between adjacent calibration points are the same, the distance that the image acquisition device moves each time can be controlled according to the radius and the interval distance, so that the lens center of the image acquisition device can be aligned with the next calibration point, that is, the lens center of the image acquisition device coincides with the center of the circle of the next calibration point, thereby facilitating the acquisition of reliable calibration point images.
[0077] like Figure 6 As shown, the step of obtaining the error value of the position coordinates of the image acquisition device includes:
[0078] S143: Acquire the calibration point image and the position coordinates of the image acquisition device when acquiring the calibration point image;
[0079] S144: Acquire the center point coordinates of the center point of the calibration point image and the calibration point coordinates of the calibration point, and acquire the error value of the position coordinates of the image acquisition device based on the center point coordinates and the calibration point coordinates.
[0080] The center point coordinates may be the coordinates of the center point of the calibration point image, and based on the center point coordinates, the coordinates of the center point of the lens of the image acquisition device may be determined.
[0081] The error value may be the difference between the center point coordinates and the calibration point coordinates.
[0082] In the present application, as the number of calibration points scanned by the automatic optical detection equipment increases, the distance moved by the image acquisition device gradually increases, and the error will continue to accumulate. The error value between the center point coordinates and the calibration point coordinates in the later calibration point images may be larger. Therefore, the present application calibrates the position coordinates of the image acquisition device according to the error value between the center point coordinates and the calibration point coordinates in the calibration point image, thereby improving the movement accuracy of the image acquisition device.
[0083] In step S140, after the automatic optical inspection device scans the calibration plate, a plurality of error values obtained may be recorded and a corresponding error statistics table may be formed.
[0084] When calibrating the position coordinates of the image acquisition device, the position coordinates may be calibrated by calculating a compensation value corresponding to a mechanical deviation generated when the image acquisition device moves, and based on the compensation value and the original position coordinates of the image acquisition device.
[0085] Alternatively, an error compensation function may be constructed and fitted according to the data in the error statistics table, and the error compensation function may be used to calibrate the position coordinates of the image acquisition device.
[0086] like Figure 7 As shown, in one embodiment, the step of calibrating the position coordinates of the image acquisition device based on the error value specifically includes:
[0087] S151: constructing an error compensation function of the automatic optical inspection device based on the position coordinates of the image acquisition device and the error value;
[0088] The error compensation function can be used to calculate the error value that needs to be compensated when the image acquisition device moves to a certain position coordinate; the error compensation function can be used to calculate the compensation value corresponding to the mechanical deviation generated when the image acquisition device moves.
[0089] Specifically, the error compensation function can be constructed by linearly fitting each position coordinate and its corresponding error value. In the present application, the error compensation function of the automatic optical detection device is constructed with the position coordinate of the image acquisition device as the independent variable and the error value as the dependent variable.
[0090] S152: Calibrate the position coordinates of the image acquisition device based on the error compensation function.
[0091] When calibrating the position coordinates of the image acquisition device, a compensation value can be obtained based on the error compensation function, and accurate position coordinates can be obtained according to the compensation value and the position coordinates of the image acquisition device, thereby reducing the motion error of the image acquisition device and improving the detection accuracy of the automatic optical detection equipment.
[0092] In the present application, the compensation value may be the error value directly, or may be the sum of the error value and a value preset by the user.
[0093] In an embodiment of the present application, the center point coordinates and the calibration point coordinates are obtained based on a number of calibration point images obtained after the automatic optical detection equipment scans the calibration plate, and the error values of the center point coordinates and the calibration point coordinates are calculated. The error compensation function of the automatic optical detection equipment is constructed based on the position coordinates of the image acquisition device when the calibration point images are obtained and the error values. The position coordinates of the image acquisition device can be compensated according to the error compensation function, thereby realizing the calibration of the position coordinates of the image acquisition device, reducing the position deviation of the image acquisition device during the movement process, and improving the detection accuracy of the automatic optical detection equipment.
[0094] In one embodiment, the error compensation function includes a first error compensation function and a second error compensation function, the first error compensation function is used to obtain a first compensation value of the image acquisition device in the x direction, and the second error compensation function is used to obtain a second compensation value of the image acquisition device in the y direction;
[0095] The step of calibrating the position coordinates of the image acquisition device based on the error compensation function specifically includes:
[0096] Acquire a first compensation value based on the first error compensation function, and acquire a second compensation value based on the second error compensation function;
[0097] The position coordinates are updated based on the first compensation value and the second compensation value, and the position of the image acquisition device is determined according to the updated position coordinates.
[0098] Specifically, the plane where the calibration plate is located can be used as the xy plane to construct a plane coordinate system to obtain the position coordinates of the image acquisition device, the coordinates of the calibration point, and the center point coordinates of the lens center.
[0099] The position coordinates of the image acquisition device are (x, y). The first compensation value obtained according to the first error compensation function is x1, and the second compensation value obtained according to the second error compensation function is y1. Based on the first compensation value, the second compensation value and the position coordinates, the updated position coordinates can be obtained as (x+x1, y+y1).
[0100] Each time the image acquisition device moves, the above steps may be performed to perform error compensation on the position of the image acquisition device, thereby reducing position deviation during the movement process.
[0101] The calibration method of the automatic optical detection equipment of the present application does not require additional sensors or laser interferometers, has low calibration cost, simple calibration operation, fast calibration speed and calibration accuracy within 10 microns, which can effectively improve the detection accuracy of the automatic optical detection equipment.
[0102] See also Figure 8 The present application also provides a calibration device for an automatic optical inspection device, the automatic optical inspection device includes a conveying track and an image acquisition module, the automatic optical inspection device is installed with calibration software, the calibration software interface includes a board entry control button, a direction control button and a calibration and compensation control button, the device includes:
[0103] The board feeding module 201 is used to respond to a click instruction of a board feeding control button on the interface and use the conveying track to transport the calibration board to the inspection area of the automatic optical inspection device;
[0104] A moving module 202, for moving the image acquisition device to a preset position of the calibration plate in response to a click instruction of a direction control button on the interface;
[0105] A display module 203, for displaying a visual calibration interface in response to a click instruction of a calibration and compensation control button on the interface;
[0106] The error value acquisition module 204 is used to respond to a click instruction of a calibration control button on the visual calibration interface, perform calibration based on the calibration point image acquired by the image acquisition device, and acquire the error value of the position coordinate of the image acquisition device;
[0107] The calibration module 205 is used to calibrate the position coordinates of the image acquisition device based on the error value in response to a click instruction of a compensation control button on the visual calibration interface.
[0108] It should be noted that the calibration device for the automatic optical detection device provided in the above embodiment only uses the division of the above functional modules as an example when executing the calibration method for the automatic optical detection device. In actual applications, the above functions can be assigned to different functional modules as needed, that is, the internal structure of the device can be divided into different functional modules to complete all or part of the functions described above. In addition, the calibration device for the automatic optical detection device provided in the above embodiment and the calibration method for the automatic optical detection device in the above embodiment belong to the same concept. The implementation process is detailed in the method embodiment and will not be repeated here.
[0109] The present application also provides a computer-readable storage medium having a computer program stored thereon, and when the computer program is executed by a processor, the steps of the calibration method for the automatic optical inspection device as described in any one of the above are implemented.
[0110] The present application may take the form of a computer program product implemented on one or more storage media (including but not limited to disk storage, CD-ROM, optical storage, etc.) containing program code. Computer-readable storage media include permanent and non-permanent, removable and non-removable media, and information storage can be achieved by any method or technology. Information can be computer-readable instructions, data structures, modules of programs, or other data. Examples of computer storage media include but are not limited to: phase change memory (PRAM), static random access memory (SRAM), dynamic random access memory (DRAM), other types of random access memory (RAM), read-only memory (ROM), electrically erasable programmable read-only memory (EEPROM), flash memory or other memory technology, read-only compact disk read-only memory (CD-ROM), digital versatile disk (DVD) or other optical storage, magnetic cassettes, tape disk storage or other magnetic storage devices or any other non-transmission media that can be used to store information that can be accessed by a computing device.
[0111] See also Fig. 9 , the present application also provides an automatic optical inspection device 300, comprising a conveying track 301, an image acquisition device 302, a memory 303, a processor 304, and a computer program stored in the memory 303 and executable by the processor 304; the conveying track 301 and the image acquisition device 302 are respectively connected to the processor 304;
[0112] The conveying track 301 is used to transport objects in the track to the detection area of the automatic optical detection equipment. In the present application, the objects in the track can be calibration plates.
[0113] The image acquisition device 302 is used to acquire an image of an object. In the present application, the image acquisition device 302 may be specifically used to acquire an image of a calibration point on a calibration plate.
[0114] The present invention is not limited to the above-mentioned embodiments. If various changes or modifications to the present invention do not depart from the spirit and scope of the present invention, and if these changes and modifications fall within the scope of the claims and equivalent technologies of the present invention, the present invention is also intended to include these changes and modifications.
Claims
1. A calibration method for an automatic optical inspection device, characterized in that: The automatic optical inspection device includes a conveying track and an image acquisition module. The automatic optical inspection device is installed with calibration software. The calibration software interface includes a board entry control button, a direction control button, and a calibration and compensation control button. The method includes: In response to a click instruction of a plate feed control button on the interface, the calibration plate is transported to a detection area of an automatic optical detection device by using the transport track; In response to a click instruction of a direction control button on the interface, the image acquisition device is moved to a preset position of the calibration plate; In response to a click instruction of a calibration and compensation control button on the interface, a visual calibration interface is displayed; In response to a click instruction of a calibration control button on the visual calibration interface, calibration is performed based on the calibration point image acquired by the image acquisition device to obtain an error value of the position coordinates of the image acquisition device; In response to a click instruction of a compensation control button on the visual calibration interface, the position coordinates of the image acquisition device are calibrated based on the error value.
2. The calibration method of the automatic optical inspection equipment according to claim 1, characterized in that: The step of obtaining the error value of the position coordinates of the image acquisition device includes: Acquire the calibration point image and the position coordinates of the image acquisition device when acquiring the calibration point image; The center point coordinates of the center point of the calibration point image and the calibration point coordinates of the calibration point are obtained, and the error value of the position coordinates of the image acquisition device is obtained based on the center point coordinates and the calibration point coordinates.
3. The calibration method of the automatic optical inspection equipment according to claim 2, characterized in that: The step of calibrating the position coordinates of the image acquisition device based on the error value specifically includes: constructing an error compensation function of the automatic optical detection device based on the position coordinates of the image acquisition device and the error value; The position coordinates of the image acquisition device are calibrated based on the error compensation function.
4. The calibration method of the automatic optical inspection equipment according to claim 3, characterized in that: The error compensation function includes a first error compensation function and a second error compensation function, the first error compensation function is used to obtain a first compensation value of the image acquisition device in the x direction, and the second error compensation function is used to obtain a second compensation value of the image acquisition device in the y direction; The step of calibrating the position coordinates of the image acquisition device based on the error compensation function specifically includes: Acquire a first compensation value based on the first error compensation function, and acquire a second compensation value based on the second error compensation function; The position coordinates are updated based on the first compensation value and the second compensation value, and the position of the image acquisition device is determined according to the updated position coordinates.
5. The calibration method of the automatic optical inspection equipment according to claim 2, characterized in that: Before obtaining the error value of the position coordinates of the image acquisition device, the following steps are also included: Receiving input of calibration information on the visual calibration interface; According to the calibration information, the automatic optical detection equipment is controlled to scan the calibration plate to obtain the calibration point image.
6. The calibration method of the automatic optical inspection equipment according to claim 5, characterized in that: The step of controlling the automatic optical inspection device to scan the calibration plate according to the calibration information specifically includes: Control the lens center of the image acquisition device to coincide with the center of the first calibration point of the calibration plate, take the current position of the image acquisition device as the initial position, and obtain the calibration point image corresponding to the first calibration point; Starting from the initial position, the image acquisition device is controlled to move according to the calibration information to obtain a calibration point image corresponding to the next calibration point, until the calibration point images of all calibration points on the calibration plate are obtained.
7. The calibration method of the automatic optical inspection equipment according to claim 3, characterized in that: The step of constructing the error compensation function of the automatic optical detection device comprises: The error compensation function of the automatic optical detection device is constructed by taking the position coordinates of the image acquisition device as an independent variable and the error value as a dependent variable.
8. A calibration device for an automatic optical inspection device, characterized in that: The automatic optical inspection device includes a conveying track and an image acquisition module. The automatic optical inspection device is installed with calibration software. The calibration software interface includes a board entry control button, a direction control button, and a calibration and compensation control button. The device includes: A board feeding module, used to respond to a click instruction of a board feeding control button on the interface, and to use the conveying track to transport the calibration board to the inspection area of the automatic optical inspection device; A moving module, used to move the image acquisition device to a preset position of the calibration plate in response to a click instruction of a direction control button on the interface; A display module, for displaying a visual calibration interface in response to a click instruction of a calibration and compensation control button on the interface; an error value acquisition module, configured to respond to a click instruction of a calibration control button on the visual calibration interface, perform calibration based on the calibration point image acquired by the image acquisition device, and acquire an error value of the position coordinates of the image acquisition device; The calibration module is used to calibrate the position coordinates of the image acquisition device based on the error value in response to a click instruction of a compensation control button on the visual calibration interface.
9. A computer-readable storage medium having a computer program stored thereon, characterized in that: When the computer program is executed by a processor, the steps of the calibration method of the automatic optical inspection device as described in any one of claims 1 to 7 are implemented.
10. An automatic optical inspection device, characterized in that: The invention comprises a conveying track, an image acquisition device, a memory, a processor, and a computer program stored in the memory and executable by the processor; the conveying track and the image acquisition device are respectively connected to the processor; When the processor executes the computer program, the steps of the calibration method of the automatic optical inspection device according to any one of claims 1 to 7 are implemented.
Citation Information
Patent Citations
Compensating method for detection equipment
CN105928946A
Calibration method and device, equipment and storage medium
CN115100299A
Calibration method and apparatus for distance measurement device and camera fusion system
WO2022262332A1