Fabric detection method, device, electronic device and computer-readable storage medium

By obtaining the template information of the fabric and the distribution information after rinsing, and calculating the shrinkage rate and torsional slope after rinsing, the problems of detection error and low manual operation efficiency in the prior art are solved, and accurate detection and automated operation are achieved.

CN113962950BActive Publication Date: 2025-02-07FINEETEX DONGGUAN CO LTD
View PDF 1 Cites 0 Cited by

Patent Information

Application Number
CN202111195389.6
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2021-10-13
Publication Date
2025-02-07
Estimated Expiration
2041-10-13

AI Technical Summary

Technical Problem

The prior art has errors in detecting the shrinkage rate and torsional slope of the fabric, and requires a lot of manual operation, which is inefficient.

Method used

By obtaining the template information of the fabric, including the standard distribution information of the position mark and the distribution information after rinsing, the calculation module is used to calculate the shrinkage rate and torsion slope after rinsing.

Benefits of technology

It realizes accurate detection of the shrinkage rate and torsional slope of the fabric after rinsing, and is suitable for a variety of fabrics, reducing manual operation strength.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN113962950B_ABST
    Figure CN113962950B_ABST
Patent Text Reader

Abstract

The present application discloses a cloth detection method, device, electronic device and computer-readable storage medium, which are used to detect the shrinkage rate and / or twist rate of the cloth after rinsing, and a plurality of position marks are distributed on the cloth, wherein the method comprises: obtaining template information corresponding to the cloth, the template information comprises standard distribution information of at least part of the position marks, and obtaining post-rinsing distribution information of at least part of the position marks after rinsing the cloth; obtaining the shrinkage rate and / or twist rate of the cloth after rinsing according to the post-rinsing distribution information and standard distribution information obtained after rinsing the cloth. The present application can accurately calculate the shrinkage rate and / or twist rate of the cloth after rinsing according to the post-rinsing distribution information and standard distribution information obtained after rinsing the cloth, and is applicable to a variety of cloths, and can reduce manual labor intensity.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the technical field of cloth detection, and in particular to a cloth detection method, device, electronic device and computer-readable storage medium. Background Art

[0002] Shrinkage is an indicator of the change in fabric size after washing and drying. It is one of the important wearing properties of fabric. The shrinkage has a great influence on the specifications of ready-made clothes or other woven products. In the process of cutting clothes, the shrinkage must be considered to ensure the specifications and wearing requirements of the ready-made clothes.

[0003] Similarly, fabrics, the hem of clothing tops or the side seams of pants (skirts) may be twisted (also known as skew) during manufacturing, and often twisted after washing. In mild cases, it affects the appearance, and in severe cases, it affects the performance of the clothing. Therefore, it is very necessary to evaluate the distortion rate (also known as skew rate) after washing for fabrics and ready-made clothing products.

[0004] Generally speaking, during the weaving and dyeing process, the fibers are stretched many times, and the processing time is long. The greater the tension, the greater the shrinkage rate of the fabric, and vice versa. Similarly, the twist rate will also change. However, when calculating the shrinkage rate / twist rate of fabric, it is necessary to manually measure the fabric with a ruler, then mark it, and then establish a characteristic template. After that, the fabric is rinsed, and finally the shrinkage rate / twist rate of the fabric is manually calculated. Often, the calculated shrinkage rate / twist rate of the fabric has errors. Summary of the invention

[0005] The purpose of the present application is to provide a cloth detection method, device, electronic device and computer-readable storage medium to solve the deficiencies of the above-mentioned technical problems, which can accurately detect the shrinkage rate and / or twist rate of the cloth, are applicable to a variety of cloths, and can reduce manual labor.

[0006] In order to achieve the above-mentioned purpose, the present application discloses a cloth detection method for detecting the shrinkage rate and / or the skew rate of the cloth after rinsing, wherein a plurality of position marks are distributed on the cloth, wherein the method comprises:

[0007] Acquiring template information corresponding to the cloth, the template information including standard distribution information of at least part of the position marks, and acquiring post-rinsing distribution information of at least part of the position marks after rinsing the cloth;

[0008] The shrinkage rate and / or the twist rate of the cloth after rinsing are obtained according to the post-rinsing distribution information and the standard distribution information obtained after the cloth is rinsed.

[0009] Preferably, the “obtaining template information corresponding to the fabric” includes:

[0010] Get the image of the cloth;

[0011] The template information is obtained by extracting and analyzing the image of the cloth.

[0012] Preferably, the “obtaining the post-rinsing distribution information of at least part of the position marks of the cloth after rinsing” comprises:

[0013] Acquire the image of the cloth after rinsing;

[0014] The post-rinsing distribution information is obtained by extracting and analyzing the image of the cloth after rinsing.

[0015] Preferably, the standard distribution information includes standard coordinate information corresponding to at least part of the position marks;

[0016] The post-rinsing distribution information includes post-rinsing coordinate information of at least part of the position marks;

[0017] The “obtaining the shrinkage rate of the cloth after rinsing according to the post-rinsing distribution information obtained after rinsing the cloth and the standard distribution information” includes:

[0018] The shrinkage rate is obtained based on the length information between at least two of the position marks obtained from the standard coordinate information and the length information between at least two of the position marks obtained from the post-rinsing coordinate information.

[0019] Preferably, the “obtaining the twist slope of the cloth after rinsing according to the post-rinsing distribution information obtained after rinsing the cloth and the standard distribution information” comprises:

[0020] The twist slope is obtained based on the positions of at least two of the position marks after rinsing.

[0021] Preferably, the cloth detection method further comprises:

[0022] Obtaining the actual height between the cloth after rinsing and the identification terminal according to the calibrated height from the calibrated plane to the identification terminal and the thickness of the cloth after rinsing;

[0023] The post-rinsing distribution information of at least part of the position mark is obtained according to the identification information of the identification terminal and the actual height.

[0024] Preferably, the cloth detection method further includes:

[0025] acquiring the cloth and / or an image of the cloth after rinsing;

[0026] Acquiring gradient information of each pixel in the cloth and / or the image of the cloth after rinsing;

[0027] Filtering the pixel points according to preset gradient information to retain the pixel points that meet the preset gradient information;

[0028] The position marker is identified according to the pixel point satisfying the preset gradient information.

[0029] In order to achieve the above-mentioned purpose, the present application further discloses a cloth detection device for detecting the shrinkage rate and / or the twist rate of the cloth after rinsing, wherein a plurality of position marks are distributed on the cloth, wherein the device comprises:

[0030] an acquisition module, the acquisition module being used to acquire template information corresponding to the cloth, the template information including standard distribution information of at least part of the position marks, and post-rinsing distribution information of at least part of the position marks after the cloth is rinsed;

[0031] A calculation module is used to obtain the shrinkage rate and / or the twist slope of the cloth after rinsing according to the post-rinsing distribution information obtained after the cloth is rinsed and the standard distribution information.

[0032] In order to achieve the above object, the present application also discloses an electronic device, which includes:

[0033] processor;

[0034] a memory storing executable instructions of the processor;

[0035] The processor is configured to perform the cloth detection method as described above by executing the executable instructions.

[0036] In order to achieve the above-mentioned purpose, the present application also discloses a computer-readable storage medium having a computer program stored thereon, which includes a method for implementing the cloth detection method as described above when the computer program is executed by a processor.

[0037] The present application obtains template information corresponding to the fabric, the template information includes standard distribution information of at least part of the position marks, and obtains post-rinsing distribution information of at least part of the position marks after rinsing the fabric, and then obtains the shrinkage rate and / or twist rate of the fabric after rinsing according to the post-rinsing distribution information and the standard distribution information obtained after rinsing the fabric. The present application can accurately calculate the shrinkage rate and / or twist rate of the fabric after rinsing according to the post-rinsing distribution information and the standard distribution information obtained after rinsing the fabric, and is applicable to a variety of fabrics, and can reduce manual labor. BRIEF DESCRIPTION OF THE DRAWINGS

[0038] Figure 1 This is a flow chart of a cloth detection method according to an embodiment of the present application.

[0039] Figure 2 A schematic diagram of the style of position calibration in an embodiment of the present application.

[0040] Figure 3 Schematic diagram of calculating the shrinkage rate of fabric after rinsing according to an embodiment of the present application.

[0041] Figure 4 Schematic diagram of calculation of the twist slope of the cloth after rinsing according to an embodiment of the present application.

[0042] Figure 5 This is a schematic diagram of identifying a terminal according to an embodiment of the present application.

[0043] Figure 6 is a schematic block diagram of a cloth detection device according to an embodiment of the present application.

[0044] Figure 7 A schematic block diagram of an electronic device according to an embodiment of the present application. DETAILED DESCRIPTION

[0045] In order to explain in detail the technical content, structural features, implementation principles, and achieved purposes and effects of the present application, the following is a detailed description in conjunction with the implementation methods and the accompanying drawings.

[0046] See also Figure 1 The present application discloses a cloth detection method for detecting the shrinkage rate and / or the twist rate of the cloth after rinsing, wherein a plurality of position marks are distributed on the cloth, wherein the method comprises:

[0047] 101. Acquire template information corresponding to the cloth, where the template information includes standard distribution information of at least part of the position marks, and obtain post-rinsing distribution information of at least part of the position marks after rinsing the cloth.

[0048] See also Figure 2 The position mark on the cloth can be a calibration point, a geometric pattern, or other specific marking methods, as long as the cloth detection method of the present application can be executed according to the "position mark".

[0049] Furthermore, the specific marking method of the position mark on the fabric may be to use indelible ink or a fabric marking printer, or to use a thread sewn into the fabric for marking, the color of which should contrast with the color of the fabric, or to use staples. Of course, other specific marking methods may also be used, which are not limited here.

[0050] Specifically, the template information refers to the information of the unrinsed cloth, which can be extracted from the current cloth to be detected, or the information of the same type of cloth can be pre-stored as the template information, so that when multiple pieces of the same type of cloth are subsequently detected, it is not necessary to repeatedly extract the template information from each piece of cloth, etc., which is not limited here. In addition, the template information can correspond to the information on the entire cloth, or to the information of a part of the cloth area, as long as the template information corresponds to at least a part of the position marks distributed on the cloth.

[0051] Specifically, the standard distribution information includes position information (such as coordinate information, length information, etc.) between position marks of the cloth before rinsing.

[0052] Specifically, the template information can be digital information, and the template information can be extracted based on at least a portion of the position marks distributed on the fabric. Of course, the template information that meets the test standards (such as the number of position marks that meet the test standards, position information, and the distance between position marks, etc.) can also be set in advance on the system, so that the template information that meets the test standards can be directly called in subsequent tests, without the need to obtain the corresponding template information every time the test is performed, so as to shorten the test time and be applicable to the testing of a large number of fabrics. Of course, the template information can also be image information, as long as it can be used to execute the fabric detection method of the present application, and it is not limited here.

[0053] In some implementations, the above “obtaining template information corresponding to the fabric” includes:

[0054] Get the image of the cloth;

[0055] The template information is obtained by extracting and analyzing the image of the cloth.

[0056] The method of acquiring images is helpful to improve the accuracy of acquiring template information.

[0057] Specifically, the image of the fabric can be acquired in real time through the recognition terminal, or a stored fabric image can be called from the system, and then the system performs relevant processing on the fabric image to obtain the corresponding template information. Of course, when the recognition terminal acquires the image of the fabric, the recognition terminal also performs relevant processing on the image of the fabric to obtain the template information.

[0058] Specifically, fabric rinsing may refer to one or more rinses, and the specific rinsing time and number of times may be set by oneself. Of course, in order to better test the shrinkage rate and / or twist rate of the fabric, the rinsing time and number of times are set according to relevant inspection standards.

[0059] Specifically, the post-rinsing distribution information includes position information (such as coordinate information, length information, etc.) between position marks of the cloth after rinsing.

[0060] In some embodiments, the above-mentioned “obtaining the post-rinsing distribution information of at least part of the position marks of the cloth after rinsing” includes:

[0061] Acquire the image of the cloth after rinsing;

[0062] The post-rinsing distribution information is obtained by extracting and analyzing the image of the cloth after rinsing.

[0063] The acquisition of images is helpful to improve the accuracy of acquiring the distribution information after rinsing.

[0064] 102. Obtain the shrinkage rate and / or the twist rate of the fabric after rinsing according to the post-rinsing distribution information and the standard distribution information obtained after rinsing the fabric.

[0065] Specifically, the distribution information after rinsing and the standard distribution information can both be digital information to facilitate calculation and processing between systems. Of course, the distribution information after rinsing and the standard distribution information can both be image information. In use, the distribution information after rinsing and the standard distribution information can be fused into the same image information, and then the data can be extracted and analyzed from the image information to calculate the shrinkage rate and / or the torsion slope. Of course, the images of the distribution information after rinsing and the standard distribution information can also be extracted and analyzed separately, and then analyzed when the shrinkage rate and / or the torsion slope need to be calculated.

[0066] In some embodiments, the standard distribution information includes standard coordinate information corresponding to at least some of the position markers;

[0067] The post-rinse distribution information includes post-rinse coordinate information of at least a portion of the position markers;

[0068] The above-mentioned “obtaining the shrinkage rate of the fabric after rinsing according to the distribution information after rinsing the fabric and the standard distribution information” includes:

[0069] The shrinkage rate is obtained based on the length information between at least two position marks obtained from the standard coordinate information and the length information between at least two position marks obtained from the post-rinsing coordinate information.

[0070] By obtaining the length information before rinsing and the length information after rinsing between at least two position marks based on the standard coordinate information and the coordinate information after rinsing, the shrinkage rate of the fabric after rinsing can be calculated by analyzing the length information before rinsing and the length information after rinsing, thereby improving the test efficiency and accuracy.

[0071] Specifically, the pre-rinsing length information between at least two position marks is obtained according to the standard coordinate information, and the post-rinsing length information between the position marks corresponding to the pre-rinsing length information is obtained according to the post-rinsing coordinate information.

[0072] Specifically, the shrinkage rate refers to the ratio of the change in length of the fabric after rinsing (the difference between the length of the fabric after rinsing and the length of the fabric before rinsing) to the length of the fabric before rinsing. Of course, the shrinkage rate also includes the shrinkage rate in the latitude (horizontal) direction and the shrinkage rate in the longitude (vertical) direction, etc.

[0073] Combine the following Figure 3 To illustrate, assume that the cloth is marked with position marks A1, A2, A3, A4, A5, A6, A7, and A8. Take position mark A1 as the coordinate origin, and the position marks are separated by 1 unit length. Obtain 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). The length information between at least two position marks is obtained according to the standard coordinate information (for example, the length information C1 of the position marks A1 and A3 obtained according to the position marks A1 and A3 is 2), and then the length information after rinsing between the position marks corresponding to the length information before rinsing is obtained according to the coordinate information after rinsing (for example, the coordinate information after rinsing is A1'(-0.1, 0) and A3'(2.1, 0), then the length information of the position marks A1' and A3' after rinsing is C1' is 2.2). According to the shrinkage rate of the cloth after rinsing, which is the ratio of the change in the length of the cloth after rinsing (the difference between the length of the cloth after rinsing and the length of the cloth before rinsing) to the length of the cloth before rinsing, that is, (C1'-C1) / C1, the shrinkage rate of the cloth after rinsing is 0.1. Of course, you can also calculate the shrinkage rate in the latitude (horizontal) direction and the longitude (vertical) direction. Then select the position mark in the latitude (horizontal) direction and the position mark in the longitude (vertical) direction accordingly, and then calculate accordingly according to the above instructions. I will not elaborate on this here.

[0074] In some embodiments, the above “obtaining the twist slope of the cloth after rinsing according to the post-rinsing distribution information obtained after rinsing the cloth and the standard distribution information” includes:

[0075] The twist slope is obtained based on the positions of the at least two position marks after rinsing.

[0076] By using at least two position marks after rinsing to obtain the twist slope, the test efficiency and accuracy can be improved.

[0077] Specifically, the standard distribution information also includes a positioning coordinate system, and the two position marks are located on the positioning coordinate system (the positioning coordinate system defines a first direction and a second direction that are perpendicular to each other), and the positioning coordinate system can measure the line 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. There are many specific ways to calculate the twist slope. For example, the line distance between the two position marks, the distance between the two position marks in the first direction, and the upper distance between the two position marks in the second direction can be obtained only based on the positions of the two position marks after rinsing, and then the twist slope is obtained based on the ratio of the distance between the two position marks in the second direction to the line distance between the two position marks. Of course, the line distance between multiple groups of position marks and the upper distance of multiple groups of position marks in the second direction can also be calculated, and the twist slope can be obtained based on the ratio of the sum of the upper distances of each group of position marks in the second direction to the sum of the line distances between each group of position marks.

[0078] Combine the following Figure 3 and Figure 4Continuing to quote the specific information on the fabric for explanation, select position markers A1, A3, A6, and A8. Record the position of each position marker before and after rinsing (here, coordinates are quoted for explanation for ease of understanding). The coordinates of the position markers before rinsing are A1 (0, 0), A3 (2, 0), A6 (0, 2), and A8 (2, 2), and the coordinates of the position markers after rinsing are A1' (-0.1, 0), A3' (2.1, 0), A6' (-0.05, 2), and A8' (2.05, 2). Then, based on "the positions of the two position markers after rinsing, obtain the distance between the two position markers, the distance between the two position markers in the first direction, and the upper distance between the two position markers in the second direction, and then obtain the torsion slope based on the ratio of the distance between the two position markers in the second direction to the distance between the two position markers." For example, according to the positions A1' (-0.1, 0) and A6' (-0.05, 2) of the position marks after rinsing, the connecting line distance B1 between the two position marks is calculated to be 2.0006, the upper distance B2 of the two position marks in the first direction is 2, and the upper distance B3 of the two position marks in the second direction is 0.05. Finally, the torsion slope is obtained based on the ratio of B3 and B1. Of course, the connecting distances between multiple groups of position marks and the upper distances of multiple groups of position marks in the second direction can also be calculated, and the skew rate can be obtained according to the ratio of the sum of the upper distances of each group of position marks in the second direction to the sum of the connecting distances between each group of position marks. For example, the connecting distance B1 between position marks A1' and A6' is recorded as 2.0006 and the upper distance B3 in the second direction is 0.05, the connecting distance D1 between A3' and A8' is recorded as 2.0006, the upper distance D2 in the first direction is 2, and the upper distance D3 in the second direction is 0.05. Then, the skew rate can be obtained according to the ratio of the sum of the upper distances B3 and D3 of each group of position marks in the second direction to the sum of the connecting distances B1 and D1 between each group of position marks.

[0079] See also Figure 5 In some embodiments, the above method further comprises:

[0080] The actual height between the cloth after rinsing and the identification terminal is obtained according to the calibrated height from the calibrated plane to the identification terminal and the thickness of the cloth after rinsing;

[0081] The post-rinsing distribution information of at least part of the position mark is obtained based on the identification information and the actual height of the identification terminal.

[0082] By calculating the actual height according to the thickness of the fabric and then using the actual height to calculate the post-rinsing distribution information of the position mark, it is helpful to reduce calculation errors and make the test more accurate.

[0083] It is understandable that if the template information of the cloth is also identified by the identification terminal, the above method can also be used to remove the influence caused by the thickness of the cloth.

[0084] Specifically, the calibration plane refers to the plane on which the cloth is placed (the plane to be measured), the calibration height refers to the distance between the identification terminal and the calibration plane (when no cloth is placed on the calibration plane), and the actual height is the difference between the calibration height and the thickness of the cloth after rinsing.

[0085] The identification information of the identification terminal includes the identification angle. During measurement, the identification terminal obtains the visual position information of the position mark to be measured, and then calculates the post-rinsing distribution information between the corresponding position marks (such as the distance between the position marks after rinsing) based on the current identification angle and actual height.

[0086] Combination Figure 5 To illustrate, 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 between the two position marks (the product of TanZ and H3) based on the current recognition angle Z and the actual height H3 (calibrated height H1-the thickness H2 of the fabric after rinsing) using the recognition angle Z and the actual height H3 between the fabric after rinsing and the recognition terminal end.

[0087] See also Figure 2 In some embodiments, the above method further comprises:

[0088] acquiring images of the fabric and / or the fabric after rinsing;

[0089] Obtaining gradient information of each pixel in the cloth and / or the image after the cloth is rinsed;

[0090] Filtering pixels according to preset gradient information to retain pixels that meet the preset gradient information;

[0091] Identify position markers based on pixel points that meet preset gradient information.

[0092] Since the position marker has certain characteristics, such as edge contours, and the gradient information can be used to enhance the image, it is essentially used to enhance the edge contours to make it easier to detect the edge contours, facilitate finding the position markers, and improve the recognition rate.

[0093] Moreover, gradient information is also where the grayscale changes significantly (the grayscale value changes greatly, and the specific change range can be set by yourself), and the edge contour is also where the grayscale changes significantly. Introducing gradient information can speed up recognition efficiency.

[0094] Of course, the places where the grayscale changes obviously may be edge contours, or they may not be edge contours, which requires further analysis.

[0095] Specifically, the gradient information includes gradient strength and gradient direction. The preset gradient information may be a set standard threshold. The gradient strength corresponding to each pixel point is screened according to the standard threshold to retain the pixel points corresponding to the gradient strength that meets the standard threshold.

[0096] By introducing a standard threshold to filter some pixels, it is helpful to identify edges more accurately and reduce errors.

[0097] Since areas with obvious grayscale changes are usually concentrated, non-maximum suppression can also be used to retain the pixels with the largest grayscale changes in the gradient direction within the local range (the specific size of the local range is not limited here), and not retain the others. In this way, a large part of the pixels can be removed to convert edge contours with a width of multiple pixels into edge contours with a width of one pixel, which is easy to identify.

[0098] Of course, after non-maximum suppression, there are still many pixels that may conform to the edge contour, so a double threshold can be further set, that is, a low threshold L and a high threshold H (the size of the threshold can be set by yourself). When in use, the pixel whose grayscale change is greater than the high threshold H is set as a strong edge pixel, and the pixel whose grayscale change is lower than the low threshold L is removed. The pixels between the low threshold L and the high threshold H are set as weak edges. Further, continue to detect whether the weak edge area contains strong edge pixels. If so, retain them, if not, remove the pixels. The strong edge finally identified is the position marker. Of course, the position marker can be a calibration point or other geometric figures. If it is in the form of a geometric figure, the position marker can be identified by performing related geometric figure recognition on the basis of identifying the strong edge.

[0099] Of course, generally speaking, the noise area in the unprocessed image is also the area with large grayscale changes, which is easier to be identified as a false edge, which will affect the recognition rate. Therefore, when the unprocessed image is just acquired, Gaussian filtering can be used to reduce noise to remove the false edges, smooth the image, and improve the recognition success rate. Of course, the specific implementation method of Gaussian filtering is not limited here, as long as "Gaussian filtering" can be used to filter out noise.

[0100] The present application obtains template information corresponding to the fabric, the template information includes standard distribution information of at least part of the position marks, and obtains post-rinsing distribution information of at least part of the position marks after rinsing the fabric, and then obtains the shrinkage rate and / or twist rate of the fabric after rinsing according to the post-rinsing distribution information and the standard distribution information obtained after rinsing the fabric. The present application can accurately calculate the shrinkage rate and / or twist rate of the fabric after rinsing according to the post-rinsing distribution information and the standard distribution information obtained after rinsing the fabric, and is applicable to a variety of fabrics, and can reduce manual labor.

[0101] See also Figure 6The present application also discloses a cloth detection device for detecting the shrinkage rate and / or the torsion rate of the cloth after rinsing, wherein a plurality of position marks are distributed on the cloth, wherein the device comprises:

[0102] An acquisition module 10, the acquisition module 10 is used to acquire template information corresponding to the cloth, the template information includes standard distribution information of at least part of the position marks, and post-rinsing distribution information for acquiring at least part of the position marks after rinsing the cloth;

[0103] The calculation module 11 is used to obtain the shrinkage rate and / or the twist slope of the cloth after rinsing according to the post-rinsing distribution information and the standard distribution information obtained after the cloth is rinsed.

[0104] For a detailed description of the fabric detection device, please refer to the above-mentioned fabric detection method, which will not be repeated here.

[0105] See also Figure 7 , the embodiment of the present application further discloses an electronic device, which includes:

[0106] Processor 21;

[0107] A memory 20 storing executable instructions of a processor 21;

[0108] The processor 21 is configured to execute the above-mentioned cloth detection method by executing executable instructions.

[0109] The embodiment of the present application further discloses a computer-readable storage medium having a computer program stored thereon, and the computer program implements the above-mentioned cloth detection method when executed by a processor.

[0110] The embodiment of the present application also discloses a computer program product or a computer program, which includes computer instructions stored in a computer-readable storage medium. A processor of an electronic device reads the computer instructions from the computer-readable storage medium, and the processor executes the computer instructions, so that the electronic device performs the above-mentioned cloth detection method.

[0111] It should be understood that in the embodiments of the present application, the processor referred to may be a central processing unit (CPU), and the processor may also be other general-purpose processors, digital signal processors (DSP), application-specific integrated circuits (ASIC), field-programmable gate arrays (FPGA) or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components, etc. A general-purpose processor may be a microprocessor or the processor may also be any conventional processor, etc.

[0112] Those skilled in the art can understand that all or part of the processes in the above-mentioned embodiments can be implemented by hardware related to computer program instructions, and the program can be stored in a computer-readable storage medium, and when the program is executed, it can include the processes of the embodiments of the above-mentioned methods. The storage medium can be a disk, an optical disk, a read-only memory (ROM) or a random access memory (RAM), etc.

[0113] The above disclosure is only a preferred example of the present application and cannot be used to limit the scope of rights of the present application. Therefore, equivalent changes made according to the claims of the present application are all within the scope covered by the present application.

Claims

1. A cloth detection method for detecting the shrinkage rate and / or the twist rate of the cloth after rinsing, wherein a plurality of position marks are distributed on the cloth, characterized in that: The method comprises: Acquiring template information corresponding to the cloth, the template information including standard distribution information of at least part of the position marks, and acquiring post-rinsing distribution information of at least part of the position marks after rinsing the cloth; Obtaining the shrinkage rate and / or the twist rate of the cloth after rinsing according to the post-rinsing distribution information obtained after the cloth is rinsed and the standard distribution information; The standard distribution information includes standard coordinate information corresponding to at least part of the position marks; The post-rinsing distribution information includes post-rinsing coordinate information of at least part of the position marks; The “obtaining the shrinkage rate of the cloth after rinsing according to the post-rinsing distribution information obtained after rinsing the cloth and the standard distribution information” includes: Obtaining the shrinkage rate based on the length information between at least two of the position marks obtained from the standard coordinate information and the length information between at least two of the position marks obtained from the post-rinsing coordinate information; The method further comprises: Obtaining the actual height between the cloth after rinsing and the identification terminal according to the calibrated height from the calibrated plane to the identification terminal and the thickness of the cloth after rinsing; Obtaining, according to the identification information of the identification terminal and the actual height, the post-rinsing distribution information of at least part of the position mark; The identification information includes an identification angle. According to the identification angle and the actual height, the distance between the two position marks is calculated using the identification angle and the actual height between the cloth after rinsing and the identification terminal. The calculation formula is: L=TanZ*H3, where L is the distance between the two position marks, Z is the identification angle, and H3 is the actual angle.

2. The cloth detection method according to claim 1, characterized in that: The "obtaining template information corresponding to the fabric" includes: Get the image of the cloth; The template information is obtained by extracting and analyzing the image of the cloth.

3. The cloth detection method according to claim 1, characterized in that: The “obtaining the post-rinsing distribution information of at least part of the position marks of the cloth after rinsing” comprises: Acquire the image of the cloth after rinsing; The post-rinsing distribution information is obtained by extracting and analyzing the image of the cloth after rinsing.

4. The cloth detection method according to claim 1, characterized in that: The “obtaining the twist slope of the cloth after rinsing according to the post-rinsing distribution information obtained after rinsing the cloth and the standard distribution information” includes: The twist slope is obtained based on the positions of at least two of the position marks after rinsing.

5. The cloth detection method according to claim 1, characterized in that: Also includes: acquiring the cloth and / or an image of the cloth after rinsing; Acquiring gradient information of each pixel in the cloth and / or the image of the cloth after rinsing; Filtering the pixel points according to preset gradient information to retain the pixel points that meet the preset gradient information; The position marker is identified according to the pixel point satisfying the preset gradient information.

6. A cloth detection device for detecting the shrinkage rate and / or the twist rate of the cloth after rinsing, wherein a plurality of position marks are distributed on the cloth, characterized in that: The device comprises: an acquisition module, the acquisition module being used to acquire template information corresponding to the cloth, the template information including standard distribution information of at least part of the position marks, and post-rinsing distribution information of at least part of the position marks after the cloth is rinsed; A calculation module, the calculation module is used to obtain the shrinkage rate and / or the twist slope of the cloth after rinsing according to the post-rinsing distribution information obtained after the cloth is rinsed and the standard distribution information; The standard distribution information includes standard coordinate information corresponding to at least part of the position marks; The post-rinsing distribution information includes post-rinsing coordinate information of at least part of the position marks; The “obtaining the shrinkage rate of the cloth after rinsing according to the post-rinsing distribution information obtained after rinsing the cloth and the standard distribution information” includes: Obtaining the shrinkage rate based on the length information between at least two of the position marks obtained from the standard coordinate information and the length information between at least two of the position marks obtained from the post-rinsing coordinate information; The acquisition module is also used for: Obtaining the actual height between the cloth after rinsing and the identification terminal according to the calibrated height from the calibrated plane to the identification terminal and the thickness of the cloth after rinsing; Obtaining, according to the identification information of the identification terminal and the actual height, the post-rinsing distribution information of at least part of the position mark; The identification information includes an identification angle. According to the identification angle and the actual height, the distance between the two position marks is calculated using the identification angle and the actual height between the cloth after rinsing and the identification terminal. The calculation formula is: L=TanZ*H3, where L is the distance between the two position marks, Z is the identification angle, and H3 is the actual angle.

7. An electronic device, characterized in that: include: processor; a memory storing executable instructions of the processor; The processor is configured to execute the cloth detection method according to any one of claims 1 to 5 by executing the executable instructions.

8. A computer-readable storage medium having a computer program stored thereon, characterized in that: When the computer program is executed by a processor, the cloth detection method according to any one of claims 1 to 5 is implemented.

Citation Information

Patent Citations

  • Cloth shrinkage rate visual inspection method and usage

    CN109270002A