Soft material fitting accuracy detection method, device, equipment and storage medium
Through image acquisition and edge extraction technology, the position offset value of the reference alignment line between the soft material and the substrate is calculated, which solves the problems of low detection efficiency and low accuracy in the existing technology, and realizes automatic detection and accuracy of the fitting accuracy of the soft material. improve.
Patent Information
- Application Number
- CN202010567207.2
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2020-06-19
- Publication Date
- 2024-10-25
- Estimated Expiration
- 2040-06-19
AI Technical Summary
Existing soft material fitting accuracy detection methods have problems of low detection efficiency and low accuracy, mainly due to the inaccuracy of manual detection and external interference.
Using image acquisition, edge extraction and substrate reference alignment line extraction technology, by calculating the position offset value between the edge of the soft material and the substrate reference alignment line, alarm information is output to achieve automatic detection.
It improves the efficiency and accuracy of soft material fitting accuracy detection, reduces the impact of human factors, and meets production needs.
Smart Images

Figure CN111784648B_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the technical field of FPC production, and in particular to a method, device, equipment and storage medium for detecting the lamination accuracy of soft materials. Background Art
[0002] Soft materials, also known as cover films, play an insulating role and can also protect the circuits on the FPC (Flexible Printed Circuit) from oxidation and damage.
[0003] In the production process of FPC, the lamination accuracy of soft materials has a very important impact on the product quality of FPC. At present, the lamination accuracy of soft materials is generally detected manually using a two-dimensional image measuring instrument. However, the inventors found in the process of implementing the present invention that due to the influence of human factors and external interference, the existing soft material lamination accuracy detection method has problems such as low detection efficiency and low detection accuracy, and cannot meet production needs. Summary of the invention
[0004] The embodiments of the present invention provide a method, device, equipment and storage medium for detecting the fitting accuracy of soft materials, which can effectively solve the problems of low detection efficiency and low detection accuracy caused by manual detection in the prior art.
[0005] An embodiment of the present invention provides a method for detecting the lamination accuracy of a soft material, comprising:
[0006] Collect images of the FPC to be inspected;
[0007] Performing soft material edge extraction and substrate reference alignment line extraction on the image of the FPC to be inspected to obtain soft material edge extraction results and substrate reference alignment line extraction results;
[0008] Determine the position offset values between the four edges of the soft material and the corresponding substrate reference alignment lines according to the soft material edge extraction result and the substrate reference alignment line extraction result;
[0009] When it is determined that the position offset value between any edge of the soft material and the reference alignment line of the substrate meets the preset alarm condition, an alarm message is output.
[0010] As an improvement of the above scheme, the soft material edge extraction and substrate reference alignment line extraction are performed on the image of the FPC to be inspected to obtain the soft material edge extraction result and the substrate reference alignment line extraction result, specifically including:
[0011] Creating a template for positioning, and extracting a center position of the template for positioning;
[0012] For the four sides of the soft material covered on the FPC to be inspected, a detection area corresponding to each side of the soft material is created respectively, and the center position of the detection area of each side of the soft material is extracted;
[0013] For the substrate reference alignment lines of the four sides of the soft material on the substrate, respectively create a detection area corresponding to each substrate reference alignment line, and extract the center position of the detection area of each substrate reference alignment line;
[0014] Performing template matching on the image of the FPC to be detected to obtain the center position of the matching area that matches the template used for positioning;
[0015] According to the center position of the template used for positioning and the center position of the matching area, an affine transformation is performed on the center position of the detection area of each side of the soft material and the center position of the detection area of each substrate reference alignment line to obtain the current center position of the detection area of each side of the soft material and the current center position of the detection area of each substrate reference alignment line;
[0016] According to the current center position of the detection area of each side of the soft material, edge extraction is performed on the image of the FPC to be detected in the detection area of each side of the soft material to obtain a soft material edge extraction result;
[0017] According to the current center position of the detection area of each substrate reference alignment line, edge extraction is performed on the image of the FPC to be detected within the detection area of each substrate reference alignment line to obtain a substrate reference alignment line extraction result.
[0018] As an improvement of the above solution, the template matching is performed on the image of the FPC to be detected to obtain the center position of the matching area that matches the template used for positioning, specifically including:
[0019] Preprocessing the image of the FPC to be detected to obtain a preprocessed image of the FPC to be detected;
[0020] Template matching is performed on the preprocessed image of the FPC to be detected to obtain the center position of the matching area that matches the template used for positioning.
[0021] As an improvement of the above solution, the position offset values between the four edges of the soft material and the corresponding substrate reference alignment lines are determined according to the soft material edge extraction result and the substrate reference alignment line extraction result, specifically including:
[0022] Determining whether the soft material edge extraction result includes the position coordinates of the four edges of the soft material;
[0023] When it is determined that the soft material edge extraction result includes the position coordinates of the four edges of the soft material, for each edge of the soft material, it is determined whether the substrate reference alignment line extraction result includes the position coordinates of the substrate alignment reference line corresponding to the edge. If so, a position offset value between the edge and its corresponding substrate reference alignment line is calculated based on the position coordinates of the edge and the position coordinates of its corresponding substrate alignment reference line. If not, the position offset value between the edge and its corresponding substrate reference alignment line is set to a preset offset value.
[0024] When it is determined that the soft material edge extraction result does not include the position coordinates of the four edges of the soft material, the position offset values between the four edges of the soft material and the reference alignment lines of the substrate are all set to preset offset values.
[0025] As an improvement of the above scheme, the preset alarm condition is greater than a first preset offset threshold or less than a second preset offset threshold; wherein, the first preset offset threshold is greater than the second preset offset threshold, and the preset offset value is less than the second preset offset threshold.
[0026] As an improvement of the above solution, the position offset value includes the shortest distance and the absolute value of the slope difference.
[0027] Another embodiment of the present invention provides a soft material lamination accuracy detection device, comprising:
[0028] An image acquisition module, used for acquiring an image of the FPC to be inspected;
[0029] An edge extraction module is used to perform soft material edge extraction and substrate reference alignment line extraction on the image of the FPC to be inspected, and obtain soft material edge extraction results and substrate reference alignment line extraction results;
[0030] An offset calculation module, used to determine the position offset values between the four edges of the soft material and the corresponding substrate reference alignment lines according to the soft material edge extraction result and the substrate reference alignment line extraction result;
[0031] The precision detection module is used to output an alarm message when it is determined that the position offset value between any edge of the soft material and the reference alignment line of its substrate meets the preset alarm condition.
[0032] Another embodiment of the present invention provides a soft material fitting accuracy detection device, including a processor, a memory, and a computer program stored in the memory and configured to be executed by the processor, and when the processor executes the computer program, it implements the soft material fitting accuracy detection method described in any one of the above.
[0033] Another embodiment of the present invention provides a computer-readable storage medium, which includes a stored computer program, wherein when the computer program is running, the device where the computer-readable storage medium is located is controlled to execute any one of the soft material fitting accuracy detection methods described above.
[0034] Compared with the prior art, the soft material bonding accuracy detection method, device, equipment and storage medium disclosed in the embodiments of the present invention acquire an image of the FPC to be detected, and then perform soft material edge extraction and substrate reference alignment line extraction on the image of the FPC to be detected to obtain soft material edge extraction results and substrate reference alignment line extraction results. Then, based on the soft material edge extraction results and the substrate reference alignment line extraction results, the position offset values between the four edges of the soft material and the corresponding substrate reference alignment lines are determined. Then, when it is determined that the position offset value between any edge of the soft material and its substrate reference alignment line meets the preset alarm condition, an alarm message is output to realize automatic detection of the soft material bonding accuracy, which can effectively solve the problems of low detection efficiency and low detection accuracy caused by manual detection in the prior art. BRIEF DESCRIPTION OF THE DRAWINGS
[0035] Figure 1 It is a flow chart of a method for detecting the lamination accuracy of soft materials provided by one embodiment of the present invention.
[0036] Figure 2 It is a schematic structural diagram of a laminating machine shown in one embodiment of the present invention.
[0037] Figure 3 It is a schematic structural diagram of a head of a laminating machine shown in one embodiment of the present invention.
[0038] Figure 4 It is a working flow chart of a laminating machine shown in one embodiment of the present invention.
[0039] Figure 5 It is a structural schematic diagram of a soft material bonding accuracy detection device provided by one embodiment of the present invention.
[0040] Figure 6 It is a structural schematic diagram of a soft material fitting accuracy detection device provided by one embodiment of the present invention. DETAILED DESCRIPTION
[0041] 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 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 creative work are within the scope of protection of the present invention.
[0042] See also Figure 1 , is a flow chart of a method for detecting soft material fitting accuracy provided by one embodiment of the present invention.
[0043] The soft material lamination accuracy detection method provided by the embodiment of the present invention includes:
[0044] S11, collecting images of the FPC to be tested;
[0045] S12, performing soft material edge extraction and substrate reference alignment line extraction on the image of the FPC to be inspected, to obtain soft material edge extraction results and substrate reference alignment line extraction results;
[0046] S13, determining the position offset values between the four edges of the soft material and the corresponding substrate reference alignment lines according to the soft material edge extraction result and the substrate reference alignment line extraction result;
[0047] S14, when it is determined that the position offset value between any edge of the soft material and the reference alignment line of the substrate meets the preset alarm condition, output an alarm message.
[0048] It is worth noting that in step S11, when the camera remains unchanged, the clarity of the image of the FPC to be inspected mainly depends on the inspected object and the light source. Since the inspected FPC substrate and the soft material after bonding have some differences in different positions, when the imaging effect is not ideal, the light source needs to be fine-tuned. The light source is mainly adjusted from three aspects: lighting angle, light intensity and light color. When the installation angle of the image acquisition device is fixed, the color and intensity of the light are mainly adjusted in real time to obtain a clear image. The light source can be a compact RGB three-color ring light. Generally, blue light is used for detection, and the exposure time is selected as 200 milliseconds (the camera exposure time is set to 2000 microseconds).
[0049] It should be noted that the shapes of the soft material and the substrate are rectangular, the size of the soft material is generally smaller than that of the substrate, and there is a large difference between the color of the soft material and the color of the substrate, so the soft material area and the substrate area can be well distinguished according to the color. The substrate reference alignment line includes an upper alignment line, a lower alignment line, a left alignment line and a right alignment line respectively set at the edge of the substrate, which are used for the upper alignment, lower alignment, left alignment and right alignment of the soft material respectively. If the FPC to be inspected fits the soft material normally, that is, there is no missing bonding and the bonding position deviation is small, the soft material edge extraction result should include the position coordinates of the four sides of the soft material, and the substrate reference alignment line extraction result should include the position coordinates of the substrate reference alignment lines corresponding to the four sides of the soft material; if the soft material is not bonded to the FPC to be inspected due to missing bonding, the four sides of the soft material cannot be extracted through the soft material edge extraction, and the soft material edge extraction result does not include the position coordinates of the four sides of the soft material; if the substrate reference alignment lines on the substrate are covered by the soft material due to a large deviation in the bonding position, only the substrate reference alignment lines not covered by the soft material can be extracted through the substrate reference alignment lines, and the substrate reference alignment lines covered by the soft material cannot be extracted. At this time, the substrate reference alignment line extraction result only includes the position coordinates of the substrate reference alignment lines not covered by the soft material.
[0050] It is worth noting that the lamination accuracy of the soft material on the FPC is reflected by the distance and rotation angle between the alignment line on the substrate and the edge of the soft material, and the position offset value can well reflect the distance and rotation angle between the two lines. Therefore, the embodiment of the present invention determines the lamination accuracy of the soft material by calculating the position offset values of the four edges of the soft material and the corresponding substrate reference alignment lines. Optionally, the position offset value includes the shortest distance and the absolute value of the slope difference.
[0051] The preset alarm conditions and alarm information can be set according to actual needs and are not limited here. For example, the preset alarm condition can be set as the position offset value is greater than a certain threshold, and the alarm information can be set as "position deviation exceeds the set range". When it is determined that the position offset value between any edge of the soft material and its substrate reference alignment line is greater than a certain threshold, an alarm message is output to remind the user to confirm the bonding condition.
[0052] In an optional embodiment, after determining the position offset value between the four sides of the soft material and the corresponding substrate reference alignment line, the bonding position compensation amount of the bonding machine can be adjusted accordingly based on the position offset value between the four sides of the soft material and the corresponding substrate reference alignment line, thereby controlling the bonding position of the bonding machine and improving the bonding quality.
[0053] The soft material bonding accuracy detection method disclosed in the embodiment of the present invention acquires an image of an FPC to be detected, then performs soft material edge extraction and substrate reference alignment line extraction on the image of the FPC to be detected, and obtains soft material edge extraction results and substrate reference alignment line extraction results. Then, based on the soft material edge extraction results and the substrate reference alignment line extraction results, the position offset values between the four edges of the soft material and the corresponding substrate reference alignment lines are determined. Then, when it is determined that the position offset value between any edge of the soft material and its substrate reference alignment line meets a preset alarm condition, an alarm message is output to realize automatic detection of the soft material bonding accuracy, which can effectively solve the problems of low detection efficiency and low detection accuracy caused by manual detection in the prior art.
[0054] As one of the optional embodiments, the step S12 specifically includes:
[0055] S121, creating a template for positioning, and extracting the center position of the template for positioning;
[0056] S122, for the four sides of the soft material covered on the FPC to be inspected, create a detection area corresponding to each side of the soft material, and extract the center position of the detection area of each side of the soft material;
[0057] S123, for the substrate reference alignment lines of the four sides of the soft material on the substrate, respectively create a detection area corresponding to each substrate reference alignment line, and extract the center position of the detection area of each substrate reference alignment line;
[0058] S124, performing template matching on the image of the FPC to be detected to obtain the center position of the matching area that matches the template used for positioning;
[0059] S125, performing affine transformation on the center position of the detection area of each side of the soft material and the center position of the detection area of each substrate reference alignment line according to the center position of the template used for positioning and the center position of the matching area, so as to obtain the current center position of the detection area of each side of the soft material and the current center position of the detection area of each substrate reference alignment line;
[0060] S126, performing edge extraction on the image of the FPC to be inspected in the detection area of each side of the soft material according to the current center position of the detection area of each side of the soft material, to obtain a soft material edge extraction result;
[0061] S127 , performing edge extraction on the image of the FPC to be inspected within the inspection area of each substrate reference alignment line according to the current center position of the inspection area of each substrate reference alignment line to obtain a substrate reference alignment line extraction result.
[0062] It should be noted that step S121 can specifically be: generating detection point coordinates; moving to the first detection point position, collecting the image required for establishing the template; performing contour extraction on the image required for establishing the template, obtaining a template for positioning, and recording the center position of the template for positioning. Among them, the detection point coordinates can be generated in two optional ways, namely CAD file import and teaching. The CAD file import supports two formats (DXF and DWG), and provides the function of GBR to DXF. If you need to import a file in GBR format, you can convert GBR to DXF in the system software, and then import the converted DXF file. After obtaining the detection point coordinates, since the actual position of the detection point may deviate from the coordinates in the file, multiple positioning is required during detection. In order to solve this problem, the mobile camera scans the detection points one by one, and adjusts the coordinates of each detection point according to the center position detected by the camera, so as to reduce the movement time of the coordinate axis during the automatic detection process. It can be understood that the template used for positioning specifically includes: contour line, center of contour line, and angle of contour line. The purpose of establishing a template for positioning is to determine the position of the soft material and its rotation angle, and to determine the position of the caliper and soft material area in the image.
[0063] In step S125, affine transformation is performed because the center position and direction of the set detection area are relative values of the center position and angle of the template used for positioning. When the detection image obtained when edge detection is required is different from the image when the template is created, if the absolute coordinates of the detection area in the image are used, the detection will not be possible. Through affine transformation, no matter how the image changes, the relative coordinates of the center position of the detection area relative to the center position and angle of the template used for positioning remain unchanged.
[0064] In one embodiment, step S126 may specifically be to extract the edge of the image of the FPC to be detected in the detection area of each edge of the soft material by using a caliper tool, thereby setting a caliper on the extracted edge of the soft material, and step S127 may specifically be to extract the edge of the image of the FPC to be detected in the detection area of each substrate reference alignment line by using a caliper tool, thereby setting a caliper on the extracted substrate reference alignment line, and the position coordinates of each line can be obtained by the caliper on each line. Among them, the number of setting points of the caliper is proportional to the length of the caliper, which is generally set to 2:1. The length of the caliper depends on the length of the edge to be detected, and the caliper length should be set as large as possible, because the longer the caliper, the higher the progress.
[0065] In another embodiment, before edge extraction is performed on the image of the FPC to be detected, the image of the FPC to be detected may be preprocessed by noise smoothing, restoration, gradient calculation, edge sharpening, etc., so as to reduce interference in the image and improve edge extraction accuracy.
[0066] In this embodiment, template matching positioning technology and affine transformation technology are used to determine the position of the soft material edge and the substrate reference alignment line on the image of the FPC to be inspected, and then edge extraction is performed, which can effectively improve the accuracy of edge extraction and thus improve the accuracy of bonding accuracy detection.
[0067] Furthermore, the S124 specifically includes:
[0068] S1241, preprocessing the image of the FPC to be detected to obtain a preprocessed image of the FPC to be detected;
[0069] S1242: Perform template matching on the preprocessed image of the FPC to be detected to obtain the center position of the matching area that matches the template used for positioning.
[0070] In this embodiment, the preprocessing mainly includes: noise smoothing, restoration, gradient calculation, edge sharpening, etc. By preprocessing the image of the FPC to be detected, interference is reduced, the clarity of the image can be improved, and thus the accuracy of template matching can be improved.
[0071] As one of the optional embodiments, step S13 specifically includes:
[0072] S131, determining whether the soft material edge extraction result includes the position coordinates of the four edges of the soft material;
[0073] S132, when it is determined that the soft material edge extraction result includes the position coordinates of the four edges of the soft material, for each edge of the soft material, it is determined whether the substrate reference alignment line extraction result includes the position coordinates of the substrate alignment reference line corresponding to the edge, if so, the position offset value between the edge and the substrate reference alignment line corresponding to the edge is calculated according to the position coordinates of the edge and the position coordinates of the substrate alignment reference line corresponding to the edge, if not, the position offset value between the edge and the substrate reference alignment line corresponding to the edge is set to a preset offset value;
[0074] S133: When it is determined that the soft material edge extraction result does not include the position coordinates of the four edges of the soft material, the position offset values between the four edges of the soft material and the reference alignment lines of the substrate are all set to preset offset values.
[0075] Among them, the preset offset value can be set according to actual conditions and is not limited here. 1, the preset offset value is set to -1.
[0076] In this embodiment, the position offset value between the four edges of the soft material and its substrate reference alignment line is determined based on whether the soft material edge extraction result and the substrate reference alignment line extraction result contain complete edge position information, which can effectively improve the accuracy of the position offset value, thereby improving the accuracy of the bonding precision detection.
[0077] Further, the preset alarm condition is greater than a first preset offset threshold or less than a second preset offset threshold; wherein, the first preset offset threshold is greater than the second preset offset threshold, and the preset offset value is less than the second preset offset threshold.
[0078] In a specific implementation, the first preset offset threshold and the second preset offset threshold can be set according to actual conditions, and no limitation is made here. Optionally, the first preset offset threshold is set to 0.03 mm, and the second preset offset threshold is set to 0.
[0079] It should be noted that, in one embodiment, the soft material fitting accuracy detection method provided by the embodiment of the present invention can be Figure 2 The laminating machine is executed during the working process of the laminating machine, thereby realizing online detection of laminating accuracy during the production process, thereby improving efficiency. Figure 2 The bonding machine shown in the figure includes a left head 1, a right head 2 and a loading platform 3, and the loading platform 3 is used to place the FPC to be tested. Figure 3 As shown, each head includes a motor 101, a camera 102, a light source 103, a bonding pad 104 and a cylinder 105. The camera 102 is used to collect an image of the FPC to be inspected. The working process of the bonding machine is as follows Figure 4 As shown, in the entire workflow of the bonding machine, the robot first loads the material (FPC substrate), and the shuttle board feeds the material (soft material); then the camera identifies the MARK point on the substrate; then detects the C position mark of the bonding position, and the camera performs positioning and detection before the soft material is bonded; executes the bonding action; the left and right heads are alternately executed in a cycle; after the bonding is executed, the process of the bonding accuracy detection method provided in this embodiment is inserted. Among them, in order to reduce the moving distance of the head and improve the detection efficiency, the left camera is used to detect the left bonding point, and the right camera is used to detect the right bonding point.
[0080] See also Figure 5 , is a structural schematic diagram of a soft material fitting accuracy detection device provided by one embodiment of the present invention.
[0081] The soft material lamination accuracy detection device provided by the embodiment of the present invention includes:
[0082] An image acquisition module 21 is used to acquire an image of the FPC to be detected;
[0083] The edge extraction module 22 is used to perform soft material edge extraction and substrate reference alignment line extraction on the image of the FPC to be inspected, and obtain soft material edge extraction results and substrate reference alignment line extraction results;
[0084] An offset calculation module 23, used to determine the position offset values between the four edges of the soft material and the corresponding substrate reference alignment lines according to the soft material edge extraction result and the substrate reference alignment line extraction result;
[0085] The precision detection module 24 is used to output an alarm message when it is determined that the position offset value between any edge of the soft material and the reference alignment line of the substrate meets a preset alarm condition.
[0086] The soft material bonding accuracy detection device disclosed in the embodiment of the present invention acquires an image of an FPC to be detected, and then performs soft material edge extraction and substrate reference alignment line extraction on the image of the FPC to be detected to obtain a soft material edge extraction result and a substrate reference alignment line extraction result. Then, based on the soft material edge extraction result and the substrate reference alignment line extraction result, the position offset value between the four edges of the soft material and the corresponding substrate reference alignment line is determined. Then, when it is determined that the position offset value between any edge of the soft material and the substrate reference alignment line meets a preset alarm condition, an alarm message is output to realize automatic detection of the soft material bonding accuracy, which can effectively solve the problems of low detection efficiency and low detection accuracy caused by manual detection in the prior art.
[0087] As an optional embodiment, the edge extraction module 22 is specifically used for:
[0088] Creating a template for positioning, and extracting a center position of the template for positioning;
[0089] For the four sides of the soft material covered on the FPC to be inspected, a detection area corresponding to each side of the soft material is created respectively, and the center position of the detection area of each side of the soft material is extracted;
[0090] For the substrate reference alignment lines of the four sides of the soft material on the substrate, respectively create a detection area corresponding to each substrate reference alignment line, and extract the center position of the detection area of each substrate reference alignment line;
[0091] Performing template matching on the image of the FPC to be detected to obtain the center position of the matching area that matches the template used for positioning;
[0092] According to the center position of the template used for positioning and the center position of the matching area, an affine transformation is performed on the center position of the detection area of each side of the soft material and the center position of the detection area of each substrate reference alignment line to obtain the current center position of the detection area of each side of the soft material and the current center position of the detection area of each substrate reference alignment line;
[0093] According to the current center position of the detection area of each side of the soft material, edge extraction is performed on the image of the FPC to be detected in the detection area of each side of the soft material to obtain a soft material edge extraction result;
[0094] According to the current center position of the detection area of each substrate reference alignment line, edge extraction is performed on the image of the FPC to be detected within the detection area of each substrate reference alignment line to obtain a substrate reference alignment line extraction result.
[0095] Further, performing template matching on the image of the FPC to be detected to obtain the center position of the matching area that matches the template used for positioning specifically includes:
[0096] Preprocessing the image of the FPC to be detected to obtain a preprocessed image of the FPC to be detected;
[0097] Template matching is performed on the preprocessed image of the FPC to be detected to obtain the center position of the matching area that matches the template used for positioning.
[0098] As one of the optional embodiments, the edge extraction module 23 is specifically used for:
[0099] The step of determining the position offset values between the four edges of the soft material and the corresponding substrate reference alignment lines according to the soft material edge extraction result and the substrate reference alignment line extraction result specifically includes:
[0100] Determining whether the soft material edge extraction result includes the position coordinates of the four edges of the soft material;
[0101] When it is determined that the soft material edge extraction result includes the position coordinates of the four edges of the soft material, for each edge of the soft material, it is determined whether the substrate reference alignment line extraction result includes the position coordinates of the substrate alignment reference line corresponding to the edge. If so, a position offset value between the edge and its corresponding substrate reference alignment line is calculated based on the position coordinates of the edge and the position coordinates of its corresponding substrate alignment reference line. If not, the position offset value between the edge and its corresponding substrate reference alignment line is set to a preset offset value.
[0102] When it is determined that the soft material edge extraction result does not include the position coordinates of the four edges of the soft material, the position offset values between the four edges of the soft material and the reference alignment lines of the substrate are all set to preset offset values.
[0103] Further, the preset alarm condition is greater than a first preset offset threshold or less than a second preset offset threshold; wherein, the first preset offset threshold is greater than the second preset offset threshold, and the preset offset value is less than the second preset offset threshold.
[0104] As an optional embodiment, the position offset value includes the shortest distance and the absolute value of the slope difference.
[0105] It should be noted that the specific description of the soft material fitting accuracy detection device provided in this embodiment is consistent with the soft material fitting accuracy detection method provided in the above embodiment, and will not be repeated here.
[0106] See also Figure 6 , is a structural schematic diagram of a soft material fitting accuracy detection device provided by one embodiment of the present invention.
[0107] An embodiment of the present invention provides a soft material fitting accuracy detection device, comprising a processor 31, a memory 32, and a computer program stored in the memory 32 and configured to be executed by the processor 31. When the processor 31 executes the computer program, the soft material fitting accuracy detection method described in any of the above embodiments is implemented.
[0108] When the processor 31 executes the computer program, the steps in the above-mentioned soft material bonding accuracy detection method embodiment are implemented, for example Figure 1 Alternatively, when the processor 31 executes the computer program, the functions of each module / unit in the above-mentioned soft material fitting accuracy detection device embodiment are realized, for example Figure 5 The functions of each module of the soft material bonding accuracy detection device shown.
[0109] Exemplarily, the computer program can be divided into one or more modules, and the one or more modules are stored in the memory 32 and executed by the processor 31 to complete the present invention. The one or more modules can be a series of computer program instruction segments that can complete specific functions, and the instruction segments are used to describe the execution process of the computer program in the soft material bonding accuracy detection device. For example, the computer program can be divided into an image acquisition module, an edge extraction module, an offset calculation module and an accuracy detection module, and the specific functions of each module are as follows: an image acquisition module, which is used to acquire an image of the FPC to be detected; an edge extraction module, which is used to perform soft material edge extraction and substrate reference alignment line extraction on the image of the FPC to be detected, and obtain soft material edge extraction results and substrate reference alignment line extraction results; an offset calculation module, which is used to determine the position offset values between the four edges of the soft material and the corresponding substrate reference alignment lines according to the soft material edge extraction results and the substrate reference alignment line extraction results; an accuracy detection module, which is used to output an alarm message when it is determined that the position offset value between any edge of the soft material and its substrate reference alignment line meets the preset alarm condition.
[0110] The soft material fitting accuracy detection device can be a computing device such as a desktop computer, a notebook, a PDA, and a cloud server. The soft material fitting accuracy detection device can include, but is not limited to, a processor 31 and a memory 32. Those skilled in the art can understand that the schematic diagram is only an example of a soft material fitting accuracy detection device and does not constitute a limitation on the soft material fitting accuracy detection device. It can include more or less components than shown in the figure, or combine certain components, or different components. For example, the soft material fitting accuracy detection device can also include input and output devices, network access devices, buses, etc.
[0111] The processor 31 may be a central processing unit (CPU), or 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. The general-purpose processor may be a microprocessor or any conventional processor, etc. The processor 31 is the control center of the soft material bonding accuracy detection device, and uses various interfaces and lines to connect various parts of the entire soft material bonding accuracy detection device.
[0112] The memory 32 can be used to store the computer program and / or module. The processor 31 realizes various functions of the soft material fitting accuracy detection device by running or executing the computer program and / or module stored in the memory 32 and calling the data stored in the memory 32. The memory 32 can mainly include a program storage area and a data storage area, wherein the program storage area can store an operating system, at least one application required for a function, etc.; the data storage area can store data created according to the use of the soft material fitting accuracy detection device, etc. In addition, the memory can include a high-speed random access memory, and can also include a non-volatile memory, such as a hard disk, a memory, a plug-in hard disk, a smart memory card (Smart Media Card, SMC), a secure digital (Secure Digital, SD) card, a flash card (Flash Card), at least one disk storage device, a flash memory device, or other volatile solid-state storage devices.
[0113] Wherein, if the module / unit integrated in the soft material fitting accuracy detection equipment 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 such an understanding, the present invention implements all or part of the processes in the above-mentioned embodiment method, and can also be completed by instructing the relevant hardware through a computer program. The computer program can be stored in a computer-readable storage medium, and the computer program can implement the steps of the above-mentioned various method embodiments when executed by the processor. Wherein, the computer program includes computer program code, and the computer program code can be in source code form, object code form, executable file or some intermediate form, etc. The computer-readable medium may include: any entity or device capable of carrying the computer program code, recording medium, U disk, mobile hard disk, disk, optical disk, computer memory, read-only memory (ROM, Read-Only Memory), random access memory (RAM, Random Access Memory), electric carrier signal, telecommunication signal and software distribution medium, etc.
[0114] It should be noted that the device embodiments described above are merely schematic, wherein the units described as separate components may or may not be physically separated, and the components displayed as units may or may not be physical units, that is, they may be located in one place, or they may be distributed on multiple network units. Some or all of the modules may be selected according to actual needs to achieve the purpose of the scheme of this embodiment. In addition, in the accompanying drawings of the device embodiments provided by the present invention, the connection relationship between the modules indicates that there is a communication connection between them, which may be specifically implemented as one or more communication buses or signal lines. A person of ordinary skill in the art may understand and implement it without paying any creative effort.
[0115] The above is a preferred embodiment of the present invention. It should be pointed out that a person skilled in the art can make several improvements and modifications without departing from the principle of the present invention. These improvements and modifications are also considered to be within the scope of protection of the present invention.
Claims
1. A method for detecting the lamination accuracy of soft materials, characterized in that: include: Collect images of the FPC to be inspected; Performing soft material edge extraction and substrate reference alignment line extraction on the image of the FPC to be inspected to obtain soft material edge extraction results and substrate reference alignment line extraction results, specifically including: Creating a template for positioning, and extracting a center position of the template for positioning; For the four sides of the soft material covered on the FPC to be inspected, a detection area corresponding to each side of the soft material is created respectively, and the center position of the detection area of each side of the soft material is extracted; For the substrate reference alignment lines of the four sides of the soft material on the FPC to be inspected, a detection area corresponding to each substrate reference alignment line is created respectively, and the center position of the detection area of each substrate reference alignment line is extracted; wherein the substrate reference alignment line includes: an upper alignment line, a lower alignment line, a left alignment line and a right alignment line respectively set at the edge of the FPC to be inspected, and used for the upper alignment, lower alignment, left alignment and right alignment of the soft material respectively; Performing template matching on the image of the FPC to be detected to obtain the center position of the matching area that matches the template used for positioning; According to the center position of the template used for positioning and the center position of the matching area, an affine transformation is performed on the center position of the detection area of each side of the soft material and the center position of the detection area of each substrate reference alignment line to obtain the current center position of the detection area of each side of the soft material and the current center position of the detection area of each substrate reference alignment line; According to the current center position of the detection area of each side of the soft material, edge extraction is performed on the image of the FPC to be detected in the detection area of each side of the soft material to obtain a soft material edge extraction result; According to the current center position of the detection area of each substrate reference alignment line, edge extraction is performed on the image of the FPC to be detected within the detection area of each substrate reference alignment line to obtain a substrate reference alignment line extraction result; Determine the position offset values between the four edges of the soft material and the corresponding substrate reference alignment lines according to the soft material edge extraction result and the substrate reference alignment line extraction result; When it is determined that the position offset value between any edge of the soft material and the reference alignment line of the substrate meets the preset alarm condition, an alarm message is output.
2. The soft material lamination accuracy detection method according to claim 1, characterized in that: The performing template matching on the image of the FPC to be detected to obtain the center position of the matching area that matches the template used for positioning specifically includes: Preprocessing the image of the FPC to be detected to obtain a preprocessed image of the FPC to be detected; Template matching is performed on the preprocessed image of the FPC to be detected to obtain the center position of the matching area that matches the template used for positioning.
3. The soft material lamination accuracy detection method according to claim 1, characterized in that: The step of determining the position offset values between the four edges of the soft material and the corresponding substrate reference alignment lines according to the soft material edge extraction result and the substrate reference alignment line extraction result specifically includes: Determining whether the soft material edge extraction result includes the position coordinates of the four edges of the soft material; When it is determined that the soft material edge extraction result includes the position coordinates of the four edges of the soft material, for each edge of the soft material, it is determined whether the substrate reference alignment line extraction result includes the position coordinates of the substrate alignment reference line corresponding to the edge. If so, a position offset value between the edge and its corresponding substrate reference alignment line is calculated based on the position coordinates of the edge and the position coordinates of its corresponding substrate alignment reference line. If not, the position offset value between the edge and its corresponding substrate reference alignment line is set to a preset offset value. When it is determined that the soft material edge extraction result does not include the position coordinates of the four edges of the soft material, the position offset values between the four edges of the soft material and the reference alignment lines of the substrate are all set to preset offset values.
4. The soft material lamination accuracy detection method according to claim 3, characterized in that: The preset alarm condition is greater than a first preset offset threshold or less than a second preset offset threshold; wherein the first preset offset threshold is greater than the second preset offset threshold, and the preset offset value is less than the second preset offset threshold.
5. The soft material lamination accuracy detection method according to claim 1, characterized in that: The position offset value includes the shortest distance and the absolute value of the slope difference.
6. A soft material lamination accuracy detection device, characterized in that: include: An image acquisition module, used for acquiring an image of the FPC to be inspected; The edge extraction module is used to perform soft material edge extraction and substrate reference alignment line extraction on the image of the FPC to be detected, and obtain the soft material edge extraction results and the substrate reference alignment line extraction results, which specifically include: creating a template for positioning, and extracting the center position of the template for positioning; for the four sides of the soft material covered on the FPC to be detected, respectively creating a detection area corresponding to each side of the soft material, and extracting the center position of the detection area of each side of the soft material; for the substrate reference alignment lines of the four sides of the soft material on the FPC to be detected, respectively creating a detection area corresponding to each substrate reference alignment line, and extracting the center position of the detection area of each substrate reference alignment line; wherein the substrate reference alignment lines include: upper alignment lines, lower alignment lines, left alignment lines and right alignment lines respectively set on the edge of the FPC to be detected, and used for upper alignment, lower alignment, left alignment and right alignment of the soft material respectively. Position; perform template matching on the image of the FPC to be detected to obtain the center position of the matching area that matches the template used for positioning; perform affine transformation on the center position of the detection area of each side of the soft material and the center position of the detection area of each substrate reference alignment line according to the center position of the template used for positioning and the center position of the matching area to obtain the current center position of the detection area of each side of the soft material and the current center position of the detection area of each substrate reference alignment line; perform edge extraction on the image of the FPC to be detected within the detection area of each side of the soft material according to the current center position of the detection area of each side of the soft material to obtain the soft material edge extraction result; perform edge extraction on the image of the FPC to be detected within the detection area of each substrate reference alignment line according to the current center position of the detection area of each substrate reference alignment line to obtain the substrate reference alignment line extraction result; An offset calculation module, used to determine the position offset values between the four edges of the soft material and the corresponding substrate reference alignment lines according to the soft material edge extraction result and the substrate reference alignment line extraction result; The precision detection module is used to output an alarm message when it is determined that the position offset value between any edge of the soft material and its substrate reference alignment line meets a preset alarm condition.
7. A soft material lamination accuracy detection device, characterized in that: It includes a processor, a memory, and a computer program stored in the memory and configured to be executed by the processor, and when the processor executes the computer program, it implements the soft material bonding accuracy detection method as described in any one of claims 1 to 5.
8. A computer-readable storage medium, characterized in that: The computer-readable storage medium includes a stored computer program, wherein when the computer program is executed, the device where the computer-readable storage medium is located is controlled to execute the soft material fitting accuracy detection method according to any one of claims 1 to 5.
Citation Information
Patent Citations
Polarizing plate attached precision detection device and method
CN102736280A
Embryo molding part lamination detecting device and method
CN105479786A
AOI detection method and device applied to substrate, storage medium and AOI detection equipment
CN110109945A
Adherence position checking device
CN204301688U
Printing integrated circuit board detecting system
CN208334229U
