CN117006948B - Container sealing strip flaw detection method and system based on machine vision - Google Patents

Container sealing strip flaw detection method and system based on machine vision Download PDF

Info

Publication number
CN117006948B
CN117006948B CN202310951695.0A CN202310951695A CN117006948B CN 117006948 B CN117006948 B CN 117006948B CN 202310951695 A CN202310951695 A CN 202310951695A CN 117006948 B CN117006948 B CN 117006948B
Authority
CN
China
Prior art keywords
sealing strip
image
length
top view
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.)
Active
Application number
CN202310951695.0A
Other languages
Chinese (zh)
Other versions
CN117006948A (en
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.)
Nantong Laibo Precision Mechanical And Electrical Equipment Co ltd
Original Assignee
Nantong Laibo Precision Mechanical And Electrical Equipment 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 Nantong Laibo Precision Mechanical And Electrical Equipment Co ltd filed Critical Nantong Laibo Precision Mechanical And Electrical Equipment Co ltd
Priority to CN202310951695.0A priority Critical patent/CN117006948B/en
Publication of CN117006948A publication Critical patent/CN117006948A/en
Application granted granted Critical
Publication of CN117006948B publication Critical patent/CN117006948B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • GPHYSICS
    • G01MEASURING; TESTING
    • G01BMEASURING LENGTH, THICKNESS OR SIMILAR LINEAR DIMENSIONS; MEASURING ANGLES; MEASURING AREAS; MEASURING IRREGULARITIES OF SURFACES OR CONTOURS
    • G01B11/00Measuring arrangements characterised by the use of optical techniques
    • G01B11/02Measuring arrangements characterised by the use of optical techniques for measuring length, width or thickness
    • GPHYSICS
    • G01MEASURING; TESTING
    • G01BMEASURING LENGTH, THICKNESS OR SIMILAR LINEAR DIMENSIONS; MEASURING ANGLES; MEASURING AREAS; MEASURING IRREGULARITIES OF SURFACES OR CONTOURS
    • G01B11/00Measuring arrangements characterised by the use of optical techniques
    • G01B11/02Measuring arrangements characterised by the use of optical techniques for measuring length, width or thickness
    • G01B11/06Measuring arrangements characterised by the use of optical techniques for measuring length, width or thickness for measuring thickness ; e.g. of sheet material
    • GPHYSICS
    • G01MEASURING; TESTING
    • G01BMEASURING LENGTH, THICKNESS OR SIMILAR LINEAR DIMENSIONS; MEASURING ANGLES; MEASURING AREAS; MEASURING IRREGULARITIES OF SURFACES OR CONTOURS
    • G01B11/00Measuring arrangements characterised by the use of optical techniques
    • G01B11/26Measuring arrangements characterised by the use of optical techniques for measuring angles or tapers; for testing the alignment of axes
    • GPHYSICS
    • G01MEASURING; TESTING
    • G01NINVESTIGATING OR ANALYSING MATERIALS BY DETERMINING THEIR CHEMICAL OR PHYSICAL PROPERTIES
    • G01N21/00Investigating or analysing materials by the use of optical means, i.e. using sub-millimetre waves, infrared, visible or ultraviolet light
    • G01N21/84Systems specially adapted for particular applications
    • G01N21/88Investigating the presence of flaws or contamination
    • G01N21/95Investigating the presence of flaws or contamination characterised by the material or shape of the object to be examined
    • 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/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
    • G06T7/00Image analysis
    • G06T7/80Analysis of captured images to determine intrinsic or extrinsic camera parameters, i.e. camera calibration
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T2207/00Indexing scheme for image analysis or image enhancement
    • G06T2207/10Image acquisition modality
    • G06T2207/10004Still image; Photographic image
    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02PCLIMATE CHANGE MITIGATION TECHNOLOGIES IN THE PRODUCTION OR PROCESSING OF GOODS
    • Y02P90/00Enabling technologies with a potential contribution to greenhouse gas [GHG] emissions mitigation
    • Y02P90/30Computing systems specially adapted for manufacturing

Landscapes

  • Physics & Mathematics (AREA)
  • Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Theoretical Computer Science (AREA)
  • Computer Vision & Pattern Recognition (AREA)
  • Chemical & Material Sciences (AREA)
  • Biochemistry (AREA)
  • General Health & Medical Sciences (AREA)
  • Immunology (AREA)
  • Pathology (AREA)
  • Analytical Chemistry (AREA)
  • Quality & Reliability (AREA)
  • Life Sciences & Earth Sciences (AREA)
  • Health & Medical Sciences (AREA)
  • Geometry (AREA)
  • Image Analysis (AREA)

Abstract

The invention is applicable to the technical field of product detection, and provides a container sealing strip flaw detection method and system based on machine vision, wherein the method comprises the following steps: acquiring container sealing strip image information, wherein the container sealing strip image information comprises a sealing strip overlooking image and a sealing strip front image, and the sealing strip overlooking image and the sealing strip front image both comprise calibration objects; identifying an image background and a calibration object in the top view image of the sealing strip, and determining the top view of the sealing strip; identifying an image background and a calibration object in the front image of the sealing strip, and determining a front image of the sealing strip; determining the model of the sealing strip, and calling drawing information, wherein the drawing information comprises a top drawing and a front drawing; leading the top view of the sealing strip into a top view drawing, and judging whether the length and the straightness of the sealing strip have flaws or not; leading the front view of the sealing strip into the front drawing, and judging whether the thickness and the section size of the sealing strip have flaws or not. So, can realize the automated inspection to sealing strip flaw, efficient and the precision is high.

Description

Container sealing strip flaw detection method and system based on machine vision
Technical Field
The invention relates to the technical field of product detection, in particular to a method and a system for detecting flaws of a container sealing strip based on machine vision.
Background
The container sealing strip is mainly used for sealing a container door frame, can be divided into two types of weather sealing strips and airtight rubber strips according to the functions of the sealing strip, can be divided into J type, C type, CO type, O type, JC type mixed type and compound type combined type according to the section of the sealing strip, and is light, has stronger toughness, low heat insulation and heat conductivity and excellent heat preservation. If there is great flaw, can lead to unable installation, perhaps can not reach sealed effect after the installation, consequently need carry out the flaw detection to the sealing strip when processing, present flaw detection often uses the instrument to detect with the help of personnel, and efficiency is lower. Therefore, there is a need to provide a method and a system for detecting flaws of container sealing strips based on machine vision, which aim to solve the above problems.
Disclosure of Invention
Aiming at the defects existing in the prior art, the invention aims to provide a container sealing strip flaw detection method and system based on machine vision, so as to solve the problems existing in the background art.
The invention is realized in such a way that a container sealing strip flaw detection method based on machine vision comprises the following steps:
Acquiring container sealing strip image information, wherein the container sealing strip image information comprises a sealing strip overlooking image and a sealing strip front image, and the sealing strip overlooking image and the sealing strip front image both comprise calibration objects;
Identifying an image background and a calibration object in the top view image of the sealing strip, and determining the top view of the sealing strip; identifying an image background and a calibration object in the front image of the sealing strip, and determining a front image of the sealing strip;
retrieving production scheduling information, determining the model of a sealing strip, and retrieving drawing information of the model of the sealing strip, wherein the drawing information comprises a top drawing and a front drawing;
Leading the top view of the sealing strip into a top view drawing, and judging whether the length and the straightness of the sealing strip have flaws or not;
Leading the front view of the sealing strip into the front drawing, and judging whether the thickness and the section size of the sealing strip have flaws or not.
As a further scheme of the invention: the step of identifying the image background and the calibration object in the top view image of the sealing strip and determining the top view of the sealing strip specifically comprises the following steps:
Identifying an image background and a calibration object in the overlooking image of the sealing strip according to the color characteristics, wherein the image background and the calibration object are respectively corresponding to the respective color characteristics;
removing the image background and the calibration object in the top view image of the sealing strip to obtain a top view of the sealing strip;
And scaling the top view of the sealing strip according to the size of the calibration object and the drawing scale.
As a further scheme of the invention: the step of calling the production scheduling information, determining the model of the sealing strip and calling the drawing information of the model of the sealing strip specifically comprises the following steps:
scheduling information is called, wherein the scheduling information comprises a production line, a plurality of time periods and corresponding product models;
determining the model of the sealing strip according to the current production line and the current time;
inputting the determined sealing strip model into a drawing library, and outputting drawing information corresponding to the sealing strip model.
As a further scheme of the invention: the step of judging whether the length and the straightness of the sealing strip have flaws or not specifically comprises the following steps:
determining the actual length according to the top view of the sealing strip, and determining the theoretical length according to the top view drawing;
determining a length difference percentage according to the actual length and the theoretical length, and judging that the length has flaws when the length difference percentage exceeds a set range;
And (3) tracing the length direction of the top view of the sealing strip to determine the contour lines on two sides of the sealing strip, determining the projection width of each contour line in the width direction, and judging that the straightness has defects when the projection width of any contour line exceeds a set wide value.
As a further scheme of the invention: the step of judging whether the thickness and the section size of the sealing strip have flaws or not specifically comprises the following steps:
Determining the actual thickness, the actual width of the upper edge, the actual width of the lower edge and the actual height of the inner diameter according to the front view of the sealing strip;
determining theoretical thickness, upper edge theoretical width, lower edge theoretical width and inner diameter theoretical height according to the front drawing;
and comparing the actual size value with the theoretical size value, and judging whether the thickness and the section size of the sealing strip have flaws or not.
Another object of the present invention is to provide a machine vision based container sealing strip flaw detection system, the system comprising:
The image information acquisition module is used for acquiring image information of the container sealing strip, wherein the image information of the container sealing strip comprises a sealing strip overlooking image and a sealing strip front image, and the sealing strip overlooking image and the sealing strip front image both comprise calibration objects;
The image calibration and identification module is used for identifying an image background and a calibration object in the top view image of the sealing strip and determining the top view of the sealing strip; identifying an image background and a calibration object in the front image of the sealing strip, and determining a front image of the sealing strip;
The drawing information calling module is used for calling production scheduling information, determining the type of the sealing strip and calling drawing information of the type of the sealing strip, wherein the drawing information comprises a top drawing and a front drawing;
the length direction flaw module is used for guiding the top view of the sealing strip into the top view drawing and judging whether flaws exist in the length and the straightness of the sealing strip or not;
and the section part flaw module is used for guiding the front drawing of the sealing strip into the front drawing and judging whether the thickness and the section size of the sealing strip have flaws or not.
As a further scheme of the invention: the image calibration and identification module comprises:
the image calibration and identification unit is used for identifying an image background and a calibration object in the overlooking image of the sealing strip according to the color characteristics, wherein the image background and the calibration object are respectively corresponding to the respective color characteristics;
The sealing strip top view unit is used for matting out the image background and the calibration object in the sealing strip top view image to obtain a sealing strip top view;
and the top view scaling unit is used for scaling the top view of the sealing strip according to the size of the calibration object and the drawing scale.
As a further scheme of the invention: the drawing information calling module comprises:
the scheduling information calling unit is used for calling scheduling information, and the scheduling information comprises a production line, a plurality of time periods and corresponding product models;
The sealing strip model determining unit is used for determining the sealing strip model according to the current production line and the current time;
the drawing information determining unit is used for inputting the determined sealing strip model into a drawing library and outputting drawing information corresponding to the sealing strip model.
As a further scheme of the invention: the length direction flaw module includes:
The actual theoretical length unit is used for determining the actual length according to the top view of the sealing strip and determining the theoretical length according to the top view drawing;
the length flaw judging unit is used for determining the length difference percentage according to the actual length and the theoretical length, and judging that the length has flaws when the length difference percentage exceeds a set range;
And the straightness defect judging unit is used for tracing the length direction of the top view of the sealing strip to determine the contour lines on two sides of the sealing strip, determining the projection width of each contour line in the width direction, and judging that the straightness defect exists when the projection width of any contour line exceeds a set wide value.
As a further scheme of the invention: the section part defect module comprises:
The actual section size unit is used for determining the actual thickness, the actual width of the upper edge, the actual width of the lower edge and the actual height of the inner diameter according to the front view of the sealing strip;
The theoretical section size unit is used for determining theoretical thickness, upper edge theoretical width, lower edge theoretical width and inner diameter theoretical height according to the front drawing;
and the section flaw judging unit is used for comparing the actual size value with the theoretical size value and judging whether the thickness and the section size of the sealing strip have flaws or not.
Compared with the prior art, the invention has the beneficial effects that:
The method comprises the steps of determining a top view of a sealing strip by identifying an image background and a calibration object in the top view image of the sealing strip; identifying an image background and a calibration object in the front image of the sealing strip, and determining a front image of the sealing strip; then, leading the top view of the sealing strip into a top view drawing, and judging whether the length and the straightness of the sealing strip have flaws or not; and leading the front view of the sealing strip into a front drawing, and judging whether the thickness and the section size of the sealing strip have flaws or not. So, can realize the automated inspection to sealing strip flaw, efficient and the precision is high.
Drawings
Fig. 1 is a flow chart of a method for detecting flaws of a container sealing strip based on machine vision.
Fig. 2 is a flow chart of determining a top view of a sealing strip in a method for detecting flaws of a sealing strip of a container based on machine vision.
Fig. 3 is a flowchart of a method for detecting flaws of a container sealing strip based on machine vision, which is used for retrieving drawing information.
Fig. 4 is a flowchart for determining whether a flaw exists in the length and straightness of a sealing strip in a machine vision-based container sealing strip flaw detection method.
Fig. 5 is a flowchart for determining whether a flaw exists in the thickness and the cross-sectional dimension of a sealing strip in a machine vision-based container sealing strip flaw detection method.
Fig. 6 is a schematic structural diagram of a machine vision-based container sealing strip flaw detection system.
Fig. 7 is a schematic structural diagram of an image calibration and identification module in a container sealing strip flaw detection system based on machine vision.
Fig. 8 is a schematic structural diagram of a drawing information retrieving module in a container sealing strip flaw detection system based on machine vision.
Fig. 9 is a schematic structural diagram of a longitudinal flaw module in a machine vision-based container sealing strip flaw detection system.
Fig. 10 is a schematic structural diagram of a section part flaw module in a machine vision-based container sealing strip flaw detection system.
Detailed Description
In order to make the objects, technical solutions and advantages of the present invention more clear, the present invention will be described in further detail with reference to the accompanying drawings and specific embodiments. It should be understood that the specific embodiments described herein are for purposes of illustration only and are not intended to limit the scope of the invention.
Specific implementations of the invention are described in detail below in connection with specific embodiments.
As shown in fig. 1, the embodiment of the invention provides a method for detecting flaws of a container sealing strip based on machine vision, which comprises the following steps:
s100, acquiring container sealing strip image information, wherein the container sealing strip image information comprises a sealing strip overlooking image and a sealing strip front image, and the sealing strip overlooking image and the sealing strip front image both comprise calibration objects;
S200, identifying an image background and a calibration object in the top view image of the sealing strip, and determining the top view of the sealing strip; identifying an image background and a calibration object in the front image of the sealing strip, and determining a front image of the sealing strip;
S300, scheduling information is called, a sealing strip model is determined, drawing information of the sealing strip model is called, and the drawing information comprises a top drawing and a front drawing;
S400, importing the top view of the sealing strip into a top view drawing, and judging whether the length and the straightness of the sealing strip have flaws or not;
S500, leading the front view of the sealing strip into the front drawing, and judging whether the thickness and the section size of the sealing strip have flaws or not.
It should be noted that if there is a large defect in the sealing strip of the container, the sealing strip cannot be installed, or the sealing effect cannot be achieved after installation, so that defect detection needs to be performed on the sealing strip during processing, and the existing defect detection is often performed by means of a worker using a tool, so that the efficiency is low.
In the embodiment of the invention, an image acquisition station is required to be added in a production line after the sealing strip is processed, two cameras are required to be arranged in the image acquisition station, one camera is arranged above the image acquisition station and used for acquiring top view images of the sealing strip, and the other camera is arranged in front of the image acquisition station and used for acquiring front images of the sealing strip. In order to facilitate the subsequent identification of the container sealing strip body directly from the image, a specific background needs to be arranged, for example, the background of the top view image and the background of the front view image of the sealing strip are green, in addition, in order to automatically identify various sizes of the container sealing strip in the image, a calibration object needs to be arranged in the background, the calibration object has a specific length and a specific color, for example, the length is 10cm, and the color is red, so that the image background and the calibration object in the top view image of the sealing strip can be automatically identified, the top view of the sealing strip is determined, the top view of the sealing strip only comprises the sealing strip, the image background and the calibration object in the front view image of the sealing strip are simultaneously identified, and the front view of the sealing strip is determined, and the front view of the sealing strip also only comprises the sealing strip. Then, the production scheduling information is required to be called, the model of the sealing strip being processed and produced is determined, drawing information of the model of the sealing strip is called, one drawing information consists of a overlook drawing and a front drawing, then the overlook drawing is led into the overlook drawing, and the overlook drawing of the sealing strip is compared with a theoretical top view in the drawing, so that whether flaws exist in the length and the straightness of the sealing strip can be judged; and leading the front view of the sealing strip into the front drawing, comparing the front view of the sealing strip with the theoretical front view in the drawing, and judging whether the thickness and the section size of the sealing strip have flaws, so that the automatic detection of the flaws of the sealing strip is realized, and the efficiency and the accuracy are high.
As shown in fig. 2, as a preferred embodiment of the present invention, the step of identifying the image background and the calibration object in the top view image of the sealing strip and determining the top view of the sealing strip specifically includes:
S201, identifying an image background and a calibration object in the overlooking image of the sealing strip according to the color characteristics, wherein the image background and the calibration object are respectively corresponding to the respective color characteristics;
S202, removing an image background and a calibration object in the top view image of the sealing strip to obtain a top view of the sealing strip;
And S203, scaling the top view of the sealing strip according to the size of the calibration object and the drawing scale.
In the embodiment of the invention, in order to obtain the top view of the sealing strip, firstly, the image background and the calibration object in the top view image of the sealing strip are required to be identified according to the color characteristics, and then the image background and the calibration object in the top view image of the sealing strip are removed, so that the top view of the sealing strip can be obtained. In order to facilitate comparison between the follow-up sealing strip top view and the overlook drawing, the follow-up sealing strip top view and the overlook drawing are required to have the same scale, so that the sealing strip top view is also required to be scaled according to the size of the calibration object and the drawing scale, so that the scale of the sealing strip top view is the same as the drawing scale. It is readily understood that the same method is used to obtain a frontal view of the sealing strip.
As shown in fig. 3, as a preferred embodiment of the present invention, the step of retrieving production scheduling information, determining a sealing strip model, and retrieving drawing information of the sealing strip model specifically includes:
s301, scheduling information is called, wherein the scheduling information comprises a production line, a plurality of time periods and corresponding product models;
S302, determining the model of the sealing strip according to the current production line and the current time;
S303, inputting the determined sealing strip model into a drawing library, and outputting drawing information corresponding to the sealing strip model
In the embodiment of the invention, the production scheduling information is required to be formulated before each formal processing production, and comprises a production line, a plurality of time periods and corresponding product models, wherein the product models are sealing strip models, so that the sealing strip models can be determined according to the current production line and the current time, and then the determined sealing strip models are input into a drawing library, so that drawing information corresponding to the sealing strip models can be obtained.
As shown in fig. 4, as a preferred embodiment of the present invention, the step of determining whether the length and the straightness of the sealing strip have flaws specifically includes:
s401, determining the actual length according to the top view of the sealing strip, and determining the theoretical length according to the top view drawing;
s402, determining a length difference percentage according to the actual length and the theoretical length, and judging that the length has flaws when the length difference percentage exceeds a set range;
S403, the length direction of the top view of the sealing strip is traced to determine contour lines on two sides of the sealing strip, the projection width of each contour line in the width direction is determined, and when the projection width of any contour line exceeds a set wide value, the straightness is judged to be defective.
In the embodiment of the invention, the actual length and the theoretical length of the sealing strip are determined according to the drawing scale, the top view of the sealing strip and the top view of the drawing, then the length difference percentage is calculated, the length difference percentage= |actual length-theoretical length|theoretical length, when the length difference percentage exceeds the set range, the set range needs to be formulated in advance, and the defect of the length is judged. And then, the length direction of the top view of the sealing strip is traced to determine the contour lines on two sides of the sealing strip, and then, the projection width of each contour line in the width direction is determined, so that the projection of the contour lines on two sides in the width direction is easy to understand, and theoretically, when the projection width of any contour line exceeds a set wide value, the straightness is unqualified, and the straightness is judged to have flaws.
As shown in fig. 5, as a preferred embodiment of the present invention, the step of determining whether the thickness and the cross-sectional dimension of the sealing strip have flaws specifically includes:
S501, determining the actual thickness, the actual width of the upper edge, the actual width of the lower edge and the actual height of the inner diameter according to the front view of the sealing strip;
S502, determining theoretical thickness, upper edge theoretical width, lower edge theoretical width and inner diameter theoretical height according to a front drawing;
s503, comparing the actual size value with the theoretical size value, and judging whether the thickness and the section size of the sealing strip have flaws or not.
In the embodiment of the invention, the actual thickness, the upper edge actual width, the lower edge actual width, the inner diameter actual height, the theoretical thickness, the upper edge theoretical width, the lower edge theoretical width and the inner diameter theoretical height of the sealing strip are determined according to the drawing scale, the sealing strip front view and the front view, wherein the thickness refers to the thickness of the inner diameter, the actual size value and the theoretical size value are compared, and the thickness of the sealing strip and the defects of various section sizes are determined by adopting the method of the percentage difference.
As shown in fig. 6, the embodiment of the invention further provides a system for detecting flaws of a container sealing strip based on machine vision, which comprises:
The image information acquisition module 100 is used for acquiring image information of the container sealing strip, wherein the image information of the container sealing strip comprises a sealing strip overlook image and a sealing strip front image, and the sealing strip overlook image and the sealing strip front image both comprise calibration objects;
The image calibration and identification module 200 is used for identifying an image background and a calibration object in the top view image of the sealing strip and determining the top view of the sealing strip; identifying an image background and a calibration object in the front image of the sealing strip, and determining a front image of the sealing strip;
the drawing information calling module 300 is used for calling production scheduling information, determining the model of the sealing strip and calling drawing information of the model of the sealing strip, wherein the drawing information comprises a top drawing and a front drawing;
the length direction flaw module 400 is used for guiding the top view of the sealing strip into the top view drawing and judging whether flaws exist in the length and the straightness of the sealing strip or not;
the section part flaw module 500 is used for guiding the front view of the sealing strip into the front drawing and judging whether the thickness and the section size of the sealing strip have flaws or not.
As shown in fig. 7, as a preferred embodiment of the present invention, the image calibration and identification module 200 includes:
An image calibration and identification unit 201, configured to identify, according to color features, an image background and a calibration object in the top view image of the sealing strip, where the image background and the calibration object both correspond to respective color features;
The sealing strip top view unit 202 is configured to scratch and remove an image background and a calibration object in a sealing strip top view image to obtain a sealing strip top view;
and the top view scaling unit 203 is configured to scale the top view of the sealing strip according to the size of the calibration object and the drawing scale.
As shown in fig. 8, as a preferred embodiment of the present invention, the drawing information retrieving module 300 includes:
A scheduling information retrieving unit 301, configured to retrieve scheduling information, where the scheduling information includes a production line, a plurality of time periods, and corresponding product types;
a sealing strip model determining unit 302, configured to determine a sealing strip model according to a current production line and a current time;
the drawing information determining unit 303 is configured to input the determined sealing strip model into a drawing library, and output drawing information corresponding to the sealing strip model.
As shown in fig. 9, as a preferred embodiment of the present invention, the lengthwise flaw module 400 includes:
An actual theoretical length unit 401, configured to determine an actual length according to a top view of the sealing strip, and determine a theoretical length according to a top view drawing;
A length flaw determination unit 402, configured to determine a length difference percentage according to the actual length and the theoretical length, and determine that a flaw exists in the length when the length difference percentage exceeds a set range;
Straightness defect judging unit 403, configured to perform edge tracing on the length direction of the top view of the sealing strip to determine contour lines on two sides of the sealing strip, determine a projection width of each contour line in the width direction, and judge that a defect exists in straightness when the projection width of any contour line exceeds a set wide value.
As shown in fig. 10, as a preferred embodiment of the present invention, the section part defect module 500 includes:
an actual cross-sectional dimension unit 501 for determining an actual thickness, an upper edge actual width, a lower edge actual width, and an inner diameter actual height from a weather strip front view;
A theoretical section size unit 502, configured to determine a theoretical thickness, an upper edge theoretical width, a lower edge theoretical width, and an inner diameter theoretical height according to a front drawing;
And the section flaw determination unit 503 is configured to compare the actual size value with the theoretical size value, and determine whether the thickness and the section size of the sealing strip have flaws.
The foregoing description of the preferred embodiments of the present invention should not be taken as limiting the invention, but rather should be understood to cover all modifications, equivalents, and alternatives falling within the spirit and principles of the invention.
It should be understood that, although the steps in the flowcharts of the embodiments of the present invention are shown in order as indicated by the arrows, these steps are not necessarily performed in order as indicated by the arrows. The steps are not strictly limited to the order of execution unless explicitly recited herein, and the steps may be executed in other orders. Moreover, at least some of the steps in various embodiments may include multiple sub-steps or stages that are not necessarily performed at the same time, but may be performed at different times, nor do the order in which the sub-steps or stages are performed necessarily performed in sequence, but may be performed alternately or alternately with at least a portion of the sub-steps or stages of other steps or other steps.
Those skilled in the art will appreciate that all or part of the processes in the methods of the above embodiments may be implemented by a computer program for instructing relevant hardware, where the program may be stored in a non-volatile computer readable storage medium, and where the program, when executed, may include processes in the embodiments of the methods described above. Any reference to memory, storage, database, or other medium used in embodiments provided herein may include non-volatile and/or volatile memory. The nonvolatile memory can include Read Only Memory (ROM), programmable ROM (PROM), electrically Programmable ROM (EPROM), electrically Erasable Programmable ROM (EEPROM), or flash memory. Volatile memory can include Random Access Memory (RAM) or external cache memory. By way of illustration and not limitation, RAM is available in a variety of forms such as Static RAM (SRAM), dynamic RAM (DRAM), synchronous DRAM (SDRAM), double Data Rate SDRAM (DDRSDRAM), enhanced SDRAM (ESDRAM), synchronous link (SYNCHLINK) DRAM (SLDRAM), memory bus (rambus) direct RAM (RDRAM), direct memory bus dynamic RAM (DRDRAM), and memory bus dynamic RAM (RDRAM), among others.
Other embodiments of the present disclosure will be apparent to those skilled in the art from consideration of the specification and practice of the disclosure. This application is intended to cover any adaptations, uses, or adaptations of the disclosure following, in general, the principles of the disclosure and including such departures from the present disclosure as come within known or customary practice within the art to which the disclosure pertains. It is intended that the specification and examples be considered as exemplary only, with a true scope and spirit of the disclosure being indicated by the following claims.

Claims (6)

1. The method for detecting the flaws of the container sealing strip based on the machine vision is characterized by comprising the following steps:
Acquiring container sealing strip image information, wherein the container sealing strip image information comprises a sealing strip overlooking image and a sealing strip front image, and the sealing strip overlooking image and the sealing strip front image both comprise calibration objects;
Identifying an image background and a calibration object in the top view image of the sealing strip, and determining the top view of the sealing strip; identifying an image background and a calibration object in the front image of the sealing strip, and determining a front image of the sealing strip;
retrieving production scheduling information, determining the model of a sealing strip, and retrieving drawing information of the model of the sealing strip, wherein the drawing information comprises a top drawing and a front drawing;
Leading the top view of the sealing strip into a top view drawing, and judging whether the length and the straightness of the sealing strip have flaws or not;
leading the front view of the sealing strip into a front drawing, and judging whether the thickness and the section size of the sealing strip have flaws or not;
the step of calling the production scheduling information, determining the model of the sealing strip and calling the drawing information of the model of the sealing strip specifically comprises the following steps:
scheduling information is called, wherein the scheduling information comprises a production line, a plurality of time periods and corresponding product models;
determining the model of the sealing strip according to the current production line and the current time;
Inputting the determined sealing strip model into a drawing library, and outputting drawing information corresponding to the sealing strip model;
the step of judging whether the length and the straightness of the sealing strip have flaws or not specifically comprises the following steps:
determining the actual length according to the top view of the sealing strip, and determining the theoretical length according to the top view drawing;
determining a length difference percentage according to the actual length and the theoretical length, and judging that the length has flaws when the length difference percentage exceeds a set range;
tracing the length direction of the top view of the sealing strip to determine contour lines on two sides of the sealing strip, determining the projection width of each contour line in the width direction, and judging that the straightness has defects when the projection width of any contour line exceeds a set wide value;
and determining the actual length and the theoretical length of the sealing strip according to the drawing scale, the top view of the sealing strip and the top view drawing, then calculating the length difference percentage, wherein the length difference percentage is = |the actual length-the theoretical length|the theoretical length, and when the length difference percentage exceeds the set range, the set range needs to be formulated in advance, so that the defect of the length is determined.
2. The method for detecting flaws of a container sealing strip based on machine vision according to claim 1, wherein the step of identifying an image background and a calibration object in a top view image of the sealing strip and determining the top view image of the sealing strip specifically comprises:
Identifying an image background and a calibration object in the overlooking image of the sealing strip according to the color characteristics, wherein the image background and the calibration object are respectively corresponding to the respective color characteristics;
removing the image background and the calibration object in the top view image of the sealing strip to obtain a top view of the sealing strip;
And scaling the top view of the sealing strip according to the size of the calibration object and the drawing scale.
3. The machine vision-based container sealing strip flaw detection method according to claim 1, wherein the step of determining whether the thickness and the cross-sectional size of the sealing strip have flaws comprises the following steps:
Determining the actual thickness, the actual width of the upper edge, the actual width of the lower edge and the actual height of the inner diameter according to the front view of the sealing strip;
determining theoretical thickness, upper edge theoretical width, lower edge theoretical width and inner diameter theoretical height according to the front drawing;
and comparing the actual size value with the theoretical size value, and judging whether the thickness and the section size of the sealing strip have flaws or not.
4. A machine vision-based container seal strip flaw detection system, the system comprising:
The image information acquisition module is used for acquiring image information of the container sealing strip, wherein the image information of the container sealing strip comprises a sealing strip overlooking image and a sealing strip front image, and the sealing strip overlooking image and the sealing strip front image both comprise calibration objects;
The image calibration and identification module is used for identifying an image background and a calibration object in the top view image of the sealing strip and determining the top view of the sealing strip; identifying an image background and a calibration object in the front image of the sealing strip, and determining a front image of the sealing strip;
The drawing information calling module is used for calling production scheduling information, determining the type of the sealing strip and calling drawing information of the type of the sealing strip, wherein the drawing information comprises a top drawing and a front drawing;
the length direction flaw module is used for guiding the top view of the sealing strip into the top view drawing and judging whether flaws exist in the length and the straightness of the sealing strip or not;
The section part flaw module is used for guiding the front face diagram of the sealing strip into the front face drawing and judging whether flaws exist in the thickness and the section size of the sealing strip or not;
the step of calling the production scheduling information, determining the model of the sealing strip and calling the drawing information of the model of the sealing strip specifically comprises the following steps:
scheduling information is called, wherein the scheduling information comprises a production line, a plurality of time periods and corresponding product models;
determining the model of the sealing strip according to the current production line and the current time;
Inputting the determined sealing strip model into a drawing library, and outputting drawing information corresponding to the sealing strip model;
the step of judging whether the length and the straightness of the sealing strip have flaws or not specifically comprises the following steps:
determining the actual length according to the top view of the sealing strip, and determining the theoretical length according to the top view drawing;
determining a length difference percentage according to the actual length and the theoretical length, and judging that the length has flaws when the length difference percentage exceeds a set range;
tracing the length direction of the top view of the sealing strip to determine contour lines on two sides of the sealing strip, determining the projection width of each contour line in the width direction, and judging that the straightness has defects when the projection width of any contour line exceeds a set wide value;
Determining the actual length and the theoretical length of the sealing strip according to a drawing scale, a top view of the sealing strip and a top view drawing, then calculating the length difference percentage, wherein the length difference percentage is = |the actual length-the theoretical length|the theoretical length, and when the length difference percentage exceeds a set range, the set range needs to be formulated in advance, so that the defect of the length is judged;
the drawing information calling module comprises:
the scheduling information calling unit is used for calling scheduling information, and the scheduling information comprises a production line, a plurality of time periods and corresponding product models;
The sealing strip model determining unit is used for determining the sealing strip model according to the current production line and the current time;
The drawing information determining unit is used for inputting the determined sealing strip model into a drawing library and outputting drawing information corresponding to the sealing strip model;
the length direction flaw module includes:
The actual theoretical length unit is used for determining the actual length according to the top view of the sealing strip and determining the theoretical length according to the top view drawing;
the length flaw judging unit is used for determining the length difference percentage according to the actual length and the theoretical length, and judging that the length has flaws when the length difference percentage exceeds a set range;
And the straightness defect judging unit is used for tracing the length direction of the top view of the sealing strip to determine the contour lines on two sides of the sealing strip, determining the projection width of each contour line in the width direction, and judging that the straightness defect exists when the projection width of any contour line exceeds a set wide value.
5. The machine vision-based container seal strip flaw detection system of claim 4, wherein the image calibration identification module comprises:
the image calibration and identification unit is used for identifying an image background and a calibration object in the overlooking image of the sealing strip according to the color characteristics, wherein the image background and the calibration object are respectively corresponding to the respective color characteristics;
The sealing strip top view unit is used for matting out the image background and the calibration object in the sealing strip top view image to obtain a sealing strip top view;
and the top view scaling unit is used for scaling the top view of the sealing strip according to the size of the calibration object and the drawing scale.
6. The machine vision based container seal strip flaw detection system of claim 4, wherein the cross-section portion flaw module comprises:
The actual section size unit is used for determining the actual thickness, the actual width of the upper edge, the actual width of the lower edge and the actual height of the inner diameter according to the front view of the sealing strip;
The theoretical section size unit is used for determining theoretical thickness, upper edge theoretical width, lower edge theoretical width and inner diameter theoretical height according to the front drawing;
and the section flaw judging unit is used for comparing the actual size value with the theoretical size value and judging whether the thickness and the section size of the sealing strip have flaws or not.
CN202310951695.0A 2023-07-29 2023-07-29 Container sealing strip flaw detection method and system based on machine vision Active CN117006948B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202310951695.0A CN117006948B (en) 2023-07-29 2023-07-29 Container sealing strip flaw detection method and system based on machine vision

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202310951695.0A CN117006948B (en) 2023-07-29 2023-07-29 Container sealing strip flaw detection method and system based on machine vision

Publications (2)

Publication Number Publication Date
CN117006948A CN117006948A (en) 2023-11-07
CN117006948B true CN117006948B (en) 2024-04-16

Family

ID=88566736

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202310951695.0A Active CN117006948B (en) 2023-07-29 2023-07-29 Container sealing strip flaw detection method and system based on machine vision

Country Status (1)

Country Link
CN (1) CN117006948B (en)

Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH06315549A (en) * 1991-12-03 1994-11-15 Yoshinobu Harada Seal for head of golf club and seal with lead for adjusting swing balance
WO2009052854A1 (en) * 2007-10-22 2009-04-30 Abb Ab Device, method and system for recording inspection data about a freight container
CN204988192U (en) * 2015-08-10 2016-01-20 宁波锦华汽车检具有限公司 Utensil is examined to automobile -used sealing strip
CN209559139U (en) * 2019-02-14 2019-10-29 瑞田汽车压缩机(江苏)有限公司 A kind of sealing strip outline detector
CN110595362A (en) * 2019-09-29 2019-12-20 上海交通大学 Sealing strip size detection equipment and method based on visual identification
CN217463971U (en) * 2021-09-26 2022-09-20 天津港国际物流发展有限公司 Container surface image acquisition device
CN218723883U (en) * 2022-10-28 2023-03-24 贵州红阳密封件有限责任公司 Visual sealing strip check out test set
CN116385430A (en) * 2023-05-26 2023-07-04 浙江视觉智能创新中心有限公司 Machine vision flaw detection method, device, medium and equipment

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US10820307B2 (en) * 2019-10-31 2020-10-27 Zebra Technologies Corporation Systems and methods for automatic camera installation guidance (CIG)

Patent Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH06315549A (en) * 1991-12-03 1994-11-15 Yoshinobu Harada Seal for head of golf club and seal with lead for adjusting swing balance
WO2009052854A1 (en) * 2007-10-22 2009-04-30 Abb Ab Device, method and system for recording inspection data about a freight container
CN204988192U (en) * 2015-08-10 2016-01-20 宁波锦华汽车检具有限公司 Utensil is examined to automobile -used sealing strip
CN209559139U (en) * 2019-02-14 2019-10-29 瑞田汽车压缩机(江苏)有限公司 A kind of sealing strip outline detector
CN110595362A (en) * 2019-09-29 2019-12-20 上海交通大学 Sealing strip size detection equipment and method based on visual identification
CN217463971U (en) * 2021-09-26 2022-09-20 天津港国际物流发展有限公司 Container surface image acquisition device
CN218723883U (en) * 2022-10-28 2023-03-24 贵州红阳密封件有限责任公司 Visual sealing strip check out test set
CN116385430A (en) * 2023-05-26 2023-07-04 浙江视觉智能创新中心有限公司 Machine vision flaw detection method, device, medium and equipment

Also Published As

Publication number Publication date
CN117006948A (en) 2023-11-07

Similar Documents

Publication Publication Date Title
US9916653B2 (en) Detection of defects embedded in noise for inspection in semiconductor manufacturing
CN110334390B (en) Method and device for identifying outer wall in computer-aided design (CAD), storage medium and processor
CN110503638B (en) Spiral adhesive quality online detection method
CN110422588B (en) Monitoring method, device, equipment and storage medium for scraper conveyor
CN113570601A (en) Defect marking method and system
CN106770321A (en) A kind of plastic part defect inspection method interval based on multi thresholds
US20220076021A1 (en) System and method for automatic visual inspection with deep learning
CN117006948B (en) Container sealing strip flaw detection method and system based on machine vision
Garrido et al. Autonomous thermography: towards the automatic detection and classification of building pathologies
CN113870267A (en) Defect detection method, defect detection device, computer equipment and readable storage medium
CN117787684B (en) Tunnel surrounding rock collapse risk analysis method and system based on visual detection
CN114299040A (en) Ceramic tile flaw detection method and device and electronic equipment
CN117761061A (en) Communication iron tower structure defect detection method and system
CN117952899A (en) Detection method and detection device for surface defects of aluminum foil and splitting machine
US20200082281A1 (en) Verification device
CN116051505A (en) Brake pad detection method, system and storage medium based on CCD camera
CN114911085A (en) Method for analyzing defects
CN118348024A (en) Visual technology-based steel sample excitable point rotation detection method and system
CN118914231A (en) Visual technology-based steel sample excitable point rotation detection method and system
CN117197106A (en) Method for monitoring billet feeding state in automatic production process
CN118629482B (en) Automatic test method and system for memory chip
CN115661438B (en) Off-site water level monitoring and flood prevention early warning method based on machine vision
CN116030426B (en) Big data-based image processing method and system
CN114399715A (en) Image analysis method and system for video monitoring
CN114994062B (en) Method and system for detecting surface quality of material 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
GR01 Patent grant
GR01 Patent grant