Disclosure of Invention
The technical problem mainly solved by the embodiment of the invention is to provide a method and equipment for marking the defects of a PCB, which can solve the technical problems that the severity of the defects of the PCB cannot be evaluated, classified marking cannot be carried out, and manual review efficiency is low in the prior art.
In order to solve the technical problem, one technical scheme adopted by the embodiment of the invention is as follows: the defect marking method of the PCB comprises the following steps: acquiring image information of the PCB; determining the defect type and defect severity of the PCB according to the element information in the image information; determining the PCB board to be a rechecking board or a destroying board according to the defect type and the defect severity; marking the rechecking plate or the destroying plate in a preset marking mode.
Optionally, the acquiring image information of the PCB includes: shooting the PCB image; carrying out gray scale processing on the PCB image to obtain a gray scale image; carrying out binarization processing on the gray scale image to obtain a first gray scale binarization image; or, carrying out scaling processing on the PCB image to obtain a scaling diagram; acquiring the maximum value and the minimum value of the three-color channel pixels in the pixel area in the preset range in the proportional graph; performing logic judgment on the three-color channel pixel value of each coordinate in the proportional graph according to the maximum value and the minimum value of the three-color channel pixel in the pixel area to obtain a pixel a value of the corresponding coordinate; carrying out binarization inversion on the corresponding pixel a value to obtain a first color-extracting binarization image; or the image rotates within a preset angle range according to a preset rotation angle, and is matched with the template image to obtain a matching result, wherein the matching result comprises a matching template, a matching position and a matching rotation angle. Or acquiring a substrate color proportion of a preset detection window in the PCB image.
Optionally, the determining, according to the element information in the image information, the defect type and the defect severity of the PCB, and determining, according to the defect type and the defect severity, that the PCB is a review board or a destruction board, includes: respectively processing the first gray-scale binary image and the first color extraction binary image to obtain a first gray-scale outline area and a first color extraction outline area of the corresponding communication area; if the first gray scale outline area is smaller than a preset area threshold value, determining that the defect type of the PCB is an element missing part; if the element area is smaller than a preset first threshold value, determining that the PCB is a destruction board; otherwise, determining the PCB board as a rechecking board; acquiring an external rectangular area where the area of the element is located, and calculating the offset distance between the central point of the external rectangular area and the central point of the sample; if the offset distance between the center point of the external rectangular area and the center point of the sample is larger than a preset gray scale distance threshold value, determining the defect type as element offset; if the offset distance between the center point of the external rectangular area and the center point of the sample is greater than a preset second threshold value, determining that the PCB is a destruction plate; otherwise, determining the PCB board as a rechecking board; or calculating the offset distance between the center point of the matched template and the center point of the sample; if the offset distance between the center point of the matching template and the center point of the sample is greater than a preset matching distance threshold value, determining that the defect type is element offset; if the offset distance between the center point of the matching template and the center point of the sample is greater than a preset third threshold value, determining that the PCB is a destruction plate; otherwise, determining the PCB as a rechecking board; if the matching rotation angle is larger than a preset deflection angle threshold value, determining that the defect type is element deflection; if the matching rotation angle is larger than a preset fourth threshold value, judging that the PCB is a destruction plate; otherwise, determining the PCB as a rechecking board; if the difference between the first gray scale outline area and the sample area is larger than a preset gray scale size threshold value, determining that the defect type is element size difference; if the difference between the first gray-scale outline area and the sample area is larger than a preset fifth threshold value, judging that the PCB is a destruction plate; otherwise, determining the PCB as a rechecking board; or if the difference between the first color extraction contour area and the sample area is larger than a preset color extraction size threshold value, determining that the defect type is the element size difference; if the difference between the area of the first color extraction contour and the area of the sample is larger than a preset sixth threshold value, judging that the PCB is a destruction plate; otherwise, determining the PCB board as a rechecking board; if the area of the first gray scale outline is larger than a preset gray scale scratch threshold value, determining that the defect type is element scratch; if the area of the first gray scale outline is larger than a preset seventh threshold value, determining that the PCB is a destruction board; otherwise, determining the PCB as a rechecking board; or if the profile area of the first color extracting wheel is larger than a preset color extracting scratch threshold value, determining that the defect type is element scratch; if the area of the first gray scale outline is larger than a preset eighth threshold value, judging that the PCB is a destruction plate; otherwise, determining the PCB board as a rechecking board; if the area of the first gray scale outline is larger than a preset gray scale foreign matter threshold value, determining that the defect type is an element foreign matter; if the first gray scale outline area is larger than a preset ninth threshold value, judging that the PCB is a destruction plate; otherwise, determining the PCB board as a rechecking board; or if the profile area of the first color extracting wheel is larger than a preset color extracting foreign matter threshold value, determining that the defect type is an element foreign matter; if the first color extracting wheel outline area is larger than a preset tenth threshold value, judging that the PCB is a destroying plate; otherwise, determining the PCB board as a rechecking board; and if the substrate color area ratio of the preset detection window is larger than a preset substrate color ratio threshold, determining that the PCB is a destruction board.
Optionally, the preset marking mode marks the review board or the destruction board, including: controlling a common pen to print a recheck mark on a specified position on the recheck plate according to a preset reference point and a preset deviation value; or controlling the common pen to punch a destruction mark on the destruction plate according to a preset motion track according to a preset reference point and a preset motion track.
Optionally, the controlling a common pen to print a review mark on a designated position on the review board, or printing a destroy mark on the destroy board according to the preset motion trajectory by using a common pen, further includes: acquiring the last reinspection plate marked with the reinspection mark or the last destruction plate sampling image marked with the destruction mark; and acquiring the characteristic information of the sampled image, comparing the characteristic information with preset characteristic information, and sending an alarm signal to remind of replacing the common pen if the comparison result meets a preset condition.
Optionally, the obtaining of the feature information of the sampling image, comparing the feature information with preset feature information, and if a comparison result meets a preset condition, sending an alarm signal to remind of replacing the common pen includes: performing gray scale binarization processing on the sampling image to obtain a second gray scale binarization image; carrying out contour extraction processing on the second gray scale binary image to obtain a contour array; taking the maximum contour of the contour array as a marking point contour, and calculating the contour area; and comparing the outline area with a preset area threshold value, and if the outline area is smaller than the preset area threshold value, sending an alarm signal to remind the ordinary pen to be replaced.
Optionally, the obtaining of the feature information of the sampled image, comparing the feature information with preset feature information, and if a comparison result meets a preset condition, sending an alarm signal to remind of replacing the common pen further includes: performing color extraction binarization processing on the sampling image to obtain a second color extraction binarization image; carrying out contour extraction processing on the second color-extraction binary image to obtain a circular track; calculating the area of the circular track to obtain the area percentage of the circular track; and comparing the area percentage with a preset percentage threshold, and if the area percentage is smaller than the preset percentage threshold, sending an alarm signal to remind the ordinary pen to be replaced.
Optionally, the preset marking mode is used for marking the rechecking plate or the destroying plate, and the method further includes: controlling a laser pen to print a recheck mark on a specified position on the recheck plate according to a preset reference point and a preset deviation value; or controlling the laser pen to punch a destruction mark on the destruction plate according to a preset movement track according to a preset reference point and a preset movement track.
Optionally, the PCB board is a whole board or a single daughter board composed of a plurality of daughter boards.
In addition, in order to accomplish the above objects, a defect marking apparatus of a PCB board, the defect marking apparatus comprising: the defect marking method of the PCB comprises a memory and a processor, wherein a computer program is stored in the memory, and the processor executes the computer program to realize the defect marking method of the PCB.
Compared with the prior art, the invention has the beneficial effects that: the embodiment of the invention provides a defect marking method and equipment for a PCB (printed circuit board), wherein the method comprises the following steps: obtaining image information of a PCB; determining the defect type and the defect severity of the PCB according to the element information in the image information, and determining the PCB as a rechecking board or a destroying board according to the defect type and the defect severity; and controlling the marking pen to mark the rechecking plate and the destroying plate according to a preset marking mode. The defect marking method for the PCB can identify the defect type and the defect severity of the PCB, divide the defect type and the defect severity into the reinspection board or the destruction board, mark the reinspection board and the destruction board according to a preset marking mode, facilitate the manual work to find the defect type at a glance, sort out the reinspection board and the destruction board, and improve the production efficiency.
Detailed Description
In order to facilitate an understanding of the invention, reference will now be made in detail to the present embodiments of the invention, examples of which are illustrated in the accompanying drawings. It will be understood that when an element is referred to as being "secured to" another element, it can be directly on the other element or intervening elements may be present. When an element is referred to as being "connected" to another element, it can be directly connected to the other element or intervening elements may be present. As used in this specification, the terms "upper," "lower," "inner," "outer," "bottom," and the like are used in the orientation or positional relationship indicated in the drawings for convenience in describing the invention and simplicity in description, and do not indicate or imply that the referenced device or element must have a particular orientation, be constructed and operated in a particular orientation, and are not to be considered limiting of the invention. Furthermore, the terms "first," "second," "third," and the like are used for descriptive purposes only and are not to be construed as indicating or implying relative importance.
Unless defined otherwise, all technical and scientific terms used herein have the same meaning as commonly understood by one of ordinary skill in the art to which this invention belongs. The terminology used in the description of the invention herein is for the purpose of describing particular embodiments only and is not intended to be limiting of the invention. As used herein, the term "and/or" includes any and all combinations of one or more of the associated listed items.
Furthermore, the technical features mentioned in the different embodiments of the invention described below can be combined with each other as long as they do not conflict with each other.
Because the production process of the PCB in the prior art is complex, each production link is possible to generate defects, and the defective PCB needs to be found in time and prevented from entering the next working procedure. The industry generally adopts automatic optical inspection systems such as AOI to realize real-time detection of the PCB in each production link, but the detection can only evaluate the defect type of the PCB but cannot evaluate the defect severity of the PCB, although the manual inspection can carry out false detection judgment during the re-inspection, if the daughter boards on one PCB are more, the manual inspection needs to find the corresponding standard boards according to different defect types for comparison, and more time is consumed. Therefore, if the defect type and the defect severity of the defective PCB can be automatically determined according to the image information of the defective PCB, and the marking can be performed on the defective PCB according to the defect type and the defect severity and according to different marking modes, the defect type and the defect severity can be seen at a glance during the re-inspection by a worker, the repair or the recovery can be performed, the factory cost can be saved, and the manual re-inspection efficiency can be improved.
The main solution of the embodiment of the invention is as follows: the method and the device for marking the defective PCB aim to solve the technical problems that in the prior art, the severity of the defects of the defective PCB cannot be evaluated, classified marking cannot be carried out, and manual review efficiency is low. Referring to fig. 1, an embodiment of the present invention provides a method for evaluating defects of a PCB, including:
s11, acquiring image information of the PCB.
In some embodiments, acquiring image information of the PCB board comprises:
controlling a machine track through a PLC (programmable logic controller) to drive a PCB to enter a specified position of a machine, and shooting an image of the PCB by using a camera to obtain an image of the PCB; carrying out gray scale processing on the PCB image to obtain a gray scale image, and carrying out binarization processing on the gray scale image to obtain a first gray scale binarization image.
Or acquiring three-color channel pixel values r, g and b of each coordinate (X, Y) in the PCB image, and processing the following steps according to a preset formula: the total = r + g + b, r1= r 100/total, g1= g 100/total, b1= b 100/total, after the processing is finished, the values of r1, g1 and b1 of the three-color channel pixels range from 0 to 100, the value of a pixel is total/3, and the value of a pixel is changed into the average value of the pixel values of the three-color channel, so that a proportional graph is obtained; selecting a pixel area with a certain size in a scaling graph to obtain the maximum value and the minimum value of the pixels of three-color channels in the area, wherein the maximum value and the minimum value are respectively R (max), R (min), G (max), G (min), B (max) and B (min); performing logic judgment on the three-color channel pixel value of each coordinate (X ', Y') in the proportional graph: setting the value of the position pixel a of each coordinate (X ', Y') in the scaling map to be 0 if the conditions of R1> R (min) and R1< R (max), G1> G (min) and G1< G (max), B1> B (min) and B1< B (max) are simultaneously satisfied; setting the value of the position pixel a of each coordinate (X ', Y') in the scaling map to be 1 if the conditions of R1> R (min) and R1< R (max), G1> G (min) and G1< G (max), B1> B (min) and B1< B (max) are simultaneously satisfied; if the conditions of R1> R (min) and R1< R (max), G1> G (min) and G1< G (max), B1> B (min) and B1< B (max) are not satisfied, the pixel a value of each coordinate (X ', Y') in the scaling map is set to be 1. After the logical judgment, the value of the pixel a in the proportional graph becomes 0 or not 0; and (4) carrying out binarization inversion on the pixel a values, wherein all 0 values are changed into 255, and all non-0 values are changed into 0, so as to obtain a first color extraction binary image.
Or, rotating the original image of the detected image every 0.1 degree according to the detection angle range set by the user, and respectively matching the original image with the template images to obtain matching results, wherein the matching results comprise a matching template, a matching position and a matching rotation angle.
Or, a user presets a detection window on the PCB board, and calculates the color area of the substrate in the preset detection window and the area proportion occupying the preset detection window.
In this embodiment, an image of a PCB is obtained, and a grayscale binarization process is performed on the image, or a template matching process is performed on the image, or a color extraction binarization process is performed on the image, or a substrate color area ratio is calculated, so as to facilitate subsequent determination that the PCB is a review board or a destruction board according to a defect type and a severity.
And S13, determining the PCB to be a rechecking board or a destroying board according to the defect type and the defect severity.
In some embodiments, the user can also perform special detection or multiple detections on the PCB by checking the detection defect type. Wherein the defect types include: component missing, component positional offset, component angular deflection, component dimensional difference, component scratching, and component foreign matter.
In some embodiments, the first gray-scale binary image and the first color extraction binary image are respectively processed by a connected region, and a first gray-scale outline area and a first color extraction outline area of the corresponding connected region are calculated;
if the first gray-scale outline area is smaller than a preset area threshold value, determining that the defect type of the PCB is an element missing part; when the defect type of the PCB is determined to be element missing, if the area of the element is smaller than a preset first threshold value, determining that the PCB is a destruction plate; otherwise, determining the PCB as a rechecking board; the preset first threshold may be set by a user, for example, the preset first threshold is 1/2 of the preset area threshold.
Acquiring an external rectangular area where the area of the element is located, and calculating the offset distance between the central point of the external rectangular area and the central point of the sample; if the offset distance between the center point of the external rectangular area and the center point of the sample is greater than a preset gray scale distance threshold value, determining the defect type as element offset; or calculating the offset distance between the center point of the matched template and the center point of the sample; if the offset distance between the center point of the matching template and the center point of the sample is larger than a preset matching distance threshold value, determining the defect type as element offset; when the determined defect type of the PCB is element offset, if the offset distance between the center point of the external rectangular area and the center point of the sample is greater than a preset second threshold value, determining that the PCB is a destruction plate; otherwise, determining the PCB as a rechecking board. Or if the offset distance between the center point of the matched template and the center point of the sample is greater than a preset third threshold value, determining that the PCB is a destruction plate; otherwise, determining the PCB board as a rechecking board.
In some embodiments, the preset second threshold and the preset third threshold may be set by a user, for example, the preset second threshold is 3/2 of the preset grayscale distance threshold, and the preset third threshold is 3/2 of the preset matching distance threshold.
If the matching rotation angle is larger than a preset deflection angle threshold value, determining the defect type as element deflection; when the determined defect type of the PCB is element deflection, if the matching rotation angle is larger than a preset fourth threshold value, the PCB is judged to be a destruction plate; otherwise, determining the PCB as a rechecking board.
In some embodiments, the preset fourth threshold may be set by the user, for example, the preset fourth threshold is 3/2 of the preset deflection angle.
If the difference between the first gray-scale outline area and the sample area is larger than a preset gray-scale size threshold value, determining that the defect type is an element size difference; or if the difference between the first extraction color outline area and the sample area is larger than a preset extraction color size threshold value, determining that the defect type is the element size difference. When the determined defect type of the PCB is element size difference, if the difference between the first gray-scale outline area and the sample area is larger than a preset fifth threshold value, the PCB is judged to be a destruction plate; otherwise, determining the PCB as a rechecking board. Or if the difference between the first extracting color wheel profile area and the sample area is larger than a preset sixth threshold value, judging that the PCB is a destroying plate; otherwise, determining the PCB as a rechecking board.
In some embodiments, the preset fifth threshold and the preset sixth threshold may be set by a user, for example, the preset fifth threshold may be 3/2 of the preset gray scale size threshold, and the preset sixth threshold may be 3/2 of the preset color extraction size threshold.
If the area of the first gray scale outline is larger than a preset gray scale scratch threshold value, determining that the defect type is element scratch; or if the first color extracting wheel profile area is larger than a preset color extracting scratch threshold value, determining that the defect type is element scratch. When the determined defect type of the PCB is scratch of the element, if the area of the first gray-scale outline is larger than a preset seventh threshold value, determining that the PCB is a destruction plate; otherwise, determining the PCB board as a rechecking board. Or if the first gray scale outline area is larger than a preset eighth threshold value, the PCB is judged to be a destruction plate; otherwise, determining the PCB board as a rechecking board.
In some embodiments, the preset seventh threshold and the preset eighth threshold may be set by a user, for example, the seventh threshold may be 3/2 of the preset grayscale scratch threshold, and the eighth threshold may be 3/2 of the preset color drawing scratch threshold.
If the first gray scale outline area is larger than a preset gray scale foreign matter threshold value, determining that the defect type is an element foreign matter; or if the first extraction color wheel profile area is larger than a preset extraction color foreign matter threshold value, determining that the defect type is an element foreign matter. When the determined defect type of the PCB is an element foreign matter, if the first gray-scale outline area is larger than a preset ninth threshold value, the PCB is judged to be a destruction board; otherwise, determining the PCB as a rechecking board; or if the first color extracting wheel contour area is larger than a preset tenth threshold value, judging that the PCB is a destroying plate; otherwise, determining the PCB board as a rechecking board.
In some embodiments, the preset ninth threshold and the preset tenth threshold may be set by a user, for example, the preset ninth threshold may be 3/2 of the preset grayscale threshold, and the tenth threshold may be 3/2 of the preset threshold of the color bleeding foreign matter.
In some embodiments, a user presets a detection window on the PCB, and calculates the color area size of the substrate in the preset detection window and the area proportion occupying the preset detection window. And if the substrate color area ratio of the preset detection window is larger than a preset substrate color ratio threshold value, determining that the PCB is a destruction board. For example, referring to fig. 2, a preset detection window is defined on the PCB, the preset detection window may be determined by a user, the detection window includes a certain number of elements, and the color of the element is different from the color of the PCB substrate, for example, the element color is blue, and the color of the PCB substrate is green, the green area ratio in the detection window is calculated, and if the ratio is greater than a preset substrate color ratio threshold, the PCB is determined to be a destruction plate.
In the prior art, intelligent defect detection systems such as AOI and ADC are adopted, so that real-time detection of PCB produced on line can be realized, and defects in the production process can be found in time. However, these defect detection techniques can only detect the type of defect and cannot evaluate the severity of the defect.
In this embodiment, a user can detect the defect type and evaluate the defect severity by presetting an area threshold, a gray scale distance threshold, a matching distance threshold, a deflection angle threshold, a color size threshold and a color threshold, and can determine whether the PCB board is a rechecking board or a destroying board according to the defect type and the defect severity, so that the rechecking board and the destroying board can be marked conveniently according to a preset marking mode.
S15, marking the rechecking plate and the destroying plate according to a preset marking mode.
In some embodiments, the preset marking mode marks the review board or the destruction board, including:
and controlling a common pen to print a recheck mark on the designated position on the recheck plate according to the preset reference point and the preset deviation value.
Or controlling a common pen to punch the destruction mark on the destruction plate according to the preset movement track according to the preset reference point and the preset movement track.
Or controlling the laser pen to print the recheck mark on the designated position on the recheck plate according to the preset datum point and the preset deviation value.
Or controlling a laser pen to punch a destruction mark on the destruction plate according to the preset movement track according to the preset reference point and the preset movement track.
In some embodiments, when the adopted marking pen is a common pen, the clamping jaw is controlled by the motion control device to drive the common marking pen to move above the designated position of the rechecking board, and according to the vertical direction motion distance set by a user, the clamping jaw controls the marking pen to perform downward pressing and upward lifting actions in the vertical direction to perform point contact marking, so that the graphs of the respective upper left corners of the daughter board 1 and the daughter board 3 in fig. 3 are formed, and fig. 3 is a marking schematic diagram of the rechecking board. When the marking pen is a laser pen, the laser marking pen is driven to move to the position above the designated position of the reinspection board through the motion control device, the laser pen is controlled to be opened and closed to conduct firing marking, the patterns of the upper left corners of the daughter board 1 and the daughter board 3 in the figure 3 are formed, and the figure 3 is a marking schematic diagram of the reinspection board. When the adopted marking pen is a common pen, the clamping jaw is controlled by the motion control device to drive the common marking pen to move to the position above the reference point of the destruction plate, the clamping jaw controls the marking pen to press down in the direction perpendicular to the reference point of the destruction plate according to the motion track rule set by a user, and then the marking pen moves according to the motion track to form a track graph as shown in fig. 4, wherein fig. 4 is a marking schematic diagram of the destruction plate. When the adopted marking pen is a laser marking pen, the laser pen is controlled to be started at the reference point position of the destruction plate, the motion control device controls and drives the laser marking pen to move according to the motion track rule set by a user, a track graph as shown in fig. 4 is formed, and fig. 4 is a marking schematic diagram of the destruction plate.
In the prior art, although the defect types of the PCB can be detected based on the AOI intelligent defect detection system or the ADC intelligent defect detection system, the detection can only evaluate the defect types of the PCB but cannot evaluate the defect severity of the PCB, and manual re-inspection is required. In this embodiment, mark operation is beaten according to predetermineeing the mark mode to reinspection board and destruction board, the staff who is responsible for the reinspection can see defect type and defect severity at a glance according to the special mark on the PCB board, and destroy the board and probably need abandon, do not need artifical reinspection, in order to improve the detection speed of back process, need mark the destruction board in advance, and sort out reinspection board and destruction board with this, realize the recycle to reinspection board and destruction board, thereby reduce the expense of mill, improve production efficiency.
In some embodiments, referring to fig. 5, controlling a normal pen to mark a review mark on a designated position on the review board, or using the normal pen to mark a destruction mark on the destruction board according to a preset motion trajectory includes:
s151, obtaining the last reinspection plate marked with the reinspection mark or the last destruction plate sample image marked with the destruction mark;
in some embodiments, the motion control device controls the camera to move to the last bad plate marking position, and performs an image capturing operation to obtain a sampling image of the last re-inspection plate marked with the re-inspection mark or a sampling image of the last destruction plate marked with the destruction mark.
And S153, acquiring characteristic information of the sampling image.
In some embodiments, the sampled image is subjected to gray scale binarization processing to obtain a second gray scale binarization image; carrying out contour extraction processing on the second gray-scale binary image to obtain a contour array; taking the maximum outline of the outline array as the outline of the marking point, and calculating the area of the outline;
or, performing color extraction binarization processing on the sampling image to obtain a second color extraction binarization image; carrying out contour extraction processing on the second color-extraction binary image to obtain a circular track;
calculating the area of the circular track to obtain the area percentage of the circular track;
and S155, comparing the characteristic information with preset characteristic information.
In some embodiments, the contour area is compared to a preset area threshold. Or, comparing the area percentage with a preset percentage threshold.
And S157, alarming to remind of replacing the marking pen.
In some embodiments, if the contour area is smaller than the preset area threshold, the test is stopped, and an alarm signal is sent to remind the replacement of the ordinary pen. For example, the preset area threshold is 10 pixels, if the calculated outline area is less than 10 pixels, the test is stopped, and meanwhile, the PLC alarm processing is performed to remind a user to replace the marking pen.
Or if the area percentage is smaller than the preset percentage threshold value, stopping the test, and simultaneously performing PLC alarm processing to remind a user to replace the marking pen.
Through the above description, it is easy to find that when a common pen is used, such as a marker for a rechecking plate or a destroying plate, ink consumption is depleted, and the like, the consumption condition of the common pen is judged based on the comparison between the characteristic information and the preset characteristic information, and an alarm can be given to remind a worker of replacing the common pen based on the consumption condition. Specifically, this embodiment is through obtaining the last sample image of beating the reinspection board of reinspection mark or the last sample image of beating the destruction board of destroying the mark, compare characteristic information with preset characteristic information, judge the consumption condition of ordinary pen, and remind the workman to need to change ordinary marking pen, solved and beaten the mark in-process at consumables such as using ordinary pen, because the unable mark of beating that the ink consumption waits the problem to bring or beat technical problem such as mark unclear, thereby efficiency and the mark precision of beating have been improved.
As shown in fig. 6, based on the same inventive principle, an embodiment of the present invention further provides a defect marking apparatus 60 for a PCB, including:
the image processing module 601 is used for acquiring a PCB image and detecting elements in the image;
the defect judgment module 603 is configured to judge whether the PCB is a review board or a destruction board according to the type and severity of the detection result;
the marking control module 605 is configured to mark the recheck plate or the destruction plate according to a preset marking mode;
it should be noted that, in the embodiment, each module in the defect evaluation apparatus for a PCB corresponds to each step in the defect marking method for a PCB in the foregoing embodiment one by one, and therefore, the specific implementation and the achieved technical effect of the present embodiment may refer to the implementation of the defect marking method for a PCB, which is not described herein again.
As another aspect of the embodiments of the present invention, an embodiment of the present invention provides a defect marking apparatus for a PCB. Referring to fig. 7, which is a schematic diagram of a hardware structure of a defect marking apparatus 70 for a PCB, referring to fig. 7, the defect marking apparatus for a PCB includes: one or more processors 701 and a memory 702, one processor 701 being illustrated in fig. 7.
The processor 701 and the memory 702 may be connected by a bus or other means, such as the bus connection shown in fig. 7.
The memory 702 is a non-volatile computer-readable storage medium and can be used to store non-volatile software programs, non-volatile computer-executable programs, and modules, such as program instructions/modules corresponding to the defect marking device of the PCB in the embodiment of the present application (for example, the image processing module 601, the defect determining module 603, and the marking control module 605 shown in fig. 6). The processor 701 executes various functional applications and data processing of the defect marking device of the PCB by running the nonvolatile software program, instructions and modules stored in the memory 702, that is, the defect marking method of the PCB is implemented according to the above embodiment.
The memory 702 may include a storage program area and a storage data area, wherein the storage program area may store an operating system, an application program required for at least one function; the storage data area may store data created according to use of the controller, and the like. Further, the memory 702 may include high speed random access memory, and may also include non-volatile memory, such as at least one magnetic disk storage device, flash memory device, or other non-volatile solid state storage device. In some embodiments, memory 702 may optionally include memory remotely located from processor 701, which may be connected to a defect marking device of a PCB board over a network. Examples of such networks include, but are not limited to, the internet, intranets, local area networks, mobile communication networks, and combinations thereof.
The one or more modules are stored in the memory 702 and, when executed by the one or more processors 701, perform the defect marking method of the PCB in any of the method embodiments described above, e.g., performing the method steps S11-S15 in fig. 1, S151-S157 in fig. 5 described above; the functionality of blocks 601-605 in fig. 6.
The product can execute the method provided by the embodiment of the application, and has the corresponding functional modules and beneficial effects of the execution method. For technical details that are not described in detail in this embodiment, reference may be made to the methods provided in the embodiments of the present application.
Embodiments of the present invention also provide a non-transitory computer-readable storage medium storing computer-executable instructions for causing a chip to perform the hardware driving method as described above.
An embodiment of the present invention provides a computer program product comprising a computer program stored on a non-volatile computer-readable storage medium, the computer program comprising program instructions that, when executed by a chip, cause the chip to perform the hardware driving method as described above.
The above-described embodiments of the apparatus or device are merely illustrative, wherein the unit modules described as separate parts may or may not be physically separate, and the parts displayed as module units may or may not be physical units, may be located in one place, or may be distributed on a plurality of network module units. Some or all of the modules may be selected according to actual needs to achieve the purpose of the solution of the present embodiment.
Through the above description of the embodiments, those skilled in the art will clearly understand that each embodiment may be implemented by software plus a general hardware platform, and may also be implemented by hardware. Based on such understanding, the above technical solutions substantially or contributing to the related art may be embodied in the form of a software product, which may be stored in a computer-readable storage medium, such as ROM/RAM, magnetic disk, optical disk, etc., and includes instructions for causing a computer device (which may be a personal computer, a server, or a network device, etc.) to execute the method according to the embodiments or some parts of the embodiments.
Finally, it should be noted that: the above examples are only intended to illustrate the technical solution of the present invention, and not to limit it; within the idea of the invention, also technical features in the above embodiments or in different embodiments may be combined, steps may be implemented in any order, and there are many other variations of the different aspects of the invention as described above, which are not provided in detail for the sake of brevity; although the present invention has been described in detail with reference to the foregoing embodiments, it will be understood by those of ordinary skill in the art that: the technical solutions described in the foregoing embodiments may still be modified, or some technical features may be equivalently replaced; and the modifications or the substitutions do not make the essence of the corresponding technical solutions depart from the scope of the technical solutions of the embodiments of the present application.