CN113962950A - Cloth detection method and device, electronic equipment and computer readable storage medium - Google Patents
Cloth detection method and device, electronic equipment and computer readable storage medium Download PDFInfo
- Publication number
- CN113962950A CN113962950A CN202111195389.6A CN202111195389A CN113962950A CN 113962950 A CN113962950 A CN 113962950A CN 202111195389 A CN202111195389 A CN 202111195389A CN 113962950 A CN113962950 A CN 113962950A
- Authority
- CN
- China
- Prior art keywords
- cloth
- rinsed
- information
- rinsing
- distribution information
- 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
Links
- 239000004744 fabric Substances 0.000 title claims abstract description 199
- 238000001514 detection method Methods 0.000 title claims abstract description 16
- 238000003860 storage Methods 0.000 title claims abstract description 13
- 238000009826 distribution Methods 0.000 claims abstract description 83
- 238000000034 method Methods 0.000 claims abstract description 30
- 238000004590 computer program Methods 0.000 claims description 9
- 238000004364 calculation method Methods 0.000 claims description 8
- 238000012216 screening Methods 0.000 claims description 3
- 238000012360 testing method Methods 0.000 description 13
- 238000010586 diagram Methods 0.000 description 6
- 238000012545 processing Methods 0.000 description 5
- 238000001914 filtration Methods 0.000 description 3
- 230000002708 enhancing effect Effects 0.000 description 2
- 230000000007 visual effect Effects 0.000 description 2
- 238000005406 washing Methods 0.000 description 2
- 238000004458 analytical method Methods 0.000 description 1
- 238000003491 array Methods 0.000 description 1
- 230000009286 beneficial effect Effects 0.000 description 1
- 238000005520 cutting process Methods 0.000 description 1
- 230000009977 dual effect Effects 0.000 description 1
- 238000004043 dyeing Methods 0.000 description 1
- 230000000694 effects Effects 0.000 description 1
- 238000005516 engineering process Methods 0.000 description 1
- 238000005562 fading Methods 0.000 description 1
- 239000000835 fiber Substances 0.000 description 1
- 238000007689 inspection Methods 0.000 description 1
- 238000004519 manufacturing process Methods 0.000 description 1
- 239000000463 material Substances 0.000 description 1
- 238000005259 measurement Methods 0.000 description 1
- 230000003287 optical effect Effects 0.000 description 1
- 230000001629 suppression Effects 0.000 description 1
- 238000009941 weaving Methods 0.000 description 1
Images
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06T—IMAGE DATA PROCESSING OR GENERATION, IN GENERAL
- G06T7/00—Image analysis
- G06T7/0002—Inspection of images, e.g. flaw detection
- G06T7/0004—Industrial image inspection
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06T—IMAGE DATA PROCESSING OR GENERATION, IN GENERAL
- G06T5/00—Image enhancement or restoration
- G06T5/20—Image enhancement or restoration using local operators
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06T—IMAGE DATA PROCESSING OR GENERATION, IN GENERAL
- G06T5/00—Image enhancement or restoration
- G06T5/70—Denoising; Smoothing
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06T—IMAGE DATA PROCESSING OR GENERATION, IN GENERAL
- G06T7/00—Image analysis
- G06T7/10—Segmentation; Edge detection
- G06T7/13—Edge detection
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06T—IMAGE DATA PROCESSING OR GENERATION, IN GENERAL
- G06T2207/00—Indexing scheme for image analysis or image enhancement
- G06T2207/20—Special algorithmic details
- G06T2207/20172—Image enhancement details
- G06T2207/20192—Edge enhancement; Edge preservation
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06T—IMAGE DATA PROCESSING OR GENERATION, IN GENERAL
- G06T2207/00—Indexing scheme for image analysis or image enhancement
- G06T2207/30—Subject of image; Context of image processing
- G06T2207/30108—Industrial image inspection
- G06T2207/30124—Fabrics; Textile; Paper
Landscapes
- Engineering & Computer Science (AREA)
- Physics & Mathematics (AREA)
- General Physics & Mathematics (AREA)
- Theoretical Computer Science (AREA)
- Computer Vision & Pattern Recognition (AREA)
- Quality & Reliability (AREA)
- Treatment Of Fiber Materials (AREA)
Abstract
The application discloses a cloth detection method, a device, electronic equipment and a computer-readable storage medium, which are used for detecting the shrinkage and/or the skew of rinsed cloth, wherein a plurality of position marks are distributed on the cloth, and the method comprises the following steps: acquiring template information corresponding to the cloth, wherein the template information comprises standard distribution information of at least part of position marks and distribution information after rinsing of at least part of position marks of the rinsed cloth; and obtaining the shrinkage rate and/or the skew rate of the rinsed cloth according to the rinsed distribution information and the standard distribution information obtained after the cloth is rinsed. According to the distribution information and the standard distribution information after the cloth is rinsed, the shrinkage rate and/or the skew rate of the rinsed cloth can be accurately calculated, the cloth rinsing machine is suitable for various cloths, and the manual strength can be reduced.
Description
Technical Field
The present disclosure relates to the field of fabric detection technologies, and in particular, to a fabric detection method and apparatus, an electronic device, and a computer-readable storage medium.
Background
Shrinkage is an index representing the change in fabric dimensions after the fabric is washed and dried, and is one of important wearability of the fabric. The size of the shrinkage has a great influence on the specifications of ready-made clothes or other woven articles. In the process of cutting the clothing material, the shrinkage rate must be considered so as to ensure the specification and wearing requirements of the ready-made clothing.
Similarly, the fabric, the coat side seam or the trousers (skirt) side seam of the garment may be twisted (also called skew) during manufacturing, and the fabric, the coat side seam or the trousers (skirt) side seam often is twisted after washing, so that the appearance is influenced by light people, and the performance of the garment is influenced by heavy people, therefore, the fabric, the garment and the like are very necessary to check the twist rate (also called skew) index after washing.
Generally, in the weaving and dyeing process of the fabric, the fiber is stretched for multiple times, the processing time is long, the shrinkage rate of the fabric with higher applied tension is high, the shrinkage rate is low, and the twist slope rate is changed. However, when calculating the shrinkage/skew of the cloth at present, the cloth needs to be manually detected by a ruler, then marked, so as to establish a characteristic sample plate, then the cloth is rinsed, and finally the shrinkage/skew of the cloth is manually calculated, and errors often exist in the calculated shrinkage/skew of the cloth.
Disclosure of Invention
An object of the present application is to provide a cloth detecting method, device, electronic device and computer-readable storage medium for solving the above technical problems, which can accurately detect the shrinkage and/or skew of a cloth, and is suitable for various cloths, and can reduce the labor intensity.
In order to achieve the above object, the present application discloses a cloth detection method for detecting a shrinkage rate and/or a skew rate of a rinsed cloth, wherein a plurality of position marks are distributed on the cloth, and the method includes:
acquiring template information corresponding to the cloth, wherein the template information comprises standard distribution information of at least part of the position marks and distribution information after rinsing of at least part of the position marks after rinsing of the cloth;
and obtaining the shrinkage rate and/or the skew rate of the rinsed cloth according to the rinsed distribution information and the standard distribution information obtained after the cloth is rinsed.
Preferably, the obtaining of the template information corresponding to the fabric includes:
acquiring an image of the cloth;
and extracting and analyzing according to the image of the cloth to obtain the template information.
Preferably, the step of obtaining the distribution information after rinsing of at least part of the position marks after the cloth rinsing includes:
acquiring an image of the rinsed cloth;
and extracting and analyzing according to the image of the cloth after rinsing to obtain the distribution information after rinsing.
Preferably, the standard distribution information includes standard coordinate information corresponding to at least part of the position markers;
the distribution information after rinsing comprises coordinate information after rinsing of at least part of the position mark;
the step of obtaining the shrinkage rate of the rinsed cloth according to the rinsed distribution information and the standard distribution information obtained after the rinsing of the cloth comprises the following steps:
and obtaining the shrinkage rate according to the length information between at least two position marks obtained from the standard coordinate information and the same length information between at least two position marks obtained from the coordinate information after rinsing.
Preferably, the step of obtaining the skew rate of the rinsed cloth according to the rinsed distribution information and the standard distribution information obtained after the rinsing of the cloth includes:
and obtaining the twist rate according to the positions of at least two position markers after rinsing.
Preferably, the cloth detection method further includes:
obtaining the actual height between the rinsed cloth and the identification terminal according to the calibration height from the calibration plane to the identification terminal and the thickness of the rinsed cloth;
and obtaining the distribution information of at least part of the position marks after rinsing according to the identification information of the identification terminal and the actual height.
Preferably, the cloth detecting method further includes:
acquiring the cloth and/or an image of the rinsed cloth;
acquiring gradient information of each pixel point in the cloth and/or the image after the cloth is rinsed;
screening the pixel points according to preset gradient information so as to reserve the pixel points meeting the preset gradient information;
and identifying the position mark according to the pixel points meeting the preset gradient information.
In order to achieve the above object, the present application further discloses a cloth detecting device for detecting a shrinkage rate and/or a skew rate of a rinsed cloth, wherein a plurality of position marks are distributed on the cloth, and the device includes:
the acquisition module is used for acquiring template information corresponding to the cloth, and the template information comprises standard distribution information of at least part of the position marks and distribution information after rinsing of at least part of the position marks after rinsing of the cloth;
and the calculation module is used for obtaining the shrinkage and/or the skew of the rinsed cloth according to the rinsed distribution information and the standard distribution information obtained after the cloth is rinsed.
In order to achieve the above object, the present application also discloses an electronic device, comprising:
a processor;
a memory having stored therein executable instructions of the processor;
wherein the processor is configured to execute the cloth detection method as described above via executing the executable instructions.
In order to achieve the above object, the present application also discloses a computer-readable storage medium having stored thereon a computer program, which includes a computer program that, when executed by a processor, implements the cloth detecting method as described above.
According to the method and the device, template information corresponding to the cloth is obtained, the template information comprises standard distribution information of at least part of position marks and distribution information after rinsing of at least part of position marks of the rinsed cloth is obtained, and then the shrinkage and/or the skew of the rinsed cloth are obtained according to the distribution information after rinsing and the standard distribution information of the rinsed cloth. According to the distribution information and the standard distribution information after the cloth is rinsed, the shrinkage rate and/or the skew rate of the rinsed cloth can be accurately calculated, the cloth rinsing machine is suitable for various cloths, and the manual strength can be reduced.
Drawings
Fig. 1 is a flowchart of a cloth detection method according to an embodiment of the present application.
Fig. 2 is a schematic diagram of a position calibration mode in the embodiment of the present application.
Fig. 3 is a schematic diagram illustrating calculation of the shrinkage after the cloth is rinsed according to the embodiment of the present application.
Fig. 4 is a schematic diagram illustrating calculation of twist rate after the cloth is rinsed according to the embodiment of the present application.
Fig. 5 is a schematic identification diagram of an identification terminal according to an embodiment of the present application.
Fig. 6 is a schematic block diagram of a cloth detecting apparatus according to an embodiment of the present application.
Fig. 7 is a schematic block diagram of an electronic device according to an embodiment of the present application.
Detailed Description
In order to explain technical contents, structural features, implementation principles, and objects and effects of the present application in detail, the following detailed description is given with reference to the accompanying drawings in combination with the embodiments.
Referring to fig. 1, the present application discloses a cloth detection method for detecting a shrinkage rate and/or a skew rate of a rinsed cloth, where a plurality of position marks are distributed on the cloth, where the method includes:
101. and acquiring template information corresponding to the cloth, wherein the template information comprises standard distribution information of at least part of position marks and distribution information after rinsing of at least part of position marks of the rinsed cloth.
Referring to fig. 2, the position mark on the fabric may be a calibration point, or may be a geometric pattern, or may be other specific marking manners as long as the fabric detection method of the present application can be executed according to the "position mark".
Further, the specific marking manner of the position mark on the cloth may be to use a marking printer of a non-fading ink or a cloth, or may use a line sewn into the cloth for marking, and the color of the line should be contrasted with the color of the cloth, or may use a staple, or may use other specific marking manners, which is not limited herein.
Specifically, the template information refers to information of the unwashed cloth, and may be extracted from the cloth to be detected currently, or information of the cloth of the same model may be stored in advance as the template information, so that when a plurality of cloths of the same model are detected subsequently, the template information may not need to be extracted from each cloth repeatedly, and the like, and is not limited herein. In addition, the template information may correspond to information on the whole cloth or information on the area of a part of the cloth, as long as the template information corresponds to at least a part of position marks distributed on the cloth.
Specifically, the standard distribution information includes position information (e.g., coordinate information, length information, etc.) between position marks before the cloth is rinsed.
Specifically, the template information may be digital information, and the template information may be extracted according to at least a part of the position marks distributed on the fabric, or of course, the template information conforming to the test standard (for example, the number of the position marks conforming to the test standard, the position information, the distance between the position marks, and the like) may be set in advance on the system, so that the template information conforming to the test standard may be directly called during subsequent tests, and it is not necessary to obtain corresponding template information during each test, so as to reduce the test time, and the method is applicable to test of a large number of fabrics. Of course, the template information may be image information, and is not limited herein as long as the cloth inspection method of the present invention can be executed according to the image information.
In some embodiments, the "acquiring the template information corresponding to the fabric" includes:
acquiring an image of the cloth;
and extracting and analyzing according to the image of the cloth to obtain template information.
The method for acquiring the image is beneficial to improving the acquisition accuracy of the template information.
Specifically, the image of the fabric may be obtained in real time through the identification terminal, or the stored fabric image may be called from the system, and then the system performs the correlation processing on the fabric image to obtain the corresponding template information, or of course, when the identification terminal obtains the image of the fabric, the identification terminal performs the correlation processing on the fabric image to obtain the template information.
Specifically, the cloth rinsing may refer to one time of rinsing or multiple times of rinsing, and the specific rinsing time and times may be set by themselves, although in order to better test the shrinkage and/or the skew of the cloth, the rinsing time and times are set according to the relevant test standards.
Specifically, the post-rinsing distribution information includes position information (e.g., coordinate information, length information, etc.) between position marks of the rinsed cloth.
In some embodiments, the "acquiring the post-rinsing distribution information of at least part of the position marks after the cloth rinsing" includes:
acquiring an image of the rinsed cloth;
and extracting and analyzing according to the image of the cloth after rinsing to obtain the distribution information after rinsing.
By means of the image acquisition mode, the acquisition accuracy of the distribution information after rinsing is improved.
102. And obtaining the shrinkage rate and/or the skew rate of the rinsed cloth according to the rinsed distribution information and the standard distribution information obtained after the cloth is rinsed.
Specifically, the post-rinsing distribution information and the standard distribution information may be both digital information to facilitate calculation processing between systems. Of course, the distribution information after rinsing and the standard distribution information may be both image information, and in use, the distribution information after rinsing and the standard distribution information may be fused into the same image information, and then data may be extracted and analyzed from the image information to calculate the shrinkage rate and/or the skew rate. Of course, the distribution information after rinsing and the standard distribution information may be extracted and analyzed separately, and then analyzed when the shrinkage and/or skew needs to be calculated.
In some embodiments, the standard distribution information includes standard coordinate information corresponding to at least a portion of the location markers;
the distribution information after rinsing comprises coordinate information after rinsing of at least part of the position marks;
the step of obtaining the shrinkage rate of the rinsed cloth according to the rinsed distribution information and the standard distribution information obtained after the rinsing of the cloth comprises the following steps:
and obtaining the shrinkage ratio according to the length information between the at least two position marks obtained from the standard coordinate information and the same length information between the at least two position marks obtained from the coordinate information after rinsing.
According to the length information before rinsing and the length information after rinsing between at least two position marks obtained according to the standard coordinate information and the coordinate information after rinsing, the shrinkage rate of the rinsed cloth can be calculated only by analyzing the length information before rinsing and the length information after rinsing, and the testing efficiency and the accuracy rate can be improved.
Specifically, length information before rinsing between at least two position marks is obtained according to the standard coordinate information, and length information after rinsing between position marks corresponding to the length information before rinsing is obtained according to the coordinate information after rinsing.
Specifically, the shrinkage ratio refers to a ratio of a length change after the cloth is rinsed (a difference between a length after the cloth is rinsed and a length before the cloth is rinsed) to a length before the cloth is rinsed, and of course, the shrinkage ratio also includes a shrinkage ratio in a latitudinal (transverse) direction, a shrinkage ratio in a longitudinal (vertical) direction, and the like.
As an example, referring to fig. 3, it is assumed that position marks a1, a2, A3, a4, a5, A6, a7, and A8 are marked on the cloth, and standard coordinate information a1(0, 0), a2(1, 0), A3(2, 0), a4(0, 1), a5(2, 1), A6(0, 2), a7(1, 2), and A8(2, 2) are obtained by using the position mark a1 as the origin of coordinates and spacing the position marks by 1 unit length. Length information between at least two position marks obtained from standard coordinate information (for example, length information C1 of position marks a1 and A3 is 2 obtained from position marks a1 and A3), length information after rinsing between position marks corresponding to the length information before rinsing is obtained from coordinate information after rinsing (for example, coordinate information after rinsing a1 '(-0.1, 0) and A3' (2.1, 0), length information of position marks after rinsing a1 'and A3' is C1 'is 2.2), and a shrinkage after rinsing of a cloth is a ratio of a length change after rinsing of the cloth (a difference between a length after rinsing of the cloth and a length before rinsing of the cloth), that is, (C1' -C1)/C1, the shrinkage after rinsing of the cloth is 0.1. Of course, the shrinkage in the latitudinal (transverse) direction and the shrinkage in the longitudinal (vertical) direction may also be calculated, and then the position mark in the latitudinal (transverse) direction and the position mark in the longitudinal (vertical) direction are correspondingly selected, and the calculation is performed according to the above description, which is not described herein again.
In some embodiments, the "obtaining the twist rate after the rinsing of the cloth according to the post-rinsing distribution information and the standard distribution information obtained after the rinsing of the cloth" includes:
the twist rate is obtained from the positions of the at least two position markers after rinsing.
The twist rate is obtained by using the positions of at least two position markers after rinsing, so that the testing efficiency and the testing accuracy can be improved.
Specifically, the standard distribution information further includes a positioning coordinate system, the two position marks are located on the positioning coordinate system (the positioning coordinate system defines a first direction and a second direction perpendicular to each other), and the positioning coordinate system can measure a connection distance between the two position marks, a distance between the two position marks in the first direction, and a distance between the two position marks in the second direction. The specific calculation method of the twist rate may be various, for example, the connection distance between the two position marks, the distance between the two position marks in the first direction, and the distance between the two position marks in the second direction may be obtained only according to the positions of the two position marks after rinsing, and the twist rate may be obtained according to the ratio of the distance between the two position marks in the second direction to the connection distance between the two position marks. Of course, the distance of the connecting lines between the sets of position marks and the distance of the plurality of sets of position marks in the second direction may also be calculated, and the twist slope may be obtained according to the ratio of the sum of the distances of the sets of position marks in the second direction to the sum of the distances of the connecting lines between the sets of position marks.
Continuing with reference to the detailed information on the cloth, and with reference to fig. 3 and 4, the position markers a1, A3, a6, A8 are selected. The positions before and after rinsing of each position mark are recorded (for convenience of understanding, the description is made with reference to coordinates). The coordinates of the position markers before rinsing were a1(0, 0), A3(2, 0), a6(0, 2), and A8(2, 2), and the coordinates of the position markers after rinsing were a1 '(-0.1, 0), A3' (2.1, 0), a6 '(-0.05, 2), and A8' (2.05, 2). And then obtaining the connecting line distance between the two position marks, the distance of the two position marks in the first direction and the upper distance of the two position marks in the second direction according to the positions of the two position marks after rinsing, and obtaining the twist slope rate according to the ratio of the distance of the two position marks in the second direction to the connecting line distance between the two position marks. The twist rate is obtained from the ratio of B3 to B1 as calculated from the positions a1 '(-0.1, 0) and a 6' (-0.05, 2) of the position markers after rinsing to obtain a connecting line distance B1 of 2.0006, a distance B2 of 2 in the first direction of the two position markers, and a distance B3 of 0.05 in the second direction of the two position markers. Of course, the link distance between the sets of position marks and the upper distance of the sets of position marks in the second direction may also be calculated, and the twist rate may be obtained according to the ratio of the sum of the upper distances of the sets of position marks in the second direction to the sum of the link distances of the sets of position marks, such as recording the link distance B1 between the position marks a1 'and a 6' as 2.0006 and the upper distance B3 in the second direction as 0.05, the link distance D1 between A3 'and a 8' as 2.0006, the upper distance D2 in the first direction as 2, and the upper distance D3 in the second direction as 0.05, respectively, and the twist rate according to the ratio of the sum of the upper distances B3 and D3 of the sets of position marks in the second direction to the sum of the link distances B1 and D1 of the sets of position marks.
Referring to fig. 5, in some embodiments, the method further includes:
obtaining the actual height between the rinsed cloth and the identification terminal according to the calibration height from the calibration plane to the identification terminal and the thickness of the rinsed cloth;
and obtaining the distribution information of at least part of the position marks after rinsing according to the identification information and the actual height of the identification terminal.
The actual height is calculated according to the thickness of the cloth, and the distribution information of the rinsed position marks is calculated by utilizing the actual height, so that the calculation error is favorably reduced, and the test is more accurate.
It can be understood that if the template information of the cloth is also identified through the identification terminal, the influence caused by the thickness of the cloth can be removed by the method.
Specifically, the calibration plane refers to a plane (to-be-measured plane) on which the cloth is placed, the calibration height refers to a distance between the identification terminal and the calibration plane (when the cloth is not placed on the calibration plane), and the actual height is a difference between the calibration height and the thickness of the rinsed cloth.
The identification information of the identification terminal comprises an identification angle, and during measurement, the identification terminal acquires visual position information of the position marks to be measured, and then calculates distribution information (such as distance between the position marks after rinsing) between the corresponding position marks according to the current identification angle and the actual height.
As illustrated with reference to fig. 5, the recognition terminal obtains the visual position information of the position marks to be measured, such as position marks a1 and A3, and then calculates the distance (product of TanZ and H3) between the two position marks according to the current recognition angle Z and the actual height H3 (the nominal height H1 — the thickness of the rinsed cloth H2), and using the recognition angle Z and the actual height H3 between the rinsed cloth and the recognition terminal.
Referring to fig. 2, in some embodiments, the method further includes:
acquiring cloth and/or an image of the cloth after rinsing;
acquiring gradient information of each pixel point in the cloth and/or the image after the cloth is rinsed;
screening pixel points according to preset gradient information so as to reserve the pixel points meeting the preset gradient information;
and identifying the position mark according to the pixel points meeting the preset gradient information.
Because the position mark has certain characteristics, such as an edge contour, and the gradient information can be used for enhancing the image, in essence, the edge contour is used for enhancing, so that the edge contour is easier to detect, the position mark is convenient to find, and the recognition rate is improved.
And the gradient information is also the place where the gray scale changes obviously (the gray scale value changes greatly, the specific change amplitude can be set by oneself), and the edge profile is also the place where the gray scale changes obviously, and the introduction of the gradient information can accelerate the recognition efficiency.
Of course, where the gray scale change is significant may or may not be an edge profile, further analysis may be required.
Specifically, the gradient information includes gradient strength and gradient direction, the preset gradient information may be a set standard threshold, and the gradient strength corresponding to each pixel point is screened according to the standard threshold, so as to retain the pixel points corresponding to the gradient strength meeting the size of the standard threshold.
And partial pixel points are filtered by introducing a standard threshold, so that the edge can be more accurately identified, and the error is reduced.
Usually, places with obvious gray changes are concentrated, non-maximum suppression can be adopted, pixel points with the largest gray changes in the gradient direction in a local range (the specific size of the local range is not limited herein), and other pixel points without being reserved can be removed to change edge profiles with a plurality of pixel widths into an edge profile with a single pixel width, so that the identification is facilitated.
Of course, after the non-maximum value is suppressed, there are still many pixels that may meet the edge contour, and then a dual threshold, i.e., a low threshold L and a high threshold H (the threshold may be set by itself) may be further set. When the method is used, the pixel points with the gray level change larger than the high threshold value H are set as strong edge pixels, and the pixel points are rejected if the gray level change is lower than the low threshold value L. The pixel points between the low threshold L and the high threshold H are set as weak edges. And further, continuously detecting whether the weak edge area contains strong edge pixels, if so, retaining, and if not, rejecting the pixel points. And finally, identifying the strong edge as the position mark. The position mark may be a calibration point or other geometric figure, and if the position mark is in the form of a geometric figure, the position mark can be recognized by performing relevant geometric figure recognition on the basis of recognizing a strong edge.
Of course, a noise region in an unprocessed image is also a region having a large change in gradation, and is easily recognized as a false edge, which affects the recognition rate. Therefore, when an unprocessed image is just acquired, Gaussian filtering is used for noise reduction to remove noise, so that false edges can be removed to smooth the image, and the recognition success rate is improved. Of course, the specific gaussian filtering implementation is not limited herein as long as "gaussian filtering" can be used to filter out noise.
According to the method and the device, template information corresponding to the cloth is obtained, the template information comprises standard distribution information of at least part of position marks and distribution information after rinsing of at least part of position marks of the rinsed cloth is obtained, and then the shrinkage and/or the skew of the rinsed cloth are obtained according to the distribution information after rinsing and the standard distribution information of the rinsed cloth. According to the distribution information and the standard distribution information after the cloth is rinsed, the shrinkage rate and/or the skew rate of the rinsed cloth can be accurately calculated, the cloth rinsing machine is suitable for various cloths, and the manual strength can be reduced.
Referring to fig. 6, an embodiment of the present application further discloses a cloth detecting device, for detecting a shrinkage rate and/or a skew rate of a rinsed cloth, where a plurality of position marks are distributed on the cloth, where the device includes:
the acquisition module 10 is used for acquiring template information corresponding to the cloth, wherein the template information comprises standard distribution information of at least part of position marks and distribution information after rinsing of at least part of position marks of the cloth;
and the calculating module 11 is used for obtaining the shrinkage and/or the skew of the rinsed cloth according to the rinsed distribution information and the standard distribution information obtained after the cloth is rinsed.
For a detailed description of the cloth detecting device, the cloth detecting method is described in detail, and is not repeated herein.
Referring to fig. 7, an embodiment of the present application further discloses an electronic device, which includes:
a processor 21;
a memory 20 having stored therein executable instructions of the processor 21;
the processor 21 is configured to execute the above-mentioned cloth detecting method through executing the executable instructions.
The embodiment of the application also discloses a computer readable storage medium, wherein a computer program is stored on the computer readable storage medium, and when the computer program is executed by a processor, the cloth detection method is realized.
The embodiment of the application also discloses a computer program product or a computer program, which comprises computer instructions, and the computer instructions are stored in a computer readable storage medium. The processor of the electronic device reads the computer instructions from the computer-readable storage medium, and executes the computer instructions, so that the electronic device executes the cloth detection method.
It should be understood that in the embodiments of the present Application, the Processor may be a Central Processing Unit (CPU), and the Processor may also be other general purpose processors, Digital Signal Processors (DSPs), Application Specific Integrated Circuits (ASICs), Field Programmable Gate Arrays (FPGAs) or other Programmable logic devices, discrete Gate or transistor logic devices, discrete hardware components, and the like. A general purpose processor may be a microprocessor or the processor may be any conventional processor or the like.
It will be understood by those skilled in the art that all or part of the processes of the methods of the embodiments described above can be implemented by hardware associated with computer program instructions, and the programs can be stored in a computer readable storage medium, and when executed, can include the processes of the embodiments of the methods described above. The storage medium may be a magnetic disk, an optical disk, a Read-Only Memory (ROM), a Random Access Memory (RAM), or the like.
The above disclosure is only a preferred embodiment of the present application and should not be taken as limiting the scope of the present application, so that the claims of the present application are covered by the appended claims.
Claims (10)
1. A cloth detection method is used for detecting the shrinkage and/or the skew of a rinsed cloth, and a plurality of position marks are distributed on the cloth, and is characterized by comprising the following steps:
acquiring template information corresponding to the cloth, wherein the template information comprises standard distribution information of at least part of the position marks and distribution information after rinsing of at least part of the position marks after rinsing of the cloth;
and obtaining the shrinkage rate and/or the skew rate of the rinsed cloth according to the rinsed distribution information and the standard distribution information obtained after the cloth is rinsed.
2. The cloth inspecting method according to claim 1,
the step of acquiring the template information corresponding to the cloth comprises the following steps:
acquiring an image of the cloth;
and extracting and analyzing according to the image of the cloth to obtain the template information.
3. The cloth inspecting method according to claim 1,
the step of acquiring distribution information after rinsing of at least part of the position marks after the cloth rinsing comprises the following steps:
acquiring an image of the rinsed cloth;
and extracting and analyzing according to the image of the cloth after rinsing to obtain the distribution information after rinsing.
4. The cloth inspecting method according to claim 1,
the standard distribution information comprises standard coordinate information corresponding to at least part of the position marks;
the distribution information after rinsing comprises coordinate information after rinsing of at least part of the position mark;
the step of obtaining the shrinkage rate of the rinsed cloth according to the rinsed distribution information and the standard distribution information obtained after the rinsing of the cloth comprises the following steps:
and obtaining the shrinkage rate according to the length information between at least two position marks obtained from the standard coordinate information and the same length information between at least two position marks obtained from the coordinate information after rinsing.
5. The cloth inspecting method according to claim 1,
the step of obtaining the skew rate of the rinsed cloth according to the rinsed distribution information and the standard distribution information obtained after the rinsing of the cloth comprises the following steps:
and obtaining the twist rate according to the positions of at least two position markers after rinsing.
6. The cloth detecting method according to claim 1, further comprising:
obtaining the actual height between the rinsed cloth and the identification terminal according to the calibration height from the calibration plane to the identification terminal and the thickness of the rinsed cloth;
and obtaining the distribution information of at least part of the position marks after rinsing according to the identification information of the identification terminal and the actual height.
7. The cloth detecting method according to claim 1, further comprising:
acquiring the cloth and/or an image of the rinsed cloth;
acquiring gradient information of each pixel point in the cloth and/or the image after the cloth is rinsed;
screening the pixel points according to preset gradient information so as to reserve the pixel points meeting the preset gradient information;
and identifying the position mark according to the pixel points meeting the preset gradient information.
8. The utility model provides a cloth detection device for detect shrinkage and/or skew rate after the cloth rinses, distribute on the cloth and have a plurality of position mark, its characterized in that, the device includes:
the acquisition module is used for acquiring template information corresponding to the cloth, and the template information comprises standard distribution information of at least part of the position marks and distribution information after rinsing of at least part of the position marks after rinsing of the cloth;
and the calculation module is used for obtaining the shrinkage and/or the skew of the rinsed cloth according to the rinsed distribution information and the standard distribution information obtained after the cloth is rinsed.
9. An electronic device, comprising:
a processor;
a memory having stored therein executable instructions of the processor;
wherein the processor is configured to perform the cloth detection method of any one of claims 1-7 via execution of the executable instructions.
10. A computer-readable storage medium on which a computer program is stored, the computer program, when being executed by a processor, implementing the cloth detecting method according to any one of claims 1 to 7.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202111195389.6A CN113962950A (en) | 2021-10-13 | 2021-10-13 | Cloth detection method and device, electronic equipment and computer readable storage medium |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202111195389.6A CN113962950A (en) | 2021-10-13 | 2021-10-13 | Cloth detection method and device, electronic equipment and computer readable storage medium |
Publications (1)
Publication Number | Publication Date |
---|---|
CN113962950A true CN113962950A (en) | 2022-01-21 |
Family
ID=79463857
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN202111195389.6A Pending CN113962950A (en) | 2021-10-13 | 2021-10-13 | Cloth detection method and device, electronic equipment and computer readable storage medium |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN113962950A (en) |
Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US4586372A (en) * | 1984-05-08 | 1986-05-06 | Robert Massen | Method and arrangement for the continuous contactless measurement of the shrinkage of textiles |
CN101979751A (en) * | 2010-09-28 | 2011-02-23 | 中华人民共和国陕西出入境检验检疫局 | Method for detecting dimensional stability of fabric based on image analysis |
CN109187540A (en) * | 2018-09-13 | 2019-01-11 | 海南速易检测技术研究院有限公司 | A kind of washing shrinkage of textiles test method and its test device |
CN109270002A (en) * | 2018-09-30 | 2019-01-25 | 东莞市默欣电子科技有限公司 | Cloth washing shrinkage visible detection method and its use |
CN211478084U (en) * | 2019-12-27 | 2020-09-11 | 胡红 | Cloth shrinkage detection device based on visual detection |
-
2021
- 2021-10-13 CN CN202111195389.6A patent/CN113962950A/en active Pending
Patent Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US4586372A (en) * | 1984-05-08 | 1986-05-06 | Robert Massen | Method and arrangement for the continuous contactless measurement of the shrinkage of textiles |
CN101979751A (en) * | 2010-09-28 | 2011-02-23 | 中华人民共和国陕西出入境检验检疫局 | Method for detecting dimensional stability of fabric based on image analysis |
CN109187540A (en) * | 2018-09-13 | 2019-01-11 | 海南速易检测技术研究院有限公司 | A kind of washing shrinkage of textiles test method and its test device |
CN109270002A (en) * | 2018-09-30 | 2019-01-25 | 东莞市默欣电子科技有限公司 | Cloth washing shrinkage visible detection method and its use |
CN211478084U (en) * | 2019-12-27 | 2020-09-11 | 胡红 | Cloth shrinkage detection device based on visual detection |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
KR101895873B1 (en) | Method and apparatus for fabric inspection | |
CN109934802A (en) | A kind of Fabric Defects Inspection detection method based on Fourier transformation and morphological image | |
CN104851085B (en) | The automatic method and system for obtaining detection zone in image | |
Na et al. | Assessing wrinkling using image analysis and replicate standards | |
KR20190118451A (en) | Apparel production monitoring system using image recognition | |
CN109472271A (en) | Printed circuit board image contour extraction method and device | |
CN109886960A (en) | The method of glass edge defects detection based on machine vision | |
CN115330795B (en) | Cloth burr defect detection method | |
CN111539927B (en) | Detection method of automobile plastic assembly fastening buckle missing detection device | |
CN110781913B (en) | Zipper cloth belt defect detection method | |
CN111160451A (en) | Flexible material detection method and storage medium thereof | |
CN110514675A (en) | Intelligent detection method and system for label | |
CN109540925A (en) | Complicated ceramic tile surface defect inspection method based on difference shadow method and local variance measurement operator | |
CN110503623A (en) | Method for identifying bird nest defect on power transmission line based on convolutional neural network | |
Furferi et al. | Machine vision-based pilling assessment: a review | |
CN116402742A (en) | Visual detection method and system for surface defects of automobile sheet metal part | |
CN109242846A (en) | Method, apparatus and equipment for fabric surface defects detection | |
Pereira et al. | Computer vision techniques for detecting yarn defects | |
JP2021140373A (en) | Image processing device, and dyeing quality evaluation method for knit fabric | |
Javed et al. | Comparative analysis of different fabric defects detection techniques | |
CN110458809A (en) | A kind of yarn evenness detection method based on sub-pixel edge detection | |
CN113962950A (en) | Cloth detection method and device, electronic equipment and computer readable storage medium | |
CN105448095B (en) | Method and apparatus are surveyed in a kind of yellow mark car test | |
Shady et al. | Image processing based method evaluating fabric structure characteristics | |
JP5155938B2 (en) | Pattern contour detection method |
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 |