PCB board detection device and marking method with double-sided marking function
By designing a PCB board detection device with double-sided marking function, and using image acquisition and marking to add components, the problem of low detection efficiency of PCB board in the prior art is solved, and comprehensive intelligent detection and marking of the front and back of the PCB board is achieved.
Patent Information
- Application Number
- CN202210937798.7
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2022-08-05
- Publication Date
- 2025-03-07
- Estimated Expiration
- 2042-08-05
AI Technical Summary
The existing PCB board detection devices are less efficient during detection, making it difficult to fully detect the front and back of the PCB board, resulting in incomplete inspection and a lot of labor.
A PCB board detection device with double-sided marking function is designed, and the first and second image acquisition devices are used to collect the front and back images of the PCB board respectively, and mark information is added on the upper and lower sides of the PCB board through the transport device and marking addition component.
Through intelligent detection and the addition of labeling information, the comprehensiveness and efficiency of PCB board detection are significantly improved and manpower investment is reduced.
Smart Images

Figure CN115308227B_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the field of artificial intelligence technology, and in particular to a PCB board detection device and a marking method with a double-sided marking function. Background Art
[0002] PCB board detection devices can be used to detect various types of PCB boards to detect whether there are defects on the PCB boards. Existing PCB detection devices all collect PCB board images through image acquisition devices and save them for inspection personnel to view. Inspection personnel determine whether the PCB board is qualified by checking the image corresponding to each PCB board. However, this technical method requires inspection personnel to carefully check each high-definition image, and inspection personnel can usually only carefully check the front side of the PCB board, but cannot conveniently inspect the back side of the PCB board, making it difficult to timely discover defects on the back side of the PCB board, resulting in incomplete inspection of the PCB board, low inspection efficiency, and a large amount of manpower. Therefore, the PCB board detection device in the prior art has the problem of low efficiency when performing PCB board inspection. Summary of the invention
[0003] The embodiment of the present invention provides a PCB board detection device and a marking method with a double-sided marking function, aiming to solve the problem of low efficiency of the PCB board detection device in the prior art when performing PCB board detection.
[0004] In a first aspect, an embodiment of the present invention provides a PCB board detection device with a double-sided marking function, the detection device comprising a first image acquisition device and a second image acquisition device mounted on a mounting bracket, a bracket slide rail disposed on the mounting bracket, and a transfer device mounted on the bracket slide rail;
[0005] The transfer device comprises a transfer driver mounted on the support rail, and a magnetic transfer plate fixedly connected to the lower end of the transfer driver via a connecting plate; the transfer driver drives the magnetic transfer plate to slide along the support rail via the connecting plate;
[0006] The lower end surface of the magnetic transfer plate is provided with a plurality of suction cups, and the top of each suction cup is provided with a magnetic suction component, and the suction cup is fixed to the lower end surface of the magnetic transfer plate by the magnetic suction force between the magnetic suction component and the magnetic transfer plate;
[0007] At least one first marking component is provided on the magnetic transfer plate, and at least one second marking component is provided below the support rail; the first image acquisition device, the second image acquisition device, the transfer driver, the first marking component and the second marking component are all electrically connected to the controller of the detection device, and the controller receives the PCB board images acquired by the first image acquisition device and the second image acquisition device and sends a control signal to control the transfer driver, the first marking component and the second marking component;
[0008] The first marking adding component adds corresponding marking information on the upper end surface of the PCB board sucked under the magnetic transfer plate according to the received control signal; the second marking adding component adds corresponding marking information on the lower end surface of the PCB board sucked under the magnetic transfer plate according to the received control signal.
[0009] In a second aspect, an embodiment of the present invention further provides a marking method for PCB board detection, the method is applied to the controller of the PCB board detection device with double-sided marking function as described in the first aspect above, and the method includes:
[0010] If a detection instruction is received, an initial image of the PCB board is acquired; the initial image includes a first image and a second image, the first image is an image acquired by the first image acquisition device shooting the top of the PCB board, and the second image is an image acquired by the second image acquisition device shooting the bottom of the PCB board;
[0011] Performing pixel dissolution on the initial image to determine a circuit line contour corresponding to the initial image;
[0012] Filtering the circuit line contour to obtain a discontinuous area according to a preset contour filtering rule;
[0013] Acquire a regional image of the discontinuous region in the initial image;
[0014] Performing uniformity identification on each of the regional images to obtain an identification result of whether a preset uniformity condition is met;
[0015] Acquire, according to the recognition result, the coordinate position of the regional image whose uniformity does not satisfy the uniformity condition in the regional image, and generate, according to the image to which the coordinate position belongs, a first mark control signal corresponding to the first image and a second mark control signal corresponding to the second image;
[0016] The first mark control signal is sent to the first mark adding component and the second mark control signal is sent to the second mark adding component at the same time, so that the first mark adding component adds corresponding first mark information on the upper end surface of the PCB board sucked under the magnetic transfer plate, and the second mark adding component adds corresponding second mark information on the lower end surface of the PCB board sucked under the magnetic transfer plate.
[0017] In a third aspect, an embodiment of the present invention further provides a computer device, which includes a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the processor implements the marking method for PCB board detection described in the second aspect when executing the computer program.
[0018] In a fourth aspect, an embodiment of the present invention further provides a computer-readable storage medium, wherein the computer-readable storage medium stores a computer program, and when the computer program is executed by a processor, the processor executes the marking method for PCB board detection described in the second aspect above.
[0019] The embodiment of the present invention provides a PCB board detection device and marking method with a double-sided marking function. The method includes: obtaining an initial image containing images of the upper and lower surfaces of a PCB board, performing pixel dissolution on the initial image to determine the circuit line contour corresponding to the initial image; screening out non-continuous areas from the circuit line contour and obtaining the corresponding regional images in the initial image, performing uniformity recognition on the regional images to obtain corresponding recognition results, obtaining the coordinate position of the regional image whose uniformity does not meet the uniformity condition according to the recognition result, generating a first marking control signal and a second marking control signal for sending, so as to add the corresponding first marking information and the second marking information on the upper and lower surfaces of the corresponding PCB board respectively. In the above method, the initial images of the upper and lower surfaces of the PCB board can be collected by an image acquisition device and intelligently identified, and after determining the regional image that does not meet the corresponding conditions and obtaining the position coordinates, the marking information can be added to the upper and lower surfaces of the PCB board by a marking adding component, so that the PCB board can be intelligently inspected on both sides and the marking information can be added, which is convenient for subsequent inspection personnel to re-inspect, and greatly improves the comprehensiveness and efficiency of PCB board inspection. BRIEF DESCRIPTION OF THE DRAWINGS
[0020] In order to more clearly illustrate the technical solutions of the embodiments of the present invention, the accompanying drawings required for use in the description of the embodiments will be briefly introduced below. Obviously, the accompanying drawings in the following description are some embodiments of the present invention. For ordinary technicians in this field, other accompanying drawings can be obtained based on these accompanying drawings without paying any creative work.
[0021] Figure 1The overall structure diagram of the PCB board detection device with double-sided marking function provided by the embodiment of the present invention;
[0022] Figure 2 Another overall structural diagram of a PCB board detection device with double-sided marking function provided by an embodiment of the present invention;
[0023] Figure 3 A partial structural diagram of a PCB board detection device with double-sided marking function provided by an embodiment of the present invention;
[0024] Figure 4 Another partial structural diagram of a PCB board detection device with double-sided marking function provided by an embodiment of the present invention;
[0025] Figure 5 A structural diagram of a first tag adding component provided in an embodiment of the present invention;
[0026] Figure 6 A structural diagram of a second tag adding component provided in an embodiment of the present invention;
[0027] Figure 7 A circuit connection structure diagram of a PCB board detection device with a double-sided marking function provided by an embodiment of the present invention;
[0028] Figure 8 A schematic diagram of a flow chart of a marking method for PCB board detection provided by an embodiment of the present invention;
[0029] Fig. 9 A schematic diagram of a sub-process of a marking method for PCB board detection provided by an embodiment of the present invention;
[0030] Fig.10 A schematic diagram of another sub-process of the marking method for PCB board detection provided by an embodiment of the present invention;
[0031] Fig.11 Another schematic diagram of a flow chart of a marking method for PCB board detection provided by an embodiment of the present invention;
[0032] Fig.12 A schematic diagram of another sub-process of a marking method for PCB board detection provided by an embodiment of the present invention;
[0033] Fig.13 A schematic block diagram of a computer device provided in an embodiment of the present invention. DETAILED DESCRIPTION
[0034] The following will be combined with the drawings in the embodiments of the present invention to clearly and completely describe the technical solutions in the embodiments of the present invention. Obviously, the described embodiments are part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present invention.
[0035] It should be understood that when used in this specification and the appended claims, the terms "include" and "comprises" indicate the presence of described features, integers, steps, operations, elements and / or components, but do not exclude the presence or addition of one or more other features, integers, steps, operations, elements, components and / or combinations thereof.
[0036] It should also be understood that the terms used in this specification of the present invention are only for the purpose of describing specific embodiments and are not intended to limit the present invention. As used in the specification of the present invention and the appended claims, unless the context clearly indicates otherwise, the singular forms "a", "an" and "the" are intended to include plural forms.
[0037] It should be further understood that the term "and / or" used in the present description and the appended claims refers to any and all possible combinations of one or more of the associated listed items, and includes these combinations.
[0038] See also Figure 1 and Figure 2As shown in the figure, the embodiment of the present application discloses a PCB board detection device with a double-sided marking function, wherein the PCB board detection device 1 includes a conveying mechanism 10, a mounting bracket 20 disposed on the upper side of the conveying mechanism 10, a first illuminating lamp 30 fixed on the upper side of the conveying mechanism 10, and a second illuminating lamp 32 fixed on the lower side of the conveying mechanism; the PCB board detection device 1 also includes a first image acquisition device 31 mounted on the mounting bracket 20, a second image acquisition device 33, a bracket slide rail 21 disposed on the mounting bracket 20, and a transfer device 4 mounted on the bracket slide rail 21. The first image acquisition device 31 can be installed on one side of the first illuminating lamp 30, and the second image acquisition device 33 can be installed on one side of the second illuminating lamp 32. The conveying mechanism 10 is used to horizontally convey the PCB board to be inspected. The conveying mechanism 10 is provided with a long strip of inspection through-holes, and the long side direction of the inspection through-holes is perpendicular to the conveying direction of the conveying mechanism 10. When the PCB board is conveyed by the conveying mechanism 10, the first illuminating lamp 30 illuminates the PCB board to be inspected and collects the light reflected from the front side (upper end face) of the PCB board through the first image acquisition device 31 to achieve imaging. The light emitted by the second illuminating lamp 32 passes through the inspection through-holes to illuminate the PCB board to be inspected, and collects the light reflected from the back side (lower end face) of the PCB board through the second image acquisition device 33 to achieve imaging. The first image acquisition device 31 acquires the first image, and the second image acquisition device 33 acquires the second image. An initial image corresponding to the PCB board and including the first image and the second image can be obtained. By analyzing the initial images acquired by the first image acquisition device 31 and the second image acquisition device 33, intelligent detection of defects on the front and back sides of the PCB board can be achieved.
[0039] Specifically, Figures 3 to 7As shown, a PCB board detection device with a double-sided marking function is disclosed in an embodiment of the present application, wherein the transfer device 4 includes a transfer driver 41 mounted on the bracket slide rail 21, and a magnetic transfer plate 43 fixedly connected to the lower end of the transfer driver 41 through a connecting plate 42; the transfer driver 41 drives the magnetic transfer plate 43 to slide along the direction of the bracket slide rail 21 through the connecting plate 42; the lower end surface of the magnetic transfer plate 43 is provided with a plurality of suction cups 432, and the top of each of the suction cups 432 is provided with a magnetic suction component (not shown in the figure), and the suction cup 432 is fixed to the lower end surface of the magnetic transfer plate 43 by the magnetic suction force between the magnetic suction component and the magnetic transfer plate 43; at least one first marking adding component 50 is provided on the magnetic transfer plate 43, and at least one second marking adding component 60 is provided below the bracket slide rail 21, and the second marking adding component 60 can be fixedly installed on the conveying bracket 110 on the side of the conveying mechanism 10; the first image acquisition device 31, the second image acquisition device 33, the transfer driver 41, the first mark adding component 50 and the second mark adding component 60 are all electrically connected to the controller 45 of the detection device 1, and the controller 45 receives the PCB board images acquired by the first image acquisition device 31 and the second image acquisition device 33 and sends a control signal to control the transfer driver 41, the first mark adding component 50 and the second mark adding component 60; the first mark adding component 50 adds corresponding mark information on the upper end surface of the PCB board sucked under the magnetic transfer plate 43 according to the received control signal; the second mark adding component 60 adds corresponding mark information on the lower end surface of the PCB board sucked under the magnetic transfer plate 43 according to the received control signal.
[0040] Specifically, Figure 3As shown, a first placement table 11 and a second placement table 12 are provided on both sides of the transmission mechanism 10, and the long axis direction of the bracket slide rail 21 can be perpendicular to the direction in which the transmission mechanism 10 transmits the PCB board. The PCB boards can be stored on the first placement table 11 and the second placement table 12. The transmission mechanism 10 performs front defect detection on the PCB boards placed thereon when the PCB boards pass through the first lighting lamp 30 and the lower side of the first image acquisition device 31, and performs back defect detection through the second lighting lamp 32 and the second image acquisition device 33. The transfer device 4 is used to absorb the PCB boards that have completed defect detection on the transmission mechanism 10 and transfer them to the first placement table 11 or the second placement table 12. The specific use process of the transfer device 4 is to locate the non-circuit area of the PCB board. Generally speaking, the non-circuit areas in the PCB boards of the same type (same specifications) are the same. The suction cup 432 is manually moved to be adsorbed on the lower end surface of the magnetic transfer plate 43 to move the suction cup 432 to the position corresponding to the non-circuit area in the PCB board. When the driving mechanism drives the bracket slide rail 21 to descend, the transfer plate 43 can be pressed down at the same time, and the suction cup 432 fixed on the lower end surface of the transfer plate 43 can absorb the PCB board to be transferred. At this time, the suction cup 432 is fixed on the non-circuit area in the PCB board.
[0041] If a flawless PCB board is placed on the first placement table 11 and a defective PCB board is placed on the second placement table 12, the second marking adding component 60 can be fixedly installed on the conveying bracket 110 between the conveying mechanism 10 and the second placement table 12 to facilitate adding marking information to the lower end surface of the defective PCB board.
[0042] Specifically, a flexible cavity is provided at the lower end of the suction cup 432, and the flexible cavity is connected to a negative pressure generator (not shown in the figure) through a connecting tube 4322. When the flexible cavity at the lower end of the suction cup 432 contacts the PCB board, the negative pressure generator (such as a vacuum pump) is started, and the air in the flexible cavity can be evacuated through the connecting tube 4322, so that the flexible concave cavity generates negative pressure and is tightly pressed against the PCB board, so that the suction cup 432 can absorb the PCB board; when the transfer driver 41 drives the transfer plate 43 to slide along the bracket slide rail 21, the PCB board absorbed by the lower side of the suction cup 432 can be transferred.
[0043] The controller 45 can send control signals to the transfer driver 41, the first marking adding component 50 and the second marking adding component 60 respectively. For example, the controller 45 can send a transfer control signal to the transfer driver 41 to control the transfer driver 41 to drive the magnetic transfer plate 43 to move and perform a transfer operation on the PCB board according to the transfer control signal; the controller 45 can also send a marking control signal to the first marking adding component 50 and the second marking adding component 60, the first marking adding component 50 adds corresponding marking information on the upper end surface of the PCB board sucked under the magnetic transfer plate 43 according to the received control signal, and the second marking adding component 60 adds corresponding marking information on the lower end surface of the PCB board sucked under the magnetic transfer plate 43 according to the received control signal.
[0044] The first image acquisition device 31 and the second image acquisition device 33 output the acquired initial images of the PCB board to the controller 45. The controller 45 analyzes the initial images to determine the defects of the PCB board corresponding to the initial images, and sends corresponding marking control signals to the first marking adding component 50 and the second marking adding component 60 based on the specific location of the defect. When the transfer device 4 absorbs the defective PCB board, the first marking adding component 50 and the second marking adding component 60 can add corresponding marking information to the absorbed PCB board, that is, the added marking information corresponds to the identified defects of the PCB board.
[0045] In a specific embodiment, the first marking component 50 includes a first slide rail 51 disposed at the edge of the magnetic transfer plate 43, a first drive motor 52 disposed on the first slide rail 51 and capable of sliding horizontally along the first slide rail 51, a first lifting cylinder 53 fixedly connected to the end of the first drive motor 52, and a first sliding block 54 assembled on the first lifting cylinder 53; the first sliding block 54 slides vertically under the drive of the first lifting cylinder 53, the first sliding block 54 is fixedly connected to the second slide rail 56 through a bracket 55, the second slide rail 56 is disposed on the lower side of the magnetic transfer plate 43, the second drive motor 57 is disposed on the second slide rail 56 and capable of sliding horizontally along the second slide rail 56, and a first marking pen 58 is fixedly disposed at the lower end of the second drive motor 57. Specifically, the first slide rail 51 is perpendicular to the second slide rail 56.
[0046] Specifically, when the first marking adding component 50 receives a marking control signal from the controller 45, it controls the first marking pen 58 to move to an area corresponding to the marking control signal, and further controls the first marking pen 58 to descend so that the pen tip marks on the PCB board, thereby adding corresponding marking information.
[0047] Specifically, the controller 45 is electrically connected to the first drive motor 52, the second drive motor 57 and the first lifting cylinder 53. Specifically, the first drive motor 52 drives the first lifting cylinder 53 to slide horizontally along the first slide rail 51, the first lifting cylinder 53 drives the first sliding block 54, the bracket 55, the second slide rail 56, the second drive motor 57 and the first marking pen 58 to slide horizontally along the first slide rail 51, the first lifting cylinder 53 drives the first sliding block 54 to slide vertically, the first sliding block 54 drives the bracket 55, the second slide rail 56, the second drive motor 57 and the first marking pen 58 to slide vertically synchronously, and the second drive motor 57 drives the first marking pen 58 to slide horizontally along the second slide rail 56. The first drive motor 52 and the second drive motor 57 cooperate to realize the function of controlling the first marking pen 58 to move to the area corresponding to the marking control signal; the first lifting cylinder 53 can realize the function of controlling the first marking pen 58 to descend for marking.
[0048] In a specific embodiment, the second marking adding component 60 includes a third slide rail 61 fixedly arranged below the bracket slide rail 21, a third drive motor 62 arranged on the third slide rail 61 and capable of sliding horizontally along the third slide rail 61, a second lifting cylinder 63 fixedly connected to the end of the third drive motor 62, and a second sliding block 64 assembled on the second lifting cylinder 63; the second sliding block 64 slides vertically under the drive of the second lifting cylinder 63, the second sliding block 64 is fixedly connected to the fourth slide rail 65, the fourth drive motor 66 is arranged on the fourth slide rail 65 and can slide horizontally along the fourth slide rail 65, and a second marking pen 67 is fixedly arranged at the end of the fourth drive motor 66.
[0049] Specifically, when the second marking adding component 60 receives the marking control signal from the controller 45, it controls the second marking pen 67 to move to the area corresponding to the marking control signal, and further controls the second marking pen 67 to rise so that the pen tip marks the lower end surface of the PCB board, thereby adding corresponding marking information. The controller 45 is electrically connected to the third driving motor 62, the fourth driving motor 66 and the second lifting cylinder 63. Specifically, the third driving motor 62 drives the second lifting cylinder 63 to slide horizontally along the third slide rail 61, the second lifting cylinder 63 drives the second sliding block 64, the fourth slide rail 65, the fourth driving motor 66 and the second marking pen 67 to slide horizontally along the third slide rail 61, the second lifting cylinder 63 drives the second sliding block 64 to slide vertically, the second sliding block 64 drives the fourth slide rail 65, the fourth driving motor 66 and the second marking pen 67 to slide vertically synchronously, and the fourth driving motor 66 drives the second marking pen 67 to slide horizontally along the fourth slide rail 65. The function of controlling the second marking pen 67 to move to the area corresponding to the marking control signal can be realized through the cooperation of the third driving motor 62 and the fourth driving motor 66; the function of controlling the second marking pen 67 to rise for marking can be realized through the second lifting cylinder 63.
[0050] See also Figure 8 , the embodiment of the present application also discloses a marking method for PCB board detection, which is applied to the controller 45 of the PCB board detection device 1. The marking method for PCB board detection is executed by the application software installed in the controller 45. The controller 45 is a control device for executing the marking method for PCB board detection to perform intelligent analysis on the initial image of the PCB board and add marking information on both sides, such as an MCU chip, etc.; wherein the controller 45 can also send control signals to various functional components in the PCB board detection device 1 to control each functional component. Figure 8 As shown, the method includes steps S110 to S170.
[0051] S110: If a detection instruction is received, an initial image of the PCB board is acquired.
[0052] Upon receiving a detection instruction, an initial image of the PCB board acquired by the first image acquisition device and the second image acquisition device is acquired. The initial image includes a first image and a second image, wherein the first image is an image acquired by the first image acquisition device shooting the top of the PCB board, and the second image is an image acquired by the second image acquisition device shooting the bottom of the PCB board. If the controller receives a detection instruction input by the user, it can send an acquisition instruction to the first image acquisition device and the second image acquisition device, and the first image acquisition device and the second image acquisition device can acquire images of the PCB board transmitted on the transmission mechanism, thereby acquiring the initial image of the PCB board acquired by the first image acquisition device and the second image acquisition device.
[0053] S120: Perform pixel dissolution on the initial image to determine a circuit line contour corresponding to the initial image.
[0054] The initial image is pixel-dissolved to determine the circuit line contour corresponding to the initial image. The initial image can be pixel-dissolved to obtain the corresponding circuit line contour from the initial image, and the circuit line contour is the contour information corresponding to the circuit line in the initial image.
[0055] In one embodiment, if Fig. 9 As shown, step S120 includes sub-steps S121, S122, S123 and S124.
[0056] S121. Obtain pixel points whose pixel values are within a preset pixel range from the initial image to obtain an initial pixel area.
[0057] Pixels whose pixel values are within a preset pixel range can be obtained from the initial image. Each pixel in the initial image corresponds to a pixel value including three color channels (RGB, red, green, and blue). The pixel range corresponds to a pixel value range corresponding to the three color channels. It can be determined whether the pixel values of each pixel in the initial image in the three color channels are all within the pixel range, and all the pixels within the pixel range are obtained to form an initial pixel area. For example, the circuit lines on the PCB board are usually copper wires, and the pixel range can be set to a pixel value range close to the copper wire, so that the initial pixel area obtained is the pixel area close to the copper wire pixel value.
[0058] S122: Calculate the contrast value between the pixel point at the edge of the initial pixel area and other surrounding pixel points.
[0059] The pixel points at the edge of the initial pixel area are obtained, and the contrast value between each pixel point at the edge and other surrounding pixel points is calculated. Specifically, the difference between the pixel values of other surrounding pixels and the pixel point at the edge is calculated and the average value is taken to obtain the contrast value of the pixel point.
[0060] For example, the specific calculation formula may be as shown in formula (1).
[0061]
[0062] Among them, x i is the pixel value of the ith pixel point around the edge pixel point, x0 is the pixel value of a certain pixel point on the edge, and M is the total number of surrounding pixels. Among them, other surrounding pixels can be the pixels of the first circle around a certain pixel point on the edge, then M=8; other surrounding pixels can be the pixels of the first and second circles around a certain pixel point on the edge, then M=24.
[0063] S123, acquiring edge pixel points in the initial pixel area whose contrast values are greater than a preset contrast threshold as target contour points.
[0064] The contrast value of the edge pixel point in the initial pixel area is judged against a preset contrast threshold, so as to obtain the edge pixel point whose contrast value is greater than the contrast threshold from the initial pixel area as the target contour point according to the judgment result.
[0065] S124, performing pixel dissolution on the initial image according to the target contour points to obtain a circuit line contour corresponding to the initial image.
[0066] After obtaining the target contour points, the initial image can be pixel-dissolved according to the target contour points. Pixel dissolution means removing other pixel points other than the target contour points from the initial image. By connecting the remaining pixel points after pixel dissolution, the corresponding circuit contour line can be obtained. The circuit contour line is a binary image. The pixel points corresponding to the target contour points constitute the contour information in the circuit contour line, and other areas are blank.
[0067] Since the pixel range of the acquired initial pixel area is relatively wide, the outer edge contour of the circuit line cannot be accurately determined. Therefore, the accurate circuit line contour in the initial pixel area can be determined by calculating the pixel value of the edge pixel point and judging whether the pixel value is greater than the contrast threshold.
[0068] S130 , filtering out discontinuous areas from the circuit line contour according to preset contour filtering rules.
[0069] The circuit line contour is screened according to the contour screening rule, thereby screening out the discontinuous area in the circuit contour. It can be determined whether the distance between the contour line in the circuit line contour and another contour line along the normal line is less than the spacing threshold in the contour screening rule. For example, if there are two adjacent and parallel contour lines, and the normal direction of one contour line is the horizontal direction, the spacing between the two contour lines in the horizontal direction can be obtained and it can be determined whether the spacing is less than the spacing threshold.
[0070] If the spacing is smaller than the spacing threshold, it indicates that the circuit lines include a discontinuous circuit line, and the area around the discontinuous circuit line is determined as a discontinuous area.
[0071] S140: Obtain a regional image of the discontinuous region in the initial image.
[0072] The non-continuous area is a partial image area in the circuit line contour. According to the position of the non-continuous area, the image corresponding to the position of the non-continuous area in the initial image can be determined as a regional image. The regional image is an image containing corresponding colors, that is, the actual color image corresponding to the binarized non-continuous area is obtained.
[0073] S150, performing uniformity identification on each of the regional images to obtain an identification result of whether a preset uniformity condition is satisfied.
[0074] The uniformity recognition is performed on each regional image obtained from the initial image to obtain the corresponding recognition result. The uniformity recognition is performed on the obtained regional image. If the uniformity of the regional image meets the uniformity condition, it indicates that the regional image does not need to be focused on; if the uniformity of the regional image does not meet the uniformity condition, it indicates that the regional image needs to be focused on.
[0075] In one embodiment, if Fig.10 As shown, step S150 includes sub-steps S151 and S152.
[0076] S151, acquiring uniformity feature information of the regional image; S152, determining whether the uniformity feature information of each regional image is within the numerical range of the uniformity condition, so as to obtain a recognition result of each regional image.
[0077] Specifically, the uniformity characteristic information of the regional image can be obtained, and it can be determined whether the uniformity characteristic information of the regional image is within the numerical range of the uniformity condition. The uniformity characteristic information includes pixel value standard deviation, pixel value extreme difference, pixel median difference, etc., wherein the pixel value extreme difference is the pixel difference between the pixel point with the maximum pixel value and the pixel point with the minimum pixel value in the regional image, and the pixel median difference is the difference between the pixel average value and the pixel median value in the regional image.
[0078] It is judged whether all the numerical values contained in the uniformity feature information are within the numerical range of the uniformity condition. If all the numerical values are within the numerical range of the uniformity condition, an identification result that meets the preset uniformity condition is obtained; if all the numerical values are not within the numerical range of the uniformity condition, an identification result that does not meet the preset uniformity condition is obtained.
[0079] S160. Obtain the coordinate position of the regional image whose uniformity does not satisfy the uniformity condition in the regional image according to the recognition result, and generate a first marking control signal corresponding to the first image and a second marking control signal corresponding to the second image according to the image to which the coordinate position belongs.
[0080] The coordinate position of the regional image whose uniformity does not meet the uniformity condition in the regional image is obtained according to the recognition result, and a corresponding mark control signal is generated according to the image to which the coordinate position belongs. Specifically, if a certain coordinate position belongs to the first image, a first mark control signal corresponding to the first image is generated based on the coordinate position; if a certain coordinate position belongs to the second image, a second mark control signal corresponding to the second image is generated based on the coordinate position, and the first mark control signal and the second mark control signal both include drive control instructions corresponding to the coordinate position.
[0081] S170, sending the first mark control signal to the first mark adding component and simultaneously sending the second mark control signal to the second mark adding component, so that the first mark adding component adds corresponding first mark information on the upper end surface of the PCB board sucked under the magnetic transfer plate, and the second mark adding component adds corresponding second mark information on the lower end surface of the PCB board sucked under the magnetic transfer plate.
[0082] The controller sends a first marking control signal to the first marking adding component and a second marking control signal to the second marking adding component respectively. After the first marking adding component receives the first marking control signal, it can move the first marking pen to the corresponding area and add corresponding marking information on the upper end surface of the absorbed PCB board. After the second marking adding component receives the second marking control signal, it can move the second marking pen to the corresponding area and add corresponding marking information on the lower end surface of the absorbed PCB board.
[0083] For example, to add marking information on the upper end surface of the PCB board, the first marking pen can be moved to the position on the PCB board corresponding to the regional image in the first marking control signal, and a line can be drawn at the position corresponding to the regional image to mark the defect in the PCB board corresponding to the regional image, such as drawing a circle to mark the defect position on the upper end surface of the PCB board, and the circle can be used as the added marking information. The specific method of adding marking information on the lower end surface of the PCB board by using the second marking pen is similar.
[0084] In one embodiment, if Fig.11 As shown, step S140 further includes steps S1410, S1420 and S1430.
[0085] S1410: Classify each of the regional images according to preset classification rules to obtain corresponding type information.
[0086] The regional images may also be classified according to the classification rules to obtain type information including classification information of each regional image.
[0087] In one embodiment, if Fig.12 As shown, step S141 includes sub-steps S1411, S1412 and S1413.
[0088] S1411, obtaining uniformity feature information of the regional images; S1412, determining whether the uniformity feature information of each regional image matches any classification in the classification rules; S1413, obtaining a classification in the classification rules that matches each regional image as corresponding classification information.
[0089] Specifically, the uniformity feature information of the regional image can be obtained, and the uniformity feature information includes the standard deviation of pixel values, the extreme difference of pixel values, the median difference of pixels, etc. The classification rules contain multiple categories, and each category corresponds to a set of parameter ranges. It can be determined whether the uniformity feature information of the regional image matches the parameter range of any category, so as to obtain the matching category as the classification information corresponding to the regional image.
[0090] S1420, obtaining the coordinate position of each of the regional images and generating a first marking control signal corresponding to the first image and a second marking control signal corresponding to the second image according to the classification information of the corresponding regional image in the type information and the image to which the coordinate position belongs.
[0091] According to the coordinate position of each regional image, the classification information of the corresponding regional image, and the image to which the coordinate position of the regional image belongs, a first marking control signal corresponding to the marking type of each regional image in the first image can be generated, and at the same time, a second marking control signal corresponding to the marking type of each regional image in the second image can be generated. Regional images of the same classification correspond to the same marking type, and regional images of different classifications correspond to different marking types.
[0092] S1430, sending the first mark control signal to the first mark adding component and simultaneously sending the second mark control signal to the second mark adding component, so that the first mark adding component adds corresponding first mark information on the upper end surface of the PCB board sucked under the magnetic transfer plate, and the second mark adding component adds corresponding second mark information on the lower end surface of the PCB board sucked under the magnetic transfer plate.
[0093] For example, in order to add marking information on the upper end surface of the PCB board, the first marking pen can be moved to the position corresponding to the regional image on the PCB board, and a line can be drawn at the position corresponding to the regional image to mark the defects on the upper end surface of the PCB board corresponding to the regional image. Specifically, in the embodiment of the present application, classification marking information can be added to the upper end surface of the PCB board according to the first marking control signal. If only one first marking adding component is provided, marks of different shapes can be drawn at corresponding positions on the upper end surface of the PCB board for different marking types; if multiple first marking adding components are provided, first marking pens of different colors can be configured in each first marking adding component, and the same color marking pen is used for marking the same marking type on the upper end surface, and different color marking pens are used for marking different marking types; it can also be that the same color and the same shape of mark are drawn for the same marking type on the upper end surface; and different colors or different shapes of marks are drawn for different marking types. The specific method of adding classification marking information on the lower end surface of the PCB board according to the second marking control signal by the second marking pen is similar.
[0094] In the marking method for PCB board detection provided by the embodiment of the present invention, the method includes: obtaining an initial image including images of the upper and lower surfaces of the PCB board, performing pixel dissolution on the initial image to determine the circuit line contour corresponding to the initial image; screening out non-continuous areas from the circuit line contour and obtaining the corresponding regional images in the initial image, performing uniformity recognition on the regional images to obtain corresponding recognition results, obtaining the coordinate position of the regional image whose uniformity does not meet the uniformity condition according to the recognition result, generating a first marking control signal and a second marking control signal for sending, so as to add the corresponding first marking information and the second marking information on the upper and lower surfaces of the corresponding PCB board respectively. In the above method, the initial images of the upper and lower surfaces of the PCB board can be collected by the image acquisition device and intelligently identified, and after determining the regional image that does not meet the corresponding conditions and obtaining the position coordinates, the marking information can be added to the upper and lower surfaces of the PCB board by the marking adding component, so that the PCB board can be intelligently inspected on both sides and the marking information can be added, which is convenient for subsequent inspection personnel to re-inspect, and greatly improves the comprehensiveness and efficiency of PCB board inspection.
[0095] The marking method for PCB board detection can be implemented in the form of a computer program, and the controller 45 can be implemented in the form of a computer device. The computer program can be implemented in a computer program such as Fig.13 Runs on the computer device shown.
[0096] See also Fig.13 , Fig.13 4 is a schematic block diagram of a computer device provided by an embodiment of the present invention. The computer device may be a controller 45 for executing a marking method for PCB board detection to perform intelligent detection on the PCB board and add marking information on both sides.
[0097] See also Fig.13 The computer device 500 includes a processor 502 , a memory and a network interface 505 connected via a system bus 501 , wherein the memory may include a storage medium 503 and an internal memory 504 .
[0098] The storage medium 503 may store an operating system 5031 and a computer program 5032. When the computer program 5032 is executed, the processor 502 may execute a marking method for PCB board detection, wherein the storage medium 503 may be a volatile storage medium or a non-volatile storage medium.
[0099] The processor 502 is used to provide computing and control capabilities to support the operation of the entire computer device 500 .
[0100] The internal memory 504 provides an environment for the operation of the computer program 5032 in the storage medium 503. When the computer program 5032 is executed by the processor 502, the processor 502 can execute the marking method for PCB board detection.
[0101] The network interface 505 is used for network communication, such as providing data information transmission, etc. Those skilled in the art will understand that Fig.13 The structure shown in the figure is only a block diagram of a part of the structure related to the solution of the present invention, and does not constitute a limitation on the computer device 500 to which the solution of the present invention is applied. The specific computer device 500 may include more or fewer components than those shown in the figure, or combine certain components, or have a different arrangement of components.
[0102] The processor 502 is used to run a computer program 5032 stored in the memory to implement the corresponding functions in the above-mentioned marking method for PCB board detection.
[0103] Those skilled in the art will understand that Fig.13The embodiments of the computer device shown in the figure do not constitute a limitation on the specific composition of the computer device. In other embodiments, the computer device may include more or fewer components than shown in the figure, or combine certain components, or arrange the components differently. For example, in some embodiments, the computer device may only include a memory and a processor. In such embodiments, the structure and function of the memory and the processor are the same as those of the embodiment of the present invention. Fig.13 The embodiments shown are consistent and will not be described again here.
[0104] It should be understood that in the embodiment of the present invention, the processor 502 may be a central processing unit (CPU), and the processor 502 may also be other general-purpose processors, digital signal processors (DSP), application-specific integrated circuits (ASIC), field-programmable gate arrays (FPGA) or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components, etc. Among them, the general-purpose processor may be a microprocessor or the processor may also be any conventional processor, etc.
[0105] In another embodiment of the present invention, a computer-readable storage medium is provided. The computer-readable storage medium may be a volatile or non-volatile computer-readable storage medium. The computer-readable storage medium stores a computer program, wherein when the computer program is executed by a processor, the steps included in the marking method for PCB board detection are implemented.
[0106] Those skilled in the art can clearly understand that, for the convenience and simplicity of description, the specific working process of the above-described equipment, devices and units can refer to the corresponding process in the aforementioned method embodiment, and will not be repeated here. Those of ordinary skill in the art can appreciate that the units and algorithm steps of each example described in conjunction with the embodiments disclosed herein can be implemented with electronic hardware, computer software or a combination of the two. In order to clearly illustrate the interchangeability of hardware and software, the composition and steps of each example have been generally described in the above description according to the function. Whether these functions are executed in hardware or software depends on the specific application and design constraints of the technical solution. Professional and technical personnel can use different methods to implement the described functions for each specific application, but such implementation should not be considered to exceed the scope of the present invention.
[0107] In the several embodiments provided by the present invention, it should be understood that the disclosed equipment, devices and methods can be implemented in other ways. For example, the device embodiments described above are only schematic. For example, the division of the units is only a logical function division. There may be other division methods in actual implementation. Units with the same function may also be combined into one unit. For example, multiple units or components may be combined or integrated into another system, or some features may be ignored or not executed. In addition, the mutual coupling or direct coupling or communication connection shown or discussed may be an indirect coupling or communication connection through some interfaces, devices or units, or may be an electrical, mechanical or other form of connection.
[0108] The units described as separate components may or may not be physically separated, and the components shown as units may or may not be physical units, that is, they may be located in one place or distributed on multiple network units. Some or all of the units may be selected according to actual needs to achieve the purpose of the embodiments of the present invention.
[0109] In addition, each functional unit in each embodiment of the present invention may be integrated into one processing unit, or each unit may exist physically separately, or two or more units may be integrated into one unit. The above-mentioned integrated unit may be implemented in the form of hardware or in the form of software functional units.
[0110] If the integrated unit is implemented in the form of a software functional unit and sold or used as an independent product, it can be stored in a computer-readable storage medium. Based on this understanding, the technical solution of the present invention is essentially or the part that contributes to the prior art, or all or part of the technical solution can be embodied in the form of a software product, and the computer software product is stored in a computer-readable storage medium, including a number of instructions for a computer device (which can be a personal computer, a server, or a network device, etc.) to perform all or part of the steps of the method described in each embodiment of the present invention. The aforementioned computer-readable storage medium includes: various media that can store program codes, such as a USB flash drive, a mobile hard disk, a read-only memory (ROM, Read-Only Memory), a magnetic disk or an optical disk.
[0111] The above is only a specific embodiment of the present invention, but the protection scope of the present invention is not limited thereto. Any technician familiar with the technical field can easily think of various equivalent modifications or replacements within the technical scope disclosed by the present invention, and these modifications or replacements should be included in the protection scope of the present invention. Therefore, the protection scope of the present invention shall be based on the protection scope of the claims.
Claims
1. A PCB board detection device with double-sided marking function, characterized in that: The detection device includes a first image acquisition device and a second image acquisition device mounted on a mounting bracket, a bracket slide rail disposed on the mounting bracket, and a transfer device mounted on the bracket slide rail; The transfer device comprises a transfer driver mounted on the support rail, and a magnetic transfer plate fixedly connected to the lower end of the transfer driver via a connecting plate; the transfer driver drives the magnetic transfer plate to slide along the support rail via the connecting plate; The lower end surface of the magnetic transfer plate is provided with a plurality of suction cups, and the top of each suction cup is provided with a magnetic suction component, and the suction cup is fixed to the lower end surface of the magnetic transfer plate by the magnetic suction force between the magnetic suction component and the magnetic transfer plate; At least one first marking component is provided on the magnetic transfer plate, and at least one second marking component is provided below the support rail; the first image acquisition device, the second image acquisition device, the transfer driver, the first marking component and the second marking component are all electrically connected to the controller of the detection device, and the controller receives the PCB board images acquired by the first image acquisition device and the second image acquisition device and sends a control signal to control the transfer driver, the first marking component and the second marking component; The first marking adding component adds corresponding marking information on the upper end surface of the PCB board sucked under the magnetic transfer plate according to the received control signal; the second marking adding component adds corresponding marking information on the lower end surface of the PCB board sucked under the magnetic transfer plate according to the received control signal; The first marking adding component includes a first slide rail arranged at the edge of the magnetic transfer plate, a first driving motor arranged on the first slide rail and capable of horizontally sliding along the first slide rail, a first lifting cylinder fixedly connected to the end of the first driving motor, and a first sliding block assembled on the first lifting cylinder; The first sliding block slides vertically under the drive of the first lifting cylinder. The first sliding block is fixedly connected to the second slide rail through a bracket. The second slide rail is arranged on the lower side of the magnetic transfer plate. The second drive motor is arranged on the second slide rail and can slide horizontally along the second slide rail. A first marking pen is fixedly arranged at the lower end of the second drive motor.
2. The PCB board detection device with double-sided marking function according to claim 1, characterized in that: The second marking adding assembly includes a third slide rail fixedly arranged below the bracket slide rail, a third driving motor arranged on the third slide rail and capable of horizontally sliding along the third slide rail, a second lifting cylinder fixedly connected to an end of the third driving motor, and a second sliding block assembled on the second lifting cylinder; The second sliding block slides vertically under the drive of the second lifting cylinder, the second sliding block is fixedly connected to the fourth slide rail, the fourth driving motor is arranged on the fourth slide rail and can slide horizontally along the fourth slide rail, and a second marking pen is fixedly arranged at the end of the fourth driving motor.
3. A marking method for PCB board detection, characterized in that: The method is applied to the controller of the PCB board detection device with double-sided marking function as claimed in claim 1 or 2, and the method comprises: If a detection instruction is received, an initial image of the PCB board is acquired; the initial image includes a first image and a second image, the first image is an image acquired by the first image acquisition device shooting the top of the PCB board, and the second image is an image acquired by the second image acquisition device shooting the bottom of the PCB board; Performing pixel dissolution on the initial image to determine a circuit line contour corresponding to the initial image; Filtering the circuit line contour to obtain a discontinuous area according to a preset contour filtering rule; Acquire a regional image of the discontinuous region in the initial image; Performing uniformity identification on each of the regional images to obtain an identification result of whether a preset uniformity condition is met; Acquire, according to the recognition result, the coordinate position of the regional image whose uniformity does not satisfy the uniformity condition in the regional image, and generate, according to the image to which the coordinate position belongs, a first mark control signal corresponding to the first image and a second mark control signal corresponding to the second image; The first mark control signal is sent to the first mark adding component and the second mark control signal is sent to the second mark adding component at the same time, so that the first mark adding component adds corresponding first mark information on the upper end surface of the PCB board sucked under the magnetic transfer plate, and the second mark adding component adds corresponding second mark information on the lower end surface of the PCB board sucked under the magnetic transfer plate.
4. The marking method for PCB board detection according to claim 3 is characterized in that: The performing pixel dissolving on the initial image to determine a circuit line contour corresponding to the initial image includes: Obtaining pixel points whose pixel values are within a preset pixel range from the initial image to obtain an initial pixel area; Calculate the contrast value between the pixel point at the edge of the initial pixel area and other surrounding pixel points; Acquire edge pixel points whose contrast values are greater than a preset contrast threshold in the initial pixel area as target contour points; The initial image is pixel-dissolved according to the target contour points to obtain a circuit line contour corresponding to the initial image.
5. The marking method for PCB board detection according to claim 3, characterized in that: The uniformity identification is performed on each of the regional images to obtain an identification result of whether the preset uniformity condition is met, including: Acquiring uniformity feature information of the regional image; It is determined whether the uniformity feature information of each of the regional images is within the numerical range of the uniformity condition to obtain a recognition result of each of the regional images.
6. The marking method for PCB board detection according to any one of claims 3 to 5, characterized in that: After acquiring the regional image of the discontinuous region in the initial image, the method further comprises: Classifying each of the regional images according to preset classification rules to obtain corresponding type information; Acquire the coordinate position of each of the regional images and generate a first marking control signal corresponding to the first image and a second marking control signal corresponding to the second image according to the classification information of the corresponding regional image in the type information and the image to which the coordinate position belongs; The first mark control signal is sent to the first mark adding component and the second mark control signal is sent to the second mark adding component at the same time, so that the first mark adding component adds corresponding first mark information on the upper end surface of the PCB board sucked under the magnetic transfer plate, and the second mark adding component adds corresponding second mark information on the lower end surface of the PCB board sucked under the magnetic transfer plate.
7. The marking method for PCB board detection according to claim 6, characterized in that: The step of classifying each of the regional images according to the preset classification rules to obtain corresponding type information includes: Acquiring uniformity feature information of the regional image; Determining whether the uniformity feature information of each of the regional images matches any classification in the classification rule; A classification in the classification rule that matches each of the regional images is obtained as corresponding classification information.
8. A computer 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 computer program, the marking method for PCB board detection as described in any one of claims 3 to 7 is implemented.
9. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores a computer program, and when the computer program is executed by a processor, the marking method for PCB board detection as described in any one of claims 3 to 7 is implemented.
Citation Information
Patent Citations
A manipulator system for gripping an integrated circuit board
CN109003916A
Full-automatic flexible plate single-piece transfer device and method based on machine vision
CN114314364A