CN113781392A - Method for detecting adhesive path, electronic device and storage medium - Google Patents

Method for detecting adhesive path, electronic device and storage medium Download PDF

Info

Publication number
CN113781392A
CN113781392A CN202110893191.9A CN202110893191A CN113781392A CN 113781392 A CN113781392 A CN 113781392A CN 202110893191 A CN202110893191 A CN 202110893191A CN 113781392 A CN113781392 A CN 113781392A
Authority
CN
China
Prior art keywords
image
glue
detected
calculated
path
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN202110893191.9A
Other languages
Chinese (zh)
Inventor
郑国荣
胡斌
谢松乐
陈浩
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Shenzhen Xinxinteng Technology Co ltd
Original Assignee
Shenzhen Xinxinteng Technology Co ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Shenzhen Xinxinteng Technology Co ltd filed Critical Shenzhen Xinxinteng Technology Co ltd
Priority to CN202110893191.9A priority Critical patent/CN113781392A/en
Publication of CN113781392A publication Critical patent/CN113781392A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T7/00Image analysis
    • G06T7/0002Inspection of images, e.g. flaw detection
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T7/00Image analysis
    • G06T7/10Segmentation; Edge detection
    • G06T7/136Segmentation; Edge detection involving thresholding
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T7/00Image analysis
    • G06T7/60Analysis of geometric attributes
    • G06T7/62Analysis of geometric attributes of area, perimeter, diameter or volume
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T2207/00Indexing scheme for image analysis or image enhancement
    • G06T2207/20Special algorithmic details
    • G06T2207/20092Interactive image processing based on input by user
    • G06T2207/20104Interactive definition of region of interest [ROI]
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T2207/00Indexing scheme for image analysis or image enhancement
    • G06T2207/20Special algorithmic details
    • G06T2207/20112Image segmentation details
    • G06T2207/20132Image cropping

Abstract

The application discloses a method for detecting a glue path and electronic equipment, wherein the method for detecting the glue path comprises the following steps: acquiring an image to be detected; dividing the image to be measured into at least two images to be calculated based on the geometric characteristics of the rubber road to be measured; calculating the glue height, the glue width and the glue path position information of the glue path to be measured according to each image to be calculated; and obtaining a glue path detection result based on the glue height, the glue width and the glue path position. The method and the device can detect the information related to the glue path shape, improve the comprehensiveness of glue path information detection, and further improve the accuracy of a glue path detection result.

Description

Method for detecting adhesive path, electronic device and storage medium
Technical Field
The present application relates to image processing technologies, and in particular, to a method and an apparatus for detecting a rubber road, an electronic device, and a computer-readable storage medium.
Background
Glue dispensing is an important preorder step of screen mounting, and the main purpose is to firmly bond a screen and a middle frame. Poor dispensing can cause many problems, such as glue break, glue shortage or glue collapse (overlap), which can lead to poor adhesion between the screen and the frame, and thus to a product with poor waterproof effect or poor appearance, requiring secondary rework. In order to prevent secondary rework, it is necessary to inspect the glue lines.
However, the existing glue path detection method has limited detection on the glue path information, and cannot obtain comprehensive glue path information, so that the detection result is inaccurate.
Disclosure of Invention
The application provides a method and a device for detecting a glue path, electronic equipment and a computer readable storage medium, which can obtain comprehensive glue path information and improve the accuracy of a glue path detection result.
In a first aspect, the present application provides a method for detecting a glue road, including:
acquiring an image to be detected, wherein the image to be detected is an image obtained by shooting a rubber circuit to be detected;
dividing the image to be measured into at least two images to be calculated based on the geometric characteristics of the rubber road to be measured;
calculating the glue height, the glue width and the position information of the glue path to be measured according to each image to be calculated;
and obtaining a glue path detection result based on the glue height, the glue width and the position information.
In a second aspect, the present application provides a glue road detection device, including:
the system comprises a first acquisition module, a second acquisition module and a third acquisition module, wherein the first acquisition module is used for acquiring an image to be detected, and the image to be detected is an image obtained by shooting a rubber circuit to be detected;
the segmentation module is used for segmenting the image to be measured into at least two images to be calculated based on the geometric characteristics of the rubber road to be measured;
the calculation module is used for calculating the glue height, the glue width and the position information of the glue road to be measured according to each image to be calculated;
and the detection module is used for obtaining a glue path detection result based on the glue height, the glue width and the glue path position.
In a third aspect, the present application provides an electronic device comprising a memory, a processor and a computer program stored in the memory and executable on the processor, wherein the processor implements the steps of the method according to the first aspect when executing the computer program.
In a fourth aspect, the present application provides a computer readable storage medium having stored thereon a computer program which, when executed by a processor, performs the steps of the method of the first aspect.
In a fifth aspect, the present application provides a computer program product comprising a computer program which, when executed by one or more processors, performs the steps of the method of the first aspect as described above.
Compared with the prior art, the application has the beneficial effects that: according to the method and the device, an image obtained by shooting the to-be-detected glue road, namely the to-be-detected image, is obtained firstly, then the to-be-detected image is segmented based on the geometric characteristics of the to-be-detected glue road, the to-be-calculated image is obtained, then the glue height, the glue width and the position information of the to-be-detected glue road are calculated according to the to-be-calculated images, and finally the glue road detection result can be obtained according to the glue height, the glue width and the position information of the to-be-detected glue road obtained through calculation. The method improves the comprehensiveness of the detection of the glue path information by detecting the information related to the glue path shape, and further improves the accuracy of the glue path detection result. The image to be detected is segmented according to the geometric characteristics of the glue path to be detected, so that the glue height, the glue width and the calculation accuracy of the position information of the glue path to be detected can be further improved.
Drawings
In order to more clearly illustrate the technical solutions in the embodiments of the present application, the drawings needed to be used in the embodiments or the prior art descriptions will be briefly described below, and it is obvious that the drawings in the following description are only some embodiments of the present application, and it is obvious for those skilled in the art to obtain other drawings without creative efforts.
Fig. 1 is a schematic flow chart of a method for detecting a glue line provided in an embodiment of the present application;
fig. 2 is a schematic cross-sectional view of a first/second dispensing-free substrate according to an embodiment of the present disclosure;
fig. 3 is a schematic cross-sectional view of a first/second acceptable dispensing device provided by an embodiment of the present disclosure;
FIG. 4 is a schematic cross-sectional view of a first/second cross-section of an embodiment of the present application;
FIG. 5 is a schematic cross-sectional view of a first/second cross-section of an embodiment of the present application;
FIG. 6 is a schematic cross-sectional view of a first/second cross-section of an embodiment of the present application, wherein wall climbing may occur;
fig. 7 is a schematic structural diagram of a detection device for a glue path provided in an embodiment of the present application;
fig. 8 is a schematic structural diagram of an electronic device provided in an embodiment of the present application.
Detailed Description
In the following description, for purposes of explanation and not limitation, specific details are set forth, such as particular system structures, techniques, etc. in order to provide a thorough understanding of the embodiments of the present application. It will be apparent, however, to one skilled in the art that the present application may be practiced in other embodiments that depart from these specific details. In other instances, detailed descriptions of well-known systems, devices, circuits, and methods are omitted so as not to obscure the description of the present application with unnecessary detail.
The method for detecting the adhesive tape path provided by the embodiment of the application can be applied to electronic equipment such as a mobile phone, a tablet personal computer, a notebook computer, an ultra-mobile personal computer (UMPC), a netbook, a Personal Digital Assistant (PDA), and the like, and the embodiment of the application does not limit the specific type of the electronic equipment at all.
In order to explain the technical solution proposed in the present application, the following description will be given by way of specific examples.
Fig. 1 shows a schematic flow chart of the method for detecting a glue line provided in the present application, and the method can be applied to any one of the electronic devices described above by way of example and not limitation.
Step 101, obtaining an image to be detected.
To detect the glue path, an image to be detected can be obtained first. The image to be detected refers to an image obtained by shooting the glue path to be detected.
102, dividing the image to be measured into at least two images to be calculated based on the geometric characteristics of the rubber road to be measured.
After the image to be measured is acquired, in order to improve the calculation accuracy of the relevant information of the glue road, the image to be measured can be segmented according to the geometric characteristics of the glue road to be measured, so as to obtain the image to be calculated. For different types of geometric features, different calculation processing methods can be adopted according to the characteristics of the geometric features, so that the calculation accuracy of the relevant information of the rubber road is improved.
And 103, calculating the glue height, the glue width and the position information of the glue path to be measured according to each image to be calculated.
After the images to be calculated are obtained, the images to be calculated can be processed, and the glue height, the glue width and the position information of the glue path are calculated. The glue height, the glue width and the position information of the glue path to be measured need to be calculated, because the height of the glue path is too low, glue collapse and/or glue break can be caused; the glue way is too high, which may cause glue overflow and affect the appearance of the product; the width of the glue path is narrow, and glue collapse and/or glue break can occur; the width of the glue path is wide, glue overflow can be caused, and the appearance of the product is influenced; the position of the glue path is deviated, and glue collapse, glue break or glue overflow can occur. Therefore, by calculating the glue height, the glue width and the position information of the glue path, whether the current glue path is qualified or not can be judged from all dimensions, so that the accuracy of the glue path detection result is improved.
And 104, obtaining a glue path detection result based on the glue height, the glue width and the position.
After the glue height, the glue width and the position information of the glue road to be detected are obtained, the glue road detection result can be determined according to the data. The glue path detection result comprises two types, namely qualified glue path and unqualified glue path, and prompt information can be sent for unqualified glue path so as to facilitate further processing by workers and improve the qualification rate of the glue path. The prompt message includes, but is not limited to, a text prompt, a voice prompt, and/or a whistle.
According to the method and the device, the image obtained by shooting the rubber road to be detected, namely the image to be detected, is obtained firstly, then the image to be detected is segmented based on the geometric characteristics of the rubber road to be detected, the image to be calculated is obtained, then the rubber height, the rubber width and the position information of the rubber road to be detected are calculated according to the images to be calculated, and finally the rubber road detection result can be obtained according to the calculated rubber height, rubber width and position information of the rubber road to be detected. The method improves the comprehensiveness of the detection of the glue path information by detecting the information related to the glue path shape, and further improves the accuracy of the glue path detection result. The image to be detected is segmented according to the geometric characteristics of the glue path to be detected, so that the glue height, the glue width and the calculation accuracy of the position information of the glue path to be detected can be further improved.
In some embodiments, in order to improve comprehensiveness of obtaining information related to the glue road, before the step 101, the method may include:
and A1, acquiring an image data pointer of the rubber road to be detected through the 3D sensor.
With the rapid development of electronic products, people have higher and higher requirements on the appearance performance of the electronic products, and the quality of screen mounting has a serious influence on the appearance and the waterproof performance of the electronic products. And the glue dispensing is used as an important step before the screen mounting, and whether the glue amount is suitable or not determines the quality of the subsequent screen mounting to a great extent. Therefore, the glue road should be detected in all directions.
The embodiment of the application acquires the picture data of the glue path to be detected through the 3D sensor so as to provide richer data and further improve the accuracy of the detection result of the glue path. Compare in the picture data of the gluey way that awaits measuring that adopts the 2D sensor among the prior art, the 3D sensor does not need the light source, also can not receive product color influence, and application range is wider. And for the same type of product, the 3D sensor only needs to set one set of parameter, and the operation is more convenient.
Alternatively, the 3D sensor may be a 3D laser camera. The image data pointer of the rubber road to be detected can be acquired through the 3D laser camera.
Correspondingly, the image to be measured is obtained, and the method comprises the following steps:
and A2, converting the image data pointer to obtain the image to be measured.
After the Image data pointer is acquired, the Image data pointer may be converted into a processable Image, for example, a depth Image in an Image format, where the obtained Image is an Image to be measured.
In some embodiments, in order to facilitate processing of an image, parameters of an image processor may be loaded, and parameters used for subsequently processing the image are converted into a two-dimensional matrix and stored, where the storage format is the same as the format of the image to be detected, that is, the number of lines is the same as the number of lines of the image to be detected, so that one interface frame uses one set of parameters, which facilitates management and calling of the parameters, thereby improving the efficiency of image processing.
In some embodiments, after obtaining the image to be detected, the image to be detected may be preprocessed, for example, the image is smoothed by bilateral filtering, noise is removed, and invalid data in the image to be detected is filled, so as to improve the efficiency of subsequent image processing.
In some embodiments, in order to improve the processing efficiency of the image and improve the calculation accuracy of the information related to the glue line to be tested, the step 102 specifically includes:
and B1, determining the region of interest from the image to be measured.
The acquired image to be measured may have other information interfering with subsequent calculation, and in order to improve the efficiency and accuracy of the subsequent calculation, a Region of Interest (ROI) may be determined from the image to be measured. In the field of image processing, a region of interest is an image region selected from an image, which is a major point of interest in calculating an image to be measured. Further processing the image to be processed based on the determined region of interest may reduce processing time and increase the accuracy of the calculation results.
And B2, dividing the image to be measured into at least two images to be calculated based on the geometric characteristics of the region of interest and the rubber road to be measured.
After the region of interest is determined, the image to be measured can be segmented by combining the geometric characteristics of the rubber road to be measured, so as to obtain at least two images to be calculated. The data characteristics of different geometric features are different, so that the image to be detected is segmented based on the geometric features of the region of interest and the rubber road to be detected, and in the subsequent processing process of the image to be calculated, more targeted operation can be adopted, so that the accuracy of the calculation result is improved.
In some embodiments, in order to improve the accuracy of the region of interest determination, the step B1 may include:
and determining the region of interest from the image to be detected by a self-adaptive threshold segmentation and extraction method.
And extracting a region with the largest area from the image to be detected by a self-adaptive threshold segmentation and extraction method, acquiring the region of interest from the region of interest, and preparing for subsequent segmentation of the image to be detected.
In some embodiments, in addition to the above method of adaptive threshold segmentation extraction to determine the region of interest, the region of interest may be determined by:
and B11, presetting a template picture, wherein the template picture is provided with the region of interest.
And B12, matching the template picture with the image to be detected, and determining the region of interest from the image to be detected according to the matching result.
When image data acquisition is carried out to the rubber road that awaits measuring, the position of 3D sensor is fixed, and the product that bears the weight of the rubber road also can place fixed position. The region of interest is therefore also fixed for the same type of product. In view of this, the region of interest may be set on the template picture by setting the template picture in advance; and after obtaining the image to be detected, covering the template picture on the image to be detected for matching, and then determining the region of interest from the image to be detected according to the matching result. The method can rapidly complete the determination of the interested areas of the same type of products through one-time setting, and can improve the efficiency of determining the interested areas.
In some embodiments, in order to improve the accuracy of calculating the relevant information of the glue line to be tested, the step B2 specifically includes:
and B21, cutting the image to be detected based on the region of interest to obtain a region of interest image.
And B22, segmenting the image of the region of interest based on the geometric characteristics of the rubber road to be measured to obtain the image to be calculated.
After the interesting region is determined, the image to be detected can be cut to obtain an interesting region image, and then the interesting region image is segmented according to the geometric characteristics of the rubber road to be detected to obtain an image to be calculated. For mobile phones and similar electronic products, the glue path has a straight line edge and an R angle, so that each image to be calculated can contain the R angle of the glue path to be measured or the straight line edge of the glue path to be measured.
In some embodiments, in order to improve the accuracy of calculating the relevant information of the glue line to be tested, the step 103 specifically includes:
for each image to be calculated:
and C11, if the image to be calculated contains the R angle of the rubber road to be measured, acquiring the frame line of the rubber road to be measured in the image to be calculated.
C12, cutting the cross section of the frame wire according to the first set step size in the direction perpendicular to the frame wire, and obtaining at least one first cross section image.
And C13, calculating the glue height, the glue width and the position information of the glue path to be measured according to the first cross section images.
For the image to be calculated containing the R angle of the rubber road to be calculated, the frame of the rubber road to be calculated in the image to be calculated can be extracted. Alternatively, the bounding box may be extracted by an adaptive threshold segmentation method. For example only, path points of the bounding box may be extracted using a method of skeleton refinement. And then fitting the extracted path points of the frame to obtain a frame line. Then, in the direction perpendicular to the frame line, the cross section of the frame line is cut according to a first set step length, wherein the direction perpendicular to the frame line means: and the R angle of the rubber road to be measured points to the direction of the circle center.
After the clipping, a first cross-sectional image can be obtained, and the vertex of the frame is searched from the first cross-sectional image. Since the dispensing table is covered by the glue and is not suitable for being used as a measurement reference, the vertex of the frame is used as a reference for glue path detection. And calculating the height of the platform by reading the height difference between the platform and the top point of the frame, searching inwards from the top point of the frame, searching for the highest point of the adhesive path, and then calculating the lowest point between the top point of the frame and the highest point of the adhesive path. The glue height I1 is equal to the glue road vertex height-platform height, the glue road position I2 is equal to the glue road vertex position-frame vertex position, and the glue overflow groove height I3 is equal to the frame vertex-minimum height value between the glue road vertex and the frame vertex. It should be understood that each time a first cross-sectional image is captured, a set of data related to the glue line to be tested can be obtained. When a plurality of first cross section images exist, a plurality of groups of related data of the rubber road to be detected can be obtained.
In some embodiments, in order to improve the accuracy of calculating the relevant information of the glue line to be tested, the step 103 specifically includes:
for each image to be calculated:
and C21, if the image to be calculated contains the straight line side of the rubber road to be measured, intercepting the cross section of the straight line side according to a second set step length to obtain at least one second cross section image.
And C22, calculating the glue height, the glue width and the glue line position information of the glue path to be measured according to each second cross section image.
And directly intercepting the cross-sectional area of the to-be-calculated glue path in the to-be-calculated image, namely a second cross-sectional image, according to the second step length for the to-be-calculated image containing the straight line edge of the to-be-calculated glue path. After obtaining the second cross-sectional image, the bezel vertices may be found in the second cross-sectional image. Since the dispensing table is covered by the glue and is not suitable for being used as a measurement reference, the vertex of the frame is used as a reference for glue path detection. And calculating the height of the platform by reading the height difference between the platform and the top point of the frame, searching inwards from the top point of the frame, searching for the highest point of the adhesive path, and then calculating the lowest point between the top point of the frame and the highest point of the adhesive path. The glue height I1 is equal to the glue road vertex height-platform height, the glue road position I2 is equal to the glue road vertex position-frame vertex position, and the glue overflow groove height I3 is equal to the frame vertex-minimum height value between the glue road vertex and the frame vertex. It should be understood that each time a second cross-sectional image is captured, a set of data related to the glue line to be tested can be obtained. When a plurality of second cross section images exist, a plurality of groups of related data of the rubber road to be detected can be obtained.
For the images to be calculated containing different geometric characteristics, different processing methods are adopted to calculate the relevant data of the rubber circuit to be measured in the images to be calculated, and the accuracy of the calculation result can be improved.
In some embodiments, in order to improve the accuracy of the glue line detection result, the step 104 may specifically include:
after the glue height, the glue width and the glue line position information of the glue path to be detected are obtained, each datum can be compared with a set threshold value to judge whether the relevant datum of the glue path to be detected corresponding to a single first/second cross section image meets the requirement, if the relevant datum of the glue path to be detected corresponding to a specified number of first/second cross section images does not meet the requirement continuously, the current glue path can be judged to be unqualified, and a corresponding glue path detection result is output.
For ease of understanding, the following are illustrated: assuming that 10 first cross-section images are intercepted, 10 groups of related data of the to-be-detected glue road can be correspondingly obtained, assuming that 5 groups of continuous related data of the to-be-detected glue road do not meet the requirements, and the glue road detection standard is that 4 or more first/second cross-section images which correspond to the to-be-detected glue road do not meet the requirements, the to-be-detected glue road is judged to be unqualified. At present, if the relevant data of 5 groups of continuous glue paths to be detected do not meet the requirements, the glue path to be detected is unqualified, and the unqualified part is the R angle of the glue path to be detected, and the part needs to be processed. However, if 10 first cross-sectional images and 10 second cross-sectional images are captured, wherein the related data of the to-be-tested glue path corresponding to 2 continuous first cross-sectional images are not satisfactory, and the related data of the to-be-tested glue path corresponding to 3 continuous first cross-sectional images are not satisfactory, although 5 images are added, the 5 continuous cross-sectional images of the same type are not provided, so that the current to-be-tested glue path can be determined to be qualified, and a subsequent mounting process can be performed.
It should be understood that, the sequence numbers of the steps in the foregoing embodiments do not imply an execution sequence, and the execution sequence of each process should be determined by its function and inherent logic, and should not constitute any limitation to the implementation process of the embodiments of the present application.
For convenience of understanding, the method for detecting the glue line proposed in the present application is described below in a practical application scenario.
As shown in fig. 2, the diagram is a first/second schematic cross-sectional view without dispensing, based on the first/second schematic cross-sectional view without dispensing, a height difference between a vertex of the frame and the dispensing table can be obtained, and the height difference can be applied to a subsequent glue path detection process to calculate a height of the glue path. Fig. 3 shows a first/second cross-sectional schematic diagram of the qualified dispensing process, in which the height difference between the vertex of the frame and the dispensing station is obtained based on fig. 2 and is not directly measured in fig. 3 (the same applies to fig. 4-6). As shown in fig. 4, fig. 4 shows a first/second schematic cross-sectional view of a glue collapse phenomenon, and comparing fig. 3 and fig. 4, it can be seen that, when the distance between the glue path vertex and the frame vertex in fig. 4 is too wide, the glue collapse phenomenon is likely to occur in the subsequent mounting process, which affects the quality of the electronic product. As shown in fig. 5, fig. 5 shows a first/second schematic cross-sectional view of a glue break phenomenon, and comparing fig. 3 and fig. 5, it is obvious that, in fig. 5, not only the distance between the glue path vertex and the frame vertex for quality inspection is too wide, but also the height of the glue path itself is low, and in the subsequent mounting process, the glue break phenomenon is likely to occur, which may cause reworking of the electronic product. As shown in fig. 6, fig. 6 shows a first/second schematic cross-sectional view of a possible wall climbing phenomenon, and comparing fig. 3 and fig. 6, it is obvious that the distance between the glue path vertex and the frame vertex in fig. 6 for quality inspection is too narrow, and the height of the glue overflow groove is low, and in the subsequent mounting process, the wall climbing phenomenon is likely to occur, and a large amount of glue overflow occurs, which affects the aesthetic property of the electronic product.
In the detection process, if the phenomena shown in fig. 4 to fig. 6 appear in a certain cross-sectional image, it can be determined that the relevant data of the to-be-detected glue road corresponding to the cross-sectional image does not meet the requirements. For the same type of cross-section images, if the relevant data of the to-be-detected glue path corresponding to the specified number of cross-section images continuously does not meet the requirements, the detection result of the type of glue path can be judged to be unqualified, and a prompt is sent to remind an operator to further process the unqualified glue path so as to improve the waterproof performance and the attractiveness of the electronic product.
Fig. 7 shows a block diagram of a detection device 7 for a glue line provided in the embodiment of the present application, corresponding to the detection method for a glue line described in the above embodiment, and only the relevant parts to the embodiment of the present application are shown for convenience of description.
Referring to fig. 7, the glue line detection device 7 includes:
a first obtaining module 71, configured to obtain an image to be detected, where the image to be detected is an image obtained by shooting a glue line to be detected;
a dividing module 72, configured to divide the image to be measured into at least two images to be calculated based on the geometric features of the rubber road to be measured;
a calculating module 73, configured to calculate the glue height, the glue width, and the position information of the glue road to be measured according to each image to be calculated;
and a detection module 74, configured to obtain a glue path detection result based on the glue height, the glue width, and the glue path position.
Optionally, the detection device 7 for the glue path may include:
the second acquisition module is used for acquiring an image data pointer of the glue path to be detected through the 3D sensor;
correspondingly, the first obtaining module is specifically configured to convert the image data pointer to obtain an image to be detected, where the image to be detected is a depth image of an appointed type.
Optionally, the segmentation module 72 may include:
the determining unit is used for determining an interested area from the image to be detected by the glue path to be detected;
and the segmentation unit is used for segmenting the image to be measured into at least two images to be calculated based on the geometric characteristics of the region of interest and the rubber road to be measured.
Optionally, the determining unit may be specifically configured to determine the region of interest from the image to be measured by an adaptive threshold segmentation and extraction method.
Optionally, the determining unit may specifically preset a template picture, and the template picture is provided with an area of interest; and matching the template picture with the image to be detected, and determining the region of interest from the image to be detected according to the matching result.
Optionally, the dividing unit may include:
the cutting subunit is used for cutting the image to be detected based on the region of interest to obtain a region of interest image;
and the segmentation subunit is used for segmenting the image of the region of interest based on the geometric characteristics of the rubber road to be detected to obtain images to be calculated, wherein each image to be calculated comprises the R angle of the rubber road to be detected or the straight line edge of the rubber road to be detected.
Optionally, the calculating module 73 may include:
a first calculation unit for, for each image to be calculated: if the image to be calculated contains the R angle of the rubber road to be detected, acquiring a frame line of a carrier in the calculated image, wherein the carrier is a product bearing the rubber road to be detected; cutting the cross section of the frame line according to a first set step length in the direction perpendicular to the frame line to obtain at least one first cross section image; and calculating the glue height, the glue width and the position information of the glue path to be detected according to each first cross section image.
Optionally, the calculating module 73 may include:
a second calculation unit for, for each image to be calculated: if the image to be calculated contains the straight line side of the rubber road to be measured, the cross section of the straight line side is intercepted according to a second set step length to obtain at least one second cross section image; and calculating the glue height, the glue width and the glue line position information of the glue path to be detected according to each second cross section image.
It should be noted that, for the information interaction and execution process between the above-mentioned devices/units, the specific functions and technical effects thereof are based on the same concept as those of the method embodiment of the present application, and thus reference may be made to the method embodiment section for details, which are not described herein again.
Fig. 8 is a schematic structural diagram of an electronic device according to an embodiment of the present application. As shown in fig. 8, the electronic apparatus 8 of this embodiment includes: at least one processor 80 (only one is shown in fig. 8), a memory 81, and a computer program 82 stored in the memory 81 and operable on the at least one processor 80, wherein when the computer program 82 is executed by the processor 80, the steps in the above-mentioned any glue line detection method embodiment are implemented, for example, the steps 101 and 104 shown in fig. 1.
The Processor 80 may be a Central Processing Unit (CPU), and the Processor 80 may be other general purpose Processor, a Digital Signal Processor (DSP), an Application Specific Integrated Circuit (ASIC), an off-the-shelf Programmable Gate Array (FPGA) or other Programmable logic device, discrete Gate or transistor logic, discrete hardware components, etc. A general purpose processor may be a microprocessor or the processor may be any conventional processor or the like.
The storage 81 may in some embodiments be an internal storage unit of the electronic device 8, such as a hard disk or a memory of the electronic device 8. The memory 81 may also be an external storage device of the electronic device 8 in other embodiments, such as a plug-in hard disk provided on the electronic device 8, a Smart Media Card (SMC), a Secure Digital (SD) Card, a Flash memory Card (Flash Card), and the like. Further, the memory 81 may also include both an internal storage unit of the terminal device 8 and an external storage device. The memory 81 is used for storing an operating device, an application program, a BootLoader (BootLoader), data, and other programs, such as program codes of a computer program. The memory 81 may also be used to temporarily store data that has been output or is to be output.
It will be apparent to those skilled in the art that, for convenience and brevity of description, only the above-mentioned division of the functional units and modules is used as an example, in practical applications, the above-mentioned function distribution may be performed by different functional units and modules according to needs, that is, the internal structure of the apparatus is divided into different functional units or modules to perform all or part of the above-mentioned functions. Each functional unit and module in the embodiments may be integrated in one processing unit, or each unit may exist alone physically, or two or more units are integrated in one unit, and the integrated unit may be implemented in a form of hardware, or in a form of software functional unit. In addition, specific names of the functional units and modules are only for convenience of distinguishing from each other, and are not used for limiting the protection scope of the present application. The specific working processes of the units and modules in the system may refer to the corresponding processes in the foregoing method embodiments, and are not described herein again.
The embodiments of the present application further provide a computer-readable storage medium, where a computer program is stored, and when the computer program is executed by a processor, the computer program implements the steps in the above-mentioned method embodiments.
The embodiments of the present application provide a computer program product, which when running on a mobile terminal, enables the mobile terminal to implement the steps in the above method embodiments when executed.
The integrated unit, if implemented in the form of a software functional unit and sold or used as a stand-alone product, may be stored in a computer readable storage medium. Based on such understanding, all or part of the processes in the methods of the embodiments described above can be implemented by a computer program, which can be stored in a computer-readable storage medium and can implement the steps of the embodiments of the methods described above when the computer program is executed by a processor. Wherein the computer program comprises computer program code, which may be in the form of source code, object code, an executable file or some intermediate form, etc. The computer readable medium may include at least: any entity or device capable of carrying computer program code to a photographing apparatus/electronic device, a recording medium, computer Memory, Read-Only Memory (ROM), Random Access Memory (RAM), an electrical carrier signal, a telecommunications signal, and a software distribution medium. Such as a usb-disk, a removable hard disk, a magnetic or optical disk, etc. In certain jurisdictions, computer-readable media may not be an electrical carrier signal or a telecommunications signal in accordance with legislative and patent practice.
In the above embodiments, the descriptions of the respective embodiments have respective emphasis, and reference may be made to the related descriptions of other embodiments for parts that are not described or illustrated in a certain embodiment.
Those of ordinary skill in the art will appreciate that the various illustrative elements and algorithm steps described in connection with the embodiments disclosed herein may be implemented as electronic hardware or combinations of computer software and electronic hardware. Whether such functionality is implemented as hardware or software depends upon the particular application and design constraints imposed on the implementation. Skilled artisans may implement the described functionality in varying ways for each particular application, but such implementation decisions should not be interpreted as causing a departure from the scope of the present application.
In the embodiments provided in the present application, it should be understood that the disclosed apparatus/network device and method may be implemented in other ways. For example, the above-described apparatus/network device embodiments are merely illustrative, and for example, the division of the modules or units is only one logical division, and there may be other divisions when actually implementing, for example, a plurality of units or components may be combined or integrated into another system, or some features may be omitted, or not implemented. In addition, the shown or discussed mutual coupling or direct coupling or communication connection may be an indirect coupling or communication connection through some interfaces, devices or units, and may be in an electrical, mechanical or other form.
The units described as separate parts may or may not be physically separate, and parts displayed as units may or may not be physical units, may be located in one place, or may be distributed on a plurality of network units. Some or all of the units can be selected according to actual needs to achieve the purpose of the solution of the embodiment.
The above-mentioned embodiments are only used for illustrating the technical solutions of the present application, and not for limiting the same; although the present application has been described in detail with reference to the foregoing embodiments, it should be understood by those of ordinary skill in the art that: the technical solutions described in the foregoing embodiments may still be modified, or some technical features may be equivalently replaced; such modifications and substitutions do not substantially depart from the spirit and scope of the embodiments of the present application and are intended to be included within the scope of the present application.

Claims (10)

1. A method for detecting a glue path is characterized by comprising the following steps:
acquiring an image to be detected, wherein the image to be detected is an image obtained by shooting a rubber circuit to be detected;
dividing the image to be measured into at least two images to be calculated based on the geometric characteristics of the rubber road to be measured;
calculating the glue height, the glue width and the position information of the glue road to be measured according to each image to be calculated;
and obtaining a glue path detection result based on the glue height, the glue width and the position information.
2. The method for inspecting a plastic road according to claim 1, further comprising, before acquiring the image to be inspected:
acquiring an image data pointer of the rubber road to be detected through a 3D sensor;
correspondingly, the acquiring the image to be detected comprises the following steps:
and converting the image data pointer to obtain the image to be detected, wherein the image to be detected is a depth image of a specified type.
3. The detection method according to claim 1, wherein the dividing the image to be measured into at least two images to be calculated based on the geometric features of the glue line to be measured comprises:
determining a region of interest from the image to be detected;
and dividing the image to be measured into at least two images to be calculated based on the geometric characteristics of the region of interest and the rubber road to be measured.
4. The inspection method of claim 3, wherein said determining a region of interest from said image under test comprises:
and determining the region of interest from the image to be detected by a self-adaptive threshold segmentation and extraction method.
5. The inspection method of claim 3, wherein said determining a region of interest from said image under test comprises:
presetting a template picture, wherein an interested area is arranged on the template picture;
and matching the template picture with the image to be detected, and determining the region of interest from the image to be detected according to a matching result.
6. The detection method according to claim 3, wherein the dividing the image to be measured into at least two images to be calculated based on the geometric features of the region of interest and the glue line to be measured comprises:
cutting the image to be detected based on the region of interest to obtain a region of interest image;
and segmenting the interested region image based on the geometric characteristics of the rubber road to be detected to obtain the images to be calculated, wherein each image to be calculated comprises the R angle of the rubber road to be detected or the straight line edge of the rubber road to be detected.
7. The detection method according to claim 6, wherein the calculating of the glue height, the glue width and the position information of the glue path to be detected according to each image to be calculated comprises:
for each of the images to be computed:
if the image to be calculated contains the R angle of the rubber road to be detected, acquiring a frame line of a carrier in the image to be calculated, wherein the carrier is a product bearing the rubber road to be detected;
intercepting the cross section of the frame line according to a first set step length in the direction perpendicular to the frame line to obtain at least one first cross section image;
and calculating the glue height, the glue width and the position information of the glue path to be detected according to the first cross section images.
8. The detection method according to claim 6, wherein the calculating of the glue height, the glue width and the glue path position information of the glue path to be detected according to each image to be calculated comprises:
for each of the images to be computed:
if the image to be calculated comprises the straight line side of the rubber road to be calculated, cutting the cross section of the straight line side according to a second set step length to obtain at least one second cross section image;
and calculating the glue height, the glue width and the glue path position information of the glue path to be detected according to the second cross section images.
9. An electronic device comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the processor implements the method for detecting an adhesive circuit according to any one of claims 1 to 8 when executing the computer program.
10. A computer-readable storage medium storing a computer program, wherein the computer program is executed by a processor to implement the method for detecting an adhesive circuit according to any one of claims 1 to 8.
CN202110893191.9A 2021-08-04 2021-08-04 Method for detecting adhesive path, electronic device and storage medium Pending CN113781392A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202110893191.9A CN113781392A (en) 2021-08-04 2021-08-04 Method for detecting adhesive path, electronic device and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202110893191.9A CN113781392A (en) 2021-08-04 2021-08-04 Method for detecting adhesive path, electronic device and storage medium

Publications (1)

Publication Number Publication Date
CN113781392A true CN113781392A (en) 2021-12-10

Family

ID=78836908

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202110893191.9A Pending CN113781392A (en) 2021-08-04 2021-08-04 Method for detecting adhesive path, electronic device and storage medium

Country Status (1)

Country Link
CN (1) CN113781392A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114494241A (en) * 2022-02-18 2022-05-13 迪赛福工业互联(深圳)有限公司 Method, device and equipment for detecting defects of glue path

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114494241A (en) * 2022-02-18 2022-05-13 迪赛福工业互联(深圳)有限公司 Method, device and equipment for detecting defects of glue path

Similar Documents

Publication Publication Date Title
CN110660066B (en) Training method of network, image processing method, network, terminal equipment and medium
CN113240630B (en) Speckle image quality evaluation method and device, terminal equipment and readable storage medium
CN102980535B (en) Angle measurement method and device
CN112348765A (en) Data enhancement method and device, computer readable storage medium and terminal equipment
CN110910334B (en) Instance segmentation method, image processing device and computer readable storage medium
CN115797359B (en) Detection method, equipment and storage medium based on solder paste on circuit board
CN112767496A (en) Calibration method, device and system
CN112991459A (en) Camera calibration method, device, equipment and storage medium
CN113781392A (en) Method for detecting adhesive path, electronic device and storage medium
CN114565722A (en) Three-dimensional model monomer realization method
CN116596935B (en) Deformation detection method, deformation detection device, computer equipment and computer readable storage medium
CN116503400B (en) Chip glue overflow thickness calculating method and electronic equipment
CN108427110A (en) Distance measuring method, device and electronic equipment
CN110673114B (en) Method and device for calibrating depth of three-dimensional camera, computer device and storage medium
CN107734324B (en) Method and system for measuring illumination uniformity of flash lamp and terminal equipment
CN113432554B (en) Offset detection method and device for lens photosensitive chip
CN113689378A (en) Method and device for judging accurate positioning of test strip, storage medium and terminal
CN112907100A (en) Service demand measuring method and device and electronic equipment
CN110910379A (en) Incomplete detection method and device
CN115752446A (en) Vehicle-mounted laser scanning data synchronization method and device, electronic equipment and medium
CN113310404A (en) Segment difference measuring method and device, computer equipment and storage medium thereof
CN117876490A (en) Feature determination method and device, electronic equipment and storage medium
CN116452537A (en) Image distortion detection method, device, electronic equipment and readable storage medium
CN113870231A (en) Counting system and method for electronic components and computer equipment
CN115689922A (en) Distortion detection method, device, equipment and storage medium

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination