Correction method and system for image acquisition of linear array AOI detection system

By obtaining the target image of the standard graphic slice, determining the actual and theoretical coordinates of its marking points, and fitting to find the correction equation, the problem of poor overall image correction effect of the linear array AOI detection system is solved, and higher detection accuracy is achieved and image flatness.

CN118883582APending Publication Date: 2024-11-01ANGKUN VISION (BEIJING) TECH CO LTD +1
View PDF 0 Cites 2 Cited by

Patent Information

Application Number
CN202410853494.1
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-06-28
Publication Date
2024-11-01

AI Technical Summary

Technical Problem

When the existing linear array AOI detection system is taking pictures, using checkerboards or circular targets to correct image correction can only correct part of the camera's field of view. The overall image correction effect is poor and is greatly affected by the stage and the camera and target positions.

Method used

By obtaining the target image in the standard graphics sheet, determining the actual and theoretical coordinates of its marking points, fitting and finding the coefficients of the correction equation, and calibrating the subsequently collected images by using the fitting equations, compatible with the unstable factors of the system, improving the Detection accuracy.

Benefits of technology

Effectively correcting the overall image, improving the detection accuracy of the linear array AOI detection system, reducing stitching errors, and enhancing the flatness of the image.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118883582A_ABST
    Figure CN118883582A_ABST
Patent Text Reader

Abstract

The invention provides a correction method and system for image acquisition of a linear array AOI detection system, and the method comprises the steps: obtaining a standard pattern sheet and a target image of a preset region in the standard pattern sheet, and determining the actual coordinates of a mark point of each target image in the preset region; obtaining a standard optical resolution according to the number of pixels occupied by the gauge block with the standard size in a camera imaging image; imaging the standard graphic sheet by using a camera, determining a pixel number corresponding to each target image, and multiplying the pixel number by a standard optical resolution to obtain a theoretical coordinate of a mark point of each target image in the preset area; according to the actual coordinate and the theoretical coordinate, fitting to obtain a coefficient of a correction equation; the coefficient is substituted into the equation to obtain a fitting coordinate, the precision of the fitting equation is analyzed according to a residual error, a target fitting equation is determined according to the precision, and the residual error is obtained by subtracting the fitting coordinate from the theoretical coordinate; and a target fitting equation is adopted to calibrate subsequent images, so that the whole image is effectively corrected.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention belongs to the technical field of correction for image acquisition of a linear array AOI detection system, and in particular relates to a correction method and system for image acquisition of a linear array AOI detection system. Background Art

[0002] The linear array AOI (Automated Optical Inspection) inspection system mainly includes: camera, lens, holder platform, stage motion system, among which the camera rotation and offset, lens distortion, stage surface inclination, stage height error, flatness and straightness in the stageX direction, flatness and straightness in the stageY direction, verticality of stageX and stageY, etc. will affect the final image. In addition, in the current AOI inspection, a sample usually needs to collect hundreds or thousands of pictures for stitching. The errors of the above hardware will cause inconsistent deformation of the puzzle image, resulting in stitching errors.

[0003] The common image correction method is to use a universal checkerboard or circular target for correction. The method of using a universal distortion correction target is more effective for area array imaging correction, but line array imaging is greatly affected by the interference of the stage and the relative position of the camera and the target. Using a universal target correction can only correct a part of the camera's field of view, and the correction effect on the overall image is average. Summary of the invention

[0004] Based on this, an embodiment of the present invention provides a correction method and system for linear array AOI detection system image acquisition to solve the problem in the prior art that when a checkerboard or circular target is used for image correction, only a part of the camera field of view can be corrected, and the correction effect on the overall image is general.

[0005] A first aspect of an embodiment of the present invention provides a method for correcting image acquisition of a linear array AOI detection system, the method comprising:

[0006] Obtaining a standard graphic piece, and obtaining a target image of a preset area in the standard graphic piece, and determining the actual coordinates of the marking points of each target image in the preset area;

[0007] The standard optical resolution is obtained based on the number of pixels that a standard-sized block occupies in the camera imaging image;

[0008] Using a camera to image the standard graphic sheet, determining the number of pixels corresponding to each target image, and multiplying the number of pixels by the standard optical resolution to obtain the theoretical coordinates of the marking points of each target image in the preset area;

[0009] According to the actual coordinates and the theoretical coordinates, fitting and obtaining the coefficients of the correction equation;

[0010] Substituting the coefficients into the equation to obtain fitting coordinates, analyzing the accuracy of the fitting equation according to the residual, and determining the target fitting equation according to the accuracy, wherein the residual is the theoretical coordinates minus the fitting coordinates;

[0011] The target fitting equation is used to calibrate the image collected by the subsequent linear array AOI detection system.

[0012] Furthermore, in the step of fitting and obtaining the coefficients of the correction equation according to the actual coordinates and the theoretical coordinates, the expression of the coefficients is:

[0013]

[0014] Among them, u represents the horizontal coordinate after correction, v represents the vertical coordinate after correction, and c ij The correction matrix represented as the horizontal axis, d ij The correction matrix represented as the ordinate, x i Represented as the horizontal coordinate of the i-th image, y j It represents the ordinate of the j-th image, i represents the i-th image imaged by the camera, and j represents the j-th image imaged by the camera.

[0015] Further, the step of substituting the coefficients into the equation to obtain the fitting coordinates, analyzing the accuracy of the fitting equation according to the residual, and determining the target fitting equation according to the accuracy, wherein the residual is the theoretical coordinates minus the fitting coordinates, comprises:

[0016] Step 1, substituting the coefficients into the equation to obtain the fitting coordinates, analyzing the accuracy of the fitting equation according to the residual, and judging whether the accuracy meets the preset value, wherein the residual is the theoretical coordinates minus the fitting coordinates;

[0017] Step 2: If the accuracy is determined to meet the preset value, a first fitting equation is determined, and a second fitting equation is determined according to the accuracy corresponding to the first fitting equation, and the second fitting equation is defined as the target fitting equation;

[0018] Step three: if the accuracy is not satisfied with the preset value, the equation is adjusted, and steps one to three are executed repeatedly until the accuracy is satisfied with the preset value, and the corresponding target fitting equation is determined.

[0019] Furthermore, the step of substituting the coefficients into the equation to obtain the fitting coordinates, analyzing the accuracy of the fitting equation according to the residual, and judging whether the accuracy meets the preset value includes:

[0020] Substituting the coefficients into the linear fitting regression equation, the binary multivariate polynomial fitting regression equation, the semi-logarithmic fitting regression equation and the Log-Log fitting regression equation in turn, and calculating the fitting coordinates, wherein the order in the binary multivariate polynomial fitting regression equation is a preset order;

[0021] The fitting coordinates are subtracted from the theoretical coordinates to obtain the accuracy, and it is determined whether the accuracy meets a preset value.

[0022] Furthermore, if the judgment accuracy does not meet the preset value, in the step of adjusting the equation, a preset number of times in the binary multivariate polynomial fitting regression equation is obtained, and the preset number is adjusted by adding one to it one by one.

[0023] Furthermore, the preset number of times is 5 times.

[0024] A second aspect of an embodiment of the present invention provides a correction system for image acquisition of a linear array AOI detection system, which is used to implement the correction method for image acquisition of a linear array AOI detection system described in the first aspect, and the system includes:

[0025] An acquisition module, used to acquire a standard graphic piece, and acquire a target image of a preset area in the standard graphic piece, and determine the actual coordinates of the marking points of each target image in the preset area;

[0026] A standard optical resolution acquisition module is used to obtain the standard optical resolution according to the number of pixels occupied by a standard-sized block in a camera imaging image;

[0027] A calculation module, used to image the standard graphic sheet using a camera, determine the number of pixels corresponding to each target image, and multiply the number of pixels by the standard optical resolution to obtain the theoretical coordinates of the marking points of each target image in the preset area;

[0028] A fitting module, used for fitting and obtaining coefficients of a correction equation according to the actual coordinates and the theoretical coordinates;

[0029] A target fitting equation determination module is used to substitute the coefficients into the equation to obtain fitting coordinates, analyze the accuracy of the fitting equation according to the residual, and determine the target fitting equation according to the accuracy, wherein the residual is the theoretical coordinate minus the fitting coordinate;

[0030] The calibration module is used to calibrate the image collected by the subsequent linear array AOI detection system using the target fitting equation.

[0031] A third aspect of an embodiment of the present invention provides a computer-readable storage medium having a computer program stored thereon, which, when executed by a processor, implements the correction method for linear array AOI detection system image acquisition provided in the first aspect.

[0032] A fourth aspect of an embodiment of the present invention provides an electronic device, comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein when the processor executes the program, the correction method for linear array AOI detection system image acquisition provided in the first aspect is implemented.

[0033] A correction method and system for linear array AOI detection system image acquisition provided in an embodiment of the present invention, the method obtains a standard graphic sheet and a target image of a preset area in the standard graphic sheet, determines the actual coordinates of the marking points of each target image in the preset area; obtains the standard optical resolution according to the number of pixels occupied by the standard size block in the camera imaging image; uses a camera to image the standard graphic sheet, determines the number of pixels corresponding to each target image, and multiplies the number of pixels by the standard optical resolution to obtain the theoretical coordinates of the marking points of each target image in the preset area; fits and obtains the coefficients of the correction equation according to the actual coordinates and the theoretical coordinates; substitutes the coefficients into the equation to obtain the fitting coordinates, analyzes the accuracy of the fitting equation according to the residual, and determines the target fitting equation according to the accuracy, wherein the residual is the theoretical coordinate minus the fitting coordinate; uses the target fitting equation to calibrate the image acquired by the linear array AOI detection system, specifically, various unstable factors of the system can be compatible by means of the fitting equation, the detection accuracy of the equipment is improved, and the overall image is effectively corrected. BRIEF DESCRIPTION OF THE DRAWINGS

[0034] Figure 1 It is a flow chart for realizing the correction method for the linear array AOI inspection system;

[0035] Figure 2 It is a schematic diagram of the preset area and target image in the standard graphic piece;

[0036] Figure 3 Schematic diagram of the pixel difference between the theoretical coordinates and the actual coordinates in the x direction;

[0037] Figure 4 Schematic diagram of the pixel difference between the theoretical coordinates and the actual coordinates in the y direction;

[0038] Figure 5 Schematic diagram of pixel position in the x direction before image correction;

[0039] Figure 6 Schematic diagram of pixel position in the y direction before image correction;

[0040] Figure 7 Schematic diagram of pixel position in the u direction after image correction;

[0041] Figure 8 Schematic diagram of pixel position in the v direction after image correction;

[0042] Fig. 9 A structural block diagram of a correction system for linear array AOI detection system image acquisition provided in the third embodiment of the present invention;

[0043] Fig.10 This is a structural block diagram of an electronic device provided in Embodiment 4 of the present invention. DETAILED DESCRIPTION

[0044] In order to facilitate the understanding of the present invention, the present invention will be described more fully below with reference to the relevant drawings. Several embodiments of the present invention are given in the drawings. However, the present invention can be implemented in many different forms and is not limited to the embodiments described herein. On the contrary, the purpose of providing these embodiments is to make the disclosure of the present invention more thorough and comprehensive.

[0045] It should be noted that when an element is referred to as being "fixed to" another element, it may be directly on the other element or there may be a central element. When an element is considered to be "connected to" another element, it may be directly connected to the other element or there may be a central element at the same time. The terms "vertical", "horizontal", "left", "right" and similar expressions used herein are for illustrative purposes only.

[0046] Unless otherwise defined, all technical and scientific terms used herein have the same meaning as those commonly understood by those skilled in the art of the present invention. The terms used herein in the specification of the present invention are only for the purpose of describing specific embodiments and are not intended to limit the present invention. The term "and / or" used herein includes any and all combinations of one or more related listed items.

[0047] Embodiment 1

[0048] Embodiment 1 of the present invention provides a method for correcting image acquisition in a linear array AOI detection system. Figure 1 , is a flow chart for implementing a correction method for linear array AOI detection system image collection, the method specifically includes steps S01 to S06.

[0049] Step S01, obtaining a standard graphic piece, and obtaining a target image in a preset area in the standard graphic piece, and determining the actual coordinates of the marking points of each target image in the preset area.

[0050] Specifically, to obtain a standard graphic piece, it is understandable that a standard graphic piece with higher precision can be selected, that is, a standard graphic piece made up of multiple puzzle pieces. The deformation of each puzzle piece will cause the graphics at the joints to be misaligned. After actual measurement, it is found that the graphic piece with the smallest misalignment is the standard graphic piece.

[0051] In this embodiment, the preset area is 17×5 Dies in the center of the standard graphic piece, that is, the preset area is 17×5 target images in the center of the standard graphic piece. The target image contains several chip images, wherein each target image is provided with a Mark point, that is, a marking point. According to the marking point, the actual coordinates of the marking point of each target image in the preset area are determined. Figure 2 , Figure 2 It is a schematic diagram of the preset area and the target image in the standard graphic film. It can be found that a single target image includes a marking point 1 and a graphic misalignment 2 at the splicing point.

[0052] Step S02, obtaining a standard optical resolution according to the number of pixels occupied by a standard-sized block in a camera imaging image.

[0053] Step S03, using a camera to image the standard graphic film, determining the number of pixels corresponding to each target image, and multiplying the number of pixels by the standard optical resolution to obtain the theoretical coordinates of the marking points of each target image in the preset area.

[0054] See also Figure 3 and Figure 4 , Figure 3 Schematic diagram of the pixel difference between the theoretical coordinates and the actual coordinates in the x direction, where the abscissa represents the chip number (85 sampling points) and the ordinate represents the number of pixels. Figure 4 Figure 3 is a schematic diagram of the pixel difference between the theoretical coordinates and the actual coordinates in the y direction, where the horizontal axis represents the chip number (85 sampling points) and the vertical axis represents the number of pixels. It can be seen that before correction, the maximum pixel difference in the x direction is ±20, and the maximum pixel difference in the y direction is ±42.

[0055] Step S04, fitting and obtaining the coefficients of the correction equation according to the actual coordinates and the theoretical coordinates.

[0056] The expression is:

[0057]

[0058] Among them, u represents the horizontal coordinate after correction, v represents the vertical coordinate after correction, and c ij The correction matrix represented as the horizontal axis, d ij The correction matrix is ​​expressed as the ordinate, x i Represented as the horizontal coordinate of the i-th image, y j It represents the ordinate of the j-th image, i represents the i-th image imaged by the camera, and j represents the j-th image imaged by the camera.

[0059] Step S05, substituting the coefficients into the equation to obtain the fitting coordinates, analyzing the accuracy of the fitting equation based on the residual, and determining the target fitting equation based on the accuracy, wherein the residual is the theoretical coordinates minus the fitting coordinates.

[0060] Among them, since there are many types of equations, selecting the best fitting equation can better correct the image. The specific steps include:

[0061] Step 1, substitute the coefficients into the equation to obtain the fitting coordinates, analyze the accuracy of the fitting equation according to the residual, and judge whether the accuracy meets the preset value, wherein the residual is the theoretical coordinate minus the fitting coordinates, more specifically, substitute the coefficients into the straight line fitting regression equation, the binary multiple polynomial fitting regression equation, the semi-logarithmic fitting regression equation and the Log-Log fitting regression equation in turn, and calculate the fitting coordinates, wherein the order in the binary multiple polynomial fitting regression equation is the preset order, it should be noted that the straight line fitting regression is the simplest regression model and the most basic curve fitting regression analysis method, which fits all the test points into a straight line, the polynomial fitting regression is used to solve nonlinear regression problems, and the semi-logarithmic fitting regression and the Log-Log fitting regression are often used in the case where a parameter increases or decreases logarithmically with the increase or decrease of another parameter;

[0062] Subtracting the fitting coordinates from the theoretical coordinates to obtain the accuracy, and determining whether the accuracy meets a preset value;

[0063] Step 2: If the accuracy is determined to meet the preset value, a first fitting equation is determined, and a second fitting equation is determined according to the accuracy corresponding to the first fitting equation, and the second fitting equation is defined as a target fitting equation;

[0064] Step three, if it is determined that the accuracy does not meet the preset value, the equation is adjusted, and steps one to three are executed cyclically until the accuracy meets the preset value, and the corresponding target fitting equation is determined. It should be noted that the preset number of times in the binary multi-variable polynomial fitting regression equation is obtained, and the preset number is adjusted by adding one each time. In this embodiment, the preset number is 5 times, that is, the binary multi-variable polynomial fitting regression equation is a binary quintic polynomial fitting regression equation. It can be understood that when the coefficients are substituted into the binary quintic polynomial fitting regression equation, the obtained accuracy does not meet the preset value. For example, when the residual calculation is greater than 3 pixels, the fifth order is increased to the sixth order, that is, the binary quintic polynomial fitting regression equation generates a binary sextic polynomial fitting regression equation, and the coefficients are substituted into the binary sextic polynomial fitting regression equation for calculation again, and so on, until the obtained accuracy meets the preset value.

[0065] In addition, if there are multiple equations among the straight line fitting regression equation, the binary multivariate polynomial fitting regression equation, the semi-logarithmic fitting regression equation and the Log-Log fitting regression equation that can meet the accuracy requirements, the equation with the highest accuracy is selected as the target fitting equation.

[0066] Step S06: using the target fitting equation to calibrate the image collected by the subsequent linear array AOI detection system.

[0067] In summary, the correction method for linear array AOI detection system image acquisition in the above embodiments of the present invention obtains a standard graphic piece and a target image of a preset area in the standard graphic piece to determine the actual coordinates of the marking points of each target image in the preset area; obtains the standard optical resolution according to the number of pixels occupied by the standard size block in the camera imaging image; uses a camera to image the standard graphic piece to determine the number of pixels corresponding to each target image, and multiplies the number of pixels by the standard optical resolution to obtain the theoretical coordinates of the marking points of each target image in the preset area; fits the coefficients of the correction equation according to the actual coordinates and the theoretical coordinates; substitutes the coefficients into the equation to obtain the fitting coordinates, analyzes the accuracy of the fitting equation according to the residual, and determines the target fitting equation according to the accuracy, wherein the residual is the theoretical coordinate minus the fitting coordinate; uses the target fitting equation to calibrate the image acquired by the linear array AOI detection system. Specifically, the various unstable factors of the system can be compatible by fitting the equation, thereby improving the detection accuracy of the equipment and effectively correcting the overall image.

[0068] Embodiment 2

[0069] In order to verify the correction method for linear array AOI detection system sampling in the first embodiment of the present invention, specifically, firstly calculate the number of pixels occupied by the distance between the marking points of two adjacent target images in the x and y directions. For the error between the theoretical coordinates and the fitted coordinates, please refer to Figure 5 and Figure 6 , Figure 5 Schematic diagram of pixel position in the x direction before image correction, where the abscissa represents the chip number (85 sampling points) and the ordinate represents the number of pixels. Figure 6 The figure is a schematic diagram of the pixel position in the y direction before image correction, where the horizontal axis represents the chip number (85 sampling points) and the vertical axis represents the number of pixels. It can be found that before correction, the maximum deviation of the chip spacing in the x direction (85-5=80) is 6 pixels, and the maximum deviation of the chip spacing in the y direction (85-17=68) is 14 pixels. Please refer to Figure 7 and Figure 8 , Figure 7 This is a schematic diagram of the pixel position in the u direction after image correction, where the horizontal axis represents the chip number (85 sampling points) and the vertical axis represents the number of pixels. Figure 8 This is a schematic diagram of the pixel position in the v direction after image correction, where the horizontal axis represents the chip number (85 sampling points) and the vertical axis represents the number of pixels. Specifically, the x direction corresponds to the u direction, and the y direction corresponds to the v direction. After correction, the maximum deviation in the u direction is 2.85 pixels, and the maximum deviation in the v direction is 2 pixels.

[0070] In summary, for linear array imaging devices with higher detection accuracy, the requirements for image distortion and puzzle consistency are relatively high, reaching 3 pixels or higher. The general target correction method can correct the distortion to a certain extent, but the correction effect is poor. The use of polynomial correction scheme can be compatible with various unstable factors of the system, so that the correction result is within 1 to 3 pixels, thereby improving the detection accuracy of the equipment.

[0071] Embodiment 3

[0072] See also Fig. 9 , Fig. 9 1 is a structural block diagram of a correction system 200 for linear array AOI detection system image acquisition provided by Embodiment 3 of the present invention. The correction system 200 for linear array AOI detection system image acquisition includes: an acquisition module 21, a standard optical resolution acquisition module 22, a calculation module 23, a fitting module 24, a target fitting equation determination module 25 and a calibration module 26, wherein:

[0073] The acquisition module 21 is used to acquire a standard graphic piece, and acquire a target image of a preset area in the standard graphic piece, and determine the actual coordinates of the marking points of each target image in the preset area;

[0074] A standard optical resolution acquisition module 22 is used to obtain the standard optical resolution according to the number of pixels occupied by the standard-sized block in the camera imaging image;

[0075] The calculation module 23 is used to use a camera to image the standard graphic sheet, determine the number of pixels corresponding to each target image, and multiply the number of pixels by the standard optical resolution to obtain the theoretical coordinates of the marking points of each target image in the preset area;

[0076] The fitting module 24 is used to fit and obtain the coefficients of the correction equation according to the actual coordinates and the theoretical coordinates, wherein the expression of the coefficients is:

[0077]

[0078]

[0079] Among them, u represents the horizontal coordinate after correction, v represents the vertical coordinate after correction, and c ij The correction matrix represented as the horizontal axis, d ijThe correction matrix represented as the ordinate, x i Represented as the horizontal coordinate of the i-th image, y j It represents the ordinate of the j-th image, i represents the i-th image imaged by the camera, and j represents the j-th image imaged by the camera;

[0080] A target fitting equation determination module 25 is used to substitute the coefficients into the equation to obtain fitting coordinates, analyze the accuracy of the fitting equation according to the residual, and determine the target fitting equation according to the accuracy, wherein the residual is the theoretical coordinate minus the fitting coordinate;

[0081] The calibration module 26 is used to calibrate the image collected by the subsequent linear array AOI detection system using the target fitting equation.

[0082] Furthermore, in some other embodiments of the present invention, the target fitting equation determination module 25 includes:

[0083] A first judgment unit is used to substitute the coefficients into the equation to obtain the fitting coordinates, analyze the accuracy of the fitting equation according to the residual, and judge whether the accuracy meets the preset value, wherein the residual is the theoretical coordinate minus the fitting coordinates;

[0084] a target fitting equation determining unit, configured to determine a first fitting equation if the accuracy satisfies a preset value, determine a second fitting equation according to the accuracy corresponding to the first fitting equation, and define the second fitting equation as the target fitting equation;

[0085] The adjustment unit is used to adjust the equation if the judgment accuracy does not meet the preset value, and repeat the above operation until the judgment accuracy meets the preset value, and then determine the corresponding target fitting equation, wherein the preset number of times in the binary multivariate polynomial fitting regression equation is obtained, and the preset number is increased by one each time for adjustment, and the preset number is 5 times.

[0086] Furthermore, in some other embodiments of the present invention, the first determining unit includes:

[0087] A calculation subunit, used for sequentially substituting the coefficients into a straight line fitting regression equation, a binary multivariate polynomial fitting regression equation, a semi-logarithmic fitting regression equation and a Log-Log fitting regression equation to calculate fitting coordinates, wherein the order in the binary multivariate polynomial fitting regression equation is a preset order;

[0088] The judging subunit is used to subtract the fitting coordinates from the theoretical coordinates to obtain the accuracy, and to judge whether the accuracy meets a preset value.

[0089] Embodiment 4

[0090] Another aspect of the present invention provides an electronic device, see Fig.10 , shown is an electronic device in Embodiment 4 of the present invention, including a memory 20, a processor 10, and a computer program 30 stored in the memory and executable on the processor. When the processor 10 executes the computer program 30, the correction method for the linear array AOI detection system image acquisition as described above is implemented.

[0091] In some embodiments, the processor 10 may be a central processing unit (CPU), a controller, a microcontroller, a microprocessor or other data processing chip, used to run program codes or process data stored in the memory 20, such as executing access restriction programs.

[0092] Among them, the memory 20 includes at least one type of readable storage medium, and the readable storage medium includes flash memory, hard disk, multimedia card, card-type memory (for example, SD or DX memory, etc.), magnetic memory, disk, optical disk, etc. The memory 20 may be an internal storage unit of an electronic device in some embodiments, such as a hard disk of the electronic device. The memory 20 may also be an external storage device of an electronic device in other embodiments, such as a plug-in hard disk equipped on the electronic device, a smart memory card (Smart Media Card, SMC), a secure digital (Secure Digital, SD) card, a flash card (FlashCard), etc. Further, the memory 20 may also include both an internal storage unit and an external storage device of the electronic device. The memory 20 may be used not only to store application software and various types of data of the electronic device, but also to temporarily store data that has been output or is to be output.

[0093] It should be pointed out that Figure 8 The structure shown does not constitute a limitation on the electronic device. In other embodiments, the electronic device may include fewer or more components than those shown in the figure, or combine certain components, or arrange the components differently.

[0094] The embodiment of the present invention further provides a computer-readable storage medium on which a computer program is stored. When the program is executed by a processor, the correction method for the image acquisition of the linear array AOI detection system as described above is implemented.

[0095] Those skilled in the art will appreciate that the logic and / or steps represented in the flowchart or otherwise described herein, for example, may be considered as an ordered list of executable instructions for implementing logical functions, and may be embodied in any computer-readable medium for use by an instruction execution system, device or apparatus (such as a computer-based system, a system including a processor, or other system that can fetch instructions from an instruction execution system, device or apparatus and execute instructions), or in conjunction with such instruction execution systems, devices or apparatuses. For purposes of this specification, a "computer-readable medium" may be any device that can contain, store, communicate, propagate or transmit a program for use by an instruction execution system, device or apparatus, or in conjunction with such instruction execution systems, devices or apparatuses.

[0096] More specific examples of computer-readable media (a non-exhaustive list) include the following: an electrical connection with one or more wires (electronic device), a portable computer disk case (magnetic device), a random access memory (RAM), a read-only memory (ROM), an erasable and programmable read-only memory (EPROM or flash memory), an optical fiber device, and a portable compact disk read-only memory (CDROM). In addition, the computer-readable medium may even be a paper or other suitable medium on which the program is printed, since the program may be obtained electronically, for example, by optically scanning the paper or other medium, followed by editing, deciphering or, if necessary, processing in another suitable manner, and then stored in a computer memory.

[0097] It should be understood that the various parts of the present invention can be implemented by hardware, software, firmware or a combination thereof. In the above-mentioned embodiments, a plurality of steps or methods can be implemented by software or firmware stored in a memory and executed by a suitable instruction execution system. For example, if implemented by hardware, as in another embodiment, it can be implemented by any one of the following technologies known in the art or a combination thereof: a discrete logic circuit having a logic gate circuit for implementing a logic function for a data signal, a dedicated integrated circuit having a suitable combination of logic gate circuits, a programmable gate array (PGA), a field programmable gate array (FPGA), etc.

[0098] In the description of this specification, the description with reference to the terms "one embodiment", "some embodiments", "examples", "specific examples", or "some examples" means that the specific features, structures, materials or characteristics described in conjunction with the embodiment or example are included in at least one embodiment or example of the present invention. In this specification, the schematic representation of the above terms does not necessarily refer to the same embodiment or example. Moreover, the specific features, structures, materials or characteristics described may be combined in any one or more embodiments or examples in a suitable manner.

[0099] The above embodiments only express several implementation methods of the present invention, and the descriptions thereof are relatively specific and detailed, but they cannot be understood as limiting the scope of the present invention. It should be pointed out that, for a person of ordinary skill in the art, several modifications and improvements can be made without departing from the concept of the present invention, and these all belong to the protection scope of the present invention. Therefore, the protection scope of the present invention patent shall be subject to the attached claims.

Claims

1. A correction method for linear array AOI detection system image collection, characterized in that: The method comprises: Obtaining a standard graphic piece, and obtaining a target image of a preset area in the standard graphic piece, and determining the actual coordinates of the marking points of each target image in the preset area; The standard optical resolution is obtained based on the number of pixels that a standard-sized block occupies in the camera imaging image; Using a camera to image the standard graphic sheet, determining the number of pixels corresponding to each target image, and multiplying the number of pixels by the standard optical resolution to obtain the theoretical coordinates of the marking points of each target image in the preset area; According to the actual coordinates and the theoretical coordinates, fitting and obtaining the coefficients of the correction equation; Substituting the coefficients into the equation to obtain the fitting coordinates, analyzing the accuracy of the fitting equation according to the residual, and determining the target fitting equation according to the accuracy, wherein the residual is the theoretical coordinates minus the fitting coordinates; The target fitting equation is used to calibrate the image collected by the subsequent linear array AOI detection system.

2. The method for correcting the image acquisition of a linear array AOI detection system according to claim 1, characterized in that: In the step of fitting and obtaining the coefficients of the correction equation according to the actual coordinates and the theoretical coordinates, the expression is: Among them, u represents the horizontal coordinate after correction, v represents the vertical coordinate after correction, and c ij The correction matrix represented as the horizontal axis, d ij The correction matrix represented as the ordinate, x i Represented as the horizontal coordinate of the i-th image, y j It represents the ordinate of the j-th image, i represents the i-th image imaged by the camera, and j represents the j-th image imaged by the camera.

3. The method for correcting the image acquisition of a linear array AOI detection system according to claim 2, characterized in that: The step of substituting the coefficients into the equation to obtain the fitting coordinates, analyzing the accuracy of the fitting equation according to the residual, and determining the target fitting equation according to the accuracy, wherein the residual is the theoretical coordinates minus the fitting coordinates, comprises: Step 1, substituting the coefficients into the equation to obtain the fitting coordinates, analyzing the accuracy of the fitting equation according to the residual, and judging whether the accuracy meets the preset value, wherein the residual is the theoretical coordinates minus the fitting coordinates; Step 2: If the accuracy is determined to meet the preset value, a first fitting equation is determined, and a second fitting equation is determined according to the accuracy corresponding to the first fitting equation, and the second fitting equation is defined as the target fitting equation; Step three: if the accuracy is not satisfied with the preset value, the equation is adjusted, and steps one to three are executed repeatedly until the accuracy is satisfied with the preset value, and the corresponding target fitting equation is determined.

4. The method for correcting the image acquisition of a linear array AOI detection system according to claim 3, characterized in that: The step of substituting the coefficients into the equation to obtain the fitting coordinates, analyzing the accuracy of the fitting equation according to the residual, and judging whether the accuracy meets the preset value comprises: Substituting the coefficients into the linear fitting regression equation, the binary multivariate polynomial fitting regression equation, the semi-logarithmic fitting regression equation and the Log-Log fitting regression equation in turn, and calculating the fitting coordinates, wherein the order in the binary multivariate polynomial fitting regression equation is a preset order; The fitting coordinates are subtracted from the theoretical coordinates to obtain the accuracy, and it is determined whether the accuracy meets a preset value.

5. The method for correcting the image acquisition of a linear array AOI detection system according to claim 4, characterized in that: If the accuracy is determined not to meet the preset value, in the step of adjusting the equation, a preset number of times in the binary multivariate polynomial fitting regression equation is obtained, and the preset number of times is adjusted by adding one each time.

6. The method for correcting the image acquisition of a linear array AOI detection system according to claim 5, characterized in that: The preset number of times is 5 times.

7. A calibration system for linear array AOI detection system, characterized in that: A method for implementing the correction method for linear array AOI detection system image acquisition according to any one of claims 1 to 6, the system comprising: An acquisition module, used to acquire a standard graphic piece, and acquire a target image of a preset area in the standard graphic piece, and determine the actual coordinates of the marking points of each target image in the preset area; A standard optical resolution acquisition module is used to obtain the standard optical resolution according to the number of pixels occupied by a standard-sized block in a camera imaging image; A calculation module, used to image the standard graphic sheet using a camera, determine the number of pixels corresponding to each target image, and multiply the number of pixels by the standard optical resolution to obtain the theoretical coordinates of the marking points of each target image in the preset area; A fitting module, used for fitting and obtaining coefficients of a correction equation according to the actual coordinates and the theoretical coordinates; A target fitting equation determination module is used to substitute the coefficients into the equation to obtain fitting coordinates, analyze the accuracy of the fitting equation according to the residual, and determine the target fitting equation according to the accuracy, wherein the residual is the theoretical coordinate minus the fitting coordinate; The calibration module is used to calibrate the image collected by the subsequent linear array AOI detection system using the target fitting equation.

8. A computer-readable storage medium having a computer program stored thereon, characterized in that: When the program is executed by a processor, the correction method for linear array AOI detection system image acquisition as described in any one of claims 1 to 6 is implemented.

9. An electronic device, characterized in that: The invention comprises a memory, a processor and a computer program stored in the memory and executable on the processor. When the processor executes the program, the correction method for linear array AOI detection system image acquisition as claimed in any one of claims 1 to 6 is implemented.

Citation Information

Cited By

  • Offset automatic calibration method for defect source analysis

    CN120997214A

  • Component image capture system for automatic optical inspection and method thereof

    TWI900349B