A method for identifying and extracting defects on basketball floors

By constructing a multi-dimensional feature evaluation model and feature analysis, the light spot area and the raised defect area are distinguished, which solves the problem of light interference in basketball floor defect identification and achieves a more accurate defect identification effect.

CN118212573BActive Publication Date: 2024-09-27JIANGSU AOFUNENG ROBOT TECH CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202410620354.X
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2024-05-20
Publication Date
2024-09-27
Estimated Expiration
2044-05-20

AI Technical Summary

Technical Problem

In the existing basketball floor defect identification method, the floor surface is affected by the light above the identification table, which makes it difficult to distinguish the light spot area formed by light reflection from the raised defect area, resulting in poor identification results.

Method used

By capturing the surface image of the basketball floor, extracting the grayscale image and extracting the edges, we build a first- and second-dimensional feature evaluation model of the suspected defective area, and combine the characteristics of edge pixels and internal pixels to calculate the possibility of raising the defective area. Parameters, filter and mark, distinguish light spot areas and raised defect areas.

Benefits of technology

It effectively overcomes the influence of light, improves the accuracy of identifying raised defects on the basketball floor, reduces misidentification, and achieves better defect identification results.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118212573B
    Figure CN118212573B
Patent Text Reader

Abstract

The present invention relates to the field of graphic recognition technology, and specifically to a method for identifying and extracting defects in a basketball floor, comprising: capturing a basketball floor surface image; extracting a grayscale image from the basketball floor surface image, and extracting edges in the grayscale image; extracting defect areas and suspected defect areas in part of the basketball floor according to the edges in the grayscale image; constructing a first-dimensional feature evaluation model for the suspected defect area according to edge pixels of the suspected defect area; constructing a second-dimensional feature evaluation model for the suspected defect area according to internal pixels of the suspected defect area; extracting possibility parameters of the suspected defect area being a raised defect area according to the first-dimensional feature evaluation model and the second-dimensional feature evaluation model of the suspected defect area, and obtaining defects in the basketball floor. The present invention achieves the purpose of accurately monitoring raised defects on the floor surface by analyzing the difference between the spot area and the raised defect area caused by the illumination effect in multiple dimensions.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the technical field of pattern recognition, and in particular to a method for identifying and extracting defects on a basketball floor. Background Art

[0002] Basketball courts are important places for athletes to compete and train. The quality and flatness of the floor will directly affect the progress of basketball games and the performance of athletes. Uneven floors may cause unstable rebound of the ball, affecting the sliding and control ability of athletes. Floor defects may even pose a threat to the safety of athletes. For example, cracks or raised areas may cause falls, sprains and other serious sports injuries. Therefore, it is very important to uniformly identify defects in the post-production process of basketball floors. Such problems can be discovered and repaired in a timely manner, improving the fairness of the game and the performance level of athletes, and most importantly, ensuring the safety of athletes. In addition, ensuring the good and flawless quality of basketball floors is to ensure and enhance user satisfaction and experience, thereby attracting more basketball fans and obtaining better economic benefits and public recognition. Usually, suitable industrial defect recognition equipment is often selected for defect recognition of basketball floors. The floor surface image is captured by shooting vertically from directly above the conveyor belt of the transport floor block; and the captured surface image is used for defect recognition using graphic recognition; for example, edge recognition technology is used to extract defect areas or threshold segmentation is used to convert the surface image into a binary image to extract defect areas.

[0003] However, in the actual recognition process, since the floor surface is affected by the light above the recognition table, some point light sources such as light will be reflected onto the floor surface to form a brighter light spot area; this type of light spot area will cause more serious interference and impact on the recognition of raised defect areas; since the regional features of the two are relatively similar during graphic recognition, it is very easy to confuse them under traditional methods, resulting in poor final defect recognition effect. Summary of the invention

[0004] The present invention provides a method for identifying and extracting defects on a basketball floor, so as to solve the existing problem that the floor surface is affected by the light above the identification table, resulting in that a good identification effect cannot be obtained by using a traditional defect identification method.

[0005] The present invention provides a method for identifying and extracting defects on a basketball floor using the following technical solutions:

[0006] The following steps are involved:

[0007] Capturing a basketball floor surface image; extracting a grayscale image from the basketball floor surface image, and extracting edges in the grayscale image;

[0008] According to the edges in the grayscale image, the defective areas and suspected defective areas in some basketball floors are extracted;

[0009] Constructing a first-dimension feature evaluation model of the suspected defect area based on the edge pixels of the suspected defect area;

[0010] Constructing a second dimension feature evaluation model of the suspected defect area based on the internal pixel points of the suspected defect area;

[0011] According to the first dimension feature evaluation model of the suspected defect area and the second dimension feature evaluation model of the suspected defect area, the possibility parameter of the suspected defect area being a raised defect area is extracted; according to the possibility parameter of the suspected defect area being a raised defect area, the suspected defect area is judged to obtain the raised defect area; the defect areas in some basketball floors and the raised defect areas are taken together as defects in the basketball floor.

[0012] Preferably, the capturing of the basketball floor surface image includes the following specific methods:

[0013] The basketball floor defect recognition device is placed directly above the basketball floor to capture the surface image of the basketball floor.

[0014] Preferably, the grayscale image is extracted from the basketball floor surface image, and the edge in the grayscale image is extracted, including the specific method of:

[0015] The basketball floor image is grayed and preprocessed, and the basketball floor image after graying and image preprocessing is recorded as a gray image; then the gray image is processed using an edge recognition operator to extract the edges in the gray image and the gradient values ​​of the edge pixels.

[0016] Preferably, the method of extracting defective areas and suspected defective areas in a portion of the basketball floor according to the edges in the grayscale image includes the following specific methods:

[0017] Determine whether the edge in the grayscale image is a closed figure. If the edge in the grayscale image is not a closed figure, the edge in the grayscale image is a defective area in the basketball floor; if the edge in the grayscale image is a closed figure, the area enclosed by the edge with closed figure characteristics is recorded as a suspected defective area.

[0018] Preferably, the first dimension feature evaluation model of the suspected defect area is constructed according to the edge pixels of the suspected defect area, and the specific method includes:

[0019] According to the position of each pixel on the edge of the suspected defect area, the slope of each pixel on the edge of the suspected defect area is extracted, and the first dimension feature evaluation model of the suspected defect area is constructed by combining the gradient value of each pixel on the edge of the suspected defect area.

[0020] Preferably, the construction of the first dimension feature evaluation model of the suspected defect area includes the following specific calculation formula:

[0021]

[0022] In the formula, Represents the first dimension feature evaluation model of the suspected defect area; Indicates the number of pixels on the edge of the suspected defect area; Indicates the edge of the suspected defect area. The gradient value of each pixel; Indicates the edge of the suspected defect area. The slope of each pixel; Indicates the edge of the suspected defect area. The slope of each pixel; represents the linear normalization function; represents an exponential function with a natural constant as base; Represents absolute value operation; and is the preset weight value.

[0023] Preferably, the second dimension feature evaluation model of the suspected defect area is constructed according to the internal pixels of the suspected defect area, and the specific method includes:

[0024] According to the grayscale values ​​of all pixels in the suspected defect area, combined with the difference between the grayscale values ​​of all pixels in the suspected defect area and the grayscale mean of all pixels in the suspected defect area, a second dimension feature evaluation model of the suspected defect area is constructed.

[0025] Preferably, the construction of the second dimension feature evaluation model of the suspected defect area includes the specific calculation formula:

[0026]

[0027] In the formula, Represents the second dimension feature evaluation model of the suspected defect area; Indicates the number of pixels in the suspected defect area; Indicates the suspected defect area. The gray value of each pixel; Indicates the suspected defect area. The gray value of each pixel; Indicates the gray value of the pixel with the largest gray value in the suspected defect area; Indicates the use of The function is normalized; represents an exponential function with a natural constant as base; Represents absolute value operation; and is the preset weight value.

[0028] Preferably, the probability parameter of extracting the suspected defect area as a raised defect area includes a specific calculation formula as follows:

[0029]

[0030] In the formula, A parameter indicating the possibility that the suspected defect area is a raised defect area; Represents the first dimension feature evaluation model of the suspected defect area; Represents the second dimension feature evaluation model of the suspected defect area; Represents the preset weight of the first dimension feature evaluation model of the suspected defect area; Represents the preset weight of the second dimension feature evaluation model of the suspected defect area.

[0031] Preferably, the determining of the suspected defect area to obtain the raised defect area includes the following specific methods:

[0032] Preset a likelihood parameter threshold ; When the probability parameter of the suspected defect area being a raised defect area is greater than or equal to , the suspected defect area is a raised defect area.

[0033] The beneficial effects of the technical solution of the present invention are: since the floor surface is affected by the light above the identification table, some point light sources such as light will be reflected onto the floor surface to form a brighter light spot area; this type of light spot area will cause relatively serious interference and influence on the identification of the raised defect area; since the regional features of the two are relatively similar during graphic recognition, it is very easy to confuse them in the traditional way, resulting in poor recognition effect of the final defect. In view of this, the present invention proposes a method for identifying and extracting basketball floor defects; by pre-processing the floor surface to be identified to locate suspected protrusions; and combining the difference features of the two in graphic recognition to conduct a specific analysis, the located suspected raised defect area is further screened and marked, and finally the area with a higher confidence level in the suspected raised defect area is extracted; so as to overcome the influence of light in the recognition environment and realize the purpose of accurately identifying raised defects on the floor. BRIEF DESCRIPTION OF THE DRAWINGS

[0034] 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 of the present invention. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying creative work.

[0035] Figure 1The present invention is a flowchart of the steps of a method for identifying and extracting defects on a basketball floor. DETAILED DESCRIPTION

[0036] In order to further explain the technical means and effects adopted by the present invention to achieve the predetermined invention purpose, the following is a detailed description of the basketball floor defect recognition and extraction method proposed by the present invention, its specific implementation, structure, features and effects, in conjunction with the accompanying drawings and preferred embodiments. In the following description, different "one embodiment" or "another embodiment" does not necessarily refer to the same embodiment. In addition, specific features, structures or characteristics in one or more embodiments may be combined in any suitable form.

[0037] Unless defined otherwise, all technical and scientific terms used herein have the same meaning as commonly understood by one of ordinary skill in the art to which this invention belongs.

[0038] The specific scheme of the method for identifying and extracting defects on a basketball floor provided by the present invention is described in detail below with reference to the accompanying drawings.

[0039] See also Figure 1 , which shows a flowchart of a method for identifying and extracting defects on a basketball floor provided by an embodiment of the present invention, the method comprising the following steps:

[0040] Step S001: Capture a basketball floor surface image; extract a grayscale image from the basketball floor surface image, and extract edges in the grayscale image.

[0041] It should be noted that this embodiment is a method for identifying and extracting defects on a basketball floor, so it is necessary to first extract the basketball floor image, and at the same time, in order to better identify the defects on the basketball floor, the basketball floor image needs to be preprocessed.

[0042] Specifically, a basketball floor defect recognition device is constructed by using an industrial recognition high-resolution camera. The device includes a camera, a light source and a processing unit. The device is placed directly above the basketball floor to capture the surface image of the basketball floor. The basketball floor image is then grayscaled and preprocessed to improve the image quality, and the basketball floor image that has been grayscaled and preprocessed is recorded as a grayscale image. An edge recognition operator is then used on the grayscale image to extract the edges in the grayscale image and the gradient values ​​of the edge pixels.

[0043] At this point, the edges in the grayscale image and the gradient values ​​of the edge pixels are obtained.

[0044] Step S002: extracting defective areas and suspected defective areas in a portion of the basketball floor according to the edges in the grayscale image.

[0045] It should be noted that in the actual recognition process, the surface of the basketball floor is affected by the light above the recognition table, and some point light sources such as light will be reflected onto the floor surface to form a bright light spot area; the light spot area has the characteristics of a closed figure, while the defects in the basketball floor do not necessarily have the characteristics of a closed figure. The edges in the grayscale image can be preliminarily screened according to whether they have the characteristics of a closed figure, and defective areas and suspected defective areas in some basketball floors can be extracted.

[0046] Specifically, determine whether the edge in the grayscale image is a closed figure. If the edge in the grayscale image is not a closed figure, the edge in the grayscale image is a defective area in the basketball floor; if the edge in the grayscale image is a closed figure, the edge in the grayscale image may be a defective area in the basketball floor, and the area enclosed by the edge with closed figure characteristics is recorded as a suspected defective area.

[0047] It should be further explained that the suspected defect area is divided into two types of areas, one is the raised defect area, and the other is the light spot area.

[0048] At this point, defective areas and suspected defective areas in some basketball floors are obtained.

[0049] Step S003: constructing a first dimension feature evaluation model of the suspected defect area according to the edge pixels of the suspected defect area.

[0050] It should be noted that since the raised defect area on the basketball floor has similar graphic features to the light spot area caused by lighting, and traditional graphic defect recognition cannot accurately identify and extract the raised defect area and the light spot area, it is necessary to perform multi-dimensional feature analysis on the suspected defect area to distinguish between the raised defect area and the light spot area.

[0051] It should be further explained that since the edge shape of the raised defect area is caused by the basketball floor itself and is not affected by light, the edge of the raised defect area is clear, and the edge curvature of the raised defect area is more extensible and regular; the edge shape of the light spot area is caused by the refraction and reflection of light, so the edge of the light spot area is fuzzy and irregular. Based on this, a first-dimensional feature evaluation model for suspected defect areas is constructed.

[0052] Specifically, according to the position of each pixel on the edge of the suspected defect area, the slope of each pixel on the edge of the suspected defect area is extracted, and combined with the gradient value of each pixel on the edge of the suspected defect area, a first dimension feature evaluation model of the suspected defect area is constructed. The specific calculation formula is as follows:

[0053]

[0054] In the formula, Represents the first dimension feature evaluation model of the suspected defect area; Indicates the number of pixels on the edge of the suspected defect area; Indicates the edge of the suspected defect area. The gradient value of each pixel; Indicates the edge of the suspected defect area. The slope of each pixel; Indicates the edge of the suspected defect area. The slope of each pixel; represents the linear normalization function; represents an exponential function with a natural constant as base; Represents absolute value operation; and is the preset weight value, where and The value of can be set according to the actual situation. This embodiment does not make a hard requirement. Perform calculations.

[0055] It should be further explained that the larger the overall pixel gradient value on the edge, the greater the difference between the gray value of the edge and the gray value of other surrounding pixels, that is, the clearer the edge will be. What is calculated is the mean of the gradient values ​​of all pixels on the edge of the suspected defect area, which represents the gradient value of the entire pixel on the edge of the suspected defect area. The larger the value is, the clearer the edge of the suspected defect area is; The mean difference of slope change of edge pixels is calculated, and the slope change between adjacent pixels on the edge of the connected domain is calculated to measure the curvature ductility, which can represent the curvature ductility of the edge of the suspected defect area, that is, The smaller the value difference is, the better the curvature ductility of the edge of the suspected defect area is; so The larger the value is, the more likely the suspected defect area is to be a raised defect area.

[0056] At this point, the first dimension feature evaluation model of the suspected defect area is obtained.

[0057] Step S004: constructing a second dimensional feature evaluation model of the suspected defect area according to the internal pixel points of the suspected defect area.

[0058] It should be noted that since the interior of the raised defect area is mainly composed of floor material, it will show a higher grayscale value than the surrounding floor; but compared with the light spot area caused by direct reflection of light, the latter will show a local highlight effect, with a brighter grayscale value and a higher reflectivity; and as for its interior, the raised defect area will cause a certain shadow to the surrounding area due to its raised part, so the grayscale distribution inside this type is not uniform; on the contrary, the grayscale value inside the light spot area is relatively more uniform, so based on this, a second dimension feature evaluation model for suspected defect areas is constructed.

[0059] Specifically, according to the grayscale values ​​of all pixels in the suspected defect area, combined with the difference between the grayscale values ​​of all pixels in the suspected defect area and the grayscale mean of all pixels in the suspected defect area, a second dimension feature evaluation model of the suspected defect area is constructed, and its specific calculation formula is:

[0060]

[0061] In the formula, Represents the second dimension feature evaluation model of the suspected defect area; Indicates the number of pixels in the suspected defect area; Indicates the suspected defect area. The gray value of each pixel; Indicates the suspected defect area. The gray value of each pixel; Indicates the gray value of the pixel with the largest gray value in the suspected defect area; express Function, which is used for normalization in this embodiment; represents an exponential function with a natural constant as base; Represents absolute value operation; and is the preset weight value, where and The value of can be set according to the actual situation. This embodiment does not make a hard requirement. Perform calculations.

[0062] It needs to be further explained that What is calculated is the grayscale value of the entire suspected defect area. Since the grayscale value of the spot area is large, and the grayscale value of the raised defect area is small, the smaller the overall grayscale value of the suspected defect area is, the more likely the suspected defect area is a raised defect area. What is calculated is the mean of the difference between the gray value of each pixel in the suspected defect area and the gray mean of all pixels in the suspected defect area; The larger the value is, the greater the grayscale difference between the pixels in the suspected defect area is, that is, the more uneven the grayscale distribution in the suspected defect area is; The larger the value is, the more likely the suspected defect area is to be a raised defect area.

[0063] At this point, the second dimension feature evaluation model of the suspected defect area is obtained.

[0064] Step S005: Based on the first dimensional feature evaluation model and the second dimensional feature evaluation model of the suspected defect area, the possibility parameters of the suspected defect area being a raised defect area are extracted to identify defects in the basketball floor.

[0065] It should be noted that, through step S003 and step S004, the first dimensional feature evaluation model of the suspected defect area and the second dimensional feature evaluation model of the suspected defect area are obtained respectively; and the first dimensional feature evaluation model of the suspected defect area and the second dimensional feature evaluation model of the suspected defect area can both distinguish the raised defect area and the light spot area in the suspected defect area to a certain extent, so the first dimensional feature evaluation model of the suspected defect area and the second dimensional feature evaluation model of the suspected defect area can be combined to accurately distinguish the raised defect area and the light spot area in the suspected defect area.

[0066] Specifically, firstly, the weights of the first dimension feature evaluation model of the suspected defect area and the second dimension feature evaluation model of the suspected defect area are respectively preset. and ;in and The value of can be set according to the actual situation. This embodiment does not make a hard requirement. , Calculation is performed, combining the first dimension feature evaluation model of the suspected defect area with the second dimension feature evaluation model of the suspected defect area, and the possibility parameter of the suspected defect area being a raised defect area is extracted. The specific calculation method is:

[0067]

[0068] In the formula, A parameter indicating the possibility that the suspected defect area is a raised defect area; Represents the first dimension feature evaluation model of the suspected defect area; Represents the second dimension feature evaluation model of the suspected defect area; Represents the preset weight of the first dimension feature evaluation model of the suspected defect area; Represents the preset weight of the second dimension feature evaluation model of the suspected defect area.

[0069] It should be further explained that, the greater the probability parameter that the suspected defect region is a raised defect region, the more likely the suspected defect region is a raised defect region.

[0070] Then preset a probability parameter threshold , The value of can be set according to the actual situation. This embodiment does not make a hard requirement. Describe; when the probability parameter of the suspected defect area being a raised defect area is greater than or equal to When the suspected defect area is a raised defect area, the probability parameter is small. When , the suspected defect area is the light spot area.

[0071] Finally, the defective area in the partial basketball floor obtained in step S002 and the raised defective area are taken together as defects in the basketball floor to complete the identification of defects in the basketball floor.

[0072] At this point, this embodiment is completed.

[0073] The above description is only a preferred embodiment of the present invention and is not intended to limit the present invention. Any modifications, equivalent substitutions, improvements, etc. made within the spirit and principle of the present invention should be included in the protection scope of the present invention.

Claims

1. A method for identifying and extracting defects on a basketball floor, characterized in that: The method comprises the following steps: Capturing a basketball floor surface image; extracting a grayscale image from the basketball floor surface image, and extracting edges in the grayscale image; According to the edges in the grayscale image, the defective areas and suspected defective areas in some basketball floors are extracted; Constructing a first-dimension feature evaluation model of the suspected defect area based on the edge pixels of the suspected defect area; Constructing a second dimension feature evaluation model of the suspected defect area based on the internal pixel points of the suspected defect area; According to the first dimension feature evaluation model of the suspected defect area and the second dimension feature evaluation model of the suspected defect area, the possibility parameter of the suspected defect area being a raised defect area is extracted; according to the possibility parameter of the suspected defect area being a raised defect area, the suspected defect area is judged to obtain a raised defect area; the defect area in part of the basketball floor and the raised defect area are taken together as defects in the basketball floor; The specific method of constructing the first dimension feature evaluation model of the suspected defect area according to the edge pixels of the suspected defect area includes: According to the position of each pixel point on the edge of the suspected defect area, the slope of each pixel point on the edge of the suspected defect area is extracted, and the first dimension feature evaluation model of the suspected defect area is constructed in combination with the gradient value of each pixel point on the edge of the suspected defect area; The construction of the first dimension feature evaluation model of the suspected defect area includes the following specific calculation formula: In the formula, Represents the first dimension feature evaluation model of the suspected defect area; Indicates the number of pixels on the edge of the suspected defect area; Indicates the edge of the suspected defect area. The gradient value of each pixel; Indicates the edge of the suspected defect area. The slope of each pixel; Indicates the edge of the suspected defect area. The slope of each pixel; represents the linear normalization function; represents an exponential function with a natural constant as base; Represents absolute value operation; and is the preset weight value; The specific method of constructing the second dimension feature evaluation model of the suspected defect area according to the internal pixel points of the suspected defect area includes: According to the grayscale values ​​of all pixels in the suspected defect area, combined with the difference between the grayscale values ​​of all pixels in the suspected defect area and the grayscale mean of all pixels in the suspected defect area, a second dimension feature evaluation model of the suspected defect area is constructed; The construction of the second dimension feature evaluation model for the suspected defect area includes the following specific calculation formula: In the formula, Represents the second dimension feature evaluation model of the suspected defect area; Indicates the number of pixels in the suspected defect area; Indicates the suspected defect area. The gray value of each pixel; Indicates the suspected defect area. The gray value of each pixel; Indicates the gray value of the pixel with the largest gray value in the suspected defect area; Indicates the use of The function is normalized; represents an exponential function with a natural constant as base; Represents absolute value operation; and is the preset weight value; The probability parameter of extracting the suspected defect area as a raised defect area includes the specific calculation formula: In the formula, A parameter indicating the possibility that the suspected defect area is a raised defect area; Represents the first dimension feature evaluation model of the suspected defect area; Represents the second dimension feature evaluation model of the suspected defect area; Represents the preset weight of the first dimension feature evaluation model of the suspected defect area; Represents the preset weight of the second dimension feature evaluation model of the suspected defect area.

2. The method for identifying and extracting defects of a basketball floor according to claim 1, characterized in that: The specific method of capturing the basketball floor surface image includes: The basketball floor defect recognition device is placed directly above the basketball floor to capture the surface image of the basketball floor.

3. The method for identifying and extracting defects of a basketball floor according to claim 1, characterized in that: The specific method of extracting the grayscale image from the basketball floor surface image and extracting the edge in the grayscale image includes: The basketball floor image is grayed and preprocessed, and the basketball floor image after graying and image preprocessing is recorded as a gray image; then the gray image is processed using an edge recognition operator to extract the edges in the gray image and the gradient values ​​of the edge pixels.

4. The method for identifying and extracting defects on a basketball floor according to claim 1, characterized in that: The method of extracting defective areas and suspected defective areas in a part of the basketball floor according to the edges in the grayscale image includes the following specific methods: Determine whether the edge in the grayscale image is a closed figure. If the edge in the grayscale image is not a closed figure, the edge in the grayscale image is a defective area in the basketball floor; if the edge in the grayscale image is a closed figure, the area enclosed by the edge with closed figure characteristics is recorded as a suspected defective area.

5. The method for identifying and extracting defects of a basketball floor according to claim 1, characterized in that: The method of determining the suspected defect area to obtain the raised defect area includes: Preset a likelihood parameter threshold ; When the probability parameter of the suspected defect area being a raised defect area is greater than or equal to , the suspected defect area is a raised defect area.