CN110844518A - Conveying belt tearing detection method based on FPGA - Google Patents
Conveying belt tearing detection method based on FPGA Download PDFInfo
- Publication number
- CN110844518A CN110844518A CN201911317131.1A CN201911317131A CN110844518A CN 110844518 A CN110844518 A CN 110844518A CN 201911317131 A CN201911317131 A CN 201911317131A CN 110844518 A CN110844518 A CN 110844518A
- Authority
- CN
- China
- Prior art keywords
- image
- frame
- value
- tearing
- pixel
- 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.)
- Withdrawn
Links
Images
Classifications
-
- B—PERFORMING OPERATIONS; TRANSPORTING
- B65—CONVEYING; PACKING; STORING; HANDLING THIN OR FILAMENTARY MATERIAL
- B65G—TRANSPORT OR STORAGE DEVICES, e.g. CONVEYORS FOR LOADING OR TIPPING, SHOP CONVEYOR SYSTEMS OR PNEUMATIC TUBE CONVEYORS
- B65G43/00—Control devices, e.g. for safety, warning or fault-correcting
- B65G43/02—Control devices, e.g. for safety, warning or fault-correcting detecting dangerous physical condition of load carriers, e.g. for interrupting the drive in the event of overheating
-
- B—PERFORMING OPERATIONS; TRANSPORTING
- B65—CONVEYING; PACKING; STORING; HANDLING THIN OR FILAMENTARY MATERIAL
- B65G—TRANSPORT OR STORAGE DEVICES, e.g. CONVEYORS FOR LOADING OR TIPPING, SHOP CONVEYOR SYSTEMS OR PNEUMATIC TUBE CONVEYORS
- B65G2203/00—Indexing code relating to control or detection of the articles or the load carriers during conveying
- B65G2203/02—Control or detection
- B65G2203/0266—Control or detection relating to the load carrier(s)
- B65G2203/0275—Damage on the load carrier
-
- B—PERFORMING OPERATIONS; TRANSPORTING
- B65—CONVEYING; PACKING; STORING; HANDLING THIN OR FILAMENTARY MATERIAL
- B65G—TRANSPORT OR STORAGE DEVICES, e.g. CONVEYORS FOR LOADING OR TIPPING, SHOP CONVEYOR SYSTEMS OR PNEUMATIC TUBE CONVEYORS
- B65G2203/00—Indexing code relating to control or detection of the articles or the load carriers during conveying
- B65G2203/04—Detection means
- B65G2203/042—Sensors
Landscapes
- Image Processing (AREA)
Abstract
The invention discloses a conveying belt tearing detection method based on an FPGA (field programmable gate array), which comprises the following steps of: recording a real-time video when the conveyer belt runs, preprocessing images frame by frame in the video, sequentially sending each frame of image into a frame cache module, simultaneously extracting a standard image and an image to be detected from the frame cache module to be used as a background difference algorithm, and comparing a return value of the algorithm with a threshold value to realize the real-time detection of the tearing of the conveyer belt. The method realizes real-time detection of 'tearing' damage through the OV5640 image sensor and the FPGA chip, avoids the use of a high-performance computer and a large number of sensors, greatly saves cost, effectively improves identification precision by using the FPGA to perform a background difference algorithm, and reduces the error rate of identification.
Description
Technical Field
The invention relates to a detection method for detecting the tearing of a conveyer belt by utilizing a background difference defect detection algorithm based on an FPGA (field programmable gate array).
Background
The belt conveyer is the main equipment for bulk material transportation and is widely used in the industrial fields of mines, chemical industry, grain production and the like. The conveying belt on the belt conveyor is inevitably subjected to tearing damage in the running process. If the damage is treated in time, many safety accidents can be avoided, but if the damage is not treated properly, the normal use of the conveying belt is seriously influenced, and even a series of safety accidents are caused. Some existing methods mainly utilize the computing power of a computer to compare a detection picture of a conveying belt with an original damage picture in a system, and not only a computer with strong computing power is needed, but also a large number of sensors are needed to be installed, so that the installation is complicated, the cost is high, and the effect is not ideal.
Disclosure of Invention
Aiming at the problems, the invention aims to provide a detection method for the 'tearing' damage of a conveyer belt based on an FPGA chip. When avoiding installing a large amount of sensor check out test set, realize the real-time supervision to the conveyer belt damage, reduced the running cost, can effectively avoid the incident moreover.
In order to achieve the purpose, the technical scheme adopted by the invention is as follows:
the conveying belt tearing detection method based on the FPGA is characterized by comprising the following steps:
(1) a camera is arranged above the conveying belt to record images on the conveying belt uninterruptedly for a long time, brightness of the obtained images is judged, and output voltage of an LED light supplement lamp is adjusted, so that the recorded videos in different environments can be kept clear;
(2) through the programming of a Verilog HDL hardware description language, the logic circuit of the FPGA carries out real-time preprocessing on the received image data;
(2a) taking pictures from the recorded video of the conveying belt frame by frame;
(2b) performing gray-scale transformation on the obtained picture by using f (i, j) ═ 0.2989R (i, j) +0.5870G (i, j) +0.1140B (i, j), wherein f (i, j) represents a gray-scale value, R (i, j) represents a red component value, G (i, j) represents a green component value, and B (i, j) represents a blue component value;
(2c) performing median filtering on the image subjected to gray level transformation by using g (i, j) ═ mean { f (i-k, j-l) }, (k, l) ∈ H, wherein (i, j) represents a position coordinate of a certain pixel of the original image, g (i, j) represents a pixel value after gray level transformation on the position of the original image (i, j), f (i-k, j-l), (j, l) ∈ H represents each pixel value of a filtering template window H on the pixel of the original image (i, j), and mean { } represents a middle value of all pixel values in the selected { };
(2d) using | G | ═ G for median filtered picturesx|+|Gy|, Performing edge detection, wherein A represents the original image subjected to median filtering, G represents the image subjected to edge detection, and GxRepresenting the gray value of the image subjected to horizontal edge detection, GyRepresenting the gray value of the image detected by the vertical edge;
(2e) using P-P for picture subjected to edge detection11&P12&P13&P21&P22&P23&P31&P32&P33Performing corrosion calculation, wherein P is the central pixel point of the corrosion calculation, P11-P33Corrosion calculation of 9 pixels in a central pixel 3 x 3 pixel matrix;
(3) connecting the FPGA chip with a DDR3 SDRAM, and using the DDR3 SDRAM chip as a frame buffer module for storing image data to be detected and standard image data;
(4) storing the standard images of the conveying belt recorded in advance under a good illumination condition into a frame cache module before starting detection;
(5) simultaneously extracting a standard image and an image to be detected from a frame buffer module, taking the standard image as a background frame, taking the image to be detected as a current image frame, and using the two imagesPerforming a background difference algorithm, wherein XijBeing pixel points of the current image frame, YijThe theta is a return value obtained by a background difference algorithm;
(6) judging whether the return value theta obtained after subtraction is larger than a tearing threshold value, if so, judging that tearing occurs, and if not, waiting for the next frame of image to be detected and the standard image to carry out differential processing;
(7) if the volume is judged to be 'tearing', comparing theta with delta, marking by using a marking machine if delta is larger than theta, and if delta is smaller than or equal to theta, emergency stopping and giving an alarm, wherein delta 'tearing' is a volume threshold;
(8) and transmitting the picture judged to be torn to a display through the HDMI.
The invention has the beneficial effects that:
the conveying belt of the belt conveyor is often torn and damaged due to sharp appearance of conveyed articles, uneven weight distribution and the like in the using process. For such damage, if the damage cannot be timely found and repaired and replaced, the damage will cause great harm to the production safety. The method can monitor and discover the tearing damage in real time and provide timely and effective information for subsequent processing. The invention uses video information to detect and identify, the required hardware has small volume and convenient installation, and only one OV5640 image sensor and one FPGA core board are required. The traditional image detection equipment usually uses a high-performance computer to perform real-time data processing, and the FPGA is used as hardware equipment with a reconfigurable structure, so that the price is low, and the problem that the real-time performance is influenced because the data cannot be processed in time due to insufficient computing capacity of a chip is effectively solved because the FPGA is realized through a hardware circuit. The invention not only can conveniently detect the damage by using the background difference algorithm, but also can easily extend the defect detection under more conditions, and can realize the extension only by selecting a proper standard template image as a background frame according to the detected object. And the FPGA has lower cost, convenient installation and small volume, and can be put into production after being electrified after being successfully installed, thereby greatly improving the detection efficiency and saving the cost.
Drawings
FIG. 1 is a block diagram of the overall process of the method of the present invention.
FIG. 2 is a diagram of the hardware architecture of the system of the method of the present invention.
FIG. 3 is an algorithmic flow chart of the method of the present invention.
FIG. 4 is a flow chart of a background difference algorithm of the method of the present invention.
Detailed Description
As shown in fig. 1, the process of the conveying belt tearing detection method based on the FPGA is as follows:
(1) an OV5640 is arranged above the conveying belt to carry out long-term uninterrupted video recording on the conveying belt, and then the video is transmitted to an image acquisition module through an IIC bus;
(2) through the programming of a Verilog HDL hardware description language, the logic circuit of the FPGA carries out real-time preprocessing on the received image data;
(2a) taking pictures from the recorded video of the conveying belt frame by frame;
(2b) performing gray-scale transformation on the obtained picture by using f (i, j) ═ 0.2989R (i, j) +0.5870G (i, j) +0.1140B (i, j), wherein f (i, j) represents a gray-scale value, R (i, j) represents a red component value, G (i, j) represents a green component value, and B (i, j) represents a blue component value;
(2c) performing median filtering on the image subjected to gray level transformation by using g (i, j) ═ mean { f (i-k, j-l) }, (k, l) ∈ H, wherein (i, j) represents a position coordinate of a certain pixel of the original image, g (i, j) represents a pixel value after gray level transformation on the position of the original image (i, j), f (i-k, j-l), (j, l) ∈ H represents each pixel value of a filtering template window H on the pixel of the original image (i, j), and mean { } represents a middle value of all pixel values in the selected { };
(2d) using | G | ═ G for median filtered picturesx|+|Gy|, Performing edge detection, wherein A represents the original image subjected to median filtering, G represents the image subjected to edge detection, and GxRepresenting the gray value of the image subjected to horizontal edge detection, GyRepresenting the gray value of the image detected by the vertical edge;
(2e) using P-P for picture subjected to edge detection11&P12&P13&P21&P22&P23&P31&P32&P33Performing corrosion calculation, wherein P is the central pixel point of the corrosion calculation, P11-P33Is calculation of corrosion9 pixels in a central pixel 3 × 3 pixel matrix;
(3) storing the preprocessed image data and the pre-recorded standard images of the conveyor belt into a frame cache module, wherein an FPGA chip is connected with a DDR3 SDRAM, and a DDR3 SDRAM chip is used as the frame cache module;
(4) simultaneously extracting a standard image and an image to be detected from a frame buffer module, taking the standard image as a background frame, taking the image to be detected as a current image frame, and using the two imagesPerforming a background difference algorithm, wherein XijBeing pixel points of the current image frame, YijThe theta is a return value obtained by a background difference algorithm;
(5) judging whether the return value theta obtained after subtraction is larger than a tearing threshold value, if so, judging that tearing occurs, and if not, waiting for the next frame of image to be detected and the standard image to carry out differential processing;
(6) transmitting the picture which is judged to be torn to a display through an HDMI interface, comparing theta with delta, judging the size of the torn volume, marking by using a marking machine if delta is larger than theta, and emergently stopping and giving an alarm if delta is smaller than or equal to theta, wherein delta is used for tearing the volume threshold;
as shown in fig. 2, the system hardware structure of the method of the present invention is:
(1) judging the brightness of the acquired image, and adjusting the voltage of an LED light supplement lamp through an FPGA (field programmable gate array) to ensure that videos in different environments are sufficiently clear;
(2) the FPGA chip is connected with the OV5640 image sensor, and image information is transmitted to the FPGA chip through an IIC bus;
(3) connecting the FPGA chip with a DDR3 SDRAM, and using the DDR3 SDRAM chip as a frame buffer module for storing image data to be detected and standard image data;
(4) if the volume is judged to be 'tearing', comparing theta with delta, if delta is larger than theta, marking by using a marking machine, if delta is smaller than or equal to theta, carrying out emergency stop, and giving an alarm, wherein delta 'tearing' is a volume threshold, and theta is a background difference algorithm return value;
(5) the FPGA chip is connected with a display through an HDMI interface module and is used for displaying the torn picture;
as shown in fig. 3, the algorithm flow of the method of the present invention is:
(1) first using the acquired conveyor belt image
Carrying out gray scale transformation on the f (i, j) ═ 0.2989R (i, j) +0.5870G (i, j) +0.1140B (i, j), converting the collected original conveying belt RGB image into a gray scale image, and reducing the data processing amount, wherein f (i, j) represents a gray scale value, R (i, j) represents a red component value, G (i, j) represents a green component value, and B (i, j) represents a blue component value;
(2) carrying out median filtering on the conveyer belt gray level image by using g (i, j) ═ mean { f (i-k, j-l) }, (k, l) ∈ H, and eliminating noise interference in the image, wherein (i, j) represents a position coordinate of a certain pixel of the original picture, g (i, j) represents a pixel value after the position gray level of the original picture (i, j) is transformed, f (i-k, j-l), (j, l) ∈ H represents each pixel value of a filtering template window H on the pixel of the original picture (i, j), and mean { } represents a middle value of all pixel values in the selected { };
(3) then using G for the belt grayscale imagex|+|Gy|, Performing edge detection to obtain a binary image of the conveyor belt, wherein A represents an original image subjected to median filtering, G represents an image subjected to edge detection, and G representsxRepresenting the gray value of the image subjected to horizontal edge detection, GyRepresenting the gray value of the image detected by the vertical edge;
(4) then using P ═ P for the obtained binary image11&P12&P13&P21&P22&P23&P31&P32&P33Carrying out corrosion treatment to eliminate irrelevant detail parts and avoid the influence of slight difference on a conveyer belt on a detection result, wherein P is a central pixel point of corrosion calculation and P is a central pixel point of corrosion calculation11-P33Corrosion calculation of 9 pixels in a central pixel 3 x 3 pixel matrix;
(5) finally, usePerforming background difference algorithm, processing the binary image to be detected and the standard binary image to obtain the final algorithm return value, wherein XijBeing pixel points of the current image frame, YijThe theta is a return value obtained by a background difference algorithm;
as shown in fig. 4, the calculation process of the background subtraction method used in the method of the present invention is as follows:
(1) respectively extracting pixel points of the standard template and pixel points of the image to be detected from the corresponding address area of the DDR3 SDRAM;
(2) taking the standard image as a background frame, taking the image to be detected as a current image frame, and using the two imagesPerforming background difference algorithm to compare each pixel point one by one, wherein XijBeing pixel points of the current image frame, YijThe theta is a return value obtained by a background difference algorithm;
(3) and judging whether the return value theta obtained after subtraction is larger than a tearing threshold value, if so, judging that tearing occurs, and if not, waiting for the next frame of image to be detected and the standard image to carry out differential processing.
Claims (1)
1. The conveying belt tearing detection method based on the FPGA is characterized by comprising the following steps:
(1) a camera is arranged above the conveying belt to record images on the conveying belt uninterruptedly for a long time, brightness of the obtained images is judged, and output voltage of an LED light supplement lamp is adjusted, so that the recorded videos in different environments can be kept clear;
(2) through the programming of a Verilog HDL hardware description language, the logic circuit of the FPGA carries out real-time preprocessing on the received image data;
(2a) taking pictures from the recorded video of the conveying belt frame by frame;
(2b) performing gray-scale transformation on the obtained picture by using f (i, j) ═ 0.2989R (i, j) +0.5870G (i, j) +0.1140B (i, j), wherein f (i, j) represents a gray-scale value, R (i, j) represents a red component value, G (i, j) represents a green component value, and B (i, j) represents a blue component value;
(2c) performing median filtering on the image subjected to gray level transformation by using g (i, j) ═ mean { f (i-k, j-l) }, (k, l) ∈ H, wherein (i, j) represents a position coordinate of a certain pixel of the original image, g (i, j) represents a pixel value after gray level transformation on the position of the original image (i, j), f (i-k, j-l), (j, l) ∈ H represents each pixel value of a filtering template window H on the pixel of the original image (i, j), and mean { } represents a middle value of all pixel values in the selected { };
(2d) using | G | ═ G for median filtered picturesx|+|Gy|, Performing edge detection, wherein A represents the original image subjected to median filtering, G represents the image subjected to edge detection, and GxRepresenting the gray value of the image subjected to horizontal edge detection, GyRepresenting the gray value of the image detected by the vertical edge;
(2e) using P-P for picture subjected to edge detection11&P12&P13&P21&P22&P23&P31&P32&P33Performing corrosion calculation, wherein P is the central pixel point of the corrosion calculation, P11-P33Corrosion calculation of 9 pixels in a central pixel 3 x 3 pixel matrix;
(3) connecting the FPGA chip with a DDR3 SDRAM, and using the DDR3 SDRAM chip as a frame buffer module for storing image data to be detected and standard image data;
(4) storing the standard images of the conveying belt recorded in advance under a good illumination condition into a frame cache module before starting detection;
(5) simultaneously extracting a standard image and an image to be detected from a frame buffer module, taking the standard image as a background frame, taking the image to be detected as a current image frame, and using the two imagesPerforming a background difference algorithm, wherein XijBeing pixel points of the current image frame, YijThe theta is a return value obtained by a background difference algorithm;
(6) judging whether the return value theta obtained after subtraction is larger than a tearing threshold value, if so, judging that tearing occurs, and if not, waiting for the next frame of image to be detected and the standard image to carry out differential processing;
(7) if the volume is judged to be 'tearing', comparing theta with delta, marking by using a marking machine if delta is larger than theta, and if delta is smaller than or equal to theta, emergency stopping and giving an alarm, wherein delta is 'tearing' the volume threshold;
(8) and transmitting the picture judged to be torn to a display through the HDMI.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201911317131.1A CN110844518A (en) | 2019-12-19 | 2019-12-19 | Conveying belt tearing detection method based on FPGA |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201911317131.1A CN110844518A (en) | 2019-12-19 | 2019-12-19 | Conveying belt tearing detection method based on FPGA |
Publications (1)
Publication Number | Publication Date |
---|---|
CN110844518A true CN110844518A (en) | 2020-02-28 |
Family
ID=69609912
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201911317131.1A Withdrawn CN110844518A (en) | 2019-12-19 | 2019-12-19 | Conveying belt tearing detection method based on FPGA |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN110844518A (en) |
Cited By (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN111754466A (en) * | 2020-06-08 | 2020-10-09 | 西安电子科技大学 | Intelligent detection method for belt damage condition of conveyor |
-
2019
- 2019-12-19 CN CN201911317131.1A patent/CN110844518A/en not_active Withdrawn
Cited By (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN111754466A (en) * | 2020-06-08 | 2020-10-09 | 西安电子科技大学 | Intelligent detection method for belt damage condition of conveyor |
CN111754466B (en) * | 2020-06-08 | 2023-07-28 | 西安电子科技大学 | Intelligent detection method for damage condition of conveyor belt |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN109879005B (en) | Belt tearing detection device and method | |
CN109598715B (en) | Material granularity online detection method based on machine vision | |
CN109712117B (en) | Lightweight TFT-LCD module scratch detection method based on convolutional neural network | |
CN111080620A (en) | Road disease detection method based on deep learning | |
CN109727233B (en) | LCD defect detection method | |
CN113221889B (en) | Chip character anti-interference recognition method and device | |
CN104118609A (en) | Labeling quality detecting method and device | |
CN110570422A (en) | Capsule defect visual detection method based on matrix analysis | |
CN112893159A (en) | Coal gangue sorting method based on image recognition | |
CN114820626A (en) | Intelligent detection method for automobile front part configuration | |
CN102879404A (en) | System for automatically detecting medical capsule defects in industrial structure scene | |
CN116542908A (en) | Wafer defect detection method and device, electronic equipment and storage medium | |
CN110844518A (en) | Conveying belt tearing detection method based on FPGA | |
CN114359155A (en) | Film laminating method and system | |
CN111968082A (en) | Product packaging defect detection and identification method based on machine vision | |
CN116500052A (en) | Edible oil impurity visual detection system and application method thereof | |
CN115731195A (en) | Defect detection method, device, equipment and system | |
CN112712055B (en) | Double-path deformable CNN coal mine gateway belt conveying foreign matter monitoring method | |
CN203838073U (en) | Bottled liquid impurity detection system | |
CN204463227U (en) | A kind of image filtering processor accelerator | |
CN117706815B (en) | Method for detecting riding on adhesive tape, electronic equipment and storage medium | |
Yu et al. | LED instrument screen character recognition detection based on machine vision | |
CN217363146U (en) | Object recognition system and device | |
CN116128740B (en) | Intelligent image processing method and system for liquid crystal display screen | |
CN202903688U (en) | Hardware surface defect detection device |
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 | ||
WW01 | Invention patent application withdrawn after publication | ||
WW01 | Invention patent application withdrawn after publication |
Application publication date: 20200228 |