[go: up one dir, main page]
More Web Proxy on the site http://driver.im/

CN112837265A - Detection algorithm for realizing no-stop board of assembly line - Google Patents

Detection algorithm for realizing no-stop board of assembly line Download PDF

Info

Publication number
CN112837265A
CN112837265A CN202110002253.2A CN202110002253A CN112837265A CN 112837265 A CN112837265 A CN 112837265A CN 202110002253 A CN202110002253 A CN 202110002253A CN 112837265 A CN112837265 A CN 112837265A
Authority
CN
China
Prior art keywords
detected
characteristic
product
area
frame
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
CN202110002253.2A
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.)
Jiangsu Simand Electric Co Ltd
Original Assignee
Jiangsu Simand Electric 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 Jiangsu Simand Electric Co Ltd filed Critical Jiangsu Simand Electric Co Ltd
Priority to CN202110002253.2A priority Critical patent/CN112837265A/en
Publication of CN112837265A publication Critical patent/CN112837265A/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/11Region-based segmentation
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T7/00Image analysis
    • G06T7/70Determining position or orientation of objects or cameras
    • G06T7/73Determining position or orientation of objects or cameras using feature-based methods
    • 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
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T2207/00Indexing scheme for image analysis or image enhancement
    • G06T2207/20Special algorithmic details
    • G06T2207/20112Image segmentation details
    • G06T2207/20132Image cropping
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T2207/00Indexing scheme for image analysis or image enhancement
    • G06T2207/30Subject of image; Context of image processing
    • G06T2207/30108Industrial image inspection
    • G06T2207/30164Workpiece; Machine component

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 invention discloses a detection algorithm for realizing no-stop of a production line, which comprises the following steps: the acquisition frame rate of the camera is improved, and the number of cached images is increased; placing an object to be detected in a visual field range to collect a picture; drawing a detection area and two characteristic points of an object to be detected for positioning a product; the program is divided into two threads, one thread is used for a camera to acquire the dynamic process of the whole board, the acquired images are pressed into a queue, and one thread takes one frame of image from the queue for positioning detection; setting a flag bit default value as F, cutting a frame of image to obtain a detection area, detecting two characteristic areas in the area to be detected, setting T for the flag bit after the characteristic areas are detected, and detecting a board component; and taking out a frame of image from the queue, cutting the region to be detected, detecting the characteristic region, and detecting the characteristic region. According to the invention, an inductor is not required; the speed of the pipeline may vary; the pipeline may not be stalled.

Description

Detection algorithm for realizing no-stop board of assembly line
Technical Field
The invention relates to the technical field of assembly line detection, in particular to a detection algorithm for realizing no-stop of an assembly line.
Background
The visual detection system uses an industrial camera to replace human eyes to complete the functions of identification, measurement, positioning and the like. The general visual detection system is formed by combining a camera, a lens and a light source, can replace manual work to finish detection of bar code characters, cracks, packages, complete surface layers, depressions and the like, can effectively improve the detection speed and precision of a production line by using the visual detection system, greatly improves the yield and quality, reduces the labor cost, and simultaneously prevents misjudgment caused by eye fatigue.
At present, most of assembly line detection is static detection, objects to be detected flow, the sensor senses the objects to be detected, the cylinder is prevented from rising immediately, photographing detection is conducted, and the objects to be detected are released. The product to be detected before wave soldering and without fixation is disadvantageous because the product to be detected on the production line has inertia in movement, and the plug-in unit on the product can incline at the moment blocked by the blocking cylinder, so that the detection difficulty is increased. If dynamic detection is used (the product to be detected does not pause), the difficulty is correct identification and detection of the detected product, and repeated detection and less detection are caused because the pipeline speed is variable.
Disclosure of Invention
The invention aims to provide a detection algorithm for realizing no-stop of a production line, which aims to solve the problems in the prior art.
In order to achieve the purpose, the invention provides the following technical scheme: a detection algorithm for realizing the non-stop of a production line comprises the following steps:
s1: the acquisition frame rate of the camera is improved, and the number of cached images is increased;
s2: placing an object to be detected in a visual field range to collect a picture;
s3: drawing a detection area and two characteristic points of an object to be detected for positioning a product;
s4: the program is divided into two threads, one thread is used for a camera to acquire the dynamic process of the whole board, the acquired images are pressed into a queue, and one thread takes one frame of image from the queue for positioning detection;
s5: setting a flag bit default value as F, cutting a frame of image to obtain a detection area, detecting two characteristic areas in the area to be detected, setting T for the flag bit after the characteristic areas are detected, and detecting a board component;
s6: taking out a frame of image from the team, cutting the area to be detected, detecting the characteristic area, and detecting the characteristic area;
s7: and taking the picture cutting to-be-detected area from the queue, and then searching the characteristic area.
Preferably, the standard for increasing the frame rate of the camera in step S1 is to capture both the inflow and outflow states of the product when the linear velocity of the water flow is different within the field of view of the camera.
Preferably, the characteristic region is detected in step S6, and if the flag is T, the board does not need to be detected, which indicates that the product in the frame of image is a slight movement of the last product; if the characteristic area can not be detected, the flag bit is set to F, and the frame of image captures the junction of the first product and the second product.
Preferably, in step S7, the characteristic region is searched, if the flag is T or F, if T indicates a previous product, if F indicates a new product entering the field of view, and then the board component is detected.
Compared with the prior art, the invention has the beneficial effects that: no inductor is needed; the speed of the pipeline may vary; the pipeline may not be stalled.
Drawings
The accompanying drawings, which are included to provide a further understanding of the invention and are incorporated in and constitute a part of this specification, illustrate embodiments of the invention and together with the description serve to explain the principles of the invention and not to limit the invention. In the drawings:
FIG. 1 is a flow chart of the present invention.
Detailed Description
In order to make the objects, technical solutions and advantages of the embodiments of the present invention more apparent, the technical solutions of the embodiments of the present invention will be described clearly and completely with reference to the accompanying drawings of the embodiments of the present invention, and it is obvious that the described embodiments are some, but not all embodiments of the present invention. All other embodiments, which can be obtained by a person skilled in the art without any inventive step based on the embodiments of the present invention, are within the scope of the present invention. Thus, the following detailed description of the embodiments of the present invention, presented in the figures, is not intended to limit the scope of the invention, as claimed, but is merely representative of selected embodiments of the invention. All other embodiments, which can be obtained by a person skilled in the art without any inventive step based on the embodiments of the present invention, are within the scope of the present invention.
Referring to fig. 1, in an embodiment of the present invention, an algorithm for detecting a non-stop board in a production line includes the following steps:
s1: the acquisition frame rate of the camera is improved, and the number of cached images is increased;
s2: placing an object to be detected in a visual field range to collect a picture;
s3: drawing a detection area and two characteristic points of an object to be detected for positioning a product;
s4: the program is divided into two threads, one thread is used for a camera to acquire the dynamic process of the whole board, the acquired images are pressed into a queue, and one thread takes one frame of image from the queue for positioning detection;
s5: setting a flag bit default value as F, cutting a frame of image to obtain a detection area, detecting two characteristic areas in the area to be detected, setting T for the flag bit after the characteristic areas are detected, and detecting a board component;
s6: taking out a frame of image from the team, cutting the area to be detected, detecting the characteristic area, and if the flag bit is T, not needing to detect a board, indicating that the product of the frame of image is the slight movement of the previous product; if the characteristic area can not be detected, setting the flag bit to be F, and indicating that the frame of image captures the junction of the first product and the second product;
s7: and taking the picture to be cut to be checked out from the queue, then searching a characteristic area, if the flag bit is T or F, if the flag bit is T or the previous product, and if the flag bit is F, the new product enters the visual field, and then detecting the board component.
Preferably, the standard for increasing the frame rate of the camera in step S1 is to capture both the inflow and outflow states of the product when the linear velocity of the water flow is different within the field of view of the camera.
The working principle of the invention is as follows: the acquisition frame rate of the camera is improved, and the number of cached images is increased; placing an object to be detected in a visual field range to collect a picture; drawing a detection area and two characteristic points of an object to be detected for positioning a product; the program is divided into two threads, one thread is used for a camera to acquire the dynamic process of the whole board, the acquired images are pressed into a queue, and one thread takes one frame of image from the queue for positioning detection; setting a flag bit default value as F, cutting a frame of image to obtain a detection area, detecting two characteristic areas in the area to be detected, setting T for the flag bit after the characteristic areas are detected, and detecting a board component; taking out a frame of image from the team, cutting the area to be detected, detecting the characteristic area, and if the flag bit is T, not needing to detect a board, indicating that the product of the frame of image is the slight movement of the previous product; if the characteristic area can not be detected, setting the flag bit to be F, and indicating that the frame of image captures the junction of the first product and the second product; and taking the picture to be cut to be checked out from the queue, then searching a characteristic area, if the flag bit is T or F, if the flag bit is T or the previous product, and if the flag bit is F, the new product enters the visual field, and then detecting the board component.
Finally, it should be noted that: although the present invention has been described in detail with reference to the foregoing embodiments, it will be apparent to those skilled in the art that changes may be made in the embodiments and/or equivalents thereof without departing from the spirit and scope of the invention. Any modification, equivalent replacement, or improvement made within the spirit and principle of the present invention should be included in the protection scope of the present invention.

Claims (4)

1. A detection algorithm for realizing the non-stop of a production line is characterized in that: the method comprises the following steps:
s1: the acquisition frame rate of the camera is improved, and the number of cached images is increased;
s2: placing an object to be detected in a visual field range to collect a picture;
s3: drawing a detection area and two characteristic points of an object to be detected for positioning a product;
s4: the program is divided into two threads, one thread is used for a camera to acquire the dynamic process of the whole board, the acquired images are pressed into a queue, and one thread takes one frame of image from the queue for positioning detection;
s5: setting a flag bit default value as F, cutting a frame of image to obtain a detection area, detecting two characteristic areas in the area to be detected, setting T for the flag bit after the characteristic areas are detected, and detecting a board component;
s6: taking out a frame of image from the team, cutting the area to be detected, detecting the characteristic area, and detecting the characteristic area;
s7: and taking the picture cutting to-be-detected area from the queue, and then searching the characteristic area.
2. The detection algorithm for realizing the pipeline non-stop board according to claim 1, characterized in that: the standard for increasing the frame rate of the camera in step S1 is to capture both the inflow and outflow states of the product when the linear velocity of the water is different in the field of view of the camera.
3. The detection algorithm for realizing the pipeline non-stop board according to claim 1, characterized in that: the characteristic region is detected in the step S6, if the flag bit is T, the board does not need to be detected, and the product in the frame of image is a slight movement of the last product; if the characteristic area can not be detected, the flag bit is set to F, and the frame of image captures the junction of the first product and the second product.
4. The detection algorithm for realizing the pipeline non-stop board according to claim 1, characterized in that: in step S7, a characteristic region is searched, if the flag is T or F, if T indicates a previous product, if F indicates a new product entering the field of view, and then the board component is detected.
CN202110002253.2A 2021-01-04 2021-01-04 Detection algorithm for realizing no-stop board of assembly line Pending CN112837265A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202110002253.2A CN112837265A (en) 2021-01-04 2021-01-04 Detection algorithm for realizing no-stop board of assembly line

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202110002253.2A CN112837265A (en) 2021-01-04 2021-01-04 Detection algorithm for realizing no-stop board of assembly line

Publications (1)

Publication Number Publication Date
CN112837265A true CN112837265A (en) 2021-05-25

Family

ID=75927357

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202110002253.2A Pending CN112837265A (en) 2021-01-04 2021-01-04 Detection algorithm for realizing no-stop board of assembly line

Country Status (1)

Country Link
CN (1) CN112837265A (en)

Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH1053316A (en) * 1996-08-08 1998-02-24 Fanuc Ltd Sliding quantity measuring method of conveyor and tracking action correcting method of robot
JP2011028417A (en) * 2009-07-23 2011-02-10 Nec Corp Marker detection device, system and apparatus for generating and detecting marker, method and program for detecting marker
CN102473312A (en) * 2009-07-23 2012-05-23 日本电气株式会社 Marker generation device, marker generation detection system, marker generation detection device, marker, marker generation method and program therefor
CN104268602A (en) * 2014-10-14 2015-01-07 大连理工大学 Shielded workpiece identifying method and device based on binary system feature matching
CN108855971A (en) * 2018-03-30 2018-11-23 佛山市南海区广工大数控装备协同创新研究院 A kind of sole intelligent sorting method
CN110006345A (en) * 2019-04-22 2019-07-12 东华大学 A kind of automotive wire bundle on-line measuring device and method based on machine vision
CN110631476A (en) * 2018-06-22 2019-12-31 株式会社斯库林集团 Marker position detection device, drawing device, and marker position detection method

Patent Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH1053316A (en) * 1996-08-08 1998-02-24 Fanuc Ltd Sliding quantity measuring method of conveyor and tracking action correcting method of robot
JP2011028417A (en) * 2009-07-23 2011-02-10 Nec Corp Marker detection device, system and apparatus for generating and detecting marker, method and program for detecting marker
CN102473312A (en) * 2009-07-23 2012-05-23 日本电气株式会社 Marker generation device, marker generation detection system, marker generation detection device, marker, marker generation method and program therefor
CN104268602A (en) * 2014-10-14 2015-01-07 大连理工大学 Shielded workpiece identifying method and device based on binary system feature matching
CN108855971A (en) * 2018-03-30 2018-11-23 佛山市南海区广工大数控装备协同创新研究院 A kind of sole intelligent sorting method
CN110631476A (en) * 2018-06-22 2019-12-31 株式会社斯库林集团 Marker position detection device, drawing device, and marker position detection method
CN110006345A (en) * 2019-04-22 2019-07-12 东华大学 A kind of automotive wire bundle on-line measuring device and method based on machine vision

Similar Documents

Publication Publication Date Title
CN100593716C (en) On-line detecting method of machine vision system for printed calico flaw
CN108760747A (en) A kind of 3D printing model surface defect visible detection method
CN104361353A (en) Application of area-of-interest positioning method to instrument monitoring identification
CN107218904A (en) A kind of line structured light vision sensor calibration method based on sawtooth target
CN109785319B (en) System, device and method for detecting code-spraying character based on image processing
CN109724993A (en) Detection method, device and the storage medium of the degree of image recognition apparatus
CN104535004A (en) Image processing-based yarn diameter detection method
CN106706656A (en) Machine vision-based zipper detection device and method
CN102303017A (en) Method for automatically detecting bending of injector steel needles by using machine vision system
CN104766310B (en) light source detection system and detection method
CN108156359A (en) Intelligent industrial camera
CN103544524A (en) Bar reviewing-counting method and device
CN109881356B (en) Hosiery machine knitting needle online detection device and method based on SVM image classification
CN105023018A (en) Jet code detection method and system
CN105184792A (en) Circular saw web wear extent online measuring method
CN112837265A (en) Detection algorithm for realizing no-stop board of assembly line
CN105391998B (en) Automatic detection method and apparatus for resolution of low-light night vision device
CN110987959A (en) Online burr detection method
CN113189005B (en) Portable surface defect integrated detection device and surface defect automatic detection method
CN108198226B (en) Ceramic color identification method, electronic equipment, storage medium and device
CN106713883B (en) A kind of intelligent rotary type projector and its auto-correction method
CN106874829B (en) The method for improving the reliability of monitoring system
CN113674214A (en) Straightness detection method and device based on binocular camera splicing
Dar et al. Automated pilling detection and fuzzy classification of textile fabrics
CN102305603A (en) Method for automatically detecting inclination of steel needle of injector by machine vision system

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