Board device positioning method, board device detection method, device and medium

By identifying the feature points in the board image and calculating the offset, the board device can be quickly located, which solves the problem of low board positioning and detection efficiency and achieves efficient device positioning and detection.

CN117347367BActive Publication Date: 2024-09-03GUANGZHOU LEICHEN INTELLIGENT EQUIP TECH CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202311077221.4
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2023-08-24
Publication Date
2024-09-03
Estimated Expiration
2043-08-24

AI Technical Summary

Technical Problem

In the production process of board cards, with the development of integrated technology, the number of devices on the board increases, resulting in low efficiency and long time consumption of board positioning and detection, and the device offset is complex, making it difficult to efficiently position the board with existing technology. and detection.

Method used

By acquiring the standard board image and the board card image to be tested, local feature points are identified, the offset between the feature points is calculated, and the device position is determined to achieve rapid positioning and detection, and improve the efficiency of board device positioning and detection.

Benefits of technology

There is no need to locate devices one by one, which significantly improves board device positioning and detection efficiency, reduces false alarm rates, and improves production efficiency.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN117347367B
    Figure CN117347367B
Patent Text Reader

Abstract

The present application relates to a board device positioning method, a board device detection method, an apparatus, a storage medium and an electronic device, the method comprising: obtaining a standard board image and a board image to be tested; determining the position information of a second local feature point corresponding to the first local feature point; determining a first offset between the first local feature point and the corresponding second local feature point according to the position information; determining the position of a second device related to the second local feature point according to the first offset. The embodiment of the present application sets a first local feature point in the standard board image, and obtains the position of the second device related to the second local feature point in the board to be tested through the offset between the first local feature point and the corresponding second local feature point in the board to be tested, without locating the devices of the board to be tested one by one, thereby improving the device positioning efficiency of the board to be tested.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of image processing technology, and in particular to a board device positioning method, a board device detection method, a device, a storage medium and an electronic device. Background Art

[0002] The board serves as a support for electronic components and a carrier for electrical connection of electronic components. Electronic components such as resistors, capacitors, inductors, chips, etc. can be set on it. Specific functions can be achieved by electrically connecting the above electronic components.

[0003] During and after the board production process, the boards need to be sent to the Automated Optical Inspection (AOI) equipment for defect detection to improve the board's factory yield. Specifically, the AOI equipment needs to locate the components on the board and perform defect detection on each located component to determine whether the produced card is qualified.

[0004] With the development of integrated technology, the number of devices on boards is increasing. It takes a long time to locate each device one by one, resulting in low efficiency in positioning and detecting boards. Summary of the invention

[0005] Based on this, the purpose of the present application is to provide a board device positioning method, a board device detection method, an apparatus, a storage medium and an electronic device, which have the advantages of improving the efficiency of board device positioning and the efficiency of board device detection.

[0006] According to a first aspect of an embodiment of the present application, a method for positioning a board component is provided, comprising the following steps:

[0007] Acquire a standard board image and a board image to be tested; the standard board image includes a plurality of first local feature points, and the board image to be tested includes a plurality of second local feature points and a second device;

[0008] Determine position information of a second local feature point corresponding to the first local feature point;

[0009] Determine, according to the position information, a first offset between the first local feature point and the corresponding second local feature point;

[0010] The position of a second device associated with the second local feature point is determined according to the first offset.

[0011] According to a second aspect of an embodiment of the present application, a board device detection method is provided. The board device detection method is used in a board device detector. The board device detector includes an imaging component and a detection component. The board device detection method includes:

[0012] Move the imaging component to take a picture of the board to be tested to obtain an image of the board to be tested, wherein the image of the board to be tested includes a plurality of second components;

[0013] According to the above-mentioned board component positioning method, positioning the second component in the image of the board to be tested;

[0014] The detection component is controlled to perform device defect detection on the positioned second device to obtain a defect detection result of the image of the board to be tested.

[0015] According to a third aspect of an embodiment of the present application, a board component positioning device is provided, comprising:

[0016] An image acquisition module is used to acquire a standard board image and a board image to be tested; the standard board image includes a plurality of first local feature points, and the board image to be tested includes a plurality of second local feature points and a second device;

[0017] A position information determination module, used to determine the position information of a second local feature point corresponding to the first local feature point;

[0018] an offset determination module, configured to determine a first offset between the first local feature point and the corresponding second local feature point according to the position information;

[0019] A position determination module is used to determine the position of a second device related to the second local feature point according to the first offset.

[0020] According to a fourth aspect of an embodiment of the present application, a board component detection device is provided, comprising:

[0021] A shooting module, used for moving the imaging component to take a picture of the board to be tested to obtain an image of the board to be tested, wherein the image of the board to be tested includes a plurality of second components;

[0022] A positioning module, used for positioning the second device in the image of the board to be tested according to the above-mentioned board device positioning method;

[0023] The defect detection module is used to control the detection component to perform device defect detection on the positioned second device to obtain a defect detection result of the image of the board to be tested.

[0024] According to a fifth aspect of an embodiment of the present application, an electronic device is provided, comprising: a processor and a memory; wherein the memory stores a computer program, and the computer program is suitable for being loaded by the processor and executing the method of the first aspect or the second aspect as described above.

[0025] According to a sixth aspect of an embodiment of the present application, a computer-readable storage medium is provided, on which a computer program is stored. When the computer program is executed by a processor, the method of the first aspect or the second aspect described above is implemented.

[0026] The embodiment of the present application obtains a standard board image and a board image to be tested; the standard board image includes a plurality of first local feature points, and the board image to be tested includes a plurality of second local feature points and a second device; determines the position information of the second local feature point corresponding to the first local feature point; determines the first offset between the first local feature point and the corresponding second local feature point according to the position information; and determines the position of the second device related to the second local feature point according to the first offset. The embodiment of the present application sets the first local feature point in the standard board image, and obtains the position of the second device related to the second local feature point in the board to be tested through the offset between the first local feature point and the corresponding second local feature point in the board to be tested. It is not necessary to locate the devices of the board to be tested one by one, thereby improving the device positioning efficiency of the board to be tested.

[0027] It should be understood that the foregoing general description and the following detailed description are exemplary and explanatory only and are not restrictive of the present application.

[0028] For better understanding and implementation, the present invention is described in detail below with reference to the accompanying drawings. BRIEF DESCRIPTION OF THE DRAWINGS

[0029] Figure 1 A schematic diagram of a flow chart of a method for locating a board device provided in one embodiment of the present application;

[0030] Figure 2 A schematic diagram of a standard board image and a board image to be tested in a board device positioning method provided in one embodiment of the present application;

[0031] Figure 3 A schematic diagram of a first global feature point of a standard board image in a board device positioning method provided by an embodiment of the present application;

[0032] Figure 4 A schematic diagram of a process flow of a board device detection method provided by an embodiment of the present application;

[0033] Figure 5 A structural block diagram of a board device positioning device provided by an embodiment of the present application;

[0034] Figure 6 A structural block diagram of a board device detection device provided by an embodiment of the present application;

[0035] Figure 7 A schematic block diagram of the structure of an electronic device provided for one embodiment of the present application. DETAILED DESCRIPTION

[0036] 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.

[0037] It should be clear that the described embodiments are only part of the embodiments of the present application, rather than all the embodiments. Based on the embodiments in the present application, all other embodiments obtained by ordinary technicians in the field without creative work are within the scope of protection of the present application.

[0038] 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.

[0039] 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.

[0040] In addition, in the description of this application, unless otherwise specified, "plurality" 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.

[0041] In order to better understand the design of the present application, some board component positioning methods in the technology are described below.

[0042] When inspecting PCBA (Printed Circuit Board Assembly) boards, especially when the PCBA boards are flexible circuit boards, problems such as board bending, middle collapse or warping are prone to occur, causing the components on the PCBA boards to shift. When inspecting each component, it is necessary to locate each component, otherwise, the problem of false positives in board component inspection is prone to occur.

[0043] In the related art, the specific process of positioning each device is as follows:

[0044] The standard position of each component exists in the standard board image. Move the camera to the standard position of the board image to be tested and take a picture to obtain the component image. Perform component recognition on the component image to obtain the actual position of the component. According to the standard position and actual position of the component, the offset of the component is obtained.

[0045] In the above process, when the PCBA board is bent, warped, or has a large collapse in the middle, the actual position of the device on the PCBA board will usually "run" out of the device image, resulting in the inability to identify the device, obtain the actual position of the device, and calculate the offset of the device.

[0046] At the same time, there are a large number of devices on the PCBA board, and the devices are densely distributed. Each device is located one by one and the offset is calculated, which makes the positioning and detection of the entire board devices time-consuming. In addition, when the device offsets are similar, the positioning operation will have a large number of repeated calculations, and the positioning efficiency is low.

[0047] To this end, an embodiment of the present application proposes a board device positioning method.

[0048] The board device positioning method provided in the embodiment of the present application can be performed by a board device positioning device, which can be implemented by software and / or hardware, and the board device positioning device can be composed of two or more physical entities, or can be composed of one physical entity. The board device positioning device can be any electronic device installed with image processing software. The electronic device can be a computer, a mobile phone, a tablet or an interactive tablet and other smart devices.

[0049] The board device positioning device may include one or more processing cores, which may implement the board device positioning method of the present application in a pure software manner, or in a combination of software and hardware, such as using at least one hardware form of digital signal processing, field programmable gate array, and programmable logic array; or may integrate one or a combination of a central processing unit, an image processor, and a modem. The board device positioning device may run an application for the board device positioning method, and the application may be presented in a form that is adapted to the board device positioning device, such as an APP application. In some examples, it may also be presented in the form of a system plug-in, a web page plug-in, etc.

[0050] See also Figure 1 The present application embodiment provides a method for positioning a board device, comprising the following steps:

[0051] S10: Acquire a standard board image and a board image to be tested; the standard board image includes a plurality of first local feature points, and the board image to be tested includes a plurality of second local feature points and a second device.

[0052] See also Figure 2 In the embodiment of the present application, the standard board image 1 is a CAD coordinate diagram of a standard PCBA board, and the CAD coordinate diagram is a transparent two-dimensional image, including a first device 11, position information of the first device 11, a first local feature point 12, and position information of the first local feature point 12. The position information of the first device 11 is the planar two-dimensional coordinate of the first device 11, and the position information of the first local feature point 12 is the planar two-dimensional coordinate of the first local feature point 12.

[0053] The board image 2 to be tested is a photo taken of the actual PCBA board to be tested, including a second device 21 and a second local feature point 22. The second device 21 includes pins and electrical components, and the electrical components include but are not limited to resistors, capacitors, inductors, diodes and transistors.

[0054] The PCBA board to be tested is made according to the standard PCBA board, the second device 21 in the board image 2 to be tested corresponds to the first device 11 in the standard board image 1, and the second local feature point 22 in the board image 2 to be tested corresponds to the first local feature point 12 in the standard board image 1. Among them, the number of the first local feature point 12 and the second local feature point 22 can be one or more, and the first local feature point 12 and the second local feature point 22 can both be mark points. Among them, the mark point includes a marking point and an open area, the marking point is a solid circle, the solid circle is green, there is no device in the open area, and the open area is red. The first local feature point 12 and the second local feature point 22 can also be points whose size is greater than a preset size threshold. Specifically, the first local feature point 12 can be a punching point on a standard board, and the second local feature point 22 can be a punching point on the board to be tested.

[0055] S20: Determine position information of a second local feature point corresponding to the first local feature point.

[0056] The position information of the second local feature point is the plane two-dimensional coordinates of the second local feature point.

[0057] In the embodiment of the present application, a feature point recognition algorithm can be used to identify each second local feature point in the image of the board to be tested, and obtain the position information of each second local feature point. The position information of the first local feature point is compared with the position information of each second local feature point to determine the second local feature point corresponding to the first local feature point. Specifically, the feature point recognition algorithm can be an ORB (Oriented FAST and Rotated BRIEF) algorithm, a SIFT (Scale-invariant feature transform) and a SURF (Speeded Up Robust Features) algorithm.

[0058] It is also possible to determine the position information of the second local feature point corresponding to the first local feature point around or near the first local feature point. Specifically, the board image to be tested is aligned with the standard board image, and a first detection area located in the standard board image is determined by the first local feature point in the standard board image. Since the board image to be tested is aligned with the standard board image, a second detection area located in the board image to be tested can be determined based on the first detection area. The color values ​​of each pixel in the second detection area are traversed, and the second local feature point in the board image to be tested is determined by the color value of each pixel. Alternatively, the size of each point in the second detection area is traversed, and the second local feature point in the board image to be tested is determined by the size of each point and a preset size threshold.

[0059] S30: Determine a first offset between the first local feature point and the corresponding second local feature point according to the position information.

[0060] In the embodiment of the present application, by calculating the deviation between the position coordinates of the first local feature point and the position coordinates of the corresponding second local feature point, the first offset between the first local feature point and the corresponding second local feature point can be obtained.

[0061] S40: Determine a position of a second device associated with a second local feature point according to the first offset.

[0062] Among them, the second device associated with the second local feature point can be a second device in a related area associated with the second local feature point. The image of the board to be tested can be divided into several areas, and the area where the second local feature point is located is determined as the related area associated with the second local feature point. Since the board to be tested includes a signal layer, a pad layer, a power layer, an assembly layer, a solder mask layer and a copper cladding layer, in order to reduce the offset error, it is necessary to correlate the second device belonging to the same layer as the second local feature point. For example, the pin is correlated with the punch point on the same copper cladding layer.

[0063] In the embodiment of the present application, the offset of the relevant area related to the second local feature point can be determined according to the first offset, the relevant area can be offset corrected, and the position of the second device can be identified from the corrected relevant area. The position of the second device related to the second local feature point can also be determined according to the position of the first device in the standard board image and the first offset.

[0064] By using the embodiment of the present application, a standard board image and a board image to be tested are obtained; the standard board image includes a plurality of first local feature points, and the board image to be tested includes a plurality of second local feature points and a second device; the position information of the second local feature point corresponding to the first local feature point is determined; according to the position information, a first offset between the first local feature point and the corresponding second local feature point is determined; according to the first offset, the position of the second device related to the second local feature point is determined. The embodiment of the present application sets the first local feature point in the standard board image, and obtains the position of the second device related to the second local feature point in the board to be tested by the offset between the first local feature point and the corresponding second local feature point in the board to be tested. It is not necessary to locate the devices of the board to be tested one by one, thereby improving the device positioning efficiency of the board to be tested.

[0065] In one embodiment, see Figure 3 The standard board image also includes at least two first global feature points 14, and the board image to be tested also includes at least two second global feature points. Step S20 includes steps S21 to S26, which are specifically as follows:

[0066] S21: Aligning the image of the board to be tested with the image of the standard board according to the first global feature point in the standard board image and the second global feature point in the image of the board to be tested.

[0067] The first global feature point 14 is used to locate the position of the standard board image, and the second global feature point is used to locate the position of the board image to be tested. The first global feature point and the second global feature point are both mark points. The mark point includes a marking point and an open area. The marking point is a solid circle, the solid circle is green, and the open area has no device and is red.

[0068] In the embodiment of the present application, the image of the board to be tested is fixed, and then the image of the standard board is superimposed on the image of the board to be tested. Since the image of the standard board is a CAD coordinate diagram, the CAD coordinate diagram is transparent, and the image of the board to be tested is generally green or blue, at this time, the image of the board to be tested is equivalent to the background image of the CAD coordinate diagram.

[0069] The second global feature point in the image of the board to be tested is identified, and the second global feature point in the image of the board to be tested is aligned with the first global feature point in the image of the standard board, so that the image of the board to be tested is aligned with the image of the standard board.

[0070] S22: Obtain the position coordinates of the first local feature point in the standard board image.

[0071] In the embodiment of the present application, the position coordinates of each first local feature point can be directly obtained from the CAD coordinate map.

[0072] S23: Determine a first detection area located in the standard board image according to the position coordinates of the first local feature point.

[0073] In the embodiment of the present application, the first detection area may be a geometric area centered on the first local feature point. Specifically, it may be a rectangular area centered on the first local feature point and determined according to a preset width and height. It may also be a circular area centered on the first local feature point and determined according to a preset radius. The size of the first detection area may be adjusted.

[0074] S24: Determine a second detection area located in the image of the board to be tested according to the first detection area.

[0075] In the embodiment of the present application, since the image of the board to be tested is aligned with the image of the standard board, after the first detection area is obtained, the second detection area uniquely corresponding to the first detection area can be determined.

[0076] S25: traverse the pixel points belonging to the second detection area in the image of the board to be tested, and obtain the color value of each pixel point;

[0077] S26: Determine a corresponding second local feature point in the image of the board to be tested according to the color value of each pixel and a preset color threshold.

[0078] In the embodiment of the present application, since the marking point of the second local feature point is green and the empty area is red, the color value of each pixel in the second detection area is traversed, and the color value of each pixel is compared with the preset color threshold, so as to determine the corresponding second local feature point in the image of the board to be tested. The color value is an RGB value, and the preset color threshold can be the RGB value corresponding to green.

[0079] By identifying the color value of each pixel in the second detection area, the second local feature point corresponding to the first local feature point can be automatically and quickly determined.

[0080] In one embodiment, the first global feature point is set in the diagonal direction of the standard board image, and step S21 includes steps S211 to S212, which are specifically as follows:

[0081] S211: randomly selecting a second global feature point from the image of the board to be tested, and aligning the second global feature point with a first global feature point in the image of the standard board.

[0082] Among them, the first global feature point is a position identification point set on the standard PCBA board, and the first global feature point is set in a certain diagonal direction of the standard PCBA board, that is, the upper left corner and the lower right corner of the standard PCBA board, or the lower left corner and the upper right corner of the standard PCBA board.

[0083] The second global feature point is a position identification point set on the PCBA board to be tested, and the second global feature point is set in a certain diagonal direction of the PCBA board to be tested, that is, the upper left corner and the lower right corner of the PCBA board to be tested, or the lower left corner and the upper right corner of the PCBA board to be tested. The first global feature point corresponds to the second global feature point one by one.

[0084] In an embodiment of the present application, in the image of the board to be tested, any second global feature point is selected, and the second global feature point is aligned with a corresponding first global feature point in the standard board image, the first global feature point is one of multiple first global feature points, and the second global feature point is one of multiple second global feature points.

[0085] S212: Taking a second global feature point as a fixed point, the image of the board to be tested is rotated and scaled around the fixed point, so that another second global feature point in the image of the board to be tested is aligned with another first global feature point in the standard board image, so that the image of the board to be tested is aligned with the standard board image.

[0086] In an embodiment of the present application, the second global feature point is used as a fixed point, and the entire board image to be tested is rotated, enlarged or reduced around the fixed point to select another second global feature point, so that the other second global feature point is aligned with another corresponding first global feature point in the standard board image.

[0087] Since a second global feature point is aligned with a corresponding first global feature point in the standard board image, and another second global feature point is aligned with another corresponding first global feature point in the standard board image, the board image to be tested and the standard board image will also be aligned.

[0088] By aligning the two second local feature points in the image of the board to be tested with the two corresponding first local feature points in the image of the standard board, the image of the board to be tested can be automatically and quickly aligned with the image of the standard board.

[0089] In one embodiment, step S40 includes steps S401 to S403, which are specifically as follows:

[0090] S401: Using the first offset as a second offset of a related area associated with a second local feature point.

[0091] In the embodiment of the present application, since the second local feature point is offset relative to the first local feature point, the associated area associated with the second local feature point is also offset. The second offset of the associated area associated with the second local feature point may be the first offset of the second local feature point relative to the first local feature point.

[0092] S402: Determine a relevant area of ​​the second local feature point based on the second offset, where the relevant area includes the second device.

[0093] In the embodiment of the present application, after the second offset of the related area related to the second local feature point is determined, the related area related to the second local feature point can be offset corrected according to the second offset to obtain the corrected related area.

[0094] S403: Identify the position of the second device according to the relevant area.

[0095] In the embodiment of the present application, a device identification algorithm may be used to identify each second device in the corrected related area to determine the position of each second device.

[0096] By determining the second offset of the relevant area associated with the second local feature point, the position of the second device in the relevant area can be automatically and quickly determined.

[0097] In one embodiment, determining the relevant area of ​​the second local feature point based on the second offset in step S402 includes steps S4021 to S4022, which are specifically as follows:

[0098] S4021: Using the second local feature point as a reference point, determine a related area covering a plurality of second devices.

[0099] In the embodiment of the present application, the relevant area may be a geometric area including the second local feature point, specifically, a rectangular area, a circular area or a polygonal area including the second local feature point. The second local feature point may be the geometric center of the relevant area, for example, a circular area is constructed with the second local feature point as the center and a preset length as the radius. The second local feature point may also be a vertex of the relevant area.

[0100] S4022: Based on the second offset, perform offset correction on the relevant area.

[0101] In the embodiment of the present application, the second offset includes an offset direction and an offset distance, and the relevant area can be translated along the offset direction by the offset distance to obtain a corrected relevant area.

[0102] The relevant area of ​​the second local feature point can be automatically and quickly determined through the second offset.

[0103] In one embodiment, the standard board image includes a plurality of first components; the first local feature points are related to the plurality of first components; step S40 includes steps S411 to S412, which are specifically as follows:

[0104] S411: using the first offset as a second offset between a second device corresponding to the first device;

[0105] S412: Determine the position of the second device associated with the second local feature point according to the position of the first device and the second offset.

[0106] In the embodiment of the present application, in the standard board image 1, each first local feature point 12 establishes a correlation with the multiple first devices 11 around it. Specifically, the first local feature point in the standard board image is marked to obtain the first local feature point identifier, and each first device in the preset area determined by the first local feature point in the standard board image is marked to obtain each first device identifier. According to each first device identifier and the first local feature point identifier, a correlation between the first local feature point and each first device is established to correlate the multiple first devices with the first local feature point.

[0107] Since each first local feature point is associated with a number of first devices, each first device uniquely corresponds to a second device in the image of the board to be tested. After obtaining the first offset between the first local feature point and the corresponding second local feature point, the offset between each first device associated with the first local feature point and the second device corresponding to each first device can be obtained based on the first offset, thereby avoiding the inability to obtain the offset of each second device. Since the position of the first device is known, after obtaining the offset between the first device and the corresponding second device, the position of the second device corresponding to the first device can be determined. Since the first local feature point is associated with the first device, and the second local feature point corresponds to the first local feature point one by one, the position of the second device corresponding to the first device can be determined as the position of the second device associated with the second local feature point.

[0108] The position of the second device associated with the second local feature point can be automatically and quickly determined by the second offset between the second device and the first device.

[0109] See also Figure 4 The embodiment of the present application also provides a board device detection method, which is used in a board device detector. The board device detector includes an imaging component and a detection component. The board device detection method includes steps S100 to S300, which are as follows:

[0110] S100: The mobile imaging component takes a picture of the board to be tested to obtain an image of the board to be tested, wherein the image of the board to be tested includes a plurality of second components.

[0111] Among them, imaging components include but are not limited to cameras, webcams and camcorders.

[0112] In the embodiment of the present application, the imaging component is controlled to move to the top of the board to be tested, and the entire board to be tested or a certain area of ​​the board to be tested can be photographed to obtain an image of the board to be tested.

[0113] S200: According to the above-mentioned board component positioning method, the second component in the image of the board to be tested is positioned.

[0114] In the embodiment of the present application, the specific implementation process of locating the second device in the image of the board to be tested is detailed in the above method embodiment, which will not be repeated here.

[0115] S300: Control the detection component to perform device defect detection on the positioned second device to obtain a defect detection result of the image of the board to be tested.

[0116] The detection components include but are not limited to device defect detection tools and device defect detection programs.

[0117] In the embodiment of the present application, the detection component uses preset device detection items and detection algorithms to perform device defect detection on the located second device. The device detection items include but are not limited to copper leakage and insufficient tin, and the detection algorithm can be based on machine vision technology. Specifically, it can be image processing and deep learning technology.

[0118] In the embodiment of the present application, after locating the second device, a device defect detection can be performed on the second device to obtain a device detection result, and based on the device detection result, it is determined whether the PCBA board to be tested is qualified.

[0119] By using the embodiment of the present application, the image of the board to be tested is obtained by photographing the board to be tested by a mobile imaging component, and the image of the board to be tested includes a plurality of second devices; the second devices in the image of the board to be tested are located according to the above-mentioned board device positioning method; device defect detection is performed on the located second devices to obtain defect detection results of the image of the board to be tested. The present application improves the efficiency of board device positioning through the above-mentioned board device positioning method, and after the board device is positioned, defect detection is performed on the board device, thereby improving the efficiency of board device detection.

[0120] The present application provides a device embodiment that can be used to execute the content of the board device positioning method in the embodiment of the present application. For details not disclosed in the device embodiment of the present application, please refer to the content of the board device positioning method in the embodiment of the present application.

[0121] See also Figure 5 , which shows a schematic diagram of the structure of the board and card device positioning device provided in an embodiment of the present application. The board and card device positioning device 5 provided in an embodiment of the present application includes:

[0122] The image acquisition module 51 is used to acquire a standard board image and a board image to be tested; the standard board image includes a plurality of first local feature points, and the board image to be tested includes a plurality of second local feature points and a second device;

[0123] A position information determination module 52, used to determine position information of a second local feature point corresponding to the first local feature point;

[0124] An offset determination module 53, used to determine a first offset between a first local feature point and a corresponding second local feature point according to the position information;

[0125] The position determination module 54 is used to determine the position of the second device related to the second local feature point according to the first offset.

[0126] It should be noted that the board and card device positioning device provided in the above embodiment only uses the division of the above functional modules as an example when executing the board and card device positioning method. In actual applications, the above functions can be assigned to different functional modules as needed, that is, the internal structure of the device is divided into different functional modules to complete all or part of the functions described above. In addition, the board and card device positioning device provided in the above embodiment and the board and card device positioning method belong to the same concept, and the implementation process thereof is detailed in the method embodiment, which will not be repeated here.

[0127] The present application also provides an apparatus embodiment, which can be used to execute the content of the board device detection method in the embodiment of the present application. For details not disclosed in the apparatus embodiment of the present application, please refer to the content of the board device detection method in the embodiment of the present application.

[0128] See also Figure 6 , which shows a schematic diagram of the structure of a board component detection device provided in an embodiment of the present application. The board component detection device 6 provided in an embodiment of the present application includes:

[0129] A shooting module 61 is used for moving the imaging component to take a picture of the board to be tested to obtain an image of the board to be tested, wherein the image of the board to be tested includes a plurality of second components;

[0130] A positioning module 62, used for positioning the second device in the image of the board to be tested according to the above-mentioned board device positioning method;

[0131] The defect detection module 63 is used to control the detection component to perform device defect detection on the positioned second device to obtain a defect detection result of the image of the board to be tested.

[0132] It should be noted that the board and card device detection device provided in the above embodiment only uses the division of the above functional modules as an example when executing the board and card device detection method. In actual applications, the above functions can be assigned to different functional modules as needed, that is, the internal structure of the device is divided into different functional modules to complete all or part of the functions described above. In addition, the board and card device detection device provided in the above embodiment and the board and card device detection method belong to the same concept, and the implementation process thereof is detailed in the method embodiment, which will not be repeated here.

[0133] The present application provides a device embodiment that can be used to execute the content of the board device positioning method or the board device detection method in the embodiment of the present application. For details not disclosed in the device embodiment of the present application, please refer to the content of the board device positioning method or the board device detection method in the embodiment of the present application.

[0134] See also Figure 7The present application also provides an electronic device 300, which may be a computer, a mobile phone, a tablet computer, a board device positioning device or a board device detection device, etc. In an exemplary embodiment of the present application, the electronic device 300 is a board device positioning device or a board device detection device, which may include: at least one processor 301, at least one memory 302, at least one display, at least one network interface 303, a user interface 304 and at least one communication bus 305.

[0135] The user interface 304 is mainly used to provide an input interface for the user and obtain data input by the user. Optionally, the user interface may also include a standard wired interface or a wireless interface.

[0136] The network interface 303 may optionally include a standard wired interface or a wireless interface (such as a WI-FI interface).

[0137] The communication bus 305 is used to realize the connection and communication between these components.

[0138] Among them, the processor 301 may include one or more processing cores. The processor uses various interfaces and lines to connect various parts of the entire electronic device, and executes various functions of the electronic device and processes data by running or executing instructions, programs, code sets or instruction sets stored in the memory, and calling data stored in the memory. Optionally, the processor can be implemented in at least one hardware form of digital signal processing (Digital Signal Processing, DSP), field programmable gate array (Field-Programmable Gate Array, FPGA), and programmable logic array (Programmable Logic Array, PLA). The processor can integrate one or more combinations of central processing unit (Central Processing Unit, CPU), image processor (Graphics Processing Unit, GPU) and modem. Among them, the CPU mainly processes the operating system, user interface and application program, etc.; the GPU is responsible for rendering and drawing the content to be displayed by the display layer; the modem is used to process wireless communication. It can be understood that the above-mentioned modem may not be integrated into the processor, but implemented by a single chip.

[0139] Among them, the memory 302 may include a random access memory (Random Access Memory, RAM) and may also include a read-only memory (Read-Only Memory). Optionally, the memory includes a non-transitory computer-readable storage medium. The memory can be used to store instructions, programs, codes, code sets or instruction sets. The memory may include a program storage area and a data storage area, wherein the program storage area may store instructions for implementing an operating system, instructions for at least one function (such as a touch function, a sound playback function, an image playback function, etc.), instructions for implementing the above-mentioned method embodiments, etc.; the data storage area may store data involved in the above-mentioned method embodiments, etc. The memory may also be optionally at least one storage device located away from the aforementioned processor. As Figure 7 As shown, the memory as a computer storage medium may include an operating system, a network communication module, a user interface module, and an operating application program.

[0140] The processor can be used to call the application of the board device positioning method or the board device detection method stored in the memory, and specifically execute the steps of the board device positioning method or the board device detection method of the above-mentioned embodiment. The specific execution process can refer to the specific description shown in the method embodiment, which will not be repeated here.

[0141] The present application also provides a computer-readable storage medium on which a computer program is stored, and the instructions are suitable for being loaded by a processor and executing the method steps of the above-mentioned embodiment 1. The specific execution process can refer to the specific description shown in the embodiment, and will not be repeated here. The device where the storage medium is located can be a personal computer, a laptop computer, a smart phone, a tablet computer and other electronic devices.

[0142] For the device embodiments, since they basically correspond to the method embodiments, the relevant parts can refer to the partial description of the method embodiments. The device embodiments described above are merely schematic, wherein the components described as separate parts may or may not be physically separated, and the parts displayed as units may or may not be physical units, that is, they may be located in one place, or they may be distributed on multiple network units. Some or all of the modules may be selected according to actual needs to achieve the purpose of the present application scheme. A person of ordinary skill in the art can understand and implement it without paying any creative work.

[0143] Those skilled in the art will appreciate that the embodiments of the present application may be provided as methods, systems, or computer program products. Therefore, the present application may adopt the form of a complete hardware embodiment, a complete software embodiment, or an embodiment in combination with software and hardware. Moreover, the present application may adopt the form of a computer program product implemented in one or more computer-usable storage media (including but not limited to disk storage, CD-ROM, optical storage, etc.) that include computer-usable program code.

[0144] The present application is described with reference to the flowcharts and / or block diagrams of the methods, devices (systems), and computer program products according to the embodiments of the present application. It should be understood that each process and / or box in the flowchart and / or block diagram, as well as the combination of the processes and / or boxes in the flowchart and / or block diagram, can be implemented by computer program instructions. These computer program instructions can be provided to a processor of a general-purpose computer, a special-purpose computer, an embedded processor, or other programmable data processing device to generate a machine, so that the instructions executed by the processor of the computer or other programmable data processing device generate instructions for implementing the processes in the flowchart and / or block diagram. Figure 1 A process or multiple processes and / or boxes Figure 1 These computer program instructions can also be stored in a computer-readable memory that can guide a computer or other programmable data processing device to work in a specific way, so that the instructions stored in the computer-readable memory produce a product including an instruction device, which implements the function selected in the process. Figure 1 A process or multiple processes and / or boxes Figure 1 function selected in a box or multiple boxes.

[0145] These computer program instructions can also be loaded onto a computer or other programmable data processing device so that a series of operating steps are executed on the computer or other programmable device to produce a computer-implemented process, thereby providing instructions for implementing the process. Figure 1 A process or multiple processes and / or boxes Figure 1 steps for the function selected in a box or multiple boxes.

[0146] In a typical configuration, a computing device includes one or more processors (CPU), input / output interfaces, network interfaces, and memory.

[0147] The memory may include non-permanent memory in a computer-readable medium, random access memory (RAM) and / or non-volatile memory in the form of read-only memory (ROM) or flash RAM. The memory is an example of a computer-readable medium.

[0148] Computer readable media include permanent and non-permanent, removable and non-removable media that can be implemented by any method or technology to store information. Information can be computer readable instructions, data structures, program modules 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, compact disk read-only memory (CD-ROM), digital versatile disk (DVD) or other optical storage, magnetic cassettes, magnetic tape magnetic 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. As defined herein, computer readable media does not include temporary computer readable media (transitory media), such as modulated data signals and carrier waves.

[0149] It should also be noted that the terms "include", "comprises" or any other variations thereof are intended to cover non-exclusive inclusion, so that a process, method, commodity or device including a series of elements includes not only those elements, but also other elements not explicitly listed, or also includes elements inherent to such process, method, commodity or device. In the absence of more restrictions, the elements defined by the sentence "comprises a ..." do not exclude the existence of other identical elements in the process, method, commodity or device including the elements.

[0150] The above are only embodiments of the present application and are not intended to limit the present application. For those skilled in the art, the present application may have various changes and variations. Any modification, equivalent replacement, improvement, etc. made within the spirit and principle of the present application should be included within the scope of the claims of the present application.

Claims

1. A method for positioning a board component, characterized in that: The steps include: Acquire a standard board image and a board image to be tested; the standard board image includes a plurality of first local feature points; the board image to be tested is divided into a plurality of regions, each of the regions includes a second local feature point and a second device associated with the second local feature point, and the second device associated with the second local feature point is a plurality of devices in the region where the second local feature point is located; the second local feature points in the board image to be tested correspond one-to-one to the first local feature points in the standard board image; Determine position information of second local feature points corresponding to each of the first local feature points; Determine, according to each of the position information, a first offset between each of the first local feature points and the corresponding second local feature point; The first offset is used as a second offset of a related area related to the second local feature point; a related area of ​​the second local feature point is determined based on the second offset, wherein the related area includes the second device; and a position of the second device is identified according to the related area.

2. The board component positioning method according to claim 1, characterized in that: The determining the relevant area of ​​the second local feature point based on the second offset includes: Taking the second local feature point as a reference point, determining relevant areas covering a number of the second devices; Based on the second offset, offset correction is performed on the relevant area.

3. The board component positioning method according to any one of claims 1 to 2, characterized in that: The standard board image includes at least two first global feature points; the board image to be tested includes at least two second global feature points; The step of determining the position information of the second local feature points corresponding to each of the first local feature points comprises: Aligning the image of the board to be tested with the image of the standard board according to the first global feature point in the image of the standard board and the second global feature point in the image of the board to be tested; Obtaining the position coordinates of the first local feature point in the standard board image; Determine a first detection area located in the standard board image according to the position coordinates of the first local feature point; Determine a second detection area located in the image of the board to be tested according to the first detection area; Traversing the pixel points belonging to the second detection area in the image of the board to be tested, and obtaining the color value of each pixel point; According to the color value of each pixel and a preset color threshold, a corresponding second local feature point in the image of the board to be tested is determined.

4. The board component positioning method according to claim 3, characterized in that: The first global feature point is set in the diagonal direction of the standard board image; the step of aligning the board image to be tested with the standard board image according to the first global feature point in the standard board image and the second global feature point in the board image to be tested comprises: Randomly select a second global feature point from the image of the board to be tested, and align the second global feature point with a first global feature point in the standard board image; Taking the one second global feature point as a fixed point, the image of the board to be tested is rotated and scaled around the fixed point so that another second global feature point in the image of the board to be tested is aligned with another first global feature point in the standard board image, so that the image of the board to be tested is aligned with the standard board image.

5. A method for positioning a board component, characterized in that: The steps include: Acquire a standard board image and a board image to be tested; the standard board image includes a plurality of first local feature points; the board image to be tested is divided into a plurality of regions, each of the regions includes a second local feature point and a second device associated with the second local feature point, and the second device associated with the second local feature point is a plurality of devices in the region where the second local feature point is located; the second local feature points in the board image to be tested correspond one-to-one to the first local feature points in the standard board image; Determine position information of second local feature points corresponding to each of the first local feature points; Determine, according to each of the position information, a first offset between each of the first local feature points and the corresponding second local feature point; The first offset is used as a second offset between a second device corresponding to the first device; the position of the second device related to the second local feature point is determined according to the position of the first device and the second offset; wherein the first device is a device in the standard board image.

6. The board component positioning method according to claim 5, characterized in that: The standard board image includes at least two first global feature points; the board image to be tested includes at least two second global feature points; The step of determining the position information of the second local feature points corresponding to each of the first local feature points comprises: Aligning the image of the board to be tested with the image of the standard board according to the first global feature point in the image of the standard board and the second global feature point in the image of the board to be tested; Obtaining the position coordinates of the first local feature point in the standard board image; Determine a first detection area located in the standard board image according to the position coordinates of the first local feature point; Determine a second detection area located in the image of the board to be tested according to the first detection area; Traversing the pixel points belonging to the second detection area in the image of the board to be tested, and obtaining the color value of each pixel point; According to the color value of each pixel and a preset color threshold, a corresponding second local feature point in the image of the board to be tested is determined.

7. The board component positioning method according to claim 6, characterized in that: The first global feature point is set in the diagonal direction of the standard board image; the step of aligning the board image to be tested with the standard board image according to the first global feature point in the standard board image and the second global feature point in the board image to be tested comprises: Randomly select a second global feature point from the image of the board to be tested, and align the second global feature point with a first global feature point in the standard board image; Taking the one second global feature point as a fixed point, the image of the board to be tested is rotated and scaled around the fixed point so that another second global feature point in the image of the board to be tested is aligned with another first global feature point in the standard board image, so that the image of the board to be tested is aligned with the standard board image.

8. A method for detecting board components, characterized in that: The board card device detection method is used in a board card device detector, the board card device detector includes an imaging component and a detection component, and the board card device detection method includes the following steps: Move the imaging component to take a picture of the board to be tested to obtain an image of the board to be tested, wherein the image of the board to be tested includes a plurality of second components; According to the board component positioning method according to any one of claims 1 to 7, the second component in the board to be tested image is positioned; The detection component is controlled to perform device defect detection on the positioned second device to obtain a defect detection result of the image of the board to be tested.

9. A card component positioning device, characterized in that: include: An image acquisition module is used to acquire a standard board image and a board image to be tested; the standard board image includes a plurality of first local feature points; the board image to be tested is divided into a plurality of regions, each of the regions includes a second local feature point and a second device related to the second local feature point, and the second device related to the second local feature point is a plurality of devices in the region where the second local feature point is located; the second local feature points in the board image to be tested correspond one-to-one to the first local feature points in the standard board image; A position information determination module, used to determine position information of second local feature points corresponding to each of the first local feature points; an offset determination module, used to determine, according to each of the position information, a first offset between each of the first local feature points and the corresponding second local feature point; A position determination module is used to use the first offset as a second offset of a related area related to the second local feature point; determine the related area of ​​the second local feature point based on the second offset, wherein the related area includes the second device; and identify the position of the second device according to the related area.

10. A card component positioning device, characterized in that: include: An image acquisition module is used to acquire a standard board image and a board image to be tested; the standard board image includes a plurality of first local feature points; the board image to be tested is divided into a plurality of regions, each of the regions includes a second local feature point and a second device related to the second local feature point, and the second device related to the second local feature point is a plurality of devices in the region where the second local feature point is located; the second local feature points in the board image to be tested correspond one-to-one to the first local feature points in the standard board image; A position information determination module, used to determine position information of second local feature points corresponding to each of the first local feature points; An offset determination module, used to determine, according to each of the position information, a first offset between each of the first local feature points and the corresponding second local feature point; A position determination module is used to use the first offset as a second offset between a second device corresponding to the first device; determine the position of the second device related to the second local feature point according to the position of the first device and the second offset; wherein the first device is a device in the standard board image.

11. A board component detection device, characterized in that: include: A shooting module, used for moving the imaging component to take a picture of the board to be tested to obtain an image of the board to be tested, wherein the image of the board to be tested includes a plurality of second components; A positioning module, used for positioning the second device in the image of the board to be tested according to the board device positioning method according to any one of claims 1 to 7; The defect detection module is used to control the detection component to perform device defect detection on the positioned second device to obtain the defect detection result of the image of the board to be tested.

12. An electronic device, characterized in that: include: A processor and a memory; wherein the memory stores a computer program, and the computer program is suitable for being loaded by the processor and executing the method according to any one of claims 1 to 8.

13. A computer-readable storage medium having a computer program stored thereon, characterized in that: When the computer program is executed by a processor, the method according to any one of claims 1 to 8 is implemented.