Safety belt edge unevenness and loose thread defect detection method and system

By using a method based on image vision to detect unevenness and hair defects on the edge of the seat belt, the problem of low accuracy and poor adaptability in the existing technology is solved, and efficient and accurate automatic detection is achieved, which is suitable for production environments.

WO2024174301A1PCT designated stage expired Publication Date: 2024-08-29SHANGHAI MEDIA INTELLIGENCE TECH CO LTD

Patent Information

Application Number
PCT/CN2023/080847
Authority / Receiving Office
WO · WO
Patent Type
Applications
Current Assignee / Owner
Priority Date
2023-02-23
Filing Date
2023-03-10
Publication Date
2024-08-29

AI Technical Summary

Technical Problem

The existing technology has low accuracy when detecting unevenness and hair defects on the edges of seat belts, and the sensors are prone to wear and tear. The deep learning method requires a large amount of data annotation and is difficult to adapt to the actual production environment, and there are difficulties in detecting small targets.

Method used

Using a method based on image vision, by obtaining two-dimensional visual photos of the seat belt, processing the contour map and the connected domain of hair, fitting the edge straight line to calculate the distance and area, and judging whether there are bumps and hair, using grayscale, binary Image processing technologies such as valueization and opening operations are used to achieve automatic detection.

Benefits of technology

It achieves automatic detection with high accuracy and low false alarm rate, adapts to different production line conditions, saves time in labeling data, improves detection efficiency, and matches production speed.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN2023080847_29082024_PF_FP_ABST
    Figure CN2023080847_29082024_PF_FP_ABST
Patent Text Reader

Abstract

A safety belt edge unevenness and loose thread defect detection method and system. The method comprises: acquiring a two-dimensional visual picture of a safety belt; processing the two-dimensional visual picture to obtain a safety belt contour image and a loose thread connected domain display image; fitting straight edge lines in the safety belt contour image and calculating the distance from each point on the edge of the safety belt contour image to the straight edge line, and on the basis of the distances, determining whether an unevenness interval exists; and calculating the area of the loose thread connected domain display image, and on the basis of the area, determining whether a loose thread exists. The method is an image vision-based automatic detection method, and the detection speed can be matched with the production speed; the operation is carried out on the basis of pixel points, thereby accurately achieving the purpose of small target detection; the detection accuracy is high, and the false alarm rate is low; no marking is required, time is saved, and the efficiency is improved; the thresholds for unevenness and loose thread determination can be adjusted, so as to adapt to different production lines and the experience of workers.
Need to check novelty before this filing date? Find Prior Art

Description

A method and system for detecting uneven and hairy edges of seat belts

[0001] This application claims priority to Chinese patent application No. 2023101534772, filed on February 23, 2023. This application incorporates the entirety of the aforementioned Chinese patent application. Technical Field

[0002] The present invention relates to the field of digital image technology, and in particular to a method and system for detecting uneven edges and fuzzy edges of safety belts. Background Art

[0003] Due to process issues, seat belts often exhibit defects during production, including uneven edges and lint, making them unacceptable products. However, manual inspection of the tens of thousands of meters of seat belts produced daily on the production line is clearly unrealistic.

[0004] The earliest method used sensors for detection. However, this method had several problems. First, its accuracy was low after actual deployment. Second, the sensors were worn out due to long-term contact friction, resulting in reduced sensitivity.

[0005] With the development of deep learning, it's natural to use object detection for bump and hair detection. However, practical difficulties arise: First, data collection and labeling are time-consuming; second, bumps and hair are very small, occupying only 20 to 30 pixels in a 1200x800 image, making academic research on small object detection difficult; third, one of the assumptions of object detection is similarity within a class, but actual image observation reveals significant variation within the hair class; and fourth, object detection models trained with labeled data struggle to adjust thresholds based on the actual conditions of each production line.

[0006] Therefore, a method for detecting seat belt edge bumps and edge hair defects based on traditional vision is needed.

[0007] Summary of the Invention

[0008] In view of the defects in the prior art, the purpose of the present invention is to provide a method and system for detecting uneven edges and hair defects of seat belts, so as to detect whether there are these two defects on the seat belts.

[0009] According to one aspect of the present invention, a method for detecting uneven edges and hairy edges of a safety belt is provided, comprising:

[0010] Obtain a two-dimensional visual photograph of the seat belt;

[0011] Processing the two-dimensional visual photograph to obtain a safety belt contour image and a hair-filament connected domain display image;

[0012] Fitting an edge straight line of the seat belt contour image and calculating a distance from each point on the edge of the seat belt contour image to the edge straight line, and determining whether there is a concave-convex interval based on the distance;

[0013] The area of ​​the hair-connected region display graph is calculated, and whether hair exists is determined based on the area.

[0014] Preferably, the processing of the two-dimensional visual photograph comprises:

[0015] performing grayscale conversion, grayscale inversion, binarization, and opening operations on the two-dimensional visual image in sequence to obtain a seat belt contour image;

[0016] The two-dimensional visual image is sequentially subjected to grayscale conversion, grayscale inversion, binarization, and an opening operation of the binary image minus the binary image to obtain a hair-filament connected domain display image.

[0017] Preferably, fitting an edge straight line of the seat belt profile and calculating a distance from each point on the edge of the seat belt profile to the edge straight line, and determining whether a concave-convex interval exists based on the distance, comprises:

[0018] Determining a contour of a seat belt in the seat belt contour map;

[0019] Extracting point sets on the left and right edges of the contour;

[0020] Through two point sets, fit straight lines separately to obtain two straight lines;

[0021] Calculate the distance between each point in the two point sets and the closest line among the two lines;

[0022] Comparing the distance of each point with a distance threshold, and grouping points whose distance is greater than the distance threshold into interval segments;

[0023] The length of the interval segment is calculated and compared with a length threshold. An interval segment greater than the length threshold is a concave-convex interval.

[0024] Preferably, the calculating of the area of ​​the hair-connected region display graph and judging whether hair exists based on the area include:

[0025] Calculating the number of pixels, i.e., the area, of each connected domain in the hair-filament connected region display image;

[0026] Arrange the plurality of connected domains in descending order according to the number of pixels;

[0027] The connected domains with an area greater than the area threshold are hairs.

[0028] Preferably, the distance threshold, length threshold and area threshold can all be adjusted according to detection requirements.

[0029] Preferably, when there is a large concave-convex area in the safety belt, the fitted straight line is offset to the inside or outside of the safety belt;

[0030] The distance between the points in the non-concave-convex area of ​​the edge of the safety belt contour image and the offset straight line is large, exceeding a set threshold distance, and the points in the non-concave-convex area constitute the interval segment;

[0031] The length of the interval segment is greater than the set length threshold, and it is determined that a concave-convex interval exists.

[0032] Preferably, when the hair of the safety belt is relatively thin, the hair can be eliminated by opening the belt, so that the type and specific information of the defect can be detected;

[0033] If the area of ​​the lint in the seat belt is large, the lint cannot be eliminated by the opening operation and is detected as a concave-convex section.

[0034] According to a second aspect of the present invention, a system for detecting uneven edges and hairy edges of safety belts is provided, comprising:

[0035] An acquisition module, which obtains a two-dimensional visual photo of the seat belt;

[0036] A pre-processing module, which processes the two-dimensional visual photos to obtain a safety belt contour map and a hair-filament connected domain display map;

[0037] a concave-convex detection module, which fits an edge straight line of the seat belt contour image and calculates the distance from each point on the edge of the seat belt contour image to the edge straight line, and determines whether there is a concave-convex interval based on the distance;

[0038] The hair detection module calculates the area of ​​the hair connection area display map and determines whether there is hair based on the area.

[0039] According to a third aspect of the present invention, there is provided a terminal comprising a memory, a processor and a computer program stored in the memory and executable on the processor. When the processor executes the program, the terminal can be used to execute the method for detecting the unevenness and hair defects of the edge of a safety belt, or to execute the system for detecting the unevenness and hair defects of the edge of a safety belt.

[0040] According to a fourth aspect of the present invention, a computer-readable storage medium is provided, on which a computer program is stored. When the program is executed by a processor, it can be used to execute the method for detecting the unevenness and hair defects of the edge of a seat belt, or to run the system for detecting the unevenness and hair defects of the edge of a seat belt.

[0041] Compared with the prior art, the present invention has at least one of the following beneficial effects:

[0042] The method and system for detecting uneven edges and fuzzy edges of safety belts in the embodiments of the present invention are automatic detection methods based on image vision, and their detection speed can match the production speed.

[0043] The method and system for detecting uneven edges and fuzzy edges of seat belts in the embodiments of the present invention operate based on pixel points, can accurately detect small targets, and have a high detection accuracy rate and a low false alarm rate; it does not require labeling, saves time, and improves efficiency.

[0044] The method and system for detecting uneven and fuzzy edges of safety belts in the embodiments of the present invention can adjust the thresholds for judging unevenness and fuzzy edges, and can adapt to different production lines and workers' previous experience. BRIEF DESCRIPTION OF THE DRAWINGS

[0045] Other features, objects and advantages of the present invention will become more apparent upon reading the detailed description of non-limiting embodiments with reference to the following drawings:

[0046] FIG1 is a flow chart of a method for detecting uneven edges and hair defects of a safety belt according to an embodiment of the present invention;

[0047] FIG2 is a schematic diagram of a concave-convex detection image processing process in a preferred embodiment of the present invention;

[0048] FIG3 is a schematic diagram of an image processing process for hair detection in a preferred embodiment of the present invention;

[0049] FIG4 is a schematic diagram of defect detection results in a preferred embodiment of the present invention. DETAILED DESCRIPTION

[0050] The present invention will be described in detail below with reference to specific embodiments. The following embodiments will help those skilled in the art to further understand the present invention, but are not intended to limit the present invention in any form. It should be noted that, for those skilled in the art, several variations and improvements can be made without departing from the scope of the present invention. These all fall within the scope of protection of the present invention.

[0051] Currently, many detections of bumps and hair are carried out through deep learning methods. However, this method requires a large amount of data and annotations, has a large processing volume, and is inefficient.

[0052] In order to solve the existing technical problems, the present invention provides an embodiment of a method for detecting uneven edges and hair defects of a safety belt. The process can be seen in FIG1 . The specific process is as follows:

[0053] S100, obtaining a two-dimensional visual photo of the seat belt;

[0054] S200, processing the two-dimensional visual photo obtained in S100 to obtain a seat belt contour map and a hair-filament connected domain display map;

[0055] S300, fitting an edge straight line of the seat belt contour image of S200 and calculating a distance from a point on the edge to the straight line, and determining whether there is a concave-convex interval based on the distance;

[0056] S400 , calculating the area of ​​the hair-connected region display graph obtained in S200 , and determining whether hair exists based on the area.

[0057] This embodiment is an automatic detection method based on image vision, and its detection speed can match the production speed; the thresholds for the concave-convex and hairy judgments in the judgment process can be adjusted to adapt to different production lines and workers' previous experience.

[0058] In a preferred embodiment of the present invention, S100 is implemented by using a camera to capture images of the front and back of the seat belt. Traditional visual algorithms are used to accurately detect small objects based on pixels, resulting in high accuracy and low false positive rates. This avoids the large intra-class discrepancies often encountered in deep learning, eliminates the need for labeling, and saves time and improves efficiency.

[0059] After long-term research in this field, the inventors collected and statistically analyzed data on seat belt concave-convex and hair defects and found that seat belt concave-convex and hair defects have the following characteristics:

[0060] Feature 1: When only a small area of ​​the seat belt has bumps, the local bumps do not affect the overall fitted line. Based on this feature, the embodiment of the present invention fits a line using a set of contour points, and further calculates the distance based on the line to determine the bump interval.

[0061] Feature 2: The hair strands on seat belts are relatively thin and can be etched away. This feature is utilized in the embodiments of the present invention to etch away the hair strands during image processing. The hair strands can be directly obtained by subtracting the image subjected to the opening operation from the binary image.

[0062] Feature 3: There are large areas of concave and convex in the seat belt, which affects the overall straight line fitting;

[0063] Feature 4: The area of ​​the hair in the seat belt is relatively large and cannot be removed by opening the belt;

[0064] The above characteristics 1 and 2 belong to the cases where concave-convex and hairy defects are the majority, while characteristics 3 and 4 belong to the cases where concave-convex and hairy defects are relatively rare.

[0065] Based on the above research (features 1 and 2), in a preferred embodiment of the present invention, S200 is implemented, as specifically shown in Figures 2 and 3. Figure 2 is a schematic diagram of the image processing process for bump detection, wherein the input image is grayscaled, grayscale inverted, binarized, and then opened. (a) is the result after grayscale conversion, (b) is the result after grayscale conversion, (c) is the result after binarization, and (d) is the result after opening. Figure 3 is a schematic diagram of the image processing process for hair detection, wherein the input image is grayscaled, grayscale inverted, binarized, and then subjected to the binary image minus the binary image opening operation. (a) is the result after grayscale conversion, (b) is the result after grayscale conversion, (c) is the binary image, and (d) is the result obtained after the binary image minus the opening operation.

[0066] The opening operation in this embodiment is to first perform erosion and then dilate, which can eliminate small noise in the image. The binary image (with small noise on the edge) minus the image after the opening operation (without small noise on the edge) will only leave the small noise, i.e., hair.

[0067] Based on the above research (features 1 and 2), in a preferred embodiment of the present invention, S300 is implemented, and the specific process is as follows:

[0068] S301, finding the outline of the white area after the opening operation;

[0069] S302, extracting the point sets of the left and right contours of the white contour;

[0070] S303, fitting straight lines through the two point sets to obtain two straight line equations;

[0071] S304, calculating the distances between all points in the two point sets and the nearest straight line;

[0072] S305, based on the distance calculation result of S304, screen out points that are greater than a distance threshold (the set point-to-straight-line distance threshold is referred to as the distance threshold), and group these points into interval segments;

[0073] S306, calculate the length of the interval segment obtained in S305 (the maximum y coordinate value of all points in the interval segment minus the minimum y coordinate value), and all interval segments whose length is greater than the length threshold (the set interval segment length threshold is referred to as the length threshold) are regarded as concave and convex intervals.

[0074] Based on the above research (features 1 and 2), in a preferred embodiment of the present invention, S400 is implemented, and the specific process is as follows:

[0075] S401, calculating the number of pixels, i.e., the area, of each connected domain in FIG3(d);

[0076] S402, sorting the connected components in descending order according to the number of pixels (area size);

[0077] S403: The connected domains with an area greater than a threshold (the set threshold of the number of pixels in the connected domain is referred to as the area threshold) are regarded as hairs.

[0078] In practice, during the initial calculation, the operator does not know the area of ​​the hair, making the area threshold in S403 difficult to determine. Therefore, S402 is required to sort the data and obtain the maximum and minimum area values. The area threshold is then determined based on the numerical definitions of bumps and hairs in the project requirements. After the descending sort, the first K area values ​​are selected and compared with the threshold to improve detection efficiency. The specific value of K is selected based on the actual project requirements.

[0079] In actual production, the distance threshold, length threshold, and area threshold can be adjusted according to different production lines and workers' previous experience, so that the detected bumps and hairs are more in line with production requirements.

[0080] The above embodiment utilizes characteristics 1 and 2 of the presence of concave-convex and fuzzy defects to accurately and efficiently detect them, and finally summarizes these two detection results and outputs them as detected defects. However, this embodiment can also accurately detect defects caused by characteristics 3 and 4.

[0081] When the actual test situation meets the above characteristic 3, that is, there are large areas of unevenness in the seat belt, which affect the overall straight line fitting: if there are large protrusions, the fitted line will be offset to the outside of the seat belt. In this case, the distance between the non-protrusion area and the fitted line will be larger. If there are large depressions, the fitted line will be offset to the inside of the seat belt. Similarly, the distance between the non-depression area and the straight line will be larger. Here, "larger" means greater than the aforementioned distance threshold (the aforementioned distance threshold is set when characteristic 1 is met). This distance threshold is smaller than the distance from the non-concave or non-convex area to the fitted straight line. That is, if the distance from a point in the non-convex or non-concave area to the fitted straight line with deviation is greater than the set distance threshold, then the points in the non-convex or non-concave area form an interval segment as in S305. Then, according to S306, the length of the interval segment is calculated using the same method as characteristic 1: the maximum y-coordinate of all points in the interval segment is subtracted from the minimum y-coordinate. If the non-convex or non-concave area is at the beginning and end of the tested seat belt, then the calculated length of the interval segment (equal to the entire length of the tested seat belt segment) must be greater than the length threshold. Both the large concave and large convex areas mentioned above regarding characteristic 3 will be detected by the concave-convex detection process. Therefore, the concave-convex interval detected in this embodiment of the present invention is a concave-convex area in any case, covering any area of ​​characteristics 1 and 3. Furthermore, when performing concave-convex interval detection for features 1 and 3, the distance threshold and length threshold may remain unchanged.

[0082] When the actual detection situation meets characteristic 4, that is, the area where the hair exists is relatively large and the hair cannot be eliminated by the opening operation: In this case, the hair detection process in S400 alone will not be able to detect the defect. However, it is worth noting that the processing process for the input image in the present invention is to first perform convex-concave detection and then perform hair detection. Hair on a large area of ​​the edge will cause the edge to be concave and convex (such as the hair on the right side of Figure 4 (b)), and this type of large-area hair will be detected during the implementation of the S300 concave-convex detection process. When data that meets characteristic 2 appears, the present invention can know the type and specific information of the defect; when data that does not meet characteristic 2 appears, the present invention can detect the specific information of the defect, but the specific type is unclear. Therefore, in the embodiment of the present invention, the hair detected is the hair that meets characteristic 2, and the hair in other cases is detected as a concave-convex interval.

[0083] In summary, the method for detecting unevenness and hair defects on the edge of a safety belt in the above embodiment can detect unevenness and hair defects of various areas with a high accuracy rate and a low missed detection rate.

[0084] Based on the same inventive concept, another embodiment of the present invention provides a system for detecting uneven and hairy edges of seat belts, including an acquisition module, a preprocessing module, an unevenness detection module, and a hairy detection module. The acquisition module acquires a two-dimensional visual photograph of the seat belt; the preprocessing module preprocesses the two-dimensional visual photograph to obtain a seat belt contour image and a hairy connected area display; the unevenness detection module performs edge straight line fitting on the seat belt contour image and calculates the distance from each point on the edge of the seat belt contour image to the edge straight line to determine whether an uneven interval exists; and the hairy detection module calculates the area of ​​the hairy connected area display to determine whether hair exists.

[0085] The specific implementation techniques of each module / unit in the above example of the present invention may refer to the corresponding steps of the method for detecting the uneven edge and hair defects of the safety belt in the above embodiment, which will not be described in detail here.

[0086] Based on the same inventive concept, in other embodiments of the present invention, a terminal is provided, comprising a memory, a processor, and a computer program stored in the memory and runnable on the processor. When the processor executes the program, it can be used to execute the method for detecting the unevenness and hair defects of the edge of a seat belt, or to run the system for detecting the unevenness and hair defects of the edge of a seat belt.

[0087] Optionally, the memory is used to store programs; the memory may include volatile memory (English: volatile memory), such as random-access memory (English: random-access memory, abbreviated: RAM), such as static random-access memory (English: static random-access memory, abbreviated: SRAM), double data rate synchronous dynamic random access memory (English: Double Data Rate Synchronous Dynamic Random Access Memory, abbreviated: DDR SDRAM), etc.; the memory may also include non-volatile memory (English: non-volatile memory), such as flash memory (English: flash memory). The memory is used to store computer programs (such as applications, functional modules, etc. that implement the above-mentioned methods), computer instructions, etc., and the above-mentioned computer programs, computer instructions, etc. can be partitioned and stored in one or more memories. In addition, the above-mentioned computer programs, computer instructions, data, etc. can be called by the processor.

[0088] The aforementioned computer programs, computer instructions, etc. may be partitioned and stored in one or more memories, and the aforementioned computer programs, computer instructions, data, etc. may be called by a processor.

[0089] The processor is configured to execute the computer program stored in the memory to implement the various steps of the method involved in the above embodiment. For details, please refer to the relevant description in the above method embodiment.

[0090] The processor and memory can be independent structures or integrated structures. When the processor and memory are independent structures, the memory and processor can be coupled via a bus.

[0091] Based on the same inventive concept, in other embodiments of the present invention, a computer-readable storage medium is provided, on which a computer program is stored. When the program is executed by a processor, it can be used to execute the aforementioned method for detecting seat belt edge convexity and edge hair defects, or to run the aforementioned seat belt edge convexity and edge hair defect detection system.

[0092] Computer-readable media include computer storage media and communication media, wherein communication media include any medium that facilitates the transfer of computer programs from one location to another. The storage medium can be any available medium that can be accessed by a general-purpose or special-purpose computer. An exemplary storage medium is coupled to a processor so that the processor can read information from the storage medium and write information to the storage medium. Of course, the storage medium can also be an integral part of the processor. The processor and storage medium can be located in an ASIC. Alternatively, the ASIC can be located in a user device. Of course, the processor and storage medium can also exist as separate components in a communication device.

[0093] Those skilled in the art will appreciate that the embodiments of the present application can be provided as methods, systems, or computer program products. Therefore, the present application can adopt the form of a complete hardware embodiment, a complete software embodiment, or an embodiment in combination with software and hardware. Moreover, the present application can adopt the form of a computer program product implemented on one or more computer-usable storage media (including but not limited to magnetic disk storage, CD-ROM, optical storage, etc.) that contain computer-usable program code.

[0094] The present application is described with reference to the flowcharts and / or block diagrams of the methods, devices (systems), and computer program products according to the present application. It should be understood that each process and / or box in the flowchart and / or block diagram, as well as the combination of processes and / or boxes in the flowchart and / or block diagram, can be implemented by computer program instructions. These computer program instructions can be provided to a processor of a general-purpose computer, a special-purpose computer, an embedded processor, or other programmable data processing device to produce a machine, so that the instructions executed by the processor of the computer or other programmable data processing device produce a device for implementing the functions specified in one or more processes in the flowchart and / or one or more boxes in the block diagram.

[0095] These computer program instructions may also be stored in a computer-readable memory that can direct a computer or other programmable data processing device to operate in a specific manner, so that the instructions stored in the computer-readable memory produce a product including an instruction device that implements the functions specified in one or more processes in the flowchart and / or one or more boxes in the block diagram.

[0096] These computer program instructions can also be loaded onto a computer or other programmable data processing device so that a series of operating steps are executed on the computer or other programmable device to produce a computer-implemented process, so that the instructions executed on the computer or other programmable device provide steps for implementing the functions specified in one or more processes in the flowchart and / or one or more boxes in the block diagram.

[0097] Obviously, those skilled in the art may make various modifications and variations to this application without departing from the spirit and scope of this application. Thus, to the extent such modifications and variations fall within the scope of the claims and their equivalents, this application is intended to encompass such modifications and variations. The preferred features described above may be used in any combination as long as they do not conflict with one another.

Claims

1. A method for detecting uneven edges and hairy edges of a safety belt, characterized in that: include: Obtain a 2D visual photo of the seat belt; Processing the two-dimensional visual photos to obtain a safety belt contour map and a hair-thread connected domain display map; Fitting an edge straight line of the seat belt contour image and calculating a distance from each point on the edge of the seat belt contour image to the edge straight line, and judging whether there is a concave-convex interval based on the distance; The area of ​​the hair-connected region display graph is calculated, and whether hair exists is determined based on the area.

2. A method for detecting uneven edges and hairy edges of a safety belt according to claim 1, characterized in that: The processing of the two-dimensional visual photo comprises: The two-dimensional visual image is sequentially grayed, grayed, binarized, and opened to obtain a seat belt contour image; The two-dimensional visual image is sequentially subjected to grayscale conversion, grayscale inversion, binarization, and an image of an opening operation of the binary image minus the binary image to obtain a display image of the hair-thread connected domain.

3. A method for detecting uneven edges and hairy edges of a safety belt according to claim 1, characterized in that: Fitting an edge straight line of the seat belt contour image and calculating a distance from each point on the edge of the seat belt contour image to the edge straight line, and judging whether there is a concave-convex interval based on the distance, comprises: Determining a contour of a seat belt in the seat belt contour map; Extracting point sets on the left and right edges of the contour; Through two point sets, two straight lines are fitted respectively to obtain two straight lines; Calculate the distance between each point in the two point sets and the closest straight line among the two straight lines; Compare the distance of each point with a distance threshold, and group points whose distance is greater than the distance threshold into interval segments; Calculate the length of the interval segment and compare it with the length threshold. The interval is the concave and convex interval.

4. A method for detecting uneven edges and hairy edges of a safety belt according to claim 3, characterized in that: The calculating the area of ​​the hair-connected region display graph and judging whether there is hair based on the area includes: Calculate the number of pixels, that is, the area, of each connected domain in the hair-filament connected region display diagram; Arrange the plurality of connected domains in descending order according to the number of pixels; The connected domains whose area is larger than the area threshold are hairs.

5. A method for detecting uneven edges and hairy edges of a safety belt according to claim 4, characterized in that: The distance threshold, length threshold and area threshold can all be adjusted according to detection requirements.

6. A method for detecting uneven edges and hairy edges of a safety belt according to claim 3, characterized in that: When there is a large area of ​​concave and convex area in the seat belt, the fitted straight line will shift to the inside or outside of the seat belt; The distance between the point in the non-concave-convex interval of the edge of the seat belt contour image and the offset straight line exceeds a set threshold distance, and the points in the non-concave-convex area are obtained to form the interval segment; The length of the interval segment is calculated, and if the length is greater than the set length threshold, it is determined that a concave-convex interval exists.

7. A method for detecting uneven edges and hairy edges of a safety belt according to claim 4, characterized in that: When the hair of the seat belt is relatively thin, the hair can be eliminated through the opening operation, and the type and specific information of the defect can be detected; When the area of ​​the hair in the seat belt is large, the hair cannot be eliminated by the opening operation and is detected as a concave-convex section.

8. A safety belt edge concave-convex and edge hair defect detection system, characterized in that: include: A collection module, which obtains a two-dimensional visual photo of the seat belt; A preprocessing module, which processes the two-dimensional visual photos to obtain a safety belt contour map and a hair-thread connected domain display map; a concave-convex detection module, which fits the edge straight line of the seat belt contour image and calculates the distance from each point on the edge of the seat belt contour image to the edge straight line, and determines whether there is a concave-convex interval based on the distance; A hair detection module calculates the area of ​​the hair connection area display map and determines whether there is hair based on the area.

9. A terminal 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 program, it can be used to execute the method described in any one of claims 1 to 7, or to run the system described in claim 8.

10. A computer-readable storage medium having a computer program stored thereon, characterized in that: When the program is executed by a processor, it can be used to execute the method described in any one of claims 1 to 7, or to run the system described in claim 8.

Citation Information

Patent Citations

  • Edge defect detection method and apparatus

    CN105335963A

  • Glass boundary defect detection method and device, terminal and storage medium

    CN110596120A

  • Method and device for detecting defects at edge of target

    CN113160161A

  • Position and orientation measurement apparatus,position and orientation measurement method, and storage medium

    US20130121592A1

Cited By

  • Method for detecting waste biomass material of mobile solar carbonization vehicle

    CN118840372A

  • Detection method for waste biomass materials used in mobile solar carbonization vehicles

    CN118840372B

  • Detection method, detection device and detection system for pseudo soldering of welding seam

    CN118887205A

  • Sample boundary quality judgment method and system and storage medium

    CN119006477A

  • Method and equipment for rapidly detecting cutting-off defects of semiconductor ribs and pins

    CN119104568A