Intelligent yarn cleaning control method and system for bobbin winder

文档序号:1827578 发布日期:2021-11-12 浏览:12次 中文

阅读说明:本技术 一种络筒机智能清纱控制方法及系统 (Intelligent yarn cleaning control method and system for bobbin winder ) 是由 林康群 黄曼贞 于 2021-10-14 设计创作,主要内容包括:本发明涉及人工智能技术领域,具体涉及一种络筒机智能清纱控制方法及系统,该方法包括分割纱线图像中的纱线与背景;基于纱线的分割图确定缺陷的感兴趣区域和纱线本体;获取感兴趣区域的第一像素和以及每个像素点与纱线本体的距离,根据距离对像素点分配权重,以权重对像素值加权求和得到第二像素和;根据第一像素和与第二像素和得到聚集程度;获取感兴趣区域中每列像素的第三像素和,根据第三像素和得到感兴趣区域中每列像素的均值和方差;根据均值和方差得到均匀程度;根据均匀程度和聚集程度计算分布集中度,进而判断缺陷的类型为飞花或粗节;基于缺陷的类型控制相应的修剪工具对实际的纱线进行处理,解决了不能准确区分飞花和粗节类型的问题。(The invention relates to the technical field of artificial intelligence, in particular to an intelligent yarn clearing control method and system for a bobbin winder, wherein the method comprises the steps of dividing yarns and backgrounds in a yarn image; determining a region of interest of the defect and a yarn body based on the segmentation map of the yarn; acquiring a first pixel sum of the interested area and the distance between each pixel point and the yarn body, distributing weights to the pixel points according to the distance, and weighting and summing pixel values by the weights to obtain a second pixel sum; obtaining an aggregation degree according to the first pixel sum and the second pixel sum; acquiring a third pixel sum of each row of pixels in the region of interest, and obtaining the mean value and the variance of each row of pixels in the region of interest according to the third pixel sum; obtaining the uniformity degree according to the mean value and the variance; calculating distribution concentration according to the uniformity degree and the aggregation degree, and further judging whether the defect type is a flyblow or a nub; and controlling a corresponding trimming tool to process the actual yarn based on the type of the defect, so that the problem that the types of the fly waste and the slub cannot be accurately distinguished is solved.)

1. The intelligent yarn clearing control method of the bobbin winder is characterized by comprising the following steps:

acquiring an image of a yarn, wherein the image comprises the yarn and a background; segmenting the yarns and the background in the image to obtain a segmentation image of the yarns;

determining a region of interest of the defect and a yarn body based on the segmentation map of the yarn;

acquiring a first pixel sum of the interested region and the distance between each pixel point and the yarn body, distributing weight to corresponding pixel points according to the distance, and performing weighted summation on corresponding pixel values by using the weight to obtain a second pixel sum; calculating the ratio of the first pixel sum to the second pixel sum to obtain the aggregation degree of the defects;

acquiring a third pixel sum of each row of pixels in the region of interest, acquiring a mean value of each row of pixels in the region of interest according to the third pixel sum, and acquiring a variance of each row of pixels based on the mean value; obtaining the uniformity degree of the defects according to the mean value and the variance;

calculating the distribution concentration ratio of the defects according to the uniformity degree and the aggregation degree;

judging the type of the defect to be fly-away or slubby by utilizing the distribution concentration ratio; and controlling the corresponding trimming tool to process the actual yarn based on the type of the defect.

2. The intelligent yarn clearing control method for the bobbin winder as claimed in claim 1, wherein the step of obtaining the uniformity degree of the defects according to the mean value and the variance further comprises: and calculating the difference value of the mean value and the variance, wherein the ratio of the difference value to the mean value is the uniformity degree.

3. The intelligent yarn clearing control method for the bobbin winder as claimed in claim 1, wherein the step of determining the region of interest of the defect based on the segmentation map of the yarn comprises:

based on the extending direction of the yarn, acquiring a first pixel sum of each row of pixel points in the segmentation graph parallel to the extending direction, wherein the largest first pixel sum is a first target row where the yarn body is located, and the smallest first pixel sum is a second target row of yarn gaps;

determining a region between the first target row and the second target row as the region of interest.

4. The intelligent yarn clearing control method for the bobbin winder as claimed in claim 1, wherein the step of determining the region of interest of the defect based on the segmentation map of the yarn comprises:

based on the extending direction of the yarn, acquiring a first pixel sum of each row of pixel points in the segmentation graph parallel to the extending direction, wherein the largest first pixel sum is a first target row where the yarn body is located, and the smallest first pixel sum is a second target row of yarn gaps;

determining the area between two of the second target rows adjacent to the yarn body as the region of interest.

5. The intelligent yarn cleaning control method for the bobbin winder, as claimed in claim 3 or 4, wherein the step of determining the region of interest of the defect based on the segmentation map of the yarn comprises: traversing the region of interest by using a window, and determining the position of the window as a defect position when the gray value of the window is greater than a threshold value; and further reducing the region of interest by using the defect position.

6. The intelligent yarn clearer controlling method for bobbin winder as set forth in claim 1, wherein said distribution concentration of defects is a root mean square of said uniformity degree and said concentration degree.

7. The intelligent yarn cleaning control method for the bobbin winder as claimed in claim 1, wherein the method for segmenting the yarn in the image and the background adopts an adaptive threshold segmentation method.

8. The intelligent yarn clearing control method for the bobbin winder as claimed in claim 1, wherein the step of controlling the corresponding trimming tool to process the actual yarn based on the type of the defect comprises: and when the defect type is thick knot, controlling the corresponding scissors to cut off two ends of the thick knot and rewiring the two ends of the thick knot.

9. The intelligent yarn clearing control method for the bobbin winder as claimed in claim 1, wherein the step of controlling the corresponding trimming tool to process the actual yarn based on the type of the defect comprises: and when the defect type is the flying, controlling the corresponding flat mouth clamp to remove the flying by adopting a cylindrical traversing clamping manner for slight flying.

10. Intelligent clearing control system for a bobbin machine, comprising a memory, a processor and a computer program stored in the memory and run on the processor, characterized in that the processor, when executing the computer program, carries out the steps of the method according to any one of claims 1 to 9.

Technical Field

The invention relates to the technical field of artificial intelligence, in particular to an intelligent yarn cleaning control method and system for a bobbin winder.

Background

The spinning link in the textile industry is an important ring for weaving cloth, various defects can occur in the spinning link, the defects can affect the thickness of yarns and further affect the evenness of the cloth surface, the formation processes of the two types of defects, namely the flyings and the slubs, are similar, and the defects are difficult to distinguish accurately in appearance, so that the yarn cleaning process of a winding machine is difficult to control accurately. But the flying is that the floating yarn in the air is slightly spun into the yarn in the yarn forming process, and is the floating yarn fiber wound on the surface of the yarn body, so the repairing is simple; the thick knot is the inside that the yarn was spun into to the float yarn in the air, forms high density fibre knot in yarn inside, makes the yarn body become thick, influences the holistic intensity of yarn, restores loaded down with trivial details.

At present, the two defects of flyings and slubs are detected by a conventional image processing technology such as threshold segmentation, and the defects can be segmented by performing threshold segmentation on a yarn image.

In practice, the inventors found that the above prior art has the following disadvantages:

since the above prior art can segment defects, it is impossible to accurately distinguish whether the type of defect is slub or fly.

Disclosure of Invention

In order to solve the technical problems, the invention aims to provide an intelligent yarn cleaning control method and system for a bobbin winder, and the adopted technical scheme is as follows:

in a first aspect, an embodiment of the present invention provides an intelligent yarn clearing control method for a bobbin winder, including:

acquiring an image of a yarn, wherein the image comprises the yarn and a background; segmenting the yarns and the background in the image to obtain a segmentation image of the yarns;

determining a region of interest of the defect and a yarn body based on the segmentation map of the yarn;

acquiring a first pixel sum of the interested region and the distance between each pixel point and the yarn body, distributing weight to corresponding pixel points according to the distance, and performing weighted summation on corresponding pixel values by using the weight to obtain a second pixel sum; calculating the ratio of the first pixel sum to the second pixel sum to obtain the aggregation degree of the defects;

acquiring a third pixel sum of each row of pixels in the region of interest, acquiring a mean value of each row of pixels in the region of interest according to the third pixel sum, and acquiring a variance of each row of pixels based on the mean value; obtaining the uniformity degree of the defects according to the mean value and the variance;

calculating the distribution concentration ratio of the defects according to the uniformity degree and the aggregation degree;

judging the type of the defect to be fly-away or slubby by utilizing the distribution concentration ratio; and controlling the corresponding trimming tool to process the actual yarn based on the type of the defect.

Further, the step of obtaining the uniformity of the defect according to the mean and the variance further includes: and calculating the difference value of the mean value and the variance, wherein the ratio of the difference value to the mean value is the uniformity degree.

Further, the step of determining a region of interest of the defect based on the segmentation map of the yarn comprises:

based on the extending direction of the yarn, acquiring a first pixel sum of each row of pixel points in the segmentation graph parallel to the extending direction, wherein the largest first pixel sum is a first target row where the yarn body is located, and the smallest first pixel sum is a second target row of yarn gaps;

determining a region between the first target row and the second target row as the region of interest.

Further, the step of determining a region of interest of the defect based on the segmentation map of the yarn comprises:

based on the extending direction of the yarn, acquiring a first pixel sum of each row of pixel points in the segmentation graph parallel to the extending direction, wherein the largest first pixel sum is a first target row where the yarn body is located, and the smallest first pixel sum is a second target row of yarn gaps;

determining an area between two of the second target rows adjacent to the yarn as the region of interest.

Further, the step of determining a region of interest of the defect based on the segmentation map of the yarn comprises: traversing the region of interest by using a window, and determining the position of the window as a defect position when the gray value of the window is greater than a threshold value; and further reducing the region of interest by using the defect position.

Further, the distribution concentration ratio of the defects is a root mean square of the uniformity degree and the concentration degree.

Further, the method for segmenting the yarn and the background in the image adopts an adaptive threshold segmentation method.

Further, the step of controlling the corresponding trimmer to process the actual yarn based on the type of the defect includes: and when the defect type is thick knot, controlling the corresponding scissors to cut off two ends of the thick knot and rewiring the two ends of the thick knot.

Further, the step of controlling the corresponding trimmer to process the actual yarn based on the type of the defect includes: and when the defect type is the flying, controlling the corresponding flat mouth clamp to remove the flying by adopting a cylindrical traversing clamping manner for slight flying.

In a second aspect, an embodiment of the present invention provides an intelligent yarn cleaning control system for a bobbin winder, which includes a memory, a processor, and a computer program stored in the memory and executable on the processor, and is characterized in that the processor implements any one of the steps of the method when executing the computer program.

The embodiment of the invention has the following beneficial effects:

the method comprises the steps of obtaining a gray image of the yarn to be detected, and carrying out gray self-adaptive threshold segmentation on the gray image to obtain a segmentation image of the yarn and a background; and calculating the detection area of the single yarn according to the segmentation map, and calculating the gray distribution concentration of the single yarn according to the gray distribution in the detection area. The method provided by the embodiment of the invention not only can accurately distinguish whether the type of the defect is slub or slub, but also can control the corresponding trimming tool to process the yarn according to the type of the defect, thereby solving the defect problem that the types of the slub and the slub can not be accurately distinguished in the prior art.

Drawings

In order to more clearly illustrate the embodiments of the present invention or the technical solutions and advantages of the prior art, the drawings used in the description of the embodiments or the prior art will be briefly described below, it is obvious that the drawings in the following description are only some embodiments of the present invention, and other drawings can be obtained by those skilled in the art without creative efforts.

FIG. 1 is a flow chart of an intelligent yarn clearing control method for a bobbin winder according to an embodiment of the invention;

FIG. 2 is a schematic illustration of a yarn thresholding operation according to one embodiment of the present invention;

FIG. 3 is a comparison of nub and fly-over defect types provided by one embodiment of the present invention;

FIG. 4 is a schematic diagram of a defect-free gray scale profile provided by an embodiment of the present invention;

FIG. 5 is a schematic diagram of the steps provided by one embodiment of the present invention for determining a region of interest of a defect based on a segmentation map of the yarn;

FIG. 6 is a schematic diagram of a defective gray scale distribution curve according to an embodiment of the present invention;

FIG. 7 is a schematic diagram of the steps for determining a region of interest of a defect based on the segmentation map of the yarn according to another embodiment of the present invention;

FIG. 8 is a diagram illustrating a window traversing a region of interest according to an embodiment of the present invention;

FIG. 9 is a schematic illustration of two defect areas on a single yarn according to one embodiment of the present invention;

FIG. 10 is a schematic diagram of an optimized region of interest provided by an embodiment of the present invention;

fig. 11 is a schematic diagram of a positional relationship between a pixel point of the float and a yarn body in the region of interest according to an embodiment of the present invention.

Detailed Description

In order to further illustrate the technical means and effects of the present invention adopted to achieve the predetermined purpose, the following detailed description of the method and system for controlling intelligent yarn clearing of a bobbin winder according to the present invention, the specific implementation manner, structure, features and effects thereof are provided with reference to the accompanying drawings and preferred embodiments. In the following description, different "one embodiment" or "another embodiment" refers to not necessarily the same embodiment. Furthermore, the particular features, structures, or characteristics may be combined in any suitable manner in one or more embodiments.

Unless defined otherwise, all technical and scientific terms used herein have the same meaning as commonly understood by one of ordinary skill in the art to which this invention belongs.

In order to identify whether the defect type of the yarn is flying or slubby and repair the corresponding yarn according to the defect type, the embodiment of the invention determines the interested area of the defect according to the pixel characteristics of the yarn body and the floating yarn in the image, determines the defect type according to the concentration degree of the corresponding pixel distribution in the interested area, and further determines the repair means according to the defect type. Compared with the prior art, the method provided by the embodiment of the invention can accurately determine the type of the defect, and compared with a method utilizing machine learning, the method has the advantages of low operation complexity and high processing speed, and is more suitable for a factory production line.

The following describes a specific scheme of the intelligent yarn clearing control method and system of the bobbin winder provided by the invention in detail by combining with the accompanying drawings.

Referring to fig. 1, a flow chart of an intelligent yarn clearing control method for a bobbin winder according to an embodiment of the present invention is shown, the method includes the following steps:

s001, collecting an image of the yarn, wherein the image comprises the yarn and a background; and dividing the yarn and the background in the image to obtain a yarn division image.

The image of the yarn is acquired by a camera arranged on a quality inspection assembly line of the finished spun yarn, and the image at least comprises one yarn and can also comprise two or more yarns. The background in the image refers to the environment in which the yarn is located. Since the camera position is fixed, the yarn position is also fixed, and therefore the number of yarns in the image captured by the camera is fixed.

The method for segmenting the yarn and the background in the image adopts an adaptive threshold segmentation method. Specifically, the yarn gray image is obtained by performing gray processing on the yarn image, and the yarn gray image is subjected to adaptive threshold segmentation to obtain a background and yarns, wherein the yarns comprise a yarn body and floating yarns. When no defect exists on the yarn, the yarn is a yarn body; when there is a defect in the yarn, the yarn is a yarn body and a float. Referring to fig. 2, the segmentation result is that the gray value of the pixel points of the background class is zero, and the gray value of the yarn is retained; the pixel value of the black pixel in the image is zero, and the white pixel is the reserved gray value.

And step S002, determining the interested area of the defect and the yarn body based on the yarn segmentation map.

Referring to fig. 3, a in fig. 3 represents a fly-type defect, and B represents a slub-type defect. The fly type has the defect that the distribution characteristics of the floats are dispersed due to the float fibers wound on the surface of the yarn body; the slub type of defect is due to the fact that the float yarns are spun in a large number to form high-density fiber knots around the yarns, and the spindle shape is obvious on the image. Based on this, the embodiment of the invention distinguishes the fly and the slub defect by the distribution rule of the floating yarns in the detection area, namely whether the distribution of the pixel points corresponding to the floating yarns is concentrated around the yarn body.

Since the grey values of the yarn body and the floats are retained in the segmentation map, the pixel value of the background is zero. Therefore, for a yarn without a defect, the sum of pixels in the extending direction of the yarn body is accumulated to obtain the maximum sum of pixels on the central line of the yarn body; the sum of the pixels of each row between the accumulated yarn bodies is 0, so that the resulting curve exhibits the characteristic of a step function. Referring to fig. 4, the peak point of the curve is the cumulative sum of the center lines of the yarn bodies, the valley point of the curve is the cumulative sum of the gaps between the yarn bodies where no float exists, and the cumulative sum of the gaps is zero since the pixel values between the yarns are all zero.

Preferably, referring to fig. 5, the step of determining the region of interest of the defect based on the segmentation map of the yarn comprises:

step S201, based on the extending direction of the yarn, obtaining a first pixel sum of each row of pixel points parallel to the extending direction in the segmentation graph, wherein the largest first pixel sum is a first target row where the yarn body is located, and the smallest first pixel sum is a second target row of yarn gaps;

specifically, the first in the segmentation chartGo to the firstThe gray scale value of the column pixel point is recorded asThe column number of the segmentation chart is recorded asThen it is firstThe first pixel sum of a row is:

wherein the content of the first and second substances,is as followsThe first pixel sum of the row.

And acquiring a first pixel sum of each row in the segmentation map by using the same method to obtain a set of the first pixel sums.

Referring to fig. 6, a rectangular coordinate system with the horizontal axis as the number of rows and the vertical axis as the pixel value is established, and each element in the first pixel sum set is plotted in the rectangular coordinate system to obtain a plurality of scattered points; and fitting the obtained multiple scattered points to obtain a gray distribution curve. Assuming that the number of yarns in the acquired image is K, the first K peak values and the first K +1 valley values in the gray distribution curve are obtained. Specifically, the slope of each point on the gray level distribution curve is calculated, and the points with the slope of zero are divided into two types, wherein one type is a peak point with a larger vertical coordinate, and the other type is a valley point with a smaller vertical coordinate; therefore, the peak points and the valley points are respectively arranged according to the size sequence of the horizontal axis, and the first K peak points and the first K +1 valley points are obtained. Each row corresponding to the first K peak points is the number of rows in which each yarn body is located, and the number of rows is called a first target row. Each line corresponding to the first K +1 valley points is the number of lines in which the yarn gap is located, and the number of lines is referred to as a second target line.

Preferably, when calculating the slope of each point on the gray distribution curve, when the line numbers corresponding to the point having the slope of zero and the smaller ordinate continuously appear, it is described that no yarn body and floating yarn appear in the continuous lines, and at this time, the average value of the continuous line numbers is taken as the valley point to participate in the subsequent step of arranging the valley points in order of the magnitude of the horizontal axis. In order to narrow the range of the region of interest, when the number of lines corresponding to the point with zero slope and smaller ordinate continuously appears, the number of lines closest to the adjacent peak point may be taken as the bottom point.

In step 202, the region between the first target line and the second target line is determined as a region of interest.

Referring to fig. 2 again, when the line numbers corresponding to the point with the slope of zero and the smaller ordinate continuously appear, the average value of the continuous line numbers is taken as the valley point, and for a plurality of yarns in the graph, the peak point and the valley point of each yarn can be determined, so as to determine the region of interest.

Preferably, referring to fig. 7, the step of determining the region of interest of the defect based on the segmentation map of the yarn comprises:

step 211, based on the extending direction of the yarn, obtaining a first pixel sum of each row of pixel points parallel to the extending direction in the segmentation graph, the largest first pixel sum being a first target row where the yarn body is located, the smallest first pixel sum being a second target row of the yarn gap;

the area between two second target rows adjacent to the yarn body is determined as the region of interest, step 212.

Preferably, in order to further narrow the region of interest, the step of determining the region of interest of the defect based on the segmentation map of the yarn comprises: traversing the region of interest by using the window, and determining the position of the window as a defect position when the gray value of the window is greater than a threshold value; the region of interest is further narrowed down by the defect location.

During the traversing process, the window performs sliding window sampling along the extending direction of the yarn, and the step length of window sliding is the length of a unit pixel.

For the setting of the window size, the length of the window is set to the maximum tolerable value of the defect lengthSetting the width of the window to the maximum tolerance value of the coarse section(ii) a Wherein the maximum tolerance value of the defect lengthIs the minimum length value of the defect, i.e. the length greater than the maximum tolerance value will be determined to be a defect; similarly, the maximum tolerance of the nub is the minimum diameter of the nub, i.e., the nub is identified as a nub-like defect if the diameter is greater than the maximum tolerance, and the minimum diameter of the nub is greater than the diameter of the yarn body. When the window slides to the yarn body, calculating the average value of the normal yarn body to the corresponding sliding window asThe grey value when sliding the window to the yarn body isThe gray value is calculatedAs a defect threshold. When the size isThe sum of gray levels within the window of (a) is greater than the defect thresholdNow, the window is shown to have slid to the defect area.

Specifically, the region of interest determined in step S202 is subjected to sliding window, the sum of the gray levels in each window is calculated, and the sum of the gray levels in the window is recorded as the sum of the gray levels in the windowWill sum up the gray levelsAnd defect thresholdComparing, when the gray levels are equal toGreater than or equal to defect thresholdWhen, the sliding window is overlapped with the defect area; when the gray scale sumLess than defect thresholdWhen, it is stated that there is no overlap between the sliding window and the defect area. Referring to fig. 8, fig. 8 shows the determined region of interest based on the peak and valley points, such as the sliding window sliding direction and the right direction extending along the yarn, when there is a defect on the yarn, the gray sum in the window when the window traverses to the sliding window position aFrom being less than the defect thresholdBecomes equal to or greater than the defect thresholdThen, the position of the right end point of the window is recorded as position A1; the sum of the gray levels within the window as the window traverses to sliding window position BFrom greater than or equal to defect thresholdBecomes less than the defect thresholdThen, the position of the left end point of the window is denoted as position B1. The region between position a1 and position B1 is a defective region of a defect.

And traversing each yarn to obtain each detection area with the defects. Referring to fig. 9, it shows that when two defect regions exist on a single yarn, in an area of interest determined by a peak point and a peak-valley point, a window traverses the single yarn according to a preset sliding direction to obtain two detection regions.

Referring to fig. 10, it shows a region of interest determined by the peak and valley points, a defect region determined by the variation of the gray value of the window, and the region surrounded by the defect region and the region of interest is taken as the optimized region of interest. The area required to be detected can be further reduced by optimizing the defect area, and the calculation amount is reduced.

S003, acquiring a first pixel sum of the interested area and the distance between each pixel point and the yarn body, distributing weights to corresponding pixel points according to the distances, and performing weighted summation on corresponding pixel values by using the weights to obtain a second pixel sum; and calculating the ratio of the second pixel sum to the first pixel sum to obtain the aggregation degree of the defects.

The weight is distributed according to the distance between the pixel point and the yarn body, the slub is the defect with shuttle-shaped characteristic formed by more floating yarns spun into the yarn body, the floating yarns are gathered and wound around the yarn body, and the shuttle-shaped yarn body is also the result of the gathering of the floating yarns; the distribution of the fly is relatively dispersed, so the aggregation degree of the float yarn around the yarn body is evaluated. Because the closer the float is to the yarn body, the more the float is gathered to the yarn body, the greater the corresponding gathering degree is, so that the weight is distributed to the pixel points corresponding to the float according to the distance between the float and the yarn body, and the closer the distance is, the larger the distributed weight is.

Specifically, please refer to fig. 11, which illustrates a pixel point in the region of interestFor example, the pixel pointThe floating yarns are corresponding to the pixel points. The pixel point is processedThe distance from the yarn body is recordedThe distance between the yarn body and the second target row is notedThen the pixel point isThe weight of the weight is:

will assume a total number of regions of interestThe gray sum of all pixel points in the region of interest is recorded asThe gray sum is the first pixel sum; within the region of interestThe pixel value corresponding to each pixel point is recorded asThe corresponding weight of the pixel point is recorded asThe degree of aggregation is recorded asThen degree of aggregationComprises the following steps:

wherein the content of the first and second substances,and the weighted sum of all pixels in the region of interest is represented, and the pixel value of the background is zero, so that the weighted sum of the pixel points corresponding to the floating yarns in the region of interest can also be regarded as the weighted sum of the pixel points corresponding to the floating yarns in the region of interest, and the pixel sum obtained by the weighted sum is the second pixel sum.

The degree of accumulation reflects the degree of accumulation of the floats around the yarn body in the region of interest.

Step S004, acquiring a third pixel sum of each row of pixels in the region of interest, acquiring a mean value of each row of pixels in the region of interest according to the third pixel sum, and acquiring a variance of each row of pixels based on the mean value; and obtaining the uniformity of the defects according to the mean value and the variance.

The distribution characteristics of the floating yarns around the yarn body are evaluated through the uniformity degree, and the probability that the defects are slubby is high for the floating yarns with high aggregation degree and uniform distribution; for the floating yarns with small aggregation degree and uniform distribution, the probability that the defect is flying is high.

Specifically, the third pixel sum obtaining method includes: for pixels in the region of interest, the number of row pixels in the direction of the yarn extension is recorded asI.e. the number of columns of the region of interest is noted. Calculating the sum of gray levels of pixels in each column, andsum of gray levels of column pixelsThe gray scale sumI.e. the third pixel sum of each column of pixels, the obtained distribution sequenceThe following were used:

the mean value of each column of pixels is calculated by calculating a distribution sequenceThe mean value of the medium elements is obtained and is recorded as(ii) a Calculating the variance of the sequence according to the mean value, and recording the obtained variance as

Preferably, the step of obtaining the uniformity of the defect according to the mean and the variance further comprises: the ratio of the difference value to the mean value is the degree of uniformity by calculating the difference value of the mean value and the variance.

In particular, the degree of homogeneity in the region of interestComprises the following steps:

the uniformity can be regarded as 1 minus the ratio of variance to mean, and since the ratio of variance to mean reflects the average deviation of the column data, the result of 1 minus the average deviation reflects the uniformity of the column data, i.e. the pixel per column and the uniformity, in other words the uniformity of the distribution of the floats.

Step S005 calculates the distribution concentration of defects according to the uniformity and aggregation.

The larger the aggregation degree and the distribution uniformity degree of the floating yarns are, the larger the probability that the defects are slubby is; the smaller the aggregation degree and the smaller the distribution uniformity degree of the floating yarns, the larger the probability that the defect is flying is; therefore, the effective values of the two are expressed by root mean square, that is, the distribution concentration of the defects is the root mean square of the uniformity degree and the aggregation degree, and the distribution concentration is recorded asThen for this region of interest:

when a plurality of interested areas exist for a single yarn, the distribution concentration corresponding to each interested area needs to be calculated.

Step S006, judging the type of the defect as fly-away or slubby by using the distribution concentration; and controlling the corresponding trimming tool to process the actual yarn based on the type of the defect.

Judging whether the defect type in the region of interest is fly-away or slubby according to the distribution concentration ratio, specifically: the defect type is slubby when the distribution concentration is within the range of (0.5, 1), heavy fly when the distribution concentration is within the range of (0.2, 0.5), and light fly when the distribution concentration is within the range of [0,0.2 ].

The steps of converting the yarn to a world coordinate system are as follows: calibrating a camera for collecting images, obtaining a conversion matrix and a translation matrix of a two-dimensional image generated by the camera relative to a three-dimensional world coordinate system, and converting the yarns into a three-dimensional coordinate system.

For two intersections (u 1, v 1), (u 2, v 2) of the yarn in the two-dimensional image with each region of interest, respectively, the operation of the automated machine is coded, wherein: control codes {1, (u 1, v 1), (u 2, v 2) } represent corresponding points of two clamps which clamp two-dimensional image midpoints (u 1, v 1), (u 2, v 2) respectively in a world coordinate system; control codes {0, (u 1, v 1), (u 2, v 2) } represent corresponding points of two clamps which release points (u 1, v 1), (u 2, v 2) of the two-dimensional image respectively in the world coordinate system; control codes {2, (u 1, v 1), (u 2, v 2) } represent corresponding points of two scissors which respectively cut off points (u 1, v 1), (u 2, v 2) in the world coordinate system and retract; the control codes {3, (u 1, v 1), (u 2, v 2) } represent that the rotary knife takes the connecting line of the corresponding points of (u 1, v 1), (u 2, v 2) on the world coordinate system as an axis,performing cylindrical surface circular cutting by taking the corresponding length of the world coordinate system as a radius; (u 1, v 1), (u 2, v 2) are start and stop points, and are withdrawn; control codes {4, (u 1, v 1), (u 2, v 2) } represent flat-mouth clamps (u 1, v 1), (u 2, v 2)The connecting line of the corresponding points on the world coordinate system is an axis,traversing and clamping the cylindrical surface by taking the corresponding length of the world coordinate system as a radius, and withdrawing; control codes {5, (u 1, v 1), (u 2, v 2) } represent shutdown reminders and rewire (u 1, v 1), (u 2, v 2) at points in the world coordinate system; control code 11 represents a reboot.

Different types of processing modes are required to be adopted for different defect types, and when the defect type is thick, the corresponding scissors are controlled to cut off two ends of the thick section and rewire; when the defect type is fly, for heavy fly, the fly is removed in a mode of cylindrical ring cutting around the yarn body; when the defect type is the flying, the corresponding flat mouth clamp is controlled to remove the flying by adopting a cylindrical traversing clamping mode for the slight flying, so that the corresponding control codes are as follows:

when the defect type corresponding to the region of interest is a coarse section, the corresponding control code is: {1, (u 1, v 1), (u 2, v 2) }; {2, (u 1, v 1), (u 2, v 2) }; {5, (u 1, v 1), (u 2, v 2) }; {0, (u 1, v 1), (u 2, v 2) };

when the defect type corresponding to the region of interest is heavy flying, the corresponding control code is as follows: {1, (u 1, v 1), (u 2, v 2) }; {3, (u 1, v 1), (u 2, v 2) }; {0, (u 1, v 1), (u 2, v 2) };

when the defect type corresponding to the region of interest is slight flying, the corresponding control code is as follows: {1, (u 1, v 1), (u 2, v 2) }; {4, (u 1, v 1), (u 2, v 2) }; {0, (u 1, v 1), (u 2, v 2) }.

In summary, in the embodiment of the present invention, a gray image of a yarn to be detected is obtained, and is subjected to gray adaptive threshold segmentation to obtain a segmentation map of the yarn and a background; and calculating the detection area of the single yarn according to the segmentation map, and calculating the gray distribution concentration of the single yarn according to the gray distribution in the detection area. The method provided by the embodiment of the invention can accurately distinguish whether the type of the defect is slub or slub, can control the corresponding trimming tool to process the yarn according to the type of the defect, and solves the problem that the types of the slub and the slub cannot be accurately distinguished in the prior art.

It should be noted that: the precedence order of the above embodiments of the present invention is only for description, and does not represent the merits of the embodiments. And specific embodiments thereof have been described above. Other embodiments are within the scope of the following claims. In some cases, the actions or steps recited in the claims may be performed in a different order than in the embodiments and still achieve desirable results. In addition, the processes depicted in the accompanying figures do not necessarily require the particular order shown, or sequential order, to achieve desirable results. In some embodiments, multitasking and parallel processing may also be possible or may be advantageous.

The embodiments in the present specification are described in a progressive manner, and the same and similar parts among the embodiments are referred to each other, and each embodiment focuses on the differences from the other embodiments.

The above description is only for the purpose of illustrating the preferred embodiments of the present invention and is not to be construed as limiting the invention, and any modifications, equivalents, improvements and the like that fall within the spirit and principle of the present invention are intended to be included therein.

16页详细技术资料下载
上一篇:一种医用注射器针头装配设备
下一篇:织机开口机构

网友询问留言

已有0条留言

还没有人留言评论。精彩留言会获得点赞!

精彩留言,会给你点赞!