CN114708239A - Glue width detection method and device, electronic equipment and storage medium - Google Patents

Glue width detection method and device, electronic equipment and storage medium Download PDF

Info

Publication number
CN114708239A
CN114708239A CN202210405140.1A CN202210405140A CN114708239A CN 114708239 A CN114708239 A CN 114708239A CN 202210405140 A CN202210405140 A CN 202210405140A CN 114708239 A CN114708239 A CN 114708239A
Authority
CN
China
Prior art keywords
glue
detected
area
road
determining
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
CN202210405140.1A
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.)
Bozhon Precision Industry Technology Co Ltd
Original Assignee
Bozhon Precision Industry 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 Bozhon Precision Industry Technology Co Ltd filed Critical Bozhon Precision Industry Technology Co Ltd
Priority to CN202210405140.1A priority Critical patent/CN114708239A/en
Publication of CN114708239A publication Critical patent/CN114708239A/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
    • G06T7/0004Industrial image inspection
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T7/00Image analysis
    • G06T7/10Segmentation; Edge detection
    • G06T7/13Edge detection

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Vision & Pattern Recognition (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Theoretical Computer Science (AREA)
  • Quality & Reliability (AREA)
  • Image Analysis (AREA)
  • Image Processing (AREA)

Abstract

The embodiment of the invention discloses a glue width detection method, a glue width detection device, electronic equipment and a storage medium, wherein the method comprises the following steps: determining at least one glue road area to be detected according to the image to be detected; determining a rubber road framework corresponding to each rubber road area to be detected according to the at least one rubber road area to be detected; for each glue road area to be detected, determining a target glue road edge area according to a glue road framework corresponding to the glue road area to be detected, and determining a sub-detection result of the glue road area to be detected according to the target glue road edge area and the glue road area to be detected; and determining a glue width detection result corresponding to the image to be detected according to each sub-detection result. Through the technical scheme of the embodiment of the invention, the technical effect of improving the convenience and flexibility of glue width detection is realized.

Description

Glue width detection method and device, electronic equipment and storage medium
Technical Field
The embodiment of the invention relates to a product detection technology, in particular to an adhesive width detection method and device, electronic equipment and a storage medium.
Background
The glue width detection is widely applied to the industries of automatic production and intelligent equipment manufacturing. The shape, width and detection precision of the glue path are different aiming at the glue path detection of different products.
Currently, the glue width can be detected by importing CAD (Computer Aided Design) drawings or inputting dot data related to the glue path to generate a base contour. However, for multiple sections of glue lines, it is necessary to import or input information for each section of glue line for detection, which is not convenient and flexible. Moreover, the CAD drawings are not public information and are generally difficult to obtain, and it is more inconvenient to input dot data related to the glue lines.
Disclosure of Invention
The embodiment of the invention provides a glue width detection method, a glue width detection device, electronic equipment and a storage medium, and aims to achieve the technical effects of improving the convenience and flexibility of glue width detection.
In a first aspect, an embodiment of the present invention provides a glue width detection method, where the method includes:
determining at least one glue road area to be detected according to the image to be detected;
determining a rubber road framework corresponding to each rubber road area to be detected according to the at least one rubber road area to be detected;
for each glue road area to be detected, determining a target glue road edge area according to a glue road framework corresponding to the glue road area to be detected, and determining a sub-detection result of the glue road area to be detected according to the target glue road edge area and the glue road area to be detected;
and determining a glue width detection result corresponding to the image to be detected according to each sub-detection result.
In a second aspect, an embodiment of the present invention further provides an adhesive width detection apparatus, where the apparatus includes:
the module for determining the area of the glue road to be detected is used for determining at least one area of the glue road to be detected according to the image to be detected;
the glue road framework determining module is used for determining a glue road framework corresponding to each glue road area to be detected according to the at least one glue road area to be detected;
the sub-detection result determining module is used for determining a target glue road edge area according to a glue road framework corresponding to the glue road area to be detected aiming at each glue road area to be detected, and determining a sub-detection result of the glue road area to be detected according to the target glue road edge area and the glue road area to be detected;
and the glue width detection result determining module is used for determining a glue width detection result corresponding to the image to be detected according to each sub-detection result.
In a third aspect, an embodiment of the present invention further provides an electronic device, where the electronic device includes:
one or more processors;
a storage device for storing one or more programs,
when the one or more programs are executed by the one or more processors, the one or more processors implement the glue width detection method according to any one of the embodiments of the present invention.
In a fourth aspect, an embodiment of the present invention further provides a computer-readable storage medium, on which a computer program is stored, where the computer program, when executed by a processor, implements the glue width detection method according to any one of the embodiments of the present invention.
The technical scheme of the embodiment of the invention determines at least one rubber road area to be detected according to the image to be detected so as to eliminate the interference of other parts of the product, determining a glue way framework corresponding to each glue way area to be detected according to at least one glue way area to be detected so as to position each glue way area to be detected, aiming at each glue way area to be detected, determining a target glue road edge area according to a glue road framework corresponding to the glue road area to be detected, determining sub-detection results of the glue road area to be detected according to the target glue road edge area and the glue road area to be detected so as to respectively perform glue width detection, according to the sub-detection results, the glue width detection result corresponding to the image to be detected is determined, the problems of difficulty in data import and poor flexibility in glue width detection are solved, and the technical effects of improving the convenience and flexibility of glue width detection are achieved.
Drawings
In order to more clearly illustrate the technical solutions of the exemplary embodiments of the present invention, a brief description is given below of the drawings used in describing the embodiments. It is clear that the described figures are only figures of a part of the embodiments of the invention to be described, not all figures, and that for a person skilled in the art, without inventive effort, other figures can also be derived from them.
Fig. 1 is a schematic flow chart of a glue width detection method according to an embodiment of the present invention;
fig. 2 is a schematic flow chart of a glue width detection method according to a second embodiment of the present invention;
fig. 3 is a schematic diagram of a product glue path area according to a second embodiment of the present invention;
fig. 4 is a schematic diagram of an actual glue road edge, a target glue road edge area, a sub-detection result, and a glue width detection result provided in the second embodiment of the present invention;
fig. 5 is a schematic flow chart of another glue width detection method according to a second embodiment of the present invention;
fig. 6 is a schematic structural diagram of a glue width detection device according to a third embodiment of the present invention;
fig. 7 is a schematic structural diagram of an electronic device according to a fourth embodiment of the present invention.
Detailed Description
The present invention will be described in further detail with reference to the accompanying drawings and examples. It is to be understood that the specific embodiments described herein are merely illustrative of the invention and are not limiting of the invention. It should be further noted that, for the convenience of description, only some of the structures related to the present invention are shown in the drawings, not all of the structures.
Example one
Fig. 1 is a schematic flow chart of a glue width detection method according to an embodiment of the present invention, where the method is applicable to a situation of automatically detecting a width of a glue path of a product, and the method may be executed by a glue width detection device, where the device may be implemented in a form of software and/or hardware, and the hardware may be an electronic device, and optionally, the electronic device may be a mobile terminal, a PC terminal, a server, and the like.
As shown in fig. 1, the method of this embodiment specifically includes the following steps:
s110, determining at least one rubber road area to be detected according to the image to be detected.
The image to be detected may be an image including a product glue path, for example: and shooting the product glue road through a shooting device to obtain an image. The glue line areas to be detected can be communicated glue lines in the image to be detected, so that one image to be detected can contain one or more glue line areas to be detected.
Specifically, the image to be detected can be obtained through shooting, uploading, downloading and other modes, the detection is carried out on the image to be detected, the area corresponding to each glue path in the image to be detected is determined, and the area corresponding to each glue path is used as the area of the glue path to be detected.
S120, determining the rubber road framework corresponding to each rubber road area to be detected according to at least one rubber road area to be detected.
The rubber road framework can be a linear structure for describing a rubber road area to be detected.
Specifically, for each glue road area to be detected, a glue road skeleton corresponding to the glue road area to be detected can be constructed according to the shape of the glue road area to be detected, for example: determining the center line of the area to be detected as the rubber road skeleton, and determining the edge line of the area to be detected as the rubber road skeleton.
S130, aiming at each glue road area to be detected, determining a target glue road edge area according to a glue road framework corresponding to the glue road area to be detected, and determining a sub-detection result of the glue road area to be detected according to the target glue road edge area and the glue road area to be detected.
The target glue road edge area may be an area into which the glue road edge should fall, and the target glue road edge area may be wider than the glue road edge line, that is, an area having a certain width. The sub-detection result may be a detection result of performing glue width detection on one glue road region to be detected, and may include normal glue width or abnormal glue width.
Specifically, the glue road framework corresponding to each glue road area to be detected can be expanded to obtain an area where the glue road edge corresponding to the glue road framework should fall, namely, a target glue road edge area. Further, determining the edge line of the glue path in the glue path area to be detected, and judging whether the edge line of the glue path falls into the edge area of the target glue path, so as to obtain a sub-detection result of the glue path area to be detected.
And S140, determining a glue width detection result corresponding to the image to be detected according to each sub-detection result.
The glue width detection result may be a set and analysis of sub-detection results, and is used to describe the glue width detection condition of the glue path included in the image to be detected.
Specifically, after the detection of each glue road area to be detected is finished, each sub-detection result can be obtained, and the sub-detection results are integrated and analyzed to generate a glue width detection result corresponding to the image to be detected, so that the glue width detection result is provided for workers to facilitate subsequent processing.
The technical proposal of the embodiment of the invention determines at least one rubber road area to be detected according to the image to be detected so as to eliminate the interference of other parts of the product, determining a glue way framework corresponding to each glue way area to be detected according to at least one glue way area to be detected so as to position each glue way area to be detected, aiming at each glue way area to be detected, determining a target glue road edge area according to a glue road framework corresponding to the glue road area to be detected, determining sub-detection results of the glue road area to be detected according to the target glue road edge area and the glue road area to be detected so as to respectively perform glue width detection, according to the sub-detection results, the glue width detection result corresponding to the image to be detected is determined, the problems of difficulty in data import and poor flexibility in glue width detection are solved, and the technical effects of improving the convenience and flexibility of glue width detection are achieved.
Example two
Fig. 2 is a schematic flow chart of a glue width detection method according to a second embodiment of the present invention, and this embodiment describes, based on the foregoing embodiments, a determination manner of a to-be-detected glue road region, a determination manner of a glue road skeleton, a determination manner of a target glue road edge region, and a determination manner of a sub-detection result, and specifically refers to the technical solution of this embodiment. The same or corresponding terms as those in the above embodiments are not explained in detail herein.
As shown in fig. 2, the method of this embodiment specifically includes the following steps:
s210, processing the image to be detected by a binarization segmentation method, and determining a product glue path area.
The binarization segmentation method can comprise an image binarization process and an image segmentation process. The image binarization process may be a process of setting the gray value of a pixel point on the image to be detected to be 0 or 255, that is, presenting an obvious black-and-white effect on the whole image to be detected. The image segmentation process may be a process of determining a region where the glue road is located from the image after the image binarization processing, and may be a threshold value-based segmentation method, a region-based segmentation method, an edge-based segmentation method, a specific theory-based segmentation method, or the like. The product glue path area may be an area covered by the glue path in the image to be detected.
Specifically, after the image to be detected is obtained, image binarization processing can be performed on the image to be detected to obtain a gray-scale image to be detected. And further processing the image to be detected in a gray scale form by an image segmentation method to obtain a product glue road area.
For example, as shown in the schematic diagram of the product glue path area shown in fig. 3, the product glue path area in the image to be detected may be determined as a black area, and the remaining area may be determined as a white area, so as to perform further processing on the product glue path area in the following.
S220, analyzing the connected domains of the product glue road area, and taking each connected domain as a glue road area to be detected.
Here, the connected component refers to a region composed of pixels having the same pixel value and adjacent positions in an image. The connected component analysis is an analysis method for finding out and marking mutually independent connected components in an image.
Specifically, after a product glue path area corresponding to an image to be detected is obtained, connected domain analysis can be performed on the product glue path area to obtain at least one connected domain. And then, taking each communication domain as a glue path area to be detected.
And S230, aiming at each glue road area to be detected, determining a central pixel point corresponding to the glue road area to be detected according to each pixel point corresponding to the glue road area to be detected.
The central pixel point can be each pixel point located in the center of the to-be-detected glue road area determined after analyzing the angle, position and width of the to-be-detected glue road area.
Specifically, for each glue road area to be detected, all pixel points corresponding to the glue road area to be detected can be determined. And analyzing the angles, positions and widths of the pixel points, and determining each pixel point positioned in the center of the pixel points as a central pixel point corresponding to the to-be-detected glue road area.
S240, constructing a glue road framework corresponding to the glue road area to be detected according to each central pixel point.
Specifically, for each glue line area to be detected, each central pixel point of the glue line area to be detected can be connected together to serve as a glue line framework corresponding to the glue line area to be detected. If a breakpoint exists in the connection process of the central pixel points, each central pixel point can be connected according to the growth trend of the central pixel points so as to obtain the glue road framework.
And S250, determining the reference contour of the rubber road according to the rubber road framework corresponding to the rubber road area to be detected and the preset rubber road width aiming at each rubber road area to be detected.
The preset glue path width can be the width that the glue path should have in the product corresponding to the image to be detected. The standard rubber road profile of the product can be a rubber road profile obtained by expanding the rubber road framework as a central line according to the preset rubber road width, namely the profile which the standard rubber road of the product should have.
Specifically, for each glue road area to be detected, the left reference contour and the right reference contour corresponding to the standard glue road can be determined by using the glue road skeleton of the glue road area to be detected as a center line and using the preset glue road width as a width, and the left reference contour and the right reference contour are determined as the glue road reference contour.
Illustratively, the rubber road framework is used as a center, the width of the preset rubber road is respectively expanded by half to the left side and the right side, and the expanded outline is used as a rubber road reference outline.
And S260, determining the edge area of the target glue path based on the glue path reference contour, the preset width tolerance and the preset position tolerance.
The preset width tolerance may be an error range allowed by the glue line width. The preset position tolerance may be an allowable error range of the glue position.
Specifically, the method includes the steps of expanding the rubber road reference profile according to a preset width tolerance and a preset position tolerance by taking the rubber road reference profile as a reference to obtain a region into which the rubber road edge can fall, namely the target rubber road edge region.
And S270, determining the actual glue path edge corresponding to the glue path area to be detected according to the glue path area to be detected.
The actual edge of the glue path can be the edge line of the area of the glue path to be detected.
Specifically, image processing can be performed on each glue road area to be detected, edge lines of the glue road area to be detected can be determined, and the edge lines are used as actual glue road edges corresponding to the glue road area to be detected. Furthermore, the same processing can be performed on each glue road area to be detected, so that all actual glue road edges can be obtained.
S280, determining a sub-detection result of the to-be-detected glue road area according to the position relation between the actual glue road edge and the target glue road edge area.
Specifically, after acquiring an actual glue path edge and a target glue path edge area, judging whether the actual glue path edge is located in the target glue path edge area, namely judging whether the actual glue path edge meets the glue path width requirement of the product. Furthermore, the judgment result can be used as a sub-detection result of the to-be-detected glue road area.
On the basis of the foregoing embodiment, optionally, determining, according to the position relationship between the actual glue path edge and the target glue path edge area, that the sub-detection result of the glue path area to be detected may be: if the actual glue path edge is positioned in the target glue path edge area, determining that the sub-detection result of the glue path area to be detected is that the glue width is normal; and if the actual glue path edge is positioned outside the target glue path edge area, determining that the sub-detection result of the glue path area to be detected is abnormal in glue width.
Wherein, the abnormal glue width comprises at least one of too wide glue path and too narrow glue path.
Specifically, if the actual glue path edge is located in the target glue path edge area, it can be determined that the actual glue path edge meets the product glue path requirement, and at this time, it can be determined that the sub-detection result of the glue path area to be detected is that the glue width is normal; if the actual glue path edge is located outside the target glue path edge area, it can be determined that the actual glue path edge does not meet the product glue path requirement, and at this time, it can be determined that the sub-detection result of the glue path area to be detected is abnormal in glue width, and further, it can be detected to determine the specific condition that the glue width is abnormal, that is, whether the glue path is too wide or too narrow.
S290, integrating the sub-detection results to obtain a glue width detection result corresponding to the image to be detected, and outputting the glue width detection result to a target terminal.
The target terminal can be a terminal device which sends out a glue width detection instruction, or a mobile or fixed terminal device of a worker, and the target terminal is used for receiving a glue width detection result so as to perform subsequent processing.
Specifically, after each sub-detection result is obtained, each sub-detection result can be integrated and analyzed to generate a glue width detection result corresponding to the image to be detected. Furthermore, the glue width detection result can be output to a target terminal, so that a worker can perform subsequent operation according to the glue width detection result.
For example, a schematic diagram of an actual glue line edge, a target glue line edge area, a sub-detection result, and a glue width detection result is shown in fig. 4. Where NG indicates poor process, no bead indicates no holes, and too wide to indicate a too wide.
On the basis of the foregoing embodiments, fig. 5 is a schematic flow chart of another glue width detection method provided in the second embodiment of the present invention.
As shown in fig. 5, the method includes:
1. and acquiring an image (to-be-detected image), and binarizing the image to obtain the whole product area (product glue road area).
2. And (4) performing region division, and dividing the product region into independent regions (the regions to be detected glue paths).
3. The following cycle is started according to the number of independent zones:
(1) extracting a framework (rubber road framework) of the independent area;
(2) converting the framework into a reference profile (rubber road reference profile);
(3) and (3) creating a seed detection model, setting a target width (preset glue path width), a width tolerance (preset width tolerance) and a position tolerance (preset position tolerance), detecting by using the seed detection model, and outputting a result (sub-detection result) of each independent region.
4. And (5) after the circulation is finished, extracting all results (glue width detection results) and outputting the results.
According to the technical scheme of the embodiment of the invention, an image to be detected is processed by a binarization segmentation method, a product glue path area is determined, so that interference of other parts of a product is eliminated, connected domain analysis is carried out on the product glue path area, each connected domain is taken as a glue path area to be detected, so that each glue path area to be detected is respectively processed, for each glue path area to be detected, a central pixel point corresponding to the glue path area to be detected is determined according to each pixel point corresponding to the glue path area to be detected, a glue path framework corresponding to the glue path area to be detected is constructed according to each central pixel point, so that each glue path area to be detected is positioned, for each glue path area to be detected, a glue path reference profile is determined according to the glue path framework corresponding to the glue path area to be detected and a preset glue path width, so that the profile of a glue path is roughly determined, and based on the glue path reference profile, Presetting width tolerance and preset position tolerance, determining a target glue path edge region to determine a region into which a glue path edge should fall, determining an actual glue path edge corresponding to the glue path region to be detected according to the glue path region to be detected, determining sub-detection results of the glue path region to be detected according to the position relation between the actual glue path edge and the target glue path edge region, respectively performing glue width detection on each glue path region to be detected, integrating the sub-detection results to obtain a glue width detection result corresponding to an image to be detected, and outputting the glue width detection result to a target terminal.
EXAMPLE III
Fig. 6 is a schematic structural diagram of a glue width detection device provided in a third embodiment of the present invention, where the device includes: a module 310 for determining the area of the glue road to be detected, a module 320 for determining the skeleton of the glue road, a module 330 for determining the sub-detection result, and a module 340 for determining the detection result of the glue width.
The module 310 for determining the to-be-detected glue road area is configured to determine at least one to-be-detected glue road area according to the to-be-detected image; the glue road framework determining module 320 is configured to determine, according to the at least one glue road area to be detected, a glue road framework corresponding to each glue road area to be detected; a sub-detection result determining module 330, configured to determine, for each to-be-detected glue road region, a target glue road edge region according to a glue road skeleton corresponding to the to-be-detected glue road region, and determine a sub-detection result of the to-be-detected glue road region according to the target glue road edge region and the to-be-detected glue road region; and a glue width detection result determining module 340, configured to determine, according to each sub-detection result, a glue width detection result corresponding to the image to be detected.
Optionally, the module 310 for determining the rubber road area to be detected is specifically configured to process the image to be detected by using a binarization segmentation method, and determine the rubber road area of the product; and analyzing the connected domains of the product glue road area, and taking each connected domain as a glue road area to be detected.
Optionally, the glue road framework determining module 320 is specifically configured to determine, for each glue road area to be detected, a central pixel point corresponding to the glue road area to be detected according to each pixel point corresponding to the glue road area to be detected; and constructing a glue road framework corresponding to the glue road area to be detected according to each central pixel point.
Optionally, the sub-detection result determining module 330 is further configured to determine a standard contour of the glue road according to the glue road skeleton corresponding to the to-be-detected glue road region and a preset glue road width; and determining the edge area of the target glue path based on the glue path reference profile, the preset width tolerance and the preset position tolerance.
Optionally, the sub-detection result determining module 330 is further configured to determine, according to the to-be-detected glue road region, an actual glue road edge corresponding to the to-be-detected glue road region; and determining a sub-detection result of the to-be-detected glue road area according to the position relation between the actual glue road edge and the target glue road edge area.
Optionally, the sub-detection result determining module 330 is further configured to determine that the sub-detection result of the to-be-detected glue road area is normal in glue width if the actual glue road edge is located within the target glue road edge area; if the actual glue path edge is positioned outside the target glue path edge area, determining that the sub-detection result of the glue path area to be detected is abnormal in glue width; wherein the abnormal glue width comprises at least one of too wide glue path and too narrow glue path.
Optionally, the glue width detection result determining module 340 is specifically configured to integrate the sub-detection results to obtain a glue width detection result corresponding to the image to be detected, and output the glue width detection result to the target terminal.
The technical proposal of the embodiment of the invention determines at least one rubber road area to be detected according to the image to be detected so as to eliminate the interference of other parts of the product, determining a rubber road framework corresponding to each rubber road area to be detected according to at least one rubber road area to be detected so as to position each rubber road area to be detected, determining a target glue road edge area according to a glue road framework corresponding to the glue road area to be detected, determining sub-detection results of the glue road area to be detected according to the target glue road edge area and the glue road area to be detected so as to respectively perform glue width detection, according to the sub-detection results, the glue width detection result corresponding to the image to be detected is determined, the problems of difficulty in data import and poor flexibility in glue width detection are solved, and the technical effects of improving the convenience and flexibility of glue width detection are achieved.
The glue width detection device provided by the embodiment of the invention can execute the glue width detection method provided by any embodiment of the invention, and has the corresponding functional modules and beneficial effects of the execution method.
It should be noted that, the units and modules included in the apparatus are merely divided according to functional logic, but are not limited to the above division as long as the corresponding functions can be implemented; in addition, specific names of the functional units are only for convenience of distinguishing from each other, and are not used for limiting the protection scope of the embodiment of the present invention.
Example four
Fig. 7 is a schematic structural diagram of an electronic device according to a fourth embodiment of the present invention. FIG. 7 illustrates a block diagram of an exemplary electronic device 40 suitable for use in implementing embodiments of the present invention. The electronic device 40 shown in fig. 7 is only an example, and should not bring any limitation to the functions and the scope of use of the embodiment of the present invention.
As shown in fig. 7, electronic device 40 is embodied in the form of a general purpose computing device. The components of electronic device 40 may include, but are not limited to: one or more processors or processing units 401, a system memory 402, and a bus 403 that couples various system components including the system memory 402 and the processing unit 401.
Bus 403 represents one or more of any of several types of bus structures, including a memory bus or memory controller, a peripheral bus, an accelerated graphics port, and a processor or local bus using any of a variety of bus architectures. By way of example, such architectures include, but are not limited to, Industry Standard Architecture (ISA) bus, micro-channel architecture (MAC) bus, enhanced ISA bus, Video Electronics Standards Association (VESA) local bus, and Peripheral Component Interconnect (PCI) bus.
Electronic device 40 typically includes a variety of computer system readable media. Such media may be any available media that is accessible by electronic device 40 and includes both volatile and nonvolatile media, removable and non-removable media.
The system memory 402 may include computer system readable media in the form of volatile memory, such as Random Access Memory (RAM)404 and/or cache 405. The electronic device 40 may further include other removable/non-removable, volatile/nonvolatile computer system storage media. By way of example only, storage system 406 may be used to read from and write to non-removable, nonvolatile magnetic media (not shown in FIG. 7 and commonly referred to as a "hard drive"). Although not shown in FIG. 7, a magnetic disk drive for reading from and writing to a removable, nonvolatile magnetic disk (e.g., a "floppy disk") and an optical disk drive for reading from or writing to a removable, nonvolatile optical disk (e.g., a CD-ROM, DVD-ROM, or other optical media) may be provided. In these cases, each drive may be connected to the bus 403 by one or more data media interfaces. System memory 402 may include at least one program product having a set (e.g., at least one) of program modules that are configured to carry out the functions of embodiments of the invention.
A program/utility 408 having a set (at least one) of program modules 407 may be stored, for example, in system memory 402, such program modules 407 including, but not limited to, an operating system, one or more application programs, other program modules, and program data, each of which examples or some combination thereof may comprise an implementation of a network environment. Program modules 407 generally perform the functions and/or methodologies of embodiments of the invention as described.
The electronic device 40 may also communicate with one or more external devices 409 (e.g., keyboard, pointing device, display 410, etc.), with one or more devices that enable a user to interact with the electronic device 40, and/or with any devices (e.g., network card, modem, etc.) that enable the electronic device 40 to communicate with one or more other computing devices. Such communication may be performed through an I/O interface (input/output interface) 411. Also, the electronic device 40 may communicate with one or more networks (e.g., a Local Area Network (LAN), a Wide Area Network (WAN), and/or a public network, such as the Internet) via the network adapter 412. As shown, the network adapter 412 communicates with the other modules of the electronic device 40 over the bus 403. It should be appreciated that although not shown in FIG. 7, other hardware and/or software modules may be used in conjunction with electronic device 40, including but not limited to: microcode, device drivers, redundant processing units, external disk drive arrays, RAID systems, tape drives, and data backup storage systems, among others.
The processing unit 401 executes various functional applications and data processing by running a program stored in the system memory 402, for example, to implement the glue width detection method provided by the embodiment of the present invention.
EXAMPLE five
An embodiment of the present invention further provides a storage medium containing computer-executable instructions, where the computer-executable instructions are executed by a computer processor to perform a glue width detection method, and the method includes:
determining at least one glue road area to be detected according to the image to be detected;
determining a rubber road framework corresponding to each rubber road area to be detected according to the at least one rubber road area to be detected;
for each glue road area to be detected, determining a target glue road edge area according to a glue road framework corresponding to the glue road area to be detected, and determining a sub-detection result of the glue road area to be detected according to the target glue road edge area and the glue road area to be detected;
and determining a glue width detection result corresponding to the image to be detected according to each sub-detection result.
Computer storage media for embodiments of the invention may employ any combination of one or more computer-readable media. The computer readable medium may be a computer readable signal medium or a computer readable storage medium. A computer readable storage medium may be, for example, but not limited to, an electronic, magnetic, optical, electromagnetic, infrared, or semiconductor system, apparatus, or device, or any combination of the foregoing. More specific examples (a non-exhaustive list) of the computer readable storage medium would include the following: an electrical connection having one or more wires, a portable computer diskette, a hard disk, a Random Access Memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disc read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the foregoing. In the context of this document, a computer readable storage medium may be any tangible medium that can contain, or store a program for use by or in connection with an instruction execution system, apparatus, or device.
A computer readable signal medium may include a propagated data signal with computer readable program code embodied therein, for example, in baseband or as part of a carrier wave. Such a propagated data signal may take any of a variety of forms, including, but not limited to, electro-magnetic, optical, or any suitable combination thereof. A computer readable signal medium may also be any computer readable medium that is not a computer readable storage medium and that can communicate, propagate, or transport a program for use by or in connection with an instruction execution system, apparatus, or device.
Program code embodied on a computer readable medium may be transmitted using any appropriate medium, including but not limited to wireless, wireline, optical fiber cable, RF, etc., or any suitable combination of the foregoing.
Computer program code for carrying out operations for embodiments of the present invention may be written in any combination of one or more programming languages, including an object oriented programming language such as Java, Smalltalk, C + + or the like and conventional procedural programming languages, such as the "C" programming language or similar programming languages. The program code may execute entirely on the user's computer, partly on the user's computer, as a stand-alone software package, partly on the user's computer and partly on a remote computer or entirely on the remote computer or server. In the case of a remote computer, the remote computer may be connected to the user's computer through any type of network, including a Local Area Network (LAN) or a Wide Area Network (WAN), or the connection may be made to an external computer (for example, through the Internet using an Internet service provider).
It is to be noted that the foregoing is only illustrative of the preferred embodiments of the present invention and the technical principles employed. It will be understood by those skilled in the art that the present invention is not limited to the particular embodiments described herein, but is capable of various obvious changes, rearrangements and substitutions as will now become apparent to those skilled in the art without departing from the scope of the invention. Therefore, although the present invention has been described in greater detail by the above embodiments, the present invention is not limited to the above embodiments, and may include other equivalent embodiments without departing from the spirit of the present invention, and the scope of the present invention is determined by the scope of the appended claims.

Claims (10)

1. A glue width detection method is characterized by comprising the following steps:
determining at least one glue road area to be detected according to the image to be detected;
determining a rubber road framework corresponding to each rubber road area to be detected according to the at least one rubber road area to be detected;
for each glue road area to be detected, determining a target glue road edge area according to a glue road framework corresponding to the glue road area to be detected, and determining a sub-detection result of the glue road area to be detected according to the target glue road edge area and the glue road area to be detected;
and determining a glue width detection result corresponding to the image to be detected according to each sub-detection result.
2. The method according to claim 1, wherein said determining at least one area of the glue line to be detected based on the image to be detected comprises:
processing an image to be detected by a binarization segmentation method to determine a product glue path area;
and analyzing the connected domains of the product glue road area, and taking each connected domain as a glue road area to be detected.
3. The method according to claim 1, wherein the determining, according to the at least one glue road region to be detected, the glue road skeleton corresponding to each glue road region to be detected comprises:
aiming at each glue road area to be detected, determining a central pixel point corresponding to the glue road area to be detected according to each pixel point corresponding to the glue road area to be detected;
and constructing a glue road framework corresponding to the glue road area to be detected according to each central pixel point.
4. The method according to claim 1, wherein determining a target glue edge area according to the glue skeleton corresponding to the glue area to be detected comprises:
determining a rubber road reference contour according to the rubber road framework corresponding to the rubber road area to be detected and a preset rubber road width;
and determining the edge area of the target glue path based on the glue path reference profile, the preset width tolerance and the preset position tolerance.
5. The method according to claim 1, wherein the determining the sub-detection result of the glue line area to be detected according to the target glue line edge area and the glue line area to be detected comprises:
determining the actual glue path edge corresponding to the glue path area to be detected according to the glue path area to be detected;
and determining a sub-detection result of the to-be-detected glue road area according to the position relation between the actual glue road edge and the target glue road edge area.
6. The method according to claim 5, wherein determining the sub-detection result of the glue path region to be detected according to the position relationship between the actual glue path edge and the target glue path edge region comprises:
if the actual glue path edge is located in the target glue path edge area, determining that the sub-detection result of the glue path area to be detected is normal glue width;
if the actual glue path edge is positioned outside the target glue path edge area, determining that the sub-detection result of the glue path area to be detected is abnormal in glue width; wherein the abnormal glue width comprises at least one of too wide glue path and too narrow glue path.
7. The method according to claim 1, wherein the determining a glue width detection result corresponding to the image to be detected according to each sub-detection result comprises:
and integrating the sub-detection results to obtain a glue width detection result corresponding to the image to be detected, and outputting the glue width detection result to a target terminal.
8. The utility model provides a glue width detection device which characterized in that includes:
the module for determining the to-be-detected glue road area is used for determining at least one to-be-detected glue road area according to the to-be-detected image;
the glue road framework determining module is used for determining a glue road framework corresponding to each glue road area to be detected according to the at least one glue road area to be detected;
the sub-detection result determining module is used for determining a target glue road edge area according to a glue road framework corresponding to the glue road area to be detected aiming at each glue road area to be detected, and determining a sub-detection result of the glue road area to be detected according to the target glue road edge area and the glue road area to be detected;
and the glue width detection result determining module is used for determining a glue width detection result corresponding to the image to be detected according to each sub-detection result.
9. An electronic device, characterized in that the electronic device comprises:
one or more processors;
a storage device for storing one or more programs,
when executed by the one or more processors, cause the one or more processors to implement the glue width detection method of any one of claims 1-7.
10. A computer-readable storage medium, on which a computer program is stored, which, when being executed by a processor, carries out the glue width detection method according to any one of claims 1 to 7.
CN202210405140.1A 2022-04-18 2022-04-18 Glue width detection method and device, electronic equipment and storage medium Pending CN114708239A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202210405140.1A CN114708239A (en) 2022-04-18 2022-04-18 Glue width detection method and device, electronic equipment and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202210405140.1A CN114708239A (en) 2022-04-18 2022-04-18 Glue width detection method and device, electronic equipment and storage medium

Publications (1)

Publication Number Publication Date
CN114708239A true CN114708239A (en) 2022-07-05

Family

ID=82173971

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202210405140.1A Pending CN114708239A (en) 2022-04-18 2022-04-18 Glue width detection method and device, electronic equipment and storage medium

Country Status (1)

Country Link
CN (1) CN114708239A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN116883405A (en) * 2023-09-07 2023-10-13 苏州聚视兴华智能装备有限公司 Automatic path identification method and device during gum path visual detection and electronic equipment

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN116883405A (en) * 2023-09-07 2023-10-13 苏州聚视兴华智能装备有限公司 Automatic path identification method and device during gum path visual detection and electronic equipment
CN116883405B (en) * 2023-09-07 2023-12-05 苏州聚视兴华智能装备有限公司 Automatic path identification method and device during gum path visual detection and electronic equipment

Similar Documents

Publication Publication Date Title
US11113836B2 (en) Object detection method, device, apparatus and computer-readable storage medium
WO2020207190A1 (en) Three-dimensional information determination method, three-dimensional information determination device, and terminal apparatus
CN108090486B (en) Image processing method and device in billiard game
CN108564082B (en) Image processing method, device, server and medium
CN110781885A (en) Text detection method, device, medium and electronic equipment based on image processing
CN112348765A (en) Data enhancement method and device, computer readable storage medium and terminal equipment
CN111582021A (en) Method and device for detecting text in scene image and computer equipment
US20180253852A1 (en) Method and device for locating image edge in natural background
CN110675940A (en) Pathological image labeling method and device, computer equipment and storage medium
CN110465815B (en) Tooth form code identification method and device and terminal equipment
CN111860522B (en) Identity card picture processing method, device, terminal and storage medium
CN109685764B (en) Product positioning method and device and terminal equipment
CN114638294A (en) Data enhancement method and device, terminal equipment and storage medium
CN114708239A (en) Glue width detection method and device, electronic equipment and storage medium
WO2022161172A1 (en) Method and apparatus for identifying corner points of pattern in image, and medium and electronic device
CN111815748B (en) Animation processing method and device, storage medium and electronic equipment
CN113936232A (en) Screen fragmentation identification method, device, equipment and storage medium
CN113516739B (en) Animation processing method and device, storage medium and electronic equipment
US20230306619A1 (en) Three-dimensional reconstruction method, apparatus, and device, and computer readable storage medium
CN112084103B (en) Interface test method, device, equipment and medium
CN111723799A (en) Coordinate positioning method, device, equipment and storage medium
CN117058421A (en) Multi-head model-based image detection key point method, system, platform and medium
CN115829929A (en) Method, device and equipment for detecting defects of product surface image and storage medium
CN111696154B (en) Coordinate positioning method, device, equipment and storage medium
CN112966671A (en) Contract detection method and device, electronic 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