Method and equipment for detecting water absorption diffusion time of fabric based on digital image
Through the digital image detection method, the water absorption and diffusion time of textiles is automatically calculated, which solves the problems of cumbersome operation and low accuracy of existing testing methods, and achieves fast and accurate test results.
Patent Information
- Application Number
- CN202411989198.0
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-12-30
- Publication Date
- 2025-02-28
AI Technical Summary
The existing water absorption diffusion test methods have problems such as cumbersome operation, long time, and the accuracy is affected by manual judgment.
Using a method based on digital image detection, the image of the fabric to be tested is collected by the acquisition camera, contour detection and time-domain filtering is performed, and the water absorption diffusion time is automatically calculated to avoid errors in manual metering.
It realizes rapid and accurate measurement of water absorption and diffusion time of textiles, and improves the accuracy and automation of test results.
Smart Images

Figure CN119534226A_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the field of textiles, and in particular to a method and device for detecting the water absorption and diffusion time of fabrics based on digital images. Background Art
[0002] Water absorption and diffusion is one of the key indicators for textile quality testing. Textiles with good water absorption and diffusion can quickly absorb human sweat, keep the skin dry, and improve wearing comfort.
[0003] There are many existing testing methods. One is the water absorption height method, which measures the height of water diffusion in the vertical direction of the textile within a specified time through capillary action to evaluate its water absorption and diffusion capacity. For example: first prepare a textile sample and balance the humidity in the environment, immerse one end of the sample in water and keep it vertical. After a specified time, measure the height of the water rising in the sample to evaluate the water absorption and diffusion performance of the sample. However, the test time is very long, the operation is cumbersome, and a stable experimental environment is required.
[0004] Another way is to use the water droplet diffusion method to measure the time and area of a fixed volume of water droplets diffusing on the surface of the textile to evaluate the water absorption and diffusion performance of the textile. First, the textile sample is laid flat on the test position, and then a dropper is used to drop liquid on the central test area of the sample. The time for the water droplet to diffuse is manually observed, and the time when the water droplet diffuses and absorbs water on the textile sample is recorded to evaluate the water absorption and diffusion performance of the textile.
[0005] Both of the above methods use manual judgment. When making manual judgments, due to the subjective factors and inconsistent judgment standards of each inspector, and the start and end times of the stopwatch measurement time cannot be synchronized with the time when the liquid drips and diffuses into the textile, the measurement accuracy is affected, resulting in further increase in errors. Summary of the invention
[0006] In view of this, it is necessary to provide a method and device for detecting the water absorption and diffusion time of fabrics based on digital images to solve the above problems.
[0007] The embodiment of the present application provides a method for detecting water absorption and diffusion time of fabric based on digital image, comprising:
[0008] Collecting a set of images of the fabric to be tested during the test process to obtain a test image set;
[0009] Performing contour detection on the test image set, and calculating the contour value of each frame of the image in the test image set;
[0010] The contour value of each frame image is compared with the preset contour threshold in turn. If it is less than the preset contour threshold, the end time value after the completion of water absorption and diffusion is obtained according to the frame image time data corresponding to the contour value of the frame image;
[0011] Obtain a water dripping frame image from the test image set to obtain a start time value or obtain a water pump start time to obtain a start time value;
[0012] The water absorption and diffusion time is calculated according to the start time value and the end time value.
[0013] In at least one embodiment of the present application, the method further includes:
[0014] Fix the fabric to be tested horizontally on the test area of the equipment based on digital image detection of fabric water absorption and diffusion time;
[0015] Acquire an adjusted image of the fabric to be tested in the test area;
[0016] Marking a region of interest in the adjusted image, and generating an adjusted exposure parameter according to a brightness value of the region of interest;
[0017] The exposure of a collection camera on a device for detecting the water absorption and diffusion time of fabrics based on digital images is adjusted according to the exposure adjustment parameters.
[0018] In at least one embodiment of the present application, the method further includes:
[0019] Obtaining the image data stream of the fabric to be tested within a preset time after the exposure of the acquisition camera is adjusted and before the water dripping test to generate an adjusted image data stream;
[0020] Temporal filtering is performed on the adjusted image data stream.
[0021] In at least one embodiment of the present application, the step after performing time domain filtering on the adjusted image data stream includes:
[0022] After time domain filtering, the fabric image to be tested is collected by the acquisition camera and marked as the sample reference image before dripping.
[0023] In at least one embodiment of the present application, the method further includes:
[0024] Generate a drip test signal to control the water pump of the device for detecting the water absorption and diffusion time of the fabric based on digital image to pump water, and perform a drip test on the fabric to be tested through the drip needle of the device for detecting the water absorption and diffusion time of the fabric based on digital image.
[0025] In at least one embodiment of the present application, the method further includes:
[0026] Performing time domain filtering on the test image set to obtain a filtered image set;
[0027] Performing difference comparison between the filtered image set and the sample reference image to obtain a difference map;
[0028] multiplying the difference map to generate a multiplied image;
[0029] Binarizing the multiplied image using a preset threshold to obtain an image greater than the threshold;
[0030] Performing morphological processing on the image greater than the threshold to obtain a processed image;
[0031] The contour area value of the processed image is calculated by contour detection.
[0032] A device for detecting water absorption and diffusion time of fabric based on digital image, applied to any one of the above methods for detecting water absorption and diffusion time of fabric based on digital image, comprising:
[0033] A fixed structure is formed with a test area;
[0034] An acquisition camera, used for capturing images of the test area;
[0035] A light source assembly is fixedly connected to the acquisition camera and illuminates the test area and reflects an image;
[0036] A dripping needle, one end of which is aimed at the test area;
[0037] A water pump is connected to the dripping needle.
[0038] In at least one embodiment of the present application, the drip needle is located between the light source assembly and the fixed structure.
[0039] In at least one embodiment of the present application, the light source assembly includes:
[0040] The housing is formed with a light outlet channel;
[0041] A light source is disposed in the light output channel, and the center of the test area is located on the axis of the light source;
[0042] A semi-transparent reflective member is disposed between the light source member and the fixed structure, and the semi-transparent reflective member is obliquely disposed in the light output channel;
[0043] Among them, the light emitted by the light source can pass through the semi-transparent reflective element or be reflected by the semi-transparent reflective element to illuminate the test area, and be reflected by the liquid in the test area to the semi-transparent reflective element, and be reflected by the semi-transparent reflective element to the shooting end of the collection camera or pass through the semi-transparent reflective element to the shooting end of the collection camera.
[0044] In at least one embodiment of the present application, the angle between the semi-transparent reflective element and the light output channel is 45°, and a mounting hole connected to the light output channel is provided on the housing;
[0045] The shooting end of the acquisition camera is fixed in the mounting hole and is aimed at the semi-transparent reflective element.
[0046] The method and device for detecting the water absorption and diffusion time of fabrics based on digital images according to this embodiment will have at least the following beneficial effects:
[0047] 1. The method and device for detecting the water absorption and diffusion time of fabrics based on digital images provided above acquire the image of the fabric to be tested by a camera during the test, and obtain the water drop contour area by contour detection, and then determine whether the water drop contour area reaches a preset contour threshold. If it is less than the preset contour threshold, the end time value after the completion of water absorption and diffusion is obtained based on the frame image time data corresponding to the contour value of the frame image.
[0048] Then, a dripping frame image is obtained from the test image set to obtain the start time value, and then the water absorption and diffusion time is calculated according to the end time value and the start time value to obtain the accurate water absorption and diffusion time of the fabric to be tested, avoiding the problem of inaccurate water absorption and diffusion time of the fabric to be tested due to inaccuracy caused by manual timing and subjective judgment errors.
[0049] 2. The method and device for detecting water absorption and diffusion time of fabrics based on digital images provided above first fix the fabric to be tested horizontally in a test area with a fixed structure, and then the system controls the water pump to pump liquid. The liquid drips onto the fabric to be tested in the test area through a dripping needle. The light source component emits light to illuminate the liquid on the fabric to be tested in the test area. After mirror reflection, the light is captured by the acquisition camera to obtain images during the test process. The images during the test process include images of the fabric to be tested before dripping and images of the fabric to be tested during the dripping test. The dripping start time value and the dripping end time value are obtained by analyzing the images during the test process.
[0050] The system calculates the difference between the start time value and the end time value to obtain the water absorption and diffusion time of the fabric to be tested.
[0051] Calculating the test start time and test end time of the fabric to be tested by the mirror reflection of the liquid can more accurately calculate the water absorption and diffusion time of the fabric, thereby improving the accuracy of the test results.
[0052] Replacing the traditional manual method of using a dropper in one hand and a stopwatch in the other, it can achieve a more precise dripping process and a more accurate, reliable and high-speed measurement of water absorption and diffusion time. BRIEF DESCRIPTION OF THE DRAWINGS
[0053] Figure 1 A flow chart of a method for detecting water absorption and diffusion time of fabrics based on digital images;
[0054] Figure 2 It is a flow chart of another embodiment of a method for detecting water absorption and diffusion time of fabrics based on digital images;
[0055] Figure 3 It is a structural diagram of a device for detecting the water absorption and diffusion time of fabrics based on digital images;
[0056] Figure 4 for Figure 3 Exploded diagram of
[0057] Figure 5 for Figure 3 A cross-sectional view of a device for detecting the water absorption and diffusion time of fabrics based on digital imaging (the arrow in the figure indicates the path of light).
[0058] Main component symbols
[0059] 100. Equipment for detecting water absorption and diffusion time of fabrics based on digital images;
[0060] 110, fixed structure; 110a, test area;
[0061] 120. Collection camera;
[0062] 130, light source assembly; 131, housing; 132, light source element; 133, semi-transparent reflective element; 131a, mounting hole; 131b, light outlet channel;
[0063] 140. Drip needle;
[0064] 150. Water pump. DETAILED DESCRIPTION
[0065] The embodiments of the present application will be described below in conjunction with the drawings in the embodiments of the present application. Obviously, the described embodiments are only part of the embodiments of the present application, rather than all the embodiments.
[0066] It should be noted that when a component is considered to be "connected" to another component, it may be directly connected to the other component or there may be a central component at the same time. When a component is considered to be "located on" another component, it may be directly located on the other component or there may be a central component at the same time. The terms "top", "bottom", "upper", "lower", "left", "right", "front", "back", and similar expressions used herein are for illustrative purposes only.
[0067] Some embodiments of the present application are described in detail below in conjunction with the accompanying drawings. In the absence of conflict, the following embodiments and features in the embodiments can be combined with each other.
[0068] The embodiment of the present application provides a method for detecting water absorption and diffusion time of fabric based on digital image, comprising:
[0069] S101, collecting a set of images of the fabric to be tested during the test process to obtain a test image set;
[0070] S102, performing contour detection on the test image set, and calculating the contour value of each frame of the test image set;
[0071] S103, comparing the contour value of each frame image with a preset contour threshold in turn, and if it is less than the preset contour threshold, obtaining the end time value after the completion of water absorption and diffusion according to the frame image time data corresponding to the contour value of the frame image;
[0072] S104, obtaining a dripping frame image from the test image set to obtain a start time value or obtaining a water pump start time to obtain a start time value;
[0073] S105, calculating the water absorption and diffusion time according to the start time value and the end time value.
[0074] Please refer to Figure 1-Figure 2 In this embodiment, the image of the fabric to be tested is acquired by the acquisition camera 120 during the test process, and the contour area of the water drop is acquired by contour detection. Then, it is determined whether the contour area of the water drop reaches the preset contour threshold. If it is less than the preset contour threshold, the end time value after the completion of water absorption and diffusion is obtained according to the frame image time data corresponding to the contour value of the frame image. After the contour detection algorithm is calculated, if it is less than the preset contour threshold, the water drop of the fabric to be tested is in an absorbed state, and the contour area of the water drop is less than the preset contour threshold. Secondly, when the reflective area of the water drop of the fabric to be tested is scattered, it will also be less than the preset contour threshold, so that the water absorption and diffusion time of the fabric to be tested can be accurately calculated.
[0075] Then, a dripping frame image is obtained from the test image set to obtain the start time value, and then the water absorption and diffusion time is calculated according to the end time value and the start time value to obtain the accurate water absorption and diffusion time of the fabric to be tested, avoiding the problem of inaccurate water absorption and diffusion time of the fabric to be tested due to inaccuracy caused by manual timing and subjective judgment errors.
[0076] It should be noted that the image set of the fabric to be tested during the test is collected by the acquisition camera 120 to obtain a test image set, wherein the test image set is a video obtained by continuously shooting the fabric to be tested during the test, and each frame image is parsed, and each frame image is provided with a timestamp.
[0077] Then the system uses a contour detection algorithm to perform contour detection on each frame image in the test image set, and calculates the contour value of each frame image in the test image set.
[0078] The system compares the contour value of each frame image with the preset contour threshold one by one. If it is less than the preset contour threshold, the comparison process is terminated, and the frame image time data corresponding to the value less than the preset contour threshold is marked as the end time value, wherein the preset contour threshold is an artificially marked contour area threshold. Since the value obtained after calculation by the contour detection algorithm is 0, 1, 0, 1, a closed area is enclosed according to the true value. There may be multiple small closed areas on the fabric to be tested. The total area of the closed area is calculated during detection, and then the total area of the closed area is compared with the preset contour threshold to determine whether the fabric to be tested has completed water absorption, thereby improving the accuracy of the detection time, and then the accurate water absorption and diffusion time of the fabric to be tested can be obtained.
[0079] It should be further explained that, in the process of obtaining the start time value, the start time of dripping can be obtained by obtaining the start time of the water pump, so as to perform dripping detection. However, there is an interval between the time when the water pump is started, the process of liquid being transported to the dripping needle, and the time when the dripping needle drips the liquid. This makes the detection result have a small error. The water absorption and diffusion time of the fabric to be tested can also be detected. The difference calculation of the time from the above liquid to the water pump to the dripping needle to the fabric to be tested can be used to obtain the error.
[0080] Preferably, the start time value of the dripping frame image when the test image is concentratedly acquired is obtained. At this time, the moment when the water droplets reach the fabric to be tested can be accurately determined to avoid error values in the detection process, thereby increasing the water absorption and diffusion time of the fabric to be tested.
[0081] The system obtains a dripping frame image when the dripping needle 140 drips water from the test image set, and obtains a start time value according to the dripping frame image, wherein the dripping frame image is an image of liquid dripping from the dripping needle 140 and falling on the fabric to be tested.
[0082] Finally, the system obtains the water absorption and diffusion time of the fabric to be tested based on the difference between the start time value and the end time value.
[0083] To improve the automation and robustness of the detection process.
[0084] In at least one embodiment of the present application, the method further includes:
[0085] S201, horizontally fix the fabric to be tested on the test area 110a of the device 100 for detecting the water absorption and diffusion time of fabrics based on digital images;
[0086] S202, obtaining an adjusted image of the fabric to be tested in the test area 110a;
[0087] S203, marking a region of interest in the adjusted image, and generating an adjusted exposure parameter according to a brightness value of the region of interest;
[0088] S204 , adjusting the exposure of the acquisition camera 120 on the device 100 for detecting the water absorption and diffusion time of fabrics based on digital images according to the adjusted exposure parameters.
[0089] Please refer to Figure 1-Figure 2 In this embodiment, the tester fixes the fabric to be tested horizontally on the test area 110a of the device 100 for detecting the water absorption and diffusion time of fabrics based on digital images.
[0090] Then, the system captures an adjusted image of the fabric to be tested in the test area 110a through the acquisition camera 120, wherein the adjusted image of the fabric to be tested is an image of the fabric to be tested fixed in the test area 110a captured by the acquisition camera 120 before the test.
[0091] Next, the system marks the region of interest (ROI region) in the adjusted image, obtains the brightness value of the region of interest, calculates the average brightness value of the region of interest, obtains the average brightness value, and adjusts the exposure time value of the acquisition camera 120 according to the average brightness value. The exposure parameter is the exposure time value.
[0092] This is to avoid overexposure and underexposure of the image due to the color depth of the fabric to be tested, so as to improve the accuracy of the test results.
[0093] In at least one embodiment of the present application, the method further includes:
[0094] S205, obtaining the image data stream of the fabric to be tested within a preset time after the exposure adjustment of the acquisition camera 120 and before the dripping test to generate an adjusted image data stream;
[0095] S206: Perform time domain filtering on the adjusted image data stream.
[0096] Please refer to Figure 1-Figure 2 In this embodiment, after adjusting the exposure time of the acquisition camera 120 and before performing the drip test, the system captures the image data stream of the fabric to be tested within a preset time range through the acquisition camera 120, and generates an adjusted image data stream, wherein the image data stream of the fabric to be tested is a video image.
[0097] Then the system continuously performs time-domain filtering on the adjusted image data stream, that is, the pixel values at the same position of several continuously acquired images are averaged to reduce the impact of the thermal noise of the sampling camera on the image and avoid affecting the detection accuracy and accuracy of the test results due to image quality issues.
[0098] In at least one embodiment of the present application, the step after performing time domain filtering on the adjusted image data stream includes:
[0099] S207 . After time domain filtering, the image of the fabric to be tested is collected by the collection camera 120 , and marked as a sample reference image before dripping water.
[0100] In this embodiment, after the system performs time domain filtering on the adjusted image data stream, the system controls the acquisition camera 120 to obtain the image of the fabric to be tested, and performs time domain filtering on the image of the fabric to be tested to obtain the image of the fabric to be tested before the dripping test (i.e., the sample reference image before dripping).
[0101] It is used to record the surface characteristics of the sample in the dry state and is the benchmark for comparison and analysis during the test process.
[0102] The fabric image to be tested contains the background texture, material properties, and possible natural uneven areas on the sample surface.
[0103] The pixel-by-pixel difference between the image after water drops and the reference image is calculated to extract the image change area caused by water drops.
[0104] Through the difference, irrelevant information such as the sample's inherent texture and color can be filtered out, leaving only the impact of water droplets.
[0105] By comparing with the reference image, the impact range of the water droplets can be accurately located to avoid mistaking background noise or inherent defects of the sample for the changed area.
[0106] In subsequent processing such as difference enhancement and binarization, the reference image ensures that operations are performed only on water droplet-related areas.
[0107] In at least one embodiment of the present application, the method further includes:
[0108] S208, generating a dripping test signal to control the water pump of the device 100 for detecting the water absorption and diffusion time of fabrics based on digital images to pump water, and performing a dripping test on the fabric to be tested through the dripping needle 140 of the device 100 for detecting the water absorption and diffusion time of fabrics based on digital images.
[0109] In this embodiment, the system generates a dripping test signal and sends the dripping test signal to the water pump, controls the water pump to drip water, and drips water on the fabric to be tested through the dripping needle 140 connected to the water pump.
[0110] In at least one embodiment of the present application, the method further includes:
[0111] S209, performing time domain filtering on the test image set to obtain a filtered image set; performing difference comparison between the filtered image set and the sample reference image to obtain a difference map;
[0112] S210, multiplying the difference map to generate a multiplied image; binarizing the multiplied image using a preset threshold to obtain an image greater than the threshold; performing morphological processing on the image greater than the threshold to obtain a processed image; and calculating a contour area value of the processed image using contour detection.
[0113] Please refer to Figure 1-Figure 2 In this embodiment, the system performs time domain filtering on each frame of the test image set to obtain a filtered image set. Then the system performs a difference comparison between the filtered image set and the sample reference image to obtain a difference map.
[0114] The system multiplies the difference map by multiplying each pixel of the difference map by a preset coefficient (the preset coefficient is set manually) to obtain a multiplied image, thereby enlarging the difference area in the difference map for subsequent calculations.
[0115] The multiplied image is binarized using a preset threshold (the preset threshold is an artificially set threshold), and images in the binarized image that are larger than the preset threshold are screened out as images larger than the threshold. The images larger than the threshold are then processed through morphological operations of "erosion" and "dilation" to obtain a processed image.
[0116] After the binarized image is subjected to morphological operations, the tiny image differences caused by local thermal noise with a small area are eliminated to facilitate the subsequent contour detection processing, and to eliminate local subtle differences to avoid errors in the calculation process caused by local subtle differences, thereby affecting the accuracy of the calculation results.
[0117] The system performs contour detection on the processed image and divides each frame of the processed image into several closed contours.
[0118] The system calculates the area of each closed contour and compares the contour value of each closed contour with the preset contour threshold. If it is less than the preset contour threshold, the end time value after the water absorption and diffusion is completed is obtained based on the frame image time data corresponding to the contour value of the frame image.
[0119] Then, a dripping frame image is obtained from the test image set to obtain the start time value, and then the water absorption and diffusion time is calculated according to the end time value and the start time value to obtain the accurate water absorption and diffusion time of the fabric to be tested, avoiding the problem of inaccurate water absorption and diffusion time of the fabric to be tested due to inaccuracy caused by manual timing and subjective judgment errors.
[0120] To improve the robustness of the system and the accuracy during the test.
[0121] A device 100 for detecting water absorption and diffusion time of fabric based on digital image, applied to any one of the above methods for detecting water absorption and diffusion time of fabric based on digital image, comprises:
[0122] The fixed structure 110 is formed with a test area 110a;
[0123] A collection camera 120, used for capturing images of the test area 110a;
[0124] The light source assembly 130 is fixedly connected to the acquisition camera 120 and illuminates the test area 110a and reflects an image;
[0125] A dripping needle 140, one end of which is aligned with the test area 110a;
[0126] The water pump is connected to the drip needle 140 .
[0127] Please refer to Figure 1-Figure 5 In this embodiment, the fabric to be tested is first fixed horizontally in the test area 110a of the fixed structure 110, and then the system controls the water pump to pump liquid. The liquid drips onto the fabric to be tested in the test area 110a through the dripping needle 140. The light source component 130 emits light to irradiate the liquid on the fabric to be tested in the test area 110a, and is captured by the acquisition camera 120 after mirror reflection to obtain images during the test process. The images during the test process include the images of the fabric to be tested before dripping and the images of the fabric to be tested during the dripping test. The dripping start time value and the dripping end time value are obtained by analyzing the images during the test process.
[0128] The system calculates the difference between the start time value and the end time value to obtain the water absorption and diffusion time of the fabric to be tested.
[0129] Calculating the test start time and test end time of the fabric to be tested by the mirror reflection of the liquid can more accurately calculate the water absorption and diffusion time of the fabric, thereby improving the accuracy of the test results.
[0130] Replacing the traditional manual method of using a dropper in one hand and a stopwatch in the other, it can achieve a more precise dripping process and a more accurate, reliable and high-speed measurement of water absorption and diffusion time.
[0131] When water drops onto the surface of a fabric, it forms a droplet or a water film on the surface before being absorbed. In this case, the water will show the characteristics of specular reflection. When the water is completely absorbed into the fabric, this specular reflection phenomenon will disappear. By using the digital imaging method, the water absorption and diffusion time of the fabric from contact with water to complete absorption of water can be automatically and accurately measured.
[0132] It should be noted that the fixing structure 110 includes a circular table, and the edge of the circular table protrudes upward to form a convex ring, and the inside of the convex ring forms a test area 110a, and the fixing structure 110 also includes a clamp, which is sleeved outside the convex ring. When fixing the fabric to be tested, the edge of the fabric to be tested is placed between the clamp and the convex ring, and the fabric to be tested is placed horizontally on the convex ring, and the clamp is locked to fix the edge of the fabric to be tested between the convex ring and the clamp, so that the test position of the fabric to be tested is aligned with the test area 110a.
[0133] The acquisition camera 120 is an industrial camera, and the dripping needle 140 can be replaced with needles of different diameters according to the needs of the test to accurately control the amount of liquid dripping. The water pump is a liquid pump, and the water output of the dripping needle 140 is controlled by controlling the output of the water pump, so as to accurately control different liquid outputs according to the needs of different tests.
[0134] In at least one embodiment of the present application, the drip needle 140 is located between the light source assembly 130 and the fixing structure 110 .
[0135] In at least one embodiment of the present application, the light source assembly 130 includes:
[0136] The housing 131 is formed with a light outlet channel 131b;
[0137] A light source 132 is disposed in the light outlet channel 131b, and the center of the test area 110a is located on the axis of the light source 132;
[0138] A semi-transparent reflective member 133 is disposed between the light source member 132 and the fixed structure 110, and the semi-transparent reflective member 133 is obliquely disposed in the light outlet channel 131b;
[0139] Among them, the light emitted by the light source 132 can pass through the semi-transparent reflective element 133 or be reflected by the semi-transparent reflective element 133 to irradiate the test area 110a, and be reflected by the liquid in the test area 110a to the semi-transparent reflective element 133, and be reflected by the semi-transparent reflective element 133 to the shooting end of the collection camera 120 or pass through the semi-transparent reflective element 133 to the shooting end of the collection camera 120.
[0140] Please refer to Figure 1-Figure 5 In this embodiment, since the drip needle 140 is located between the light source assembly 130 and the fixed structure 110, the light irradiated by the light source assembly 130 can directly act on the water droplets to accurately determine the time when the liquid is completely absorbed into the fabric.
[0141] In this embodiment, before dripping water, the light source 132 is used to irradiate the semi-transparent reflective element 133, and the light passes through the semi-transparent reflective element 133 to the fabric to be tested. Due to the existence of reflection (different colors of fabrics will reflect light of corresponding colors), the reflected light is reflected through the semi-transparent reflective element 133 to the shooting end of the collection camera 120. The system adjusts the exposure value of the collection camera 120 by analyzing the reflective pattern captured by the collection camera 120.
[0142] At the same time, take a sample reference picture according to the above method.
[0143] After dripping water, the light source 132 irradiates the semi-transparent reflective element 133 through the light outlet channel 131b, and the light passes through the semi-transparent reflective element 133 to the fabric to be tested. After the light reaches the water droplets, the water droplets will have mirror reflection, so that the reflected light is reflected through the semi-transparent reflective element 133 to the shooting end of the acquisition camera 120. The system obtains the image set of the fabric to be tested by analyzing the reflective pattern captured by the acquisition camera 120, and determines the end time through the image set of the fabric to be tested.
[0144] The device 100 for detecting the water absorption and diffusion time of fabrics based on digital images can accurately calculate the water absorption and diffusion time of the fabric to be tested during the test process, so as to improve the accuracy of the test results.
[0145] It should be noted that the housing 131 is a rectangular housing 131 with one side concave inward, the housing 131 is arranged toward the fixed structure 110, and the housing 131 is located above the fixed structure 110, and the light source 132 is a device that emits light, such as a lamp bead, etc. The semi-transparent reflective member 133 is a semi-transparent reflective mirror, a lens that transmits light on one side and reflects the light source on the other side, the translucent side is arranged near the light source 132, and the side reflecting the light source is arranged near the fixed structure 110.
[0146] In other embodiments, the light source 132 can be set in the test area 110a, such as directly below or to the side of the fabric to be tested, to provide light, and the image can be judged by means of mirror reflection, etc., and an image reference can be provided for the test results to facilitate subsequent test result judgment, including but not limited to the above-mentioned settings.
[0147] It should be noted that when water drops fall onto the surface of the fabric to be tested, they will appear in several states, such as sphere, hemisphere, flat arc surface, and water film, before being completely absorbed.
[0148] Before the liquid is completely absorbed, there will be local positions in these states that produce specular reflection of the light shining vertically from above. The light after specular reflection is guided into the acquisition camera by the semi-transparent reflector on the coaxial light source and captured. The computer and computer software connected to the acquisition camera continuously collect and analyze the images, and then detect and measure the water absorption and diffusion time of the fabric.
[0149] It needs to be further explained that when setting the light source and the collection camera, the light source and the collection camera can be set coaxially, that is, the light outlet of the light source is aligned with the test area and the shooting end of the collection camera, and then the semi-transparent reflective element is set between the test area and the collection camera.
[0150] The light emitted by the light source is irradiated to the semi-transparent reflective element, and is reflected by the semi-transparent reflective element to the water droplets on the fabric to be tested in the test area, and the reflected light passes through the semi-transparent reflective element to the shooting end of the collection camera, and the collection camera captures the image through the semi-transparent reflective element.
[0151] In at least one embodiment of the present application, the angle between the semi-transparent reflective element 133 and the light outlet channel 131b is 45°, and the housing 131 is provided with a mounting hole 131a connected to the light outlet channel 131b;
[0152] The shooting end of the acquisition camera 120 is fixed in the mounting hole 131 a and is aligned with the semi-transparent reflective element 133 .
[0153] Please refer to Figure 1-Figure 5 In this embodiment, by setting the angle between the semi-transparent reflective element 133 and the light outlet channel 131b to 45 degrees, the acquisition camera 120 can better capture the image of the fabric to be tested and the image of the test position of the fabric to be tested during the test.
[0154] Secondly, this solution can focus the light propagation path by coaxially arranging the light source 132, the light output channel 131b and the test area 110a, so as to more accurately capture the entire process of the fabric absorbing water during the test, and then the fabric absorption time can be more accurately calculated, thereby improving the accuracy of the test results.
[0155] The mounting hole 131a is a through hole, and the mounting hole 131a is a circular hole. The light reflected by the mounting hole 131a can be captured by the collection camera 120, thereby forming a reflected fabric image.
[0156] It should be noted that the semi-transparent reflective element can be adaptively adjusted according to the setting angle and position of the light source and the acquisition camera to meet the needs of shooting.
[0157] The above is only an implementation method of the present application. It should be pointed out that a person skilled in the art can make improvements without departing from the inventive concept of the present application, but these improvements are within the scope of protection of the present application.
Claims
1. A method for detecting water absorption and diffusion time of fabrics based on digital images, characterized in that: include: Collecting a set of images of the fabric to be tested during the test process to obtain a test image set; Performing contour detection on the test image set, and calculating the contour value of each frame of the image in the test image set; The contour value of each frame image is compared with the preset contour threshold in turn. If it is less than the preset contour threshold, the end time value after the completion of water absorption and diffusion is obtained according to the frame image time data corresponding to the contour value of the frame image; Obtain a water dripping frame image from the test image set to obtain a start time value or obtain a water pump start time to obtain a start time value; The water absorption and diffusion time is calculated according to the start time value and the end time value.
2. The method for detecting water absorption and diffusion time of fabrics based on digital images according to claim 1 is characterized in that: The method further comprises: Fix the fabric to be tested horizontally on the test area of the equipment based on digital image detection of fabric water absorption and diffusion time; Acquire an adjusted image of the fabric to be tested in the test area; Marking a region of interest in the adjusted image, and generating an adjusted exposure parameter according to a brightness value of the region of interest; The exposure of a collection camera on a device for detecting the water absorption and diffusion time of fabrics based on digital images is adjusted according to the exposure adjustment parameters.
3. The method for detecting water absorption and diffusion time of fabrics based on digital images according to claim 1 is characterized in that: The method further comprises: Obtaining the image data stream of the fabric to be tested within a preset time after the exposure of the acquisition camera is adjusted and before the water dripping test to generate an adjusted image data stream; Temporal filtering is performed on the adjusted image data stream.
4. The method for detecting water absorption and diffusion time of fabrics based on digital images according to claim 3 is characterized in that: The step of performing time domain filtering on the adjusted image data stream comprises: After time domain filtering, the fabric image to be tested is collected by the acquisition camera and marked as the sample reference image before dripping.
5. The method for detecting water absorption and diffusion time of fabrics based on digital images according to claim 4 is characterized in that: The method further comprises: Generate a drip test signal to control the water pump of the device for detecting the water absorption and diffusion time of the fabric based on digital image to pump water, and perform a drip test on the fabric to be tested through the drip needle of the device for detecting the water absorption and diffusion time of the fabric based on digital image.
6. The method for detecting water absorption and diffusion time of fabrics based on digital images according to claim 5 is characterized in that: The method further comprises: Performing time domain filtering on the test image set to obtain a filtered image set; Performing difference comparison between the filtered image set and the sample reference image to obtain a difference map; multiplying the difference map to generate a multiplied image; Binarizing the multiplied image using a preset threshold to obtain an image greater than the threshold; Performing morphological processing on the image greater than the threshold to obtain a processed image; The contour area value of the processed image is calculated by contour detection.
7. A device for detecting water absorption and diffusion time of fabrics based on digital images, applied to the method for detecting water absorption and diffusion time of fabrics based on digital images as claimed in any one of claims 1 to 6, characterized in that: include: A fixed structure is formed with a test area; An acquisition camera, used for capturing images of the test area; A light source assembly is fixedly connected to the acquisition camera and illuminates the test area and reflects an image; A dripping needle, one end of which is aimed at the test area; A water pump is connected to the dripping needle.
8. The device for detecting water absorption and diffusion time of fabrics based on digital images according to claim 7 is characterized in that: The dripping needle is located between the light source assembly and the fixing structure.
9. The device for detecting water absorption and diffusion time of fabrics based on digital images according to claim 7 is characterized in that: The light source assembly comprises: The housing is formed with a light outlet channel; A light source is disposed in the light output channel, and the center of the test area is located on the axis of the light source; A semi-transparent reflective member is disposed between the light source member and the fixed structure, and the semi-transparent reflective member is obliquely disposed in the light output channel; Among them, the light emitted by the light source can pass through the semi-transparent reflective element or be reflected by the semi-transparent reflective element to illuminate the test area, and be reflected by the liquid in the test area to the semi-transparent reflective element, and be reflected by the semi-transparent reflective element to the shooting end of the collection camera or pass through the semi-transparent reflective element to the shooting end of the collection camera.
10. The device for detecting water absorption and diffusion time of fabrics based on digital images according to claim 9 is characterized in that: The included angle between the semi-transparent reflective element and the light output channel is 45°, and a mounting hole communicating with the light output channel is provided on the housing; The shooting end of the acquisition camera is fixed in the mounting hole and is aimed at the semi-transparent reflective element.