Thin glass fiber cloth cover horizontal stripe detection method and device and storage medium

By performing grayscale and Fourier transform processing on the fiberglass cloth surface image, combined with Gaussian filter kernel and grayscale closed operation, the problems of low detection efficiency and high false alarm rate in the existing technology are solved, and the detection of thin glass is realized. Accurate identification and real-time detection of horizontal stripes on fiber cloth surfaces.

CN118628459AInactive Publication Date: 2024-09-10CHANGZHOU HONGFA ZONGHENG ADVANCED MATERIAL TECH CO LTD

Patent Information

Application Number
CN202410783375.3
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-06-18
Publication Date
2024-09-10
Estimated Expiration
Not applicable · inactive patent

AI Technical Summary

Technical Problem

In the existing technology, the detection efficiency of horizontal strips on the fiberglass cloth surface is low and cannot be detected in real time. Moreover, since the fiberglass cloth surface and horizontal stripes are both white, it is easy to cause false alarms due to changes in light.

Method used

Use a camera to obtain images for grayscale and stretch them to the maximum ratio. Use Fourier transform and Gaussian filter kernel convolution to perform grayscale stretching and contrast enhancement. Perform grayscale closed operations and threshold segmentation to extract pixels that meet the conditions. Points are used as the result area, and width, height and average grayscale judgments are made to identify horizontal bars.

Benefits of technology

It achieves efficient detection of horizontal strips on thin glass fiber cloth, improves detection accuracy and real-time performance, reduces false alarms, and ensures the accuracy of detection results.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118628459A
    Figure CN118628459A
Patent Text Reader

Abstract

The invention relates to the technical field of composite material production, in particular to a thin glass fiber cloth cover horizontal stripe detection method and device and a storage medium, and the method comprises the following steps: graying an image acquired by a camera, and carrying out gray stretching according to a maximum proportion; the method comprises the following steps: converting an original grey-scale map into a frequency domain map through Fourier transform, generating a Gaussian filtering kernel, and carrying out convolution on the Gaussian filtering kernel and the frequency domain map; inverse Fourier transform is carried out to obtain a time domain graph; carrying out gray stretching and contrast enhancement on the time domain image; gray-scale closed operation is carried out on the enhanced image; performing threshold segmentation on the image after the gray closed operation, and extracting a pixel point with a certain gray value as a result area; judging the width, the height and the average gray level of the result area, and if the conditions are met, determining that the result area is a horizontal stripe. According to the method, gray-scale closed operation is carried out by using gray-scale stretching and contrast enhancement, so that the thin glass fiber cloth cover horizontal stripe detection is realized.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The invention relates to the technical field of composite material production, and in particular to a method, equipment and storage medium for detecting horizontal stripes on a thin glass fiber cloth. Background Art

[0002] Glass fiber is made of glass balls or waste glass through high-temperature melting, drawing, winding, weaving and other processes. It is a very good metal substitute material and has broad application prospects in the fields of construction, shipbuilding, chemical pipelines, automobiles, aviation, wind power generation, etc., and its application areas are still expanding, and the global market space is huge. In the process of glass fiber cloth production, due to the weft laying, several yarns in the middle are often not laid, resulting in large gaps in the cloth surface, which is called horizontal stripes in the field. The existing technology generally uses manual inspection or visual inspection. Manual inspection has low efficiency and cannot be carried out in real time along the production line. The existing visual inspection often has false alarms due to changes in light because the glass fiber cloth and horizontal stripes are both white.

[0003] The information disclosed in this background technology section is only intended to deepen the understanding of the overall background technology of the present invention, and should not be regarded as acknowledging or suggesting in any form that the information constitutes the prior art already known to those skilled in the art. Summary of the invention

[0004] The technical problem to be solved by the present invention is to provide a method, a device and a storage medium for detecting horizontal stripes on a thin glass fiber cloth surface, which effectively solve the problems in the background technology.

[0005] In order to achieve the above object, the technical solution adopted by the present invention is: a method for detecting horizontal stripes on a thin glass fiber cloth surface, comprising the following steps:

[0006] Grayscale the image acquired by the camera and stretch it to the maximum ratio;

[0007] The original grayscale image is converted into a frequency domain image through Fourier transform, and then a Gaussian filter kernel is generated and convolved with the frequency domain image;

[0008] Perform inverse Fourier transform to obtain the time domain image;

[0009] Perform grayscale stretching and contrast enhancement on the time domain image;

[0010] Perform grayscale closing operation on the enhanced image;

[0011] Perform threshold segmentation on the image after grayscale closing operation, and extract pixels with certain grayscale values ​​as the result area;

[0012] The width, height and average grayscale of the result area are judged. If the conditions are met, it is a horizontal bar.

[0013] Furthermore, the grayscale-up image is converted into a frequency domain image through Fourier transform to generate a Gaussian filter kernel. The standard deviation of the Gaussian in the spatial domain (i.e., the amount of smoothing) is determined by Sigma1 and Sigma2 (the smaller the Sigma value, the less high-frequency information is removed).

[0014] Furthermore, Sigma1 is the standard deviation in the main direction of the filter determined by the angle Phi in the spatial domain, Sigma2 is the standard deviation perpendicular to the main direction, Sigma1 takes the value of 0.5, Sigma2 takes the value of 15, and Phi takes the value of 0.785398 (ie 45°), and the frequency domain graph is convolved with the Gaussian filter kernel.

[0015] Furthermore, the grayscale closing operation is to dilate and then erode the grayscale of the image, generating a rectangle with a length of 70, a width of 1, an angle of -45°, and an internal grayscale value of 0 as a structural element. The structural element is used to traverse the image, and the value with the highest grayscale value is used as the new value of the center of the structural element (dilation), which has the effect of brightening the image. The image is traversed again and the value with the lowest grayscale value is used as the new value of the center of the structural element (erosion).

[0016] Furthermore, the calculation formula of the grayscale closing operation is as follows:

[0017]

[0018] Among them, (f(x)) represents the grayscale value of the input grayscale image at position (x), (s(z)) represents the value of the structural element at position (z), (x) is a position point of the image, and the formula represents the grayscale expansion or erosion operation on each image point (x). (x+z)(xz) means that the image point (x) is affected by the structural element at position (z), and (z) traverses all positions of the structural element (s).

[0019] Furthermore, the image after the grayscale closing operation is subjected to threshold segmentation, and pixels with grayscale values ​​above 230 are extracted as the result area.

[0020] Furthermore, the area with the largest area is selected, and the width, height and average grayscale of the area are judged. If the conditions are met, it is a horizontal bar. If the width is greater than or equal to 28 pixels and the height is greater than or equal to 110 pixels, and the average grayscale value of the area in the image after the closing operation is greater than or equal to 250, it is judged as a horizontal bar.

[0021] The present invention also includes a computer device, including a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein when the processor executes the computer program, the method described above is implemented.

[0022] The present invention also includes a storage medium on which a computer program is stored. When the computer program is executed by a processor, the method described above is implemented.

[0023] The beneficial effects of the present invention are as follows: the present invention grayscales the picture acquired by the camera and stretches the grayscale at the maximum ratio, converts the original grayscale image into a frequency domain image through Fourier transform, generates a Gaussian filter kernel, convolves with the frequency domain image, and then performs inverse Fourier transform to obtain a time domain image, grayscale stretches and contrast enhances the time domain image, performs grayscale closing operation on the enhanced image, performs threshold segmentation on the image after the grayscale closing operation, extracts pixel points with a certain grayscale value as the result area, and realizes the detection of horizontal stripes on the thin glass fiber cloth surface by judging the width, height and average grayscale of the result area. BRIEF DESCRIPTION OF THE DRAWINGS

[0024] In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings required for use in the embodiments or the description of the prior art will be briefly introduced below. Obviously, the drawings described below are only some embodiments recorded in the present invention. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying creative work.

[0025] Figure 1 Flow chart of a method for detecting horizontal stripes on a thin glass fiber fabric surface according to an embodiment of the present invention;

[0026] Figure 2 Schematic diagram of the structure of a computer device in an embodiment of the present invention. DETAILED DESCRIPTION

[0027] The technical solutions in the embodiments of the present invention will be described clearly and completely below in conjunction with the drawings in the embodiments of the present invention. Obviously, the described embodiments are only part of the embodiments of the present invention, rather than all the embodiments.

[0028] It should be noted that when an element is referred to as being "fixed to" another element, it may be directly on the other element or there may be a central element. When an element is considered to be "connected to" another element, it may be directly connected to the other element or there may be a central element at the same time. The terms "vertical", "horizontal", "left", "right" and similar expressions used herein are for illustrative purposes only and do not represent the only implementation method.

[0029] Unless otherwise defined, all technical and scientific terms used herein have the same meaning as those commonly understood by those skilled in the art of the present invention. The terms used in the specification of the present invention are only for the purpose of describing specific embodiments and are not intended to limit the present invention. The term "and / or" used herein includes any and all combinations of one or more related listed items.

[0030] like Figure 1 As shown, a method for detecting horizontal stripes on a thin glass fiber cloth surface comprises the following steps:

[0031] Grayscale the image acquired by the camera and stretch it to the maximum ratio;

[0032] The original grayscale image is converted into a frequency domain image through Fourier transform, and then a Gaussian filter kernel is generated and convolved with the frequency domain image;

[0033] Perform inverse Fourier transform to obtain the time domain image;

[0034] Perform grayscale stretching and contrast enhancement on the time domain image;

[0035] Perform grayscale closing operation on the enhanced image;

[0036] Perform threshold segmentation on the image after grayscale closing operation, and extract pixels with certain grayscale values ​​as the result area;

[0037] The width, height and average grayscale of the result area are judged. If the conditions are met, it is a horizontal bar.

[0038] The present invention grayscales a picture acquired by a camera and stretches the grayscale at a maximum ratio, converts the original grayscale image into a frequency domain image through Fourier transform, generates a Gaussian filter kernel, convolves the frequency domain image, and then performs inverse Fourier transform to obtain a time domain image, grayscale stretches and contrast enhances the time domain image, performs grayscale closing operation on the enhanced image, performs threshold segmentation on the image after the grayscale closing operation, extracts pixel points with a certain grayscale value as a result area, and detects horizontal stripes on a thin glass fiber cloth surface by judging the width, height and average grayscale of the result area.

[0039] In the present invention, the grayscale-upgraded image is converted into a frequency domain image through Fourier transform. Through grayscale upgradation, the contrast between dark and bright areas in the image is enhanced, making the details in the image more prominent, which is convenient for subsequent processing and analysis, and generating a Gaussian filter kernel. The standard deviation of the Gaussian in the spatial domain (i.e., the smoothing amount) is determined by Sigma1 and Sigma2 (the smaller the Sigma value, the less high-frequency information is removed). Sigma1 is the standard deviation in the main direction of the filter determined by the angle Phi in the spatial domain, which is very effective for extracting structures or features in a specific direction in the image. Sigma2 is the standard deviation perpendicular to the main direction. By adjusting the values ​​of Sigma1 and Sigma2, the smoothing amount of the filter can be flexibly controlled. Sigma1 takes a value of 0.5, which retains more high-frequency information. Sigma2 takes a value of 15, which performs stronger smoothing perpendicular to the main direction. Phi takes a value of 0.785398 (i.e., 45°), and the frequency domain image is convolved with the Gaussian filter kernel.

[0040] In the preferred embodiment of the present invention, the grayscale closing operation is to dilate and then erode the grayscale of the image, generate a rectangle with a length of 70, a width of 1, an angle of -45°, and an internal grayscale value of 0 as a structural element, use the structural element to traverse the image, and use the value with the highest grayscale value as the new value of the center of the structural element (dilation), which has the effect of brightening the image, and then traverse again to use the value with the lowest grayscale value as the new value of the center of the structural element (erosion). The calculation formula of the grayscale closing operation is as follows:

[0041]

[0042] Among them, (f(x)) represents the grayscale value of the input grayscale image at position (x), (s(z)) represents the value of the structural element at position (z), (x) is a position point of the image, and the formula represents the grayscale expansion or erosion operation on each image point (x). (x+z)(xz) means that the image point (x) is affected by the structural element at position (z), and (z) traverses all positions of the structural element (s).

[0043] In the present invention, the image after grayscale closing operation is subjected to threshold segmentation, and pixels with grayscale values ​​above 230 are extracted as the result area. The grayscale closing operation can remove dark details smaller than the structural elements in the image through the process of first dilation and then corrosion, while keeping the overall grayscale and larger dark areas unchanged. This helps to eliminate some unnecessary noise and details, making the image clearer. By setting the threshold to 230, pixels with grayscale values ​​higher than this threshold can be accurately extracted. In the case of a grayscale value range of 0-255, selecting 230 as the threshold means focusing only on those very bright areas, which helps to highlight important information or specific targets in the image.

[0044] In the present invention, the area with the largest area is selected, and the width, height and average grayscale of the area are judged. If the conditions are met, it is a horizontal bar. If the width is greater than or equal to 28 pixels and the height is greater than or equal to 110 pixels, and the average grayscale value of the area in the image after the closing operation is greater than or equal to 250, it is judged as a horizontal bar. By setting specific width and height conditions, it can be ensured that the identified area meets the characteristics of a horizontal bar in shape, and the size limit improves the accuracy of recognition.

[0045] See also Figure 2 A computer device 400 provided in an embodiment of the present application includes: a camera, a processor 410 and a memory 420, wherein the memory 420 stores a computer program executable by the processor 410, and when the computer program is executed by the processor 410, the above method is executed.

[0046] The embodiment of the present application further provides a storage medium 430 on which a computer program is stored. When the computer program is run by the processor 410, the above method is executed.

[0047] Among them, the storage medium 430 can be implemented by any type of volatile or non-volatile storage device or a combination thereof, such as static random access memory (SRAM), electrically erasable programmable read-only memory (EEPROM), erasable programmable read-only memory (EPROM), programmable red-only memory (PROM), read-only memory (ROM), magnetic storage, flash memory, disk or optical disk.

[0048] In the description of the present invention, the terms "first" and "second" are used for descriptive purposes only and should not be understood as indicating or implying relative importance or implicitly indicating the number of the indicated technical features. Therefore, the features defined as "first" and "second" may explicitly or implicitly include one or more of the features. "Multiple" means two or more, unless otherwise clearly and specifically defined.

[0049] In the present invention, unless otherwise clearly specified and limited, the terms "installed", "connected", "connected", "fixed" and the like should be understood in a broad sense, for example, it can be a fixed connection, a detachable connection, or an integral connection; it can be a mechanical connection or an electrical connection; it can be a direct connection or an indirect connection through an intermediate medium, it can be the internal connection of two elements or the interaction relationship between two elements. For ordinary technicians in this field, the specific meanings of the above terms in the present invention can be understood according to specific circumstances.

[0050] In the description of this specification, the description with reference to the terms "one embodiment", "some embodiments", "example", "specific example", or "some examples" etc. means that the specific features, structures, materials or characteristics described in conjunction with the embodiment or example are included in at least one embodiment or example of the present invention. In this specification, the schematic representations of the above terms do not necessarily refer to the same embodiment or example. Moreover, the specific features, structures, materials or characteristics described may be combined in any one or more embodiments or examples in a suitable manner. In addition, those skilled in the art may combine and combine the different embodiments or examples described in this specification and the features of the different embodiments or examples, unless they are contradictory.

[0051] Any process or method description in a flowchart or otherwise described herein may be understood to represent a module, segment or portion of code that includes one or more executable instructions for implementing the steps of a specific logical function or process, and the scope of the preferred embodiments of the present invention includes alternative implementations in which functions may not be performed in the order shown or discussed, including performing functions in a substantially simultaneous manner or in the reverse order depending on the functions involved, which should be understood by those skilled in the art to which the embodiments of the present invention belong.

[0052] The logic and / or steps represented in the flowchart or otherwise described herein, for example, can be considered as an ordered list of executable instructions for implementing logical functions, and can be embodied in any computer-readable medium for use by an instruction execution system, device or apparatus (such as a computer-based system, a system including a processor, or other system that can fetch instructions from an instruction execution system, device or apparatus and execute instructions), or in combination with these instruction execution systems, devices or apparatuses. For the purposes of this specification, a "computer-readable medium" can be any device that can contain, store, communicate, propagate or transmit a program for use by an instruction execution system, device or apparatus, or in combination with these instruction execution systems, devices or apparatuses. More specific examples of computer-readable media (a non-exhaustive list) include the following: an electrical connection with one or more wires (electronic devices), a portable computer disk box (magnetic device), a random access memory (RAM), a read-only memory (ROM), an erasable and programmable read-only memory (EPROM or flash memory), a fiber optic device, and a portable compact disk read-only memory (CDROM). In addition, the computer-readable medium may even be paper or other suitable medium on which the program is printed, since the program may be obtained electronically, for example, by optically scanning the paper or other medium and then editing, interpreting or processing in other suitable ways if necessary, and then stored in a computer memory.

[0053] It should be understood that the various parts of the present invention can be implemented by hardware, software, firmware or a combination thereof. In the above-mentioned embodiments, a plurality of steps or methods can be implemented by software or firmware stored in a memory and executed by a suitable instruction execution system. For example, if implemented by hardware, as in another embodiment, it can be implemented by any one of the following technologies known in the art or their combination: a discrete logic circuit having a logic gate circuit for implementing a logic function for a data signal, a dedicated integrated circuit having a suitable combination of logic gate circuits, a programmable gate array (PGA), a field programmable gate array (FPGA), etc.

[0054] A person skilled in the art may understand that all or part of the steps in the method for implementing the above-mentioned embodiment may be completed by instructing related hardware through a program, and the program may be stored in a computer-readable storage medium, which, when executed, includes one or a combination of the steps of the method embodiment.

[0055] The storage medium mentioned above may be a read-only memory, a magnetic disk or an optical disk, etc. Although the embodiments of the present invention have been shown and described above, it can be understood that the above embodiments are exemplary and cannot be understood as limiting the present invention. A person of ordinary skill in the art may change, modify, replace and modify the above embodiments within the scope of the present invention.

[0056] Those skilled in the art should understand that the present invention is not limited to the above embodiments, and the above embodiments and descriptions are only for explaining the principles of the present invention. Without departing from the spirit and scope of the present invention, the present invention may have various changes and improvements, and these changes and improvements fall within the scope of the present invention to be protected. The scope of protection of the present invention is defined by the attached claims and their equivalents.

Claims

1. A method for detecting horizontal stripes on thin glass fiber fabric, characterized in that: The steps include: Grayscale the image acquired by the camera and stretch it to the maximum ratio; The original grayscale image is converted into a frequency domain image through Fourier transform, and then a Gaussian filter kernel is generated and convolved with the frequency domain image; Perform inverse Fourier transform to obtain the time domain image; Perform grayscale stretching and contrast enhancement on the time domain image; Perform grayscale closing operation on the enhanced image; Perform threshold segmentation on the image after grayscale closing operation, and extract pixels with certain grayscale values ​​as the result area; The width, height and average grayscale of the result area are judged. If the conditions are met, it is a horizontal bar.

2. The thin glass fiber cloth surface horizontal stripe detection method according to claim 1, characterized in that: The grayscale-up image is converted into a frequency domain image through Fourier transform to generate a Gaussian filter kernel. The standard deviation of the Gaussian in the spatial domain (i.e., the amount of smoothing) is determined by Sigma1 and Sigma2 (the smaller the Sigma value, the less high-frequency information is removed).

3. The method for detecting horizontal stripes on thin glass fiber fabric according to claim 2, characterized in that: Sigma1 is the standard deviation in the main direction of the filter determined by the angle Phi in the spatial domain, Sigma2 is the standard deviation perpendicular to the main direction, Sigma1 takes the value of 0.5, Sigma2 takes the value of 15, and Phi takes the value of 0.785398 (ie 45°), and the frequency domain graph is convolved with the Gaussian filter kernel.

4. The method for detecting horizontal stripes on thin glass fiber fabric according to claim 1, characterized in that: The grayscale closing operation is to dilate and then erode the grayscale of the image, generating a rectangle with a length of 70, a width of 1, an angle of -45°, and an internal grayscale value of 0 as a structural element. The structural element is used to traverse the image, and the value with the highest grayscale value is used as the new value of the center of the structural element (dilation), which has the effect of brightening the image. The image is traversed again and the value with the lowest grayscale value is used as the new value of the center of the structural element (erosion).

5. The method for detecting horizontal stripes on thin glass fiber fabric according to claim 4, characterized in that: The calculation formula of grayscale closing operation is as follows: Among them, (f(x)) represents the grayscale value of the input grayscale image at position (x), (s(z)) represents the value of the structural element at position (z), (x) is a position point of the image, the formula represents the grayscale expansion or erosion operation on each image point (x), (x+z)(xz) means that the image point (x) is affected by the structural element at position (z), and (z) traverses all positions of the structural element (s).

6. The method for detecting horizontal stripes on thin glass fiber fabric according to claim 1, characterized in that: Perform threshold segmentation on the image after grayscale closing operation, and extract pixels with grayscale values ​​above 230 as the result area.

7. The method for detecting horizontal stripes on thin glass fiber fabric according to claim 1, characterized in that: Select the area with the largest area, and judge the width, height and average grayscale of the area. If the conditions are met, it is a horizontal bar. If the width is greater than or equal to 28 pixels and the height is greater than or equal to 110 pixels, and the average grayscale value of the area in the image after the closing operation is greater than or equal to 250, it is judged as a horizontal bar.

8. A computer device comprising a memory, a processor and a computer program stored in the memory and executable on the processor, characterized in that: When the processor executes the computer program, the method according to any one of claims 1 to 7 is implemented.

9. A storage medium having a computer program stored thereon, characterized in that: When the computer program is executed by a processor, the method according to any one of claims 1 to 7 is implemented.

Citation Information

Patent Citations

  • Method and equipment for detecting embedded wool clusters on glass fiber cloth cover and storage medium

    CN117670841A

  • Cloth cover horizontal stripe detection method, device and equipment and storage medium

    CN117670842A

  • Carbon fiber cloth cover horizontal stripe detection method, device and equipment and storage medium

    CN117745702A

Cited By

  • Automobile part defect detection method and system

    CN119722678A

  • Detection method and system for automatically identifying fabric cloth cover width area of warp knitting machine

    CN121582215A