A kind of detection system and its detection method of underwear elastic woven tape curved strip defect
Technical field
The invention belongs to fabric quality detection technique fields, and in particular to a kind of detection of underwear elastic woven tape curved strip defect
System and its detection method.
Background technique
With the progress of China's modernization industry, textile industry automation becomes the inexorable trend of development.But it is raw in textile
It produces in process, for the quality testing of underwear elastic woven tape, does not fully achieve automation, i.e., the inspection of most of ribbon defect but
Work is surveyed still by manually estimating completion.And many influence factors all can cause manual detection efficiency lower, be no longer satisfied
At this moment the growth requirement of modern textile industry needs a kind of automatic detection system just to replace artificial detection.
In recent years, China's computer technology flourishes, the maturation of image processing techniques, so that it is in industrial automation
Aspect has wider application.It, not only can be with using image processing techniques during underwear elastic woven tape defects detection
Overcome the various shortcoming of artificial detection, and data processing and analysis can be carried out to the testing result of acquisition, is knitted to improve
Band quality.
The curved strip defect of underwear elastic woven tape is relatively common in weaving process, and Producing reason has: chain side or steel wire
While entering inconsistent wrong reed, weft yarn raw material thickness, weft yarn feed problem, reed lattice are not inconsistent, the position of reed is mobile etc..
In ribbon technical data figure generally can all indicate ribbon it is micro-bend go out, it is micro-bend enter amount or straightness.If camber
Greatly, subsequent production is necessarily affected, the difficulty of dyeing and finishing is increased.
Wu Ning, Guan Shengqi, Xu Shuaihua are at " fabric defects detection based on texture edge period Yu local direction "
A kind of new detecting method is disclosed in article, this method extracts straight line by Hough transformation, finds one in the picture typically
The straight line in its local grain direction can be represented, to obtain twills grain direction, then utilizes the direction character area of texture
Divide normal texture and fault.For this method in twills texture feature extraction, detection effect is more obvious, however is directed to underwear
When with elastic woven tape, the testing result inaccuracy of this method, there are large errors, it is also necessary to which further detection obtains specific
The bending degree of ribbon.
Summary of the invention
The purpose of the present invention is to provide a kind of detection systems of underwear elastic woven tape curved strip defect, realize underwear elasticity
The real―time precision measurment of the slope of ribbon.
Another object of the present invention is a kind of monitoring method of the detection system of underwear elastic woven tape curved strip defect.
The technical scheme adopted by the invention is that: a kind of detection system of underwear elastic woven tape curved strip defect, including image
Acquisition unit and image processing unit, image acquisition units are used to acquire the sample image of underwear elastic woven tape to be measured, figure in real time
As processing unit is used to carry out line segment extraction to collected sample image and calculates the slope of straightway.
The features of the present invention also characterized in that
Image acquisition units are industrial camera.
Image processing unit is industrial control computer.
Industrial camera is connect using gigabit ethernet interface with industrial control computer.
A kind of detection method of the detection system using underwear elastic woven tape curved strip defect as described above, specifically according to such as
Lower step operation:
Step 1: acquiring underwear elastic woven tape image to be measured in real time with image acquisition units;
Step 2: image enhancement being carried out to collected underwear elastic woven tape image to be measured with image processing unit, is filtered out
Noise jamming improves the clarity of image;
Step 3: edge detection being carried out to the image that step 2 obtains using canny edge detection algorithm, obtains binary picture
Picture;
Step 4: Hough transformation is carried out to binary image and determines edge line parametric equation:
Establish two-dimensional coordinate system with image processing unit, to the coordinate of each of binary image pixel (x,
Y) it carries out processing and obtains corresponding parameter ρ, θ, establish one about parameter ρ, the two-dimensional array of θ, finding in two-dimensional array has
(ρ, the θ) of identical value, and record each identical (ρ, θ) and its corresponding number of repetition n in two-dimensional array, of identical (ρ, θ)
Number indicates the numbers of straight line in binary images, is handled each identical (ρ, θ) and add up and S, adds up and S highest
The number of identical (ρ, θ) be expressed as the number of edge line, add up and ρ, the θ of S highest identical (ρ, θ) be edge line
Parameter, the process that the coordinate (x, y) of each of binary image pixel is handled are as follows:
Wherein, ρ is vertical range of the straight line to origin, and θ is angle of the x-axis to straight line vertical line, and the value range of θ is -90 °
~+90 °, k is the slope of straight line, and b is the intercept of straight line on the y axis;
Publicity (1) processing is substituted into each cumulative and S highest identical (ρ, θ) ρ, θ and obtains edge line parameter side
Journey;
Step 5: according to the edge line parametric equation of step 4, whether ribbon to be measured being judged according to the slope of edge line
For curved strip, deterministic process are as follows:
It is normal ribbon, when the slope > 0.01 of edge line or side when the slope of -0.01≤edge line≤0.01
It is curved strip when the slope < -0.01 of edge straight line.
The process that each identical (ρ, θ) is handled in step 4 are as follows:
S=(ρ+θ) × n (2)
Wherein S be the cumulative of each identical (ρ, θ) and.
The beneficial effects of the present invention are: a kind of detection system of underwear elastic woven tape curved strip defect of the present invention passes through at image
Reason technology carries out feature extraction to the textural characteristics of underwear elastic woven tape, using Hough transformation to the straight line in ribbon texture image
It is detected, then the slope of straight line is detected, judge whether ribbon is curved strip by the size of slope, realized interior
The real-time accurate detection of clothing elastic woven tape slope has the advantages that untouchable, objectivity, real-time, high-efficient, with high accuracy;
It can by the industrial camera in standard light source lamp house and the industrial control computer equipped with related software and database
The slope that underwear elastic woven tape is detected with real-time online judges that curved strip defect whether there is, in the premise for guaranteeing measurement accuracy
Under corresponding testing cost is greatly reduced.
Detailed description of the invention
Fig. 1 is a kind of detection system structure chart of underwear elastic woven tape curved strip defect of the present invention;
Fig. 2 is a kind of monitoring method flow diagram of the detection system of underwear elastic woven tape curved strip defect of the present invention.
Specific embodiment
The detection system of a kind of underwear elastic woven tape curved strip defect provided by the invention, as shown in Figure 1, including Image Acquisition
Unit and image processing unit, image acquisition units are used to acquire the sample image of underwear elastic woven tape to be measured in real time, at image
Reason unit is used to carry out line segment extraction to collected sample image and calculates the slope of straightway.
Image acquisition units are industrial camera.
Image processing unit is industrial control computer.
Industrial camera is connect using gigabit ethernet interface with industrial control computer.
The detection system of a kind of underwear elastic woven tape curved strip defect provided by the invention, wherein industrial camera is adopted in real time
Collect the image of underwear elastic woven tape to be measured, and sends image to industrial control computer.
Industrial camera is mounted in the standard light source lamp house near inkle loom, due to ambient light shine variation will lead to it is interior
The fluctuation of clothing elastic woven tape brightness and contrast is kept apart so needing to be shone product to be checked with ambient light using standard light source lamp house
Come, intensity of illumination when guaranteeing detection every time is constant.
500 ten thousand pixel black and white industrial camera C125-0618-5Ms of the industrial camera using Germany basler, the industry
Video camera use 5,000,000 pixels planar array type 1/2.5 " CCD industrial lens, f-number F1.8-F22, resolution ratio be 1388 ×
1038, C mouth mirror heads provide the fixed focal length of 6mm, and compact is easily installed.
Industrial control computer receives the ribbon image that industrial camera provides, and carries out lines detection, detection to image
The slope of ribbon to be measured out.
For industrial control computer using magnificent industrial control computer is ground, which uses Intel dual core processor, dominant frequency
3.0G, 1100M network interface card, 1G memory, 160G hard disk, 19 cun of liquid crystal displays meet the requirement of industry spot adverse circumstances.
Industrial control computer is equipped with image preprocessing software, sample database and straight slope Survey Software, and
Industrial camera is connected by gigabit Ethernet.
A kind of detection method of the detection system of underwear elastic woven tape curved strip defect as described above, as shown in Fig. 2, specifically
It operates in accordance with the following steps:
Step 1: acquiring underwear elastic woven tape image to be measured in real time with image acquisition units;
Step 2: image enhancement being carried out to collected underwear elastic woven tape image to be measured with image processing unit, is filtered out
Noise jamming improves the clarity of image;
Step 3: edge detection being carried out to the image that step 2 obtains using canny edge detection algorithm, obtains binary picture
Picture;
Step 4: Hough transformation is carried out to binary image and determines edge line parametric equation:
Establish two-dimensional coordinate system with image processing unit, to the coordinate of each of binary image pixel (x,
Y) it carries out processing and obtains corresponding parameter ρ, θ, establish one about parameter ρ, the two-dimensional array of θ, finding in two-dimensional array has
(ρ, the θ) of identical value, and record each identical (ρ, θ) and its corresponding number of repetition n in two-dimensional array, of identical (ρ, θ)
Number indicates the numbers of straight line in binary images, is handled each identical (ρ, θ) and add up and S, adds up and S highest
The number of identical (ρ, θ) be expressed as the number of edge line, add up and ρ, the θ of S highest identical (ρ, θ) be edge line
Parameter, the process that the coordinate (x, y) of each of binary image pixel is handled are as follows:
Wherein, ρ is vertical range of the straight line to origin, and θ is angle of the x-axis to straight line vertical line, and the value range of θ is -90 °
~+90 °, k is the slope of straight line, and b is the intercept of straight line on the y axis;
Publicity (1) processing is substituted into each cumulative and S highest identical (ρ, θ) ρ, θ and obtains edge line parameter side
Journey;
Step 5: according to the edge line parametric equation of step 4, whether ribbon to be measured being judged according to the slope of edge line
For curved strip, deterministic process are as follows:
It is normal ribbon, when the slope > 0.01 of edge line or side when the slope of -0.01≤edge line≤0.01
It is curved strip when the slope < -0.01 of edge straight line.
The process that each identical (ρ, θ) is handled in step 4 are as follows:
S=(ρ+θ) × n (2)
Wherein S be the cumulative of each identical (ρ, θ) and.
It should be noted that theoretically, when straight slope is 0, which is normal ribbon;When straight slope is not 0
When, which is curved strip.But there are certain error when Image Acquisition, the slope of normal ribbon is not 0.The present invention is by repeatedly real
The slope that test obtains normal ribbon is ± 0.0141, therefore sets 0.01 as threshold value, when slope≤0.01 of -0.01≤edge line
When, it is normal ribbon, is curved strip as the slope < -0.01 of the slope > 0.01 of edge line or edge line.
A kind of detection method such as the detection system of underwear elastic woven tape curved strip defect of the present invention passes through image processing techniques
Feature extraction is carried out to the textural characteristics of underwear elastic woven tape, the straight line in ribbon texture image is examined using Hough transformation
It surveys, then the slope of edge line is detected, judges whether ribbon is curved strip, realizes underwear by the size of slope
The real-time accurate detection of elastic woven tape slope has the advantages that untouchable, objectivity, real-time, high-efficient, with high accuracy;Together
When the invention also discloses a kind of detection systems of underwear elastic woven tape curved strip defect, including image acquisition units, image procossing
Unit, the slope of real-time detection underwear elastic woven tape judge that curved strip defect whether there is, big under the premise of guaranteeing measurement accuracy
Corresponding testing cost is reduced greatly.