CN110455193A - Paper roll breadth and diameter measuring method based on MATLAB - Google Patents

Paper roll breadth and diameter measuring method based on MATLAB Download PDF

Info

Publication number
CN110455193A
CN110455193A CN201910714640.1A CN201910714640A CN110455193A CN 110455193 A CN110455193 A CN 110455193A CN 201910714640 A CN201910714640 A CN 201910714640A CN 110455193 A CN110455193 A CN 110455193A
Authority
CN
China
Prior art keywords
paper roll
matlab
breadth
optoelectronic switch
digital camera
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
CN201910714640.1A
Other languages
Chinese (zh)
Inventor
张佰涵
周友幸
胡超
李新义
龙仲智
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Chaint Corp
Original Assignee
Changsha Chaint Machinery 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 Changsha Chaint Machinery Co Ltd filed Critical Changsha Chaint Machinery Co Ltd
Priority to CN201910714640.1A priority Critical patent/CN110455193A/en
Publication of CN110455193A publication Critical patent/CN110455193A/en
Pending legal-status Critical Current

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/08Measuring arrangements characterised by the use of optical techniques for measuring diameters

Landscapes

  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Length Measuring Devices By Optical Means (AREA)

Abstract

Paper roll breadth and diameter measuring method based on MATLAB, including digital camera, optoelectronic switch, same color label paper, MATLAB software, industrial control computer, shifting carrying platform, programmable controller, programmable controller is connected by cable with the industrial control computer on ground, digital camera is connected with industrial control computer, and optoelectronic switch is connected by cable with programmable controller.Optoelectronic switch is mounted on the ideal position that paper roll needs to stop, running track of the detection light perpendicular to shifting carrying platform by Pillar stand using mirror reflection.The present invention is based on the shifting carrying platform width measuring systems of digital camera and MATLAB can not only accurately measure paper roll breadth, and system is reliable and stable, positioning accuracy is high, at low cost.

Description

Paper roll breadth and diameter measuring method based on MATLAB
Technical field
The invention belongs to conveying equipment automation fields, and in particular to cargo is on straight line shifting carrying platform in transportation system The measurement method of breadth detection.
Background technique
Currently, measuring paper roll breadth on shifting carrying platform often there are two types of mode, first way is with laser ranging Instrument, by adjusting the position of good rangefinder, infrared laser irradiates paper roll, when in paper roll moving process meeting there are two when end face away from From, then by geometry calculating, obtain paper roll breadth.This method precision is higher, fast speed, but expensive, and setting is difficult; The second way is to place optoelectronic switch on load transfer station with optoelectronic switch, start timing when having detected that paper roll passes through, When paper roll is detached from optoelectronic switch irradiation, stop timing.The breadth of paper roll is finally calculated according to the speed of shifting carrying platform.It is this Method is succinct.It is cheap, but suffer from that external influence is bigger, for example whether the speed of shifting carrying platform is constant, photoelectricity Switch whether the interference etc. by other objects.And complicated logical function programming is needed, response is also extremely difficult in real time Property.It is only applicable to the occasion not high to required precision in this way.
The mode that reel diameter is measured on transplanting platform mainly places laser range finder above paper roll, when paper roll does not have Have by when, the distance of laser range finder is the distance to chain scraper conveyor, and when paper roll passes through, the distance of measurement is Laser Measuring Distance meter to paper roll distance, the two subtract each other be exactly paper roll diameter.
Summary of the invention
The present invention is intended to provide a kind of method that the paper roll based on MATLAB surveys breadth and diameter, the method precision is high, if It sets simply, cheap, real-time is good, can be suitable for rectilinear orbit, the measurement suitable for regular shape cargo.
The purpose of the present invention is realized through the following technical scheme:
Paper roll breadth and diameter measuring method based on MATLAB, including digital camera, optoelectronic switch, red-ticket paper, MATLAB software, industrial control computer, shifting carrying platform, programmable controller, programmable controller pass through on cable and ground Industrial control computer be connected, digital camera is connected with industrial control computer, optoelectronic switch pass through cable and programmable control Device processed is connected, and optoelectronic switch makes paper roll be parked in fixed position by detection, and feeds back to programmable controller trigger signal, can compile The signal that range controller PLC receives optoelectronic switch is sent to industrial personal computer reads paper roll breadth and diameter data signal.Before this, Industrial control computer is analyzed and processed the photo that digital camera sends over by MATLAB software, calculates paper roll width Wide and diameter information, waits programmable controller to read data.It is characterized by: digital camera is mounted on the upper of whole device Side is used to acquire the image of equipment, and then analytical calculation goes out the breadth of paper roll;Optoelectronic switch passes through column using mirror reflection Bracket is mounted on the ideal position that paper roll needs to stop, running track of the detection light perpendicular to shifting carrying platform.It is characterized by: The top that digital camera is mounted on integral device is used to acquire equipment image;Optoelectronic switch is mounted on paper roll by Pillar stand The ideal position for needing to stop, running track of the detection light perpendicular to shifting carrying platform.
Paper roll breadth and diameter measuring method based on MATLAB, comprising the following steps:
(1) digital camera is acquired field device image, and is sent to industrial control computer in real time;
(2) different according to the gray value of two labels in collected picture, calculate the distance X of two labels2
(3) it is X that paper roll stop position, that is, mirror reflection optoelectronic switch to label A distance, which is fixation,1, paper roll breadth=X2-X1
(4) MATLAB calculates paper roll area shared in picture according to the pixel ratio of paper roll;
(5) divided by the breadth of paper roll be exactly by the area calculated paper roll diameter.
Beneficial effects of the present invention: it by industrial control computer in conjunction with sensor, is calculated using the method for image procossing The wide data with diameter of paper delivery winding, are then sent to programmable controller, are all carried out by software due to most of, so real When property is more preferable, cheap;Complete equipment no longer needs manually to participate in, and reaction sensitivity was at 1 second or so, and entire adjustment process is not It can be more than 5 seconds.
Detailed description of the invention
Fig. 1 is schematic structural view of the invention.
Fig. 2 is structure of the invention mechanical part left view.
Fig. 3 is structure of the invention mechanical part top view.
In figure: 1- label A, 2- label B, 3- digital camera, 4- shifting carrying platform, 5- mirror reflection optoelectronic switch, 6- can be compiled Range controller, 7- industrial control computer, 8- paper roll, X1Distance of the optoelectronic switch to label A, X2Label B to label A away from From.
Specific embodiment
The present invention will be further described below with reference to the drawings.
As shown in Figure 1, paper roll breadth and diameter measuring method based on MATLAB, including 1- label A, 2- label B, 3- number Code camera, 4- shifting carrying platform, 5- mirror reflection optoelectronic switch, 6- programmable controller, 7- industrial control computer, 8- paper roll. 7- industrial control computer on 6- programmable controller, 3- digital camera and ground communicates, and 5- mirror reflection optoelectronic switch is logical Cable is crossed to be connected with 6- programmable controller.3- digital camera is mounted on above 8- paper roll, and 2- optoelectronic switch is mounted on desired paper The position stopped being rolled up, and detecting light will be perpendicular to the running track of 4- shifting carrying platform.Due to 5- mirror reflection optoelectronic switch It can be fixed on 4- shifting carrying platform, thus it is not restricted to shifting carrying platform, it is conveyed including chain scraper conveyor, roller Machine, chain making machine etc..3- digital camera passes through the 7- industrial control computer phase on cable and ground with 6- programmable controller Even, the 5- mirror reflection optoelectronic switch is connected by cable with 6- programmable controller.
3- digital camera is mainly acquired image after paper roll is parked in designated position, and acquired image is sent out Give 7- industrial control computer;5- mirror reflection optoelectronic switch is used to that paper roll is made to be parked in ideal position, anti-by detection paper roll It feeds 6- programmable controller, 6- programmable controller issues reading order to 7- industrial control computer, reads paper roll breadth Data;7- industrial control computer executes specific program (see herein below) to collected by the MATLAB software of installation Image is handled, and the breadth of paper roll is calculated, and is passed data to and can be compiled after waiting 6- programmable controller to issue read command Range controller;5- mirror reflection optoelectronic switch is mounted on the ideal position that paper roll needs to stop by bracket, and detection light is vertical In the running track of 4- shifting carrying platform.
Paper roll breadth and diameter measuring method based on MATLAB, comprising the following steps:
(1) digital camera is acquired field device image, and is sent to industrial control computer in real time;
(2) different according to the gray value of two labels in collected picture, calculate the distance X of two labels2
(3) it is X that paper roll stop position, that is, mirror reflection optoelectronic switch to label A distance, which is fixation,1, paper roll breadth=X2-X1
(4) MATLAB calculates paper roll area shared in picture according to the pixel ratio of paper roll;
(5) divided by the breadth of paper roll be exactly by the area calculated paper roll diameter.
The picture color of specific position is different from other positions in the collected picture of step (2) digital camera, meeting in this way Facilitate MATLAB to image procossing.Step (3) is the key that entirely to design, and the software section entirely designed passes through setting Good logical program, is just able to achieve paper roll precise calibration.
In step (4), there are mapping relations with actual paper roll for the breadth of paper roll and diameter in picture, so needing to carry out Conversion.Specific conversion method is as follows: firstly, should all shoot several groups of test pictures before formal investment, find digital camera Optimum position.Then, the actual breadth of paper roll and diameter are measured, measures paper roll in picture further according to industrial personal computer MATLAB Breadth and diameter, in the case where digital camera position is constant, there are mapping relations with actual numerical value for the numerical value in picture. Finally, calculate mapping ratio, this numerical value be it is fixed, being multiplied with the numerical value in picture is exactly the actual size of paper roll.
The MATLAB program of whole work process:
Photograph=imread(‘TP.png');% reads collected picture
Start.Abs=constant;% is manually entered label A abscissa
Start.Ord=constant;% is manually entered the ordinate of label A
CropRGB=RGB(Start.Abs:200, Start.Ord:500 :);% segmented image region
[X,Y]=SIZE(H) ;% determines the position (only first of optoelectronic switch Secondary use)
For i=1:X;
If H((X+1-i),Y)==Z;%Z is that light prescribes gray value
U=X+1-i;
V=Y;
Break;
End;
[M,N]=SIZE(I);% determines the position of label B
For j=1:M;
If I ((M+1-j), N)==label B point gray value
E=M+1-j;
F=N;
Break;
End;
X3=U-E;%X3 is paper roll breadth
Photograph=imread(‘TP.png');% reads collected picture
I=rgb2gray(Photograph) ;% is converted into bianry image
[m,n]=size(I);The length and width of % reading pixel
count=m*n;% calculates the number of pixel
White_count=length (find (I==0)) % filters out white area number of pixels
Ratio shared by White_precent=(White_count)/(count) % white pixel
Area=(White_precent) * A*B %A is photo area (known)
%B is the mapping of photo area and real area
Diameter=(Area)/(X3) % calculates reel diameter.
The present invention can accurately measure paper roll breadth and diameter, and due to cheap, strong real-time can be applied on various occasions, By experimental comparison repeatedly, the method for paper roll survey breadth of the set based on MATLAB is after calibration within the reachable ± 20mm of measurement accuracy.

Claims (2)

1. paper roll breadth and diameter measuring method based on MATLAB, including digital camera, optoelectronic switch, same color label Paper, MATLAB software, industrial control computer, shifting carrying platform, programmable controller, programmable controller pass through cable and ground On industrial control computer be connected, digital camera is connected with industrial control computer, optoelectronic switch by cable and may be programmed Controller is connected, and optoelectronic switch makes paper roll be parked in fixed position by detection, and feeds back to programmable controller trigger signal, can The signal that programmable controller PLC receives optoelectronic switch is sent to industrial personal computer reads paper roll breadth and diameter data signal;Herein it Before, industrial control computer is analyzed and processed the photo that digital camera sends over by MATLAB software, calculates paper delivery Winding is wide and diameter information, waiting programmable controller read data, it is characterised in that: digital camera is mounted on whole device Top is used to acquire the image of equipment, and then goes out the breadth and diameter of paper roll by MATLAB analytical calculation;Optoelectronic switch uses Mirror reflection is mounted on the ideal position that paper roll needs to stop by Pillar stand, and detection light is parallel to the fortune of shifting carrying platform Row track.
2. paper roll breadth and diameter measuring method based on MATLAB, it is characterised in that the following steps are included:
(1) digital camera is acquired field device image, and is sent to industrial control computer in real time;
(2) different according to the gray value of two labels in collected picture, calculate the distance X of two labels2
(3) it is X1, paper roll breadth=X that paper roll stop position, that is, mirror reflection optoelectronic switch to label A distance, which is fixation,2-X1
(4) MATLAB calculates paper roll area shared in picture according to the pixel ratio of paper roll;
(5) divided by the breadth of paper roll be exactly by the area calculated paper roll diameter.
CN201910714640.1A 2019-08-04 2019-08-04 Paper roll breadth and diameter measuring method based on MATLAB Pending CN110455193A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201910714640.1A CN110455193A (en) 2019-08-04 2019-08-04 Paper roll breadth and diameter measuring method based on MATLAB

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201910714640.1A CN110455193A (en) 2019-08-04 2019-08-04 Paper roll breadth and diameter measuring method based on MATLAB

Publications (1)

Publication Number Publication Date
CN110455193A true CN110455193A (en) 2019-11-15

Family

ID=68484816

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201910714640.1A Pending CN110455193A (en) 2019-08-04 2019-08-04 Paper roll breadth and diameter measuring method based on MATLAB

Country Status (1)

Country Link
CN (1) CN110455193A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111156947A (en) * 2020-02-07 2020-05-15 长沙长泰智能装备有限公司 Paper roll diameter measuring device and measuring method

Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US4507564A (en) * 1980-09-27 1985-03-26 Tokyo Shibaura Denki Kabushiki Kaisha Surface defect detecting apparatus
JPH11183155A (en) * 1997-12-24 1999-07-09 Meisan Kk Method and apparatus with improved measurement accuracy for measuring sheet thickness
CN103424075A (en) * 2013-08-03 2013-12-04 中烟摩迪(江门)纸业有限公司 Paper defect positioning method
CN106152978A (en) * 2016-06-20 2016-11-23 陕西师范大学 A kind of untouchable area measurement method based on graphical analysis
CN208505241U (en) * 2018-05-28 2019-02-15 安钢自动化软件股份有限公司 A kind of measuring mechanism of steel rolling board width
CN109775026A (en) * 2017-11-14 2019-05-21 上海梅山钢铁股份有限公司 Steel roll package station and control method
CN109775261A (en) * 2019-01-30 2019-05-21 长沙长泰智能装备有限公司 Paper roll transfinites automatic correction system and control method

Patent Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US4507564A (en) * 1980-09-27 1985-03-26 Tokyo Shibaura Denki Kabushiki Kaisha Surface defect detecting apparatus
JPH11183155A (en) * 1997-12-24 1999-07-09 Meisan Kk Method and apparatus with improved measurement accuracy for measuring sheet thickness
CN103424075A (en) * 2013-08-03 2013-12-04 中烟摩迪(江门)纸业有限公司 Paper defect positioning method
CN106152978A (en) * 2016-06-20 2016-11-23 陕西师范大学 A kind of untouchable area measurement method based on graphical analysis
CN109775026A (en) * 2017-11-14 2019-05-21 上海梅山钢铁股份有限公司 Steel roll package station and control method
CN208505241U (en) * 2018-05-28 2019-02-15 安钢自动化软件股份有限公司 A kind of measuring mechanism of steel rolling board width
CN109775261A (en) * 2019-01-30 2019-05-21 长沙长泰智能装备有限公司 Paper roll transfinites automatic correction system and control method

Non-Patent Citations (2)

* Cited by examiner, † Cited by third party
Title
古帅: "基于机器视觉的纸张缺陷检测系统的研究", 《中国优秀硕士学位论文全文数据库 信息科技辑》 *
殷燕屏 等: "基于阈值分割及分形特征的纸病图像识别算法研究", 《中国造纸学报》 *

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111156947A (en) * 2020-02-07 2020-05-15 长沙长泰智能装备有限公司 Paper roll diameter measuring device and measuring method

Similar Documents

Publication Publication Date Title
US9880269B2 (en) Apparatus and methods for dimensioning an object carried by a vehicle moving in a field of measurement
CN205138431U (en) Material recognition device and transfer chain of transfer chain
CN104918755B (en) For by two movable units method mutually positioning in relative position and machine system
CN102519400B (en) Large slenderness ratio shaft part straightness error detection method based on machine vision
CN201707033U (en) Wood measurement detection identification system
US4088411A (en) Length measurement apparatus for continuously advancing articles
CN110508503A (en) A kind of product detection device based on machine vision
CN1292229C (en) Detecting robot for lift rail perpendicularity
CN110455193A (en) Paper roll breadth and diameter measuring method based on MATLAB
CA2059128C (en) Sheet dimension measurement system
CN104528508B (en) A kind of contactless escalator Multi-parameter Measurement Method based on photoelectricity testing part
CN207502419U (en) Glass inspection systems
CN108917595A (en) Glass on-line measuring device based on machine vision
CN107270817A (en) The screw mounting device and screw installation method of view-based access control model processing
CN106767437A (en) The online 3D dimension measuring devices of PCB components and method
RU100229U1 (en) CONTACTLESS MEASUREMENT SYSTEM OF THE GEOMETRIC DIMENSIONS OF THE ROLLING SHEET
CN108050961A (en) A kind of angle of lag accurate detecting method in Optical Fiber Winding
CN112556581A (en) Carbon plate detection system based on machine vision and detection method thereof
JP6596773B2 (en) Defect inspection apparatus and defect inspection method
CN113145477A (en) Roller conveyor line multiple detection system based on big data
US20050174648A1 (en) Optical sensor for measuring characteristics and properties of strands
CN111931526B (en) Detection apparatus for acoustic bar code towards black light intelligence mill
CN212638940U (en) Bulk cargo transportation equipment linkage aligning device
TWI256111B (en) Automated dispensing system capable of carrying out beforehand the height measurement and method therefor
CN114684568A (en) Coal flow velocity and coal flow measuring system and measuring method thereof

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
WD01 Invention patent application deemed withdrawn after publication
WD01 Invention patent application deemed withdrawn after publication

Application publication date: 20191115