Image processing method and device, electronic equipment and storage medium
The image processing method is used to detect defects in the chip appearance, and the gray value is used to divide the regional features, which solves the problems of low efficiency and subjective factors of the existing detection methods, and achieves fast and accurate chip appearance detection.
Patent Information
- Application Number
- CN202311783956.9
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2023-12-22
- Publication Date
- 2024-08-23
AI Technical Summary
Existing chip appearance inspection methods rely on manual inspection, are inefficient and highly affected by subjective factors, and cannot meet modern chip quality requirements. Moreover, existing automated inspection methods are time-consuming and computationally complex, making it difficult to achieve real-time inspection.
Determine the object area of the tested object in the image to be tested through image processing methods, use the gray value of pixels to divide sub-regions, use regional features to determine whether there are defects, including contour fitting and distance division, generate detection areas, and determine gray Whether the degree value change rate and difference value meet the preset conditions.
It improves the accuracy of detection, reduces labor costs, and achieves fast and accurate chip appearance defect detection.
Smart Images

Figure CN118537280A
Abstract
Description
Technical Field
[0001] The present invention relates to the field of computer technology, and in particular to an image processing method and device, electronic equipment and storage medium. Background Art
[0002] The appearance defects of the chip will directly affect the quality of the product and the smooth progress of the subsequent process links of IC manufacturing. Therefore, after the chip completes the packaging process, it is necessary to perform a detection link on the chip. The detection link mainly performs appearance inspection on the packaged chip. Only after passing the detection link and the inspection is correct can the quality of the chip be guaranteed. Therefore, chip appearance inspection plays an important role in the IC manufacturing industry. For example, the ball grid array (Ball Grid Array, BGA) chip is one of many chips, and the appearance quality of the ball planting process directly affects the performance and reliability of the chip. However, during the production process of this type of chip, the solder balls may have defects such as deformation and breakage. Therefore, it is necessary to perform defect inspection on the solder balls on the BGA chip before leaving the factory to ensure that the BGA chip is defect-free.
[0003] At present, most factories still rely on manual inspection for chip appearance inspection. This inspection method is inefficient and greatly affected by subjective factors, and cannot meet today's chip quality requirements. With the emergence of various image processing algorithms, image processing methods can be used in related technologies to inspect chip appearance, but existing defect detection methods have problems such as long time consumption and complex calculations, and are not suitable for use scenarios that require real-time detection. Summary of the invention
[0004] Embodiments of the present invention provide an image processing method and device, an electronic device, and a storage medium, which are used to at least solve the above-mentioned technical problems.
[0005] According to one aspect of the present invention, the present invention proposes an image processing method, comprising: determining an object area of an object to be measured in an image to be measured; dividing the object area using the grayscale values of each pixel point in the object area to obtain multiple sub-areas; and determining whether the object to be measured has defects using the area features corresponding to each sub-area.
[0006] Optionally, determining the object area of the object to be measured in the image to be measured includes: determining the area of interest in the image to be measured using a template image for the object to be measured and the position of the area of interest in the template image; and extracting the object area in the image to be measured using the grayscale value of each pixel point of the area of interest in the image to be measured.
[0007] Optionally, the object area is divided using the grayscale values of each pixel point in the object area to obtain multiple sub-areas, including: fitting the object area using a contour fitting method to determine the object contour of the object to be measured and the center point of the object contour; determining a first distance and a second distance from the center point using the grayscale values of each pixel point in the object area; generating a first area contour that is a first distance from the center point and has the same shape as the object contour and a second area contour that is a second distance from the center point and has the same shape as the object contour, thereby determining a first area defined by the first area contour and a second area defined by the second area contour.
[0008] Optionally, the regional features corresponding to each sub-region are used to determine whether the object under test has defects, including: selecting a detection area corresponding to the detection requirements from the multiple sub-regions; judging whether the grayscale value corresponding to the detection area meets a preset condition; if not, determining that the detection object has defects.
[0009] Optionally, determining whether the grayscale value corresponding to the detection area meets a preset condition includes: determining whether the rate of change of the grayscale value corresponding to the detection area is within a preset range; and / or determining whether the difference of the grayscale value corresponding to the detection area is within a preset range.
[0010] Optionally, the object to be measured includes a solder ball on a BGA chip. In this case, the object outline is a circle, and the center point refers to the center of the solder ball.
[0011] Optionally, the multiple sub-regions refer to the inner region, central region or outer region of the solder ball, wherein the inner region is a region whose distance from the center point is less than a first threshold, the outer region is a region whose distance from the center point is greater than a second threshold, and the central region is a region whose distance from the center point is greater than the first threshold and less than the second threshold, wherein the first threshold is less than the distance from the center point to the object contour, and the second threshold is greater than the distance from the center point to the object contour.
[0012] Optionally, when the detection requirement is internal detection, the detection area includes a central area and an internal area; when the detection requirement is external detection, the detection area includes an internal area and an external area.
[0013] Optionally, the detection area includes sub-areas that are symmetrical to each other within the object area.
[0014] According to one aspect of the present invention, there is provided an image processing device, comprising: one or more processors; a memory; and one or more programs, wherein the one or more programs are stored in the memory and are configured to be executed by the one or more processors, and the one or more programs include instructions for executing the aforementioned method.
[0015] According to one aspect of the present invention, there is provided a computer-readable storage medium storing one or more programs, wherein the one or more programs include instructions, which, when executed by a computing device, cause the computing device to perform the aforementioned method.
[0016] At least one of the above technical solutions adopted in the embodiments of the present invention can achieve the following beneficial effects:
[0017] The present invention adopts an image processing method to detect whether the object under test has defects, thereby reducing labor costs. Furthermore, the present invention can use the regional characteristics of different areas divided by the distribution characteristics of the object under test to perform defect detection, thereby improving the accuracy. BRIEF DESCRIPTION OF THE DRAWINGS
[0018] The drawings described herein are used to provide a further understanding of the present invention and constitute a part of the present invention. The exemplary embodiments of the present invention and their descriptions are used to explain the present invention and do not constitute an improper limitation of the present invention. In the drawings:
[0019] Figure 1 is a schematic diagram illustrating a BGA chip according to an exemplary embodiment of the present invention.
[0020] Figure 2 is a schematic diagram showing a solder ball according to an exemplary embodiment of the present invention;
[0021] Figure 3 is a flowchart illustrating an image processing method according to an exemplary embodiment of the present invention;
[0022] Figure 4 is a schematic diagram showing an outline of a chip according to an exemplary embodiment of the present invention;
[0023] Figure 5 is a schematic diagram showing an outline of a chip according to an exemplary embodiment of the present invention;
[0024] Figure 6 is a schematic diagram showing an outline of a chip according to an exemplary embodiment of the present invention;
[0025] Figure 7 A schematic structural diagram of an image processing device according to an embodiment of the present invention is shown. DETAILED DESCRIPTION
[0026] In order to make the purpose, technical solution and advantages of the present invention clearer, the technical solution of the present invention will be clearly and completely described below in conjunction with the specific embodiments of the present invention and the corresponding drawings. Obviously, the described embodiments are only 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 making creative work are within the scope of protection of the present invention.
[0027] In the embodiment of the present invention, " / " can indicate that the objects associated before and after are in an "or" relationship, for example, A / B can indicate A or B; "and / or" can be used to describe that there are three relationships between the associated objects, for example, A and / or B can indicate: A exists alone, A and B exist at the same time, and B exists alone, where A and B can be singular or plural. In order to facilitate the description of the technical solution of the embodiment of the present invention, in the embodiment of the present invention, the words "first", "second" and the like can be used to distinguish between technical features with the same or similar functions. The words "first", "second" and the like do not limit the quantity and execution order, and the words "first", "second" and the like do not necessarily limit the difference. In the embodiment of the present invention, the words "exemplary" or "for example" are used to indicate examples, illustrations or explanations, and any embodiment or design described as "exemplary" or "for example" should not be interpreted as being more preferred or more advantageous than other embodiments or design solutions. The use of words such as "exemplary" or "for example" is intended to present related concepts in a specific way for easy understanding.
[0028] In addition, in order to better illustrate the present invention, specific details are given in the following specific embodiments. It should be understood by those skilled in the art that the present invention can also be implemented without certain specific details. In some examples, methods, means, components and circuits well known to those skilled in the art are not described in detail in order to highlight the subject matter of the present invention.
[0029] The image processing method of the exemplary embodiment of the present invention is applicable to but not limited to the appearance inspection link of packaged chips. The package mentioned in the present invention refers to the shell used to install semiconductor integrated circuit chips. The package not only plays the role of placing, fixing, sealing, protecting chips and enhancing electrical and thermal performance, but also serves as a bridge to communicate the internal world of the chip with the external circuit: the connection points on the chip are connected to the pins of the package shell with wires, and these pins are connected to other devices through wires on the printed circuit board. Therefore, the package has a great influence on the performance of the chip. Further, the packaged chip of the exemplary embodiment of the present invention refers to a chip including the above packaging structure / process. Different packaging technologies correspond to different packaged chips. For example, the packaged chip may include a dual in-line package (DIP) chip, a quad flat package technology (QFP) chip, a ball grid array package (BGA) chip, etc.
[0030] The image processing method of the present invention can partition the packaged chip according to the characteristics of the packaged chip, and then use the feature differences of different regions on the image to determine whether the packaged chip has differences. The present invention will specifically describe various exemplary embodiments in conjunction with the accompanying drawings. For ease of understanding, the present invention will be specifically described using a BGA chip as an example.
[0031] Figure 1 is a schematic diagram showing a chip according to an exemplary embodiment of the present invention. Figure 1 As shown, the I / O terminals of the BGA chip are distributed under the package in the form of round solder balls in an array. Figure 1 As described above, there are multiple spherical solder balls distributed on the circuit board. The sizes of the solder balls corresponding to different products are different and the distribution shapes are also different, which is not limited by the present invention. In practice, these solder balls may have defects such as dirt or scratches, so it is necessary to use the image processing method of the exemplary embodiment of the present invention to detect defects.
[0032] In practice, the embodiments of the present invention can use a camera to photograph the BGA chip from top to bottom, that is, to photograph the upper surface of the BGA chip, so as to obtain a chip image. The camera can be a two-dimensional camera or a three-dimensional camera, which is not limited by the present invention. When the camera is located above the BGA chip and photographs the BAG chip from above, the solder ball is located in the middle of the photographed image. Figure 2As shown in the figure, in the image taken for the BGA chip, the solder ball is approximately circular and located in the middle of the image. Due to shooting light and other reasons, the outer area of the solder ball area is white and the middle part is black. It can be seen that the image taken for the BGA chip is divided into multiple sub-areas from the dimension of grayscale value, and the grayscale value of the pixel points in each sub-area is substantially the same.
[0033] The following will be combined Figure 3 The image processing method of the exemplary embodiment of the present invention is described in detail. Figure 3 is a flowchart illustrating an image processing method according to an exemplary embodiment of the present invention.
[0034] In step S310, the object area of the object to be tested in the image to be tested is determined. The image to be tested mentioned here may indicate an image for detecting whether there are defects. In implementation, the image to be tested may be an image captured in real time by a shooting device or an image transmitted from an external or internal storage device. As an exemplary embodiment, the image to be tested may be an image captured for various types of chips. For example, the image to be tested may be an image captured for a BGA chip. In this case, the object to be tested indicates a solder ball.
[0035] As an exemplary embodiment, the present invention can use a template image for the image to be tested to perform template matching with the image to be tested, and determine the offset information of the image to be tested compared with the template image. The template image refers to an image pre-taken for the object to be tested, and a region of interest for the image to be tested is marked in the template image, wherein the region of interest refers to the region to be processed. For example, in the case of Figure 1 In the image captured by the BGA chip, the region of interest refers to the solder ball area for each solder ball. Then, the present invention can use the offset information and the position of the region of interest in the template image to determine the region of interest in the image under test (i.e., the object area mentioned later).
[0036] The above operation can generally determine the position of the object area. Subsequently, after determining the region of interest, the present invention can also use the grayscale value of each pixel point in the region of interest to extract the region of the object to be measured. Figure 2 It can be clearly seen that the grayscale values of the solder ball region and the background region are different. Therefore, the present invention can first extract the region with a grayscale value within a predetermined range, that is, the solder ball region.
[0037] Then, the detected object area is processed by using a contour fitting method to determine the object contour of the detected object. The contour fitting method refers to fitting the detected object area by using the edge information of the image and the fitted contour shape to determine the object contour.
[0038] Taking the BGA chip as an example, when it is determined that the solder ball area is circular, the solder ball contour for the solder ball can be fitted using the edge information of the solder ball area determined by the grayscale value and the fitted shape (circle). It should be noted that during the fitting process, feature information representing the solder ball area, that is, the center and radius of the solder ball contour, can be obtained at the same time. Different fitted shapes represent different feature information of the solder ball. For example, when the fitted contour is a rectangle, the feature information may include the center, height, width, and rotation angle of the minimum circumscribed rectangle.
[0039] In the present invention, in order to detect whether the object under test has defects, it is necessary to partition the object under test using the distribution characteristics of the object under test, and then use the feature differences presented in different areas to detect whether the object under test has defects. Correspondingly, the present invention performs partition processing: using the distribution characteristics of the object under test, the object area is divided into multiple sub-areas. That is, step S320, the object area is divided using the grayscale values of each pixel point in the object area to obtain multiple sub-areas.
[0040] As an embodiment, the distribution characteristics of the measured object are related to the outline of the measured object, that is, the measured object may present similar features in the area reduced in proportion, for example, the grayscale values are substantially the same. Based on this, the partitioning process of the measured object is related to the object outline (i.e., shape) of the measured object. In the case where the measured object is symmetrical, the partitioning process of the measured object can be to divide the measured object into mutually symmetrical sub-areas. For example, if the shape of the measured object is a rectangle, the measured object can be divided into a plurality of sub-areas with the same area. For another example, in the case where the shape of the measured object is circular, the center of the circle of the measured object can be taken as the center and divided into a plurality of sub-areas according to different radii. For another example, in the case where the shape of the measured object is circular, the measured object can also be divided into fan-shaped areas of equal size.
[0041] In the case where the measured object includes multiple sub-objects, the partitioning process of the measured object may be to divide the measured object into sub-object regions corresponding to the multiple sub-objects. For example, in the case where the measured object is a quad flat package (QFP) chip, the measured image includes four side pins and a main body, and the four side pins and the main body can all be sub-objects. In other words, the measured image may include five sub-objects, and therefore, the object region may be divided into five sub-regions.
[0042] As an optional embodiment, the present invention may also scale the object area in equal proportion according to the outline of the object area, thereby obtaining multiple sub-areas. In an exemplary embodiment, the present invention may first determine the center point of the object outline, and then generate multiple sub-area outlines of the same shape as the outline using the center point and different distances from the center point, thereby generating sub-areas defined by the multiple sub-area outlines.
[0043] As an exemplary embodiment, the multiple sub-areas include an internal area, a central area or an external area of the object to be detected, wherein the internal area is an area whose distance from the center point is less than a first threshold, the external area is an area whose distance from the center point is greater than a second threshold, and the central area is an area whose distance from the center point is greater than a first threshold and less than a second threshold, wherein the first threshold is less than the distance from the center point to the object contour, and the second threshold is greater than the distance from the center point to the object contour. Based on this, the present invention can also select different detection areas according to detection requirements. As an exemplary embodiment, the detection requirements may include internal detection and / or external detection. In the case where the detection requirement is internal detection, the present invention may select the internal area and the central area as detection areas, and in the case where the detection requirement is external detection, the present invention may select the external area and the internal area as detection areas.
[0044] For ease of description, the following will refer to Figure 4 Describe in detail how to partition the solder balls. Figure 4 As shown, the pad is centered at the circle center 40, and the image can be divided into a central area, an inner area, and an outer area using radii R1 and R2. Figure 4 As shown, the contour 401 corresponding to the radius R2 is the object contour mentioned in step S310. The area 410 outside the contour 401, that is, the area with a radius greater than that corresponding to R2 is called the outer area. On this basis, the area 410 may include an inner area 420 and a central area 430. Figure 4 As shown, when the detection requirement is internal detection, the detection areas are the central area 430 and the internal area 420. When the detection requirement is external detection, the detection areas are the external area 410 and the internal area 420. It should be noted that the central area, the internal area and the external area mentioned above are only descriptive and not restrictive.
[0045] As described above, the present invention can also select a partial area in each sub-area as the detection area after each sub-area has been acquired. Figure 5, when the shape of the object is circular, the center of the object area is 50, and it may include a central area 510, an inner area 520, and an outer area 530. When the selection method is proportional reduction, area 501 may represent the central area 510 as the detection area, area 502 may represent the inner area 520 as the detection area, and area 503 may represent the outer area 530 as the detection area. Finally, according to different detection requirements, area 501, area 502, and / or area 503 may be selected as the detection area respectively, and the regional features of the detection area may be used to detect whether the object has defects.
[0046] As an optional embodiment, the present invention can also segment each sub-region according to the same segmentation method after acquiring each sub-region, and then select part of the segmented sub-regions as the detection region. Figure 6 , when the shape of the object is circular, the center of the object area is 60, and it may include a central area 610, an inner area 620, and an outer area 630. The present invention may divide the central area 610, the inner area 620, and the outer area into sub-areas of the same shape, and then use area 611 representing the central area 610 as the detection area, use area 621 representing the inner area 620 as the detection area, and use area 631 representing the inner area 630 as the detection area. Finally, according to different detection requirements, the regional features of area 611, area 621, and / or area 631 may be used to detect whether the object has defects.
[0047] As an optional embodiment, the present invention can also detect the sub-regions by using mutually symmetrical regions in the sub-regions as detection regions. For example, when detecting the central region 610, the present invention can also detect whether the central region 610 has defects by using feature information corresponding to mutually symmetrical regions 611 and 612.
[0048] Step S330 may be executed to determine whether the object under test has defects using the regional features corresponding to each sub-region. In implementation, in the present invention, the regional features refer to information that can represent the region and can be quantified. Optionally, the regional features refer to feature information determined using the entire region or a portion of the entire region. In the present invention, the regional features may indicate a grayscale value determined by pixels in the region. For example, an embodiment of the present invention may use the average grayscale value of each pixel in the representative region as feature information of the representative region.
[0049] As an exemplary embodiment, the present invention can calculate the grayscale value corresponding to each detection area. In short, the present invention can calculate the average value of each pixel in the detection area as the grayscale value corresponding to the detection area, and then determine whether the grayscale value corresponding to the detection area meets the preset conditions. As an example, the present invention can determine whether the rate of change of the grayscale value corresponding to the detection area is within a first preset range. And / or determine whether the difference of the grayscale value corresponding to the detection area is within a second preset range. If not, it is determined that the detection object has a defect.
[0050] The present invention also provides Figure 7 The structure diagram of the image processing device 700 shown in FIG. 7 includes the following units:
[0051] The region determination unit 710 is used to determine the object region of the object to be measured in the image to be measured;
[0052] A partitioning unit 720 is used to divide the object area by using the gray value of each pixel point in the object area to obtain multiple sub-areas;
[0053] The defect detection unit 730 is used to determine whether the object under test has defects by using the area features corresponding to each sub-area.
[0054] Optionally, the area determination unit 710 may determine the area of interest in the image to be tested by using a template image for the object to be tested and the position of the area of interest in the template image; and extract the object area in the image to be tested by using the grayscale value of each pixel point of the area of interest in the image to be tested.
[0055] Optionally, the partitioning unit 720 can fit the object area using a contour fitting method to determine the object contour of the object to be measured and the center point of the object contour; use the grayscale values of each pixel point in the object area to determine the first distance and the second distance from the center point; generate a first area contour that is a first distance away from the center point and has the same shape as the object contour and a second area contour that is a second distance away from the center point and has the same shape as the object contour, thereby determining a first area defined by the first area contour and a second area defined by the second area contour.
[0056] The defect detection unit 730 can select a detection area corresponding to the detection requirements from the multiple sub-areas; determine whether the grayscale value corresponding to the detection area meets the preset conditions; if not, determine that the detection object has defects.
[0057] The defect detection unit 730 may determine whether the rate of change of the grayscale value corresponding to the detection area is within a preset range; and / or determine whether the difference of the grayscale value corresponding to the detection area is within a preset range.
[0058] The object to be measured includes a solder ball on a BGA chip. In this case, the object outline is a circle, and the center point refers to the center of the solder ball.
[0059] The multiple sub-regions refer to the inner region, the central region or the outer region of the solder ball, wherein the inner region is a region whose distance from the center point is less than a first threshold, the outer region is a region whose distance from the center point is greater than a second threshold, and the central region is a region whose distance from the center point is greater than the first threshold and less than the second threshold, wherein the first threshold is less than the distance from the center point to the object outline, and the second threshold is greater than the distance from the center point to the object outline.
[0060] When the detection requirement is internal detection, the detection area includes a central area and an internal area; when the detection requirement is external detection, the detection area includes an internal area and an external area.
[0061] The detection region includes sub-regions that are symmetrical to each other within the object region.
[0062] The present invention also provides a computer-readable storage medium, on which a computer program is stored, and when the computer program is executed by a processor, the steps of the above-mentioned image processing method are implemented.
[0063] In practical applications, the computer-readable storage medium may be any combination of one or more computer-readable media, which may be a computer-readable signal medium or a computer-readable storage medium.
[0064] The computer-readable storage medium may be, for example, but not limited to, an electrical, magnetic, optical, electromagnetic, infrared, or semiconductor system, device or device, or any combination thereof. More specific examples of computer-readable storage media (a non-exhaustive list) include: an electrical connection with one or more wires, a portable computer disk, a hard disk, a random access memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disk read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination thereof. In the present embodiment, the computer-readable storage medium may be any tangible medium containing or storing a program that may be used by or in conjunction with an instruction execution system, device, or device.
[0065] Computer-readable signal media may include data signals propagated in baseband or as part of a carrier wave, which carry computer-readable program code. Such propagated data signals may take a variety of forms, including but not limited to electromagnetic signals, optical signals, or any suitable combination of the above. Computer-readable signal media may also be any computer-readable medium other than a computer-readable storage medium, which may send, propagate, or transmit a program for use by or in conjunction with an instruction execution system, apparatus, or device.
[0066] The program code embodied on the computer readable medium may be transmitted using any appropriate medium, including but not limited to wireless, wireline, optical fiber cable, RF, etc., or any suitable combination of the foregoing.
[0067] Computer program code for performing the operations of the present invention may be written in one or more programming languages or a combination thereof, including object-oriented programming languages such as Java, Smalltalk, C++, and conventional procedural programming languages such as "C" or similar programming languages. The program code may be executed entirely on the user's computer, partially on the user's computer, as a separate software package, partially on the user's computer and partially on a remote computer, or entirely on a remote computer or server. In the case of a remote computer, the remote computer may be connected to the user's computer through any type of network, including a local area network (LAN) or a wide area network (WAN), or may be connected to an external computer (e.g., via the Internet using an Internet service provider).
[0068] It should be noted that each embodiment in this specification is described in a progressive manner, and the same or similar parts between the embodiments can be referred to each other, and each embodiment focuses on the differences from other embodiments. In particular, for the device embodiment, since it is basically similar to the method embodiment, the description is relatively simple, and the relevant parts can be referred to the partial description of the method embodiment. The device embodiment described above is merely schematic, in which the unit described as a separate component may or may not be physically separated, and the component prompted as a unit may or may not be a physical unit, that is, it may be located in one place, or it may be distributed on multiple network units. Some or all of the modules can be selected according to actual needs to achieve the purpose of the scheme of this embodiment. Ordinary technicians in this field can understand and implement it without paying creative work.
[0069] The above is only a specific implementation of the present invention, but the protection scope of the present invention is not limited thereto. Any changes or substitutions that can be easily thought of by a person skilled in the art within the technical scope disclosed by the present invention should be included in the protection scope of the present invention. Therefore, the protection scope of the present invention should be based on the protection scope of the claims.
Claims
1. An image processing method, characterized in that: include: Determine an object area of the object to be measured in the image to be measured; Dividing the object area by using the grayscale value of each pixel point in the object area to obtain a plurality of sub-areas; The region features corresponding to each sub-region are used to determine whether the object under test has defects.
2. The method according to claim 1, characterized in that Determining the object area of the object to be measured in the image to be measured includes: Determine the region of interest in the image to be tested by using a template image for the object to be tested and a position of the region of interest in the template image; The object area in the image to be tested is extracted using the grayscale value of each pixel point in the region of interest.
3. The method according to claim 1, characterized in that The object area is divided by using the grayscale value of each pixel point in the object area to obtain multiple sub-areas, including: Fitting the object area by using a contour fitting method to determine the object contour of the object to be measured and the center point of the object contour; Determine a first distance and a second distance from the center point by using the grayscale value of each pixel point in the object area; A first area outline having a first distance from the center point and the same shape as the object outline and a second area outline having a second distance from the center point and the same shape as the object outline are generated, thereby determining a first area defined by the first area outline and a second area defined by the second area outline.
4. The method according to claim 1, characterized in that Determining whether the object under test has defects by using the regional features corresponding to each sub-region includes: Selecting a detection area corresponding to the detection requirement from the multiple sub-areas; Determine whether the grayscale value corresponding to the detection area meets a preset condition; If not, it is determined that the inspection object has defects.
5. The method according to claim 4, characterized in that Determining whether the grayscale value corresponding to the detection area meets a preset condition includes: Determine whether the change rate of the gray value corresponding to the detection area is within a first preset range; and / or It is determined whether the difference of the grayscale values corresponding to the detection area is within a second preset range.
6. The method according to any one of claims 1 to 4, characterized in that The object to be measured includes a solder ball on a BGA chip. In this case, the object outline is a circle, and the center point refers to the center of the solder ball.
7. The method according to claim 5, characterized in that The multiple sub-regions refer to the inner region, the central region or the outer region of the solder ball, wherein the inner region is a region whose distance from the center point is less than a first threshold, the outer region is a region whose distance from the center point is greater than a second threshold, and the central region is a region whose distance from the center point is greater than the first threshold and less than the second threshold, wherein the first threshold is less than the distance from the center point to the object outline, and the second threshold is greater than the distance from the center point to the object outline.
8. The method as claimed in claim 7, wherein when the detection requirement is internal detection, the detection area includes a central area and an internal area; and when the detection requirement is external detection, the detection area includes an internal area and an external area.
9. The method according to claim 4, characterized in that The detection region includes sub-regions that are symmetrical to each other within the object region.
10. An image processing device, comprising: one or more processors; Memory; as well as One or more programs, wherein the one or more programs are stored in the memory and configured to be executed by the one or more processors, the one or more programs comprising instructions for executing any of the methods according to claims 1-9.
11. A computer-readable storage medium storing one or more programs, the one or more programs comprising instructions, which when executed by a computing device, cause the computing device to perform any of the methods according to claims 1-9.
Citation Information
Patent Citations
Welding spot defect detection system based on computer vision
CN107610085A
Method for improving defect detection accuracy, computer equipment and readable medium
CN114359115A
Method for examining shape of solder ball
KR1020020085714A
Bead recognition apparatus using vision camera and method thereof
KR1020180115646A
Method for non-destructive inspection based on image and apparatus thereof
KR102075872B1
