PCB board detection device with marking function, marking method, equipment and medium
By integrating image acquisition, transport and marking components in the PCB board detection device, intelligent detection and marking of PCB boards is achieved, which solves the problem of low detection efficiency in the prior art and significantly improves the detection efficiency.
Patent Information
- Application Number
- CN202210937826.5
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2022-08-05
- Publication Date
- 2024-11-26
- Estimated Expiration
- 2042-08-05
AI Technical Summary
The existing PCB board detection device is inefficient, and the detector needs to carefully check the high-definition image, resulting in low detection efficiency and a lot of manpower.
A PCB board detection device with marking function is designed, including an image acquisition device, a transfer device and a marking addition component. The PCB board image is collected through the image acquisition device, the circuit line profile and discontinuous area are identified, the marking control signal is generated, and the marking is used. Add components to add marking information on the PCB board to achieve intelligent detection and marking.
By intelligently identifying and marking information, the defects on the PCB board are automatically detected, which improves the detection efficiency, reduces the time for manual re-inspection, and significantly improves the detection efficiency.
Smart Images

Figure CN115165925B_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, marking method, equipment and medium with a 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 board 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, which has low detection efficiency and requires a lot of manpower. Therefore, the PCB board detection device in the prior art has the problem of low efficiency when performing PCB board detection. Summary of the invention
[0003] The embodiments of the present invention provide a PCB board detection device, a marking method, a device and a medium with a marking function, aiming to solve the problem that the PCB board detection device in the prior art has low efficiency when performing PCB board detection.
[0004] In a first aspect, an embodiment of the present invention provides a PCB board detection device with a marking function, the detection device comprising an image acquisition device mounted on a mounting bracket, a bracket slide rail disposed on the mounting bracket, a transfer device mounted on the bracket slide rail, and a marking adding component mounted on the transfer device;
[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 of the marking adding components is disposed on the magnetic transfer plate; the image acquisition device, the transfer driver and the marking adding component are all electrically connected to the controller of the detection device, and the controller receives the PCB board image acquired by the image acquisition device and sends a control signal to control the transfer driver and the marking adding component;
[0008] The marking adding component adds corresponding marking information on 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 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 acquired by the image acquisition device is acquired;
[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] According to the recognition result, the coordinate position of the regional image whose uniformity does not meet the uniformity condition in the regional image is acquired and a corresponding marking control signal is generated;
[0016] The marking control signal is sent to the marking adding component so that the marking adding component adds corresponding marking information on 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, marking method, equipment and medium with a marking function. The method includes: obtaining an initial image of a PCB board and performing pixel dissolution 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 to generate a marking control signal, and sending the marking control signal to the marking adding component to add marking information on the corresponding PCB board. In the above method, the initial image 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 PCB board by the marking adding component, and the PCB board can be initially inspected and the marking information can be added intelligently, which is convenient for subsequent inspection personnel to re-inspect, and the inspection efficiency of the PCB board is greatly improved. 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 1 An overall structural diagram of a PCB board detection device with a marking function provided by an embodiment of the present invention;
[0022] Figure 2 A partial structural diagram of a PCB board detection device with a marking function provided by an embodiment of the present invention;
[0023] Figure 3 Another partial structural diagram of a PCB board detection device with a marking function provided by an embodiment of the present invention;
[0024] Figure 4 A structural diagram of a tag adding component provided in an embodiment of the present invention;
[0025] Figure 5 A circuit connection structure diagram of a PCB board detection device with a marking function provided by an embodiment of the present invention;
[0026] Figure 6 A schematic diagram of a flow chart of a marking method for PCB board detection provided by an embodiment of the present invention;
[0027] Figure 7 A schematic diagram of a sub-process of a marking method for PCB board detection provided by an embodiment of the present invention;
[0028] Figure 8 A schematic diagram of another sub-process of the marking method for PCB board detection provided by an embodiment of the present invention;
[0029] Fig. 9 Another schematic diagram of a flow chart 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 a marking method for PCB board detection provided by an embodiment of the present invention;
[0031] Fig.11 A schematic block diagram of a computer device provided in an embodiment of the present invention. DETAILED DESCRIPTION
[0032] 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.
[0033] 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.
[0034] 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.
[0035] 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.
[0036] See also Figure 1The embodiment of the present application discloses a PCB board detection device with a marking function, wherein the PCB board detection device 1 comprises a conveying mechanism 10, a mounting bracket 20 disposed on the upper side of the conveying mechanism 10, and a lighting lamp 30 fixed on the upper side of the conveying mechanism 10; the PCB board detection device 1 also comprises an image acquisition device 31 mounted on the mounting bracket 20, a bracket slide rail 21 disposed on the mounting bracket 20, a transfer device 4 mounted on the bracket slide rail 21, and a marking adding component 50 mounted on the transfer device 4. The image acquisition device 31 can be mounted on one side of the lighting lamp 30. The conveying mechanism 10 is used to horizontally transfer the PCB board to be detected, while the lighting lamp 30 illuminates the PCB board to be detected, and the image acquisition device 31 collects the light reflected by the PCB board to realize imaging, and obtains the initial image of the PCB board. By analyzing the initial image acquired by the image acquisition device 31, intelligent detection of defects in the PCB board can be realized.
[0037] Specifically, Figures 2 to 5 As shown, a PCB board detection device with a marking function is disclosed in the 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 suction cup 432 is provided with a magnetic suction component (not shown in the figure), and the suction cup 432 is connected to the magnetic transfer component through the magnetic suction component The magnetic attraction between the transport plates 43 is fixed to the lower end surface of the magnetic transport plate 43; at least one marking adding component 50 is provided on the magnetic transport plate 43; the image acquisition device 31, the transport driver 41 and the marking adding component 50 are all electrically connected to the controller 45 of the detection device 1, and the controller 45 receives the PCB board image acquired by the image acquisition device 31 and sends a control signal to control the transport driver 41 and the marking adding component 50; the marking adding component 50 adds corresponding marking information on the PCB board sucked under the magnetic transport plate 43 according to the received control signal.
[0038] Specifically, Figure 2As 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 defect detection on the PCB boards placed thereon when the PCB boards pass through the lower side of the searchlight 30 and the image acquisition device 31, and 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.
[0039] 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.
[0040] The controller 45 can send control signals to the transfer driver 41 and the marking adding component 50 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 marking adding component 50, and the marking adding component 50 adds marking information according to the transfer control signal.
[0041] The image acquisition device 31 outputs the acquired initial image of the PCB board to the controller 45. The controller 45 analyzes the initial image to determine the defect of the PCB board corresponding to the initial image, and sends a corresponding marking control signal to the marking adding component 50 based on the defect. When the transfer device 4 absorbs a defective PCB board, the marking adding component 50 can add corresponding marking information to the absorbed PCB board, that is, the added marking information corresponds to the defect of the PCB board identified.
[0042] In a specific embodiment, the marking adding 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 lifting cylinder 53 fixedly connected to the end of the first drive motor 52, and a sliding block 54 assembled on the lifting cylinder 53; the sliding block 54 slides vertically under the drive of the lifting cylinder 53, the 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 can slide horizontally along the second slide rail 56, and a 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.
[0043] Specifically, when the marking adding component 50 receives the marking control signal from the controller 45, it controls the marking pen 58 to move to the area corresponding to the marking control signal, and further controls the marking pen 58 to descend so that the pen tip marks on the PCB board, thereby adding corresponding marking information.
[0044] Specifically, the controller 45 is electrically connected to the first drive motor 52, the second drive motor 57 and the lifting cylinder 53. Specifically, the first drive motor 52 drives the lifting cylinder 53 to slide horizontally along the first slide rail 51, the lifting cylinder 53 drives the sliding block 54, the bracket 55, the second slide rail 56, the second drive motor 57 and the marking pen 58 to slide horizontally along the first slide rail 51, the lifting cylinder 53 drives the sliding block 54 to slide vertically, the sliding block 54 drives the bracket 55, the second slide rail 56, the second drive motor 57 and the marking pen 58 to slide vertically synchronously, and the second drive motor 57 drives the 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 marking pen 58 to move to the area corresponding to the marking control signal; the lifting cylinder 53 can realize the function of controlling the marking pen 58 to descend for marking.
[0045] See also Figure 6 , 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 intelligently analyze the initial image of the PCB board and add marking information, such as an MCU chip, etc.; wherein the controller 45 can also send a control signal to each functional component in the PCB board detection device 1 to control each functional component. Figure 6As shown, the method includes steps S110 to S170.
[0046] S110: If a detection instruction is received, an initial image of the PCB board captured by the image capture device is acquired.
[0047] Upon receiving the detection instruction, the initial image of the PCB board acquired by the image acquisition device is acquired. If the controller receives the detection instruction input by the user, it can send the acquisition instruction to the image acquisition device, and the image acquisition device can acquire the image of the PCB board transmitted on the transmission mechanism, thereby acquiring the initial image of the PCB board acquired by the image acquisition device.
[0048] S120: Perform pixel dissolution on the initial image to determine a circuit line contour corresponding to the initial image.
[0049] 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.
[0050] In one embodiment, if Figure 7 As shown, step S120 includes sub-steps S121, S122, S123 and S124.
[0051] S121. Obtain pixel points whose pixel values are within a preset pixel range from the initial image to obtain an initial pixel area.
[0052] 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.
[0053] S122: Calculate the contrast value between the pixel point at the edge of the initial pixel area and other surrounding pixel points.
[0054] 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.
[0055] For example, the specific calculation formula may be as shown in formula (1).
[0056]
[0057] 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.
[0058] S123, acquiring edge pixel points in the initial pixel area whose contrast values are greater than a preset contrast threshold as target contour points.
[0059] 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.
[0060] 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.
[0061] 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.
[0062] 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.
[0063] S130 , filtering out discontinuous areas from the circuit line contour according to preset contour filtering rules.
[0064] 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.
[0065] 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.
[0066] S140: Obtain a regional image of the discontinuous region in the initial image.
[0067] 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.
[0068] S150, performing uniformity identification on each of the regional images to obtain an identification result of whether a preset uniformity condition is satisfied.
[0069] 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.
[0070] In one embodiment, if Figure 8 As shown, step S150 includes sub-steps S151 and S152.
[0071] 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.
[0072] 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.
[0073] 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.
[0074] S160. Obtain, 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 a corresponding marking control signal.
[0075] 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 marking control signal is generated according to the coordinate position, and the marking control signal includes a driving control instruction corresponding to the coordinate position.
[0076] S170, sending the marking control signal to the marking adding component, so that the marking adding component adds corresponding marking information on the PCB board sucked under the magnetic transfer plate.
[0077] The controller sends a marking control signal to the marking adding component. After receiving the marking control signal, the marking adding component can move the marking pen to the corresponding area and add corresponding marking information on the sucked PCB board.
[0078] For example, the marking pen can be moved to a position on the PCB board corresponding to the area image, and a line can be drawn at the position corresponding to the area image to mark the defect in the PCB board corresponding to the area image. If a circle is drawn to mark the defect position, the circle can be used as the added marking information.
[0079] In one embodiment, if Fig. 9 As shown, step S140 further includes steps S1410, S1420 and S1430.
[0080] S1410: Classify each of the regional images according to preset classification rules to obtain corresponding type information.
[0081] The regional images may also be classified according to the classification rules to obtain type information including classification information of each regional image.
[0082] In one embodiment, if Fig.10 As shown, step S141 includes sub-steps S1411, S1412 and S1413.
[0083] 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.
[0084] 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.
[0085] S1420, obtaining the coordinate position of each of the regional images and generating a marking control signal including the marking type of each of the regional images according to the classification information of the corresponding regional image in the type information.
[0086] A marking control signal including the marking type of each regional image may be generated according to the coordinate position of each regional image and the classification information of the corresponding regional image. Regional images of the same classification correspond to the same marking type, and regional images of different classifications correspond to different marking types.
[0087] S1430, sending the marking control signal to the marking adding component, so that the marking adding component adds classification marking information to the corresponding area on the PCB board sucked under the magnetic transfer plate.
[0088] For example, the 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 in the PCB board corresponding to the regional image. Specifically, in the embodiment of the present application, classification marking information can be added to the PCB board according to the marking control signal. If only one marking adding component is provided, marks of different shapes can be drawn at corresponding positions on the PCB board for different marking types; if multiple marking adding components are provided, the marking pens of different marking adding components can be configured to have different colors, and the same color marking pen can be used for marking the same marking type, and different color marking pens can be used for marking different marking types; it can also be that marks of the same color and the same shape are drawn for the same marking type; marks of different colors or shapes are drawn for different marking types.
[0089] In the marking method for PCB board detection provided by the embodiment of the present invention, the method includes: obtaining the initial image of the PCB board and performing pixel dissolution to determine the circuit line contour corresponding to the initial image; screening out the discontinuous area from the circuit line contour and obtaining the corresponding regional image in the initial image, performing uniformity recognition on the regional images to obtain the corresponding recognition results, obtaining the coordinate position of the regional image whose uniformity does not meet the uniformity condition according to the recognition result to generate a marking control signal, and sending the marking control signal to the marking adding component to add marking information on the corresponding PCB board. In the above method, the initial image 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 is added to the PCB board by the marking adding component, and the PCB board can be initially detected and the marking information can be added intelligently, which is convenient for subsequent inspection personnel to re-inspect, and the inspection efficiency of the PCB board is greatly improved.
[0090] 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.11 Runs on the computer device shown.
[0091] See also Fig.11 , Fig.11 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.
[0092] See also Fig.11 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 .
[0093] 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.
[0094] The processor 502 is used to provide computing and control capabilities to support the operation of the entire computer device 500 .
[0095] 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.
[0096] 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.11 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.
[0097] 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.
[0098] Those skilled in the art will understand that Fig.11 The 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.11 The embodiments shown are consistent and will not be described again here.
[0099] 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.
[0100] 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.
[0101] 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.
[0102] 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.
[0103] 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.
[0104] 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.
[0105] 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.
[0106] 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 marking function, It is characterized in that The detection device includes an image acquisition device mounted on a mounting bracket, a bracket slide rail disposed on the mounting bracket, a transfer device mounted on the bracket slide rail, and a marking adding component mounted on the transfer device; 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 of the marking adding components is disposed on the magnetic transfer plate; the image acquisition device, the transfer driver and the marking adding component are all electrically connected to the controller of the detection device, and the controller receives the PCB board image acquired by the image acquisition device and sends a control signal to control the transfer driver and the marking adding component; The marking adding component adds corresponding marking information on the PCB board sucked under the magnetic transfer plate according to the received control signal; The marking adding assembly 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 lifting cylinder fixedly connected to the end of the first driving motor, and a sliding block assembled on the lifting cylinder; The sliding block slides vertically under the drive of the lifting cylinder, and the 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 marking pen is fixedly arranged at the lower end of the second drive motor.
2. The PCB board detection device with marking function according to claim 1, It is characterized in that The first slide rail is perpendicular to the second slide rail.
3. A marking method for PCB board detection, It is characterized in that The method is applied to the controller of the PCB board detection device with 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 acquired by the image acquisition device is acquired; 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; According to the recognition result, the coordinate position of the regional image whose uniformity does not meet the uniformity condition in the regional image is acquired and a corresponding marking control signal is generated; The marking control signal is sent to the marking adding component so that the marking adding component adds corresponding marking information on the PCB board sucked under the magnetic transfer plate.
4. The marking method for PCB board detection according to claim 3, It 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, It is 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. A marking method for PCB board detection according to any one of claims 3 to 5, It is 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 marking control signal including the marking type of each of the regional images according to the classification information of the corresponding regional image in the type information; The marking control signal is sent to the marking adding component so that the marking adding component adds classification marking information to the corresponding area on the PCB board sucked under the magnetic transfer plate.
7. The marking method for PCB board detection according to claim 6, It is 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, It is characterized in that 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, It is 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.
