Half-load state vehicle-mounted steel scrap main body target identification method, system, medium and equipment
Through a combination of deep recognition network and background texture filtering processing, combined with edge extraction and contour detection, and using eigenvalue fusion and spectral clustering segmentation algorithms, the misjudgment problem of vehicle-mounted scrap steel body recognition in half-load state is solved, and the recognition accuracy is improved .
Patent Information
- Application Number
- CN202410810924.1
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-06-21
- Publication Date
- 2024-11-05
- Estimated Expiration
- 2044-06-21
AI Technical Summary
The existing half-load vehicle-mounted scrap steel main object recognition method has misjudgment problems in image processing, especially the inner wall of the car is misjudged as scrap steel main body, resulting in low recognition accuracy.
The deep recognition network is used to combine background texture filtering processing, edge extraction and contour detection, and through eigenvalue fusion and spectral clustering segmentation algorithms, the number of categories is adaptively classified to accurately identify the main target of scrap steel.
It significantly improves the identification accuracy of scrap steel targets, reduces misjudgment of the inner wall of the car, and improves the accuracy of scrap steel evaluation.
Smart Images

Figure CN118898835A_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the technical field of scrap steel identification, and in particular to a method, system, medium and equipment for identifying a main target of scrap steel on a semi-loaded vehicle. Background Art
[0002] Scrap steel is the only green, environmentally friendly, and recyclable renewable resource that can replace iron ore for steelmaking. It is widely used in steel smelting. In industrial manufacturing, using 1 ton of scrap steel can save 0.4 tons of coke, reduce the consumption of 1.7 tons of iron ore, and reduce carbon emissions by 1.6 tons. In recent years, scrap steel recycling manufacturing technology has been greatly improved with the rapid development of electronic information technology. Many computer vision processing technologies have been applied to the recycling and reproduction process of scrap steel to ensure efficient completion of scrap steel recycling manufacturing. Among them, visual intelligent evaluation based on computer vision processing technology has been applied by many steel companies to the scrap steel quality assessment task. The application of this technology can not only solve the problem of low evaluation efficiency caused by manual long-term large-scale complex task analysis, but also avoid personal injury during the evaluation process.
[0003] Usually, intelligent scrap steel assessment is based on the main scrap steel target in the captured image for assessment and analysis. The assessment process usually involves first collecting the target image of the unloading site, then segmenting the collected image, and extracting the assessment subject to complete the intelligent quality assessment of the target subject. In this process, completing the identification of the main scrap steel target is the primary task of intelligent assessment. There are currently many papers on this type of on-board scrap steel target recognition problem, which can be roughly divided into two categories. One is to extract the four vertices of the car body through a feature extraction algorithm for rectangular division, and use the obtained rectangular domain as the assessment target. This type of algorithm will misjudge the inner wall of the car body in a half-loaded state as the assessment target body; the other type of algorithm is based on the current popular deep network technology, such as YOLOV, FasterRcNN, MaskRcNN and other segmentation models, and learns the on-board scrap steel target features through a deep network. In practical applications, this type of method has limited application effect on the extraction of half-loaded scrap steel, mainly because the scrap steel main target references of these network segmentation algorithms are artificially identified based on the characteristics of the carriage. Due to the site limitations of the image acquisition and the camera perspective, a large amount of exposed carriage inner walls are included in the main target. After the carriage edge feature segmentation, the carriage inner walls will also be regarded as a certain type of scrap steel and exist in the main target, greatly reducing the recognition accuracy of the main target. Summary of the invention
[0004] In order to solve the technical problems existing in the background technology, the present invention proposes a method, system, medium and equipment for identifying a main target of scrap steel on a semi-loaded vehicle.
[0005] The present invention proposes a method for identifying a main target of scrap steel on a semi-loaded vehicle, comprising:
[0006] S1. Obtaining an image of scrap steel to be identified on a vehicle;
[0007] S2, identifying the image to be identified and obtaining a target area image;
[0008] S3, performing background texture filtering on the target area image;
[0009] S4, performing edge extraction on the target area image after background texture filtering to obtain an edge extracted image;
[0010] S5, performing contour detection on the edge extraction image to obtain a plurality of completely closed contour blocks; performing feature value extraction on each contour block to obtain a feature value of each contour block;
[0011] S6, using an eigenvalue fusion method to fuse the eigenvalues of each contour block to obtain mutually different eigenvalues, and using the number of mutually different eigenvalues as the number of adaptive classifications;
[0012] S7. According to the number of adaptive classifications, the background of the image to be identified is segmented to obtain an accurate target image of the scrap steel body.
[0013] Preferably, in S2, the image to be identified is identified to obtain a target area image, which specifically includes:
[0014] The DeepLabv3++ model, a deep recognition network based on dilated convolution and residual modules, is used to identify the image to be identified and obtain the target area image.
[0015] Preferably, in S3, background texture filtering is performed on the target area image, specifically including:
[0016] The relative total differential algorithm is used to perform background texture filtering on the target area image.
[0017] Preferably, in S4, edge extraction is performed on the target area image after background texture filtering to obtain an edge-extracted image, which specifically includes:
[0018] S41, extracting edges of the target area image after background texture filtering to obtain an edge gradient map including edge nodes and gradient values;
[0019] S42, performing edge purification on the edge gradient image;
[0020] S43, reconstructing edge lines according to the purified edge gradient image to obtain an edge extracted image.
[0021] Preferably, in S41, image edge extraction is performed on the target area image after background texture filtering to obtain an edge gradient map including edge nodes and gradient values, specifically including:
[0022] The Canny edge detection algorithm is used to extract the image edge of the target area image after background texture filtering, and an edge gradient map including edge nodes and gradient values is obtained.
[0023] Preferably, in S43, edge line reconstruction is performed according to the purified edge gradient map to obtain an edge extraction image, which specifically includes:
[0024] The edge line is reconstructed according to the purified edge gradient map using cubic spline interpolation method to obtain an edge extracted image.
[0025] Preferably, in S42, edge purification is performed on the edge gradient map, specifically including:
[0026] The edge gradient map is edge purified using the breadth-first search method.
[0027] Preferably, in S42, a breadth-first search method is used to perform edge purification on the edge gradient map, specifically:
[0028] S421, record the edge nodes in the edge gradient graph as nodes v(i, j); wherein i and j represent the corresponding horizontal and vertical coordinate positions of the edge nodes in the graph, the value of a non-empty node is v(i, j)=1, and the value of an empty node is v(i, j)=0;
[0029] S422, select any node v(i0, j0), and search for the adjacent nodes v(i k , j k ), and record all node paths D 0k :v(i0,j0)→v(i k , j k ) is adjacent to the position (i0, j0) k , j k );
[0030] S423, select non-empty adjacent nodes v(i k , j k ) as a new starting point and re-search the adjacent node v(i r , j r ), and update path D 0r :v(i0,j0)→v(i k , j k )→v(i r , j r );
[0031] S424: Repeat S423. If the node v(i n , j n ) If the corresponding new adjacent node is empty or coincides with the node being searched, stop searching and calculate the path D 0n :v(i0,j0)→v(i k , j k )→v(i r , j r )→…→v(i n , j n ) 0n ;
[0032] S425: Make a judgment based on the preset threshold γ. If Then delete all nodes corresponding to the path (that is, assign the value corresponding to the node to 0);
[0033] S426: Repeat steps S422-S425 until all edge nodes are traversed.
[0034] Preferably, in S7, the background of the image to be identified is segmented according to the number of adaptive classifications to obtain an accurate scrap steel image, which specifically includes:
[0035] S71. Construct a spectral clustering segmentation algorithm based on weighted distance;
[0036] S72. Use a spectral clustering segmentation algorithm based on weighted distance to perform background segmentation on the image to be identified according to the number of adaptive classifications to obtain an accurate scrap steel image.
[0037] Preferably, in S71, a spectral clustering segmentation algorithm based on weighted distance is constructed, which specifically includes:
[0038] S711: Calculate the gradient features of the target area according to the edge gradient image, and enhance the low-scale edge of the target area using the gradient features;
[0039] S712: A weighted distance metric d is constructed by combining the linear gradient of Euclidean distance for large difference data and the sensitivity of Mahalanobis distance for low difference data;
[0040] S713: construct degree matrix D and adjacency matrix W;
[0041] S714: Construct the Laplace matrix L=DW and obtain all eigenvectors η of L i (i=1, 2, ..., N), construct the feature matrix F NN =(η1, η2, ..., η N ).
[0042] Preferably, in S72, a spectral clustering segmentation algorithm based on weighted distance is used to perform background segmentation on the image to be identified according to the number of adaptive classifications to obtain an accurate target image of the main body of scrap steel, which specifically includes:
[0043] Using adaptive classification number and feature matrix F NN , weighted distance metric d and Kmeans algorithm are used to perform spectral clustering segmentation on the image to be identified, separate the target from the background, and obtain an accurate scrap steel main target image.
[0044] The present invention also proposes a semi-loaded vehicle-mounted scrap steel main body target recognition system, comprising:
[0045] An acquisition module, used for acquiring the image to be identified of the scrap steel on the vehicle;
[0046] A preliminary recognition module is used to recognize the image to be recognized and obtain a target area image;
[0047] A filtering processing module is used to perform background texture filtering on the target area image;
[0048] An edge extraction module is used to extract the edge of the target area image after background texture filtering to obtain an edge extracted image;
[0049] The feature value extraction module is used to perform contour detection on the edge extraction image to obtain multiple completely closed contour blocks; perform feature value extraction on each contour block to obtain the feature value of each contour block;
[0050] An adaptive classification number determination module is used to fuse the feature values of each contour block using a feature value fusion method to obtain mutually different feature values, and use the number of mutually different feature values as the adaptive classification number;
[0051] The segmentation module is used to perform background segmentation on the image to be identified according to the number of adaptive classifications to obtain an accurate target image of the scrap steel body.
[0052] The present invention also proposes a computer-readable storage medium, on which a main target identification program for scrap steel on a semi-loaded vehicle is stored. When the main target identification program for scrap steel on a semi-loaded vehicle is executed by a processor, a main target identification method for scrap steel on a semi-loaded vehicle as described in any one of the above is implemented.
[0053] The present invention also proposes a device, including a memory, a processor, and a main target recognition program for scrap steel on a semi-loaded vehicle stored in the memory and runnable on the processor. When the processor executes the main target recognition program for scrap steel on a semi-loaded vehicle, the main target recognition method for scrap steel on a semi-loaded vehicle as described in any one of the above items is implemented.
[0054] In the present invention, the proposed method, system, medium and equipment for identifying the main target of scrap steel on a semi-loaded vehicle first obtains a target area image by identifying the image to be identified, then performs background texture filtering on the target area image, and then determines the number of adaptive classifications based on edge detection and contour detection, and then performs background segmentation on the image to be identified according to the adaptive classification number, so as to obtain an accurate scrap steel main target image, thereby effectively improving the recognition accuracy of the scrap steel target. BRIEF DESCRIPTION OF THE DRAWINGS
[0055] Figure 1 The present invention is a flowchart of a method for identifying a main target of scrap steel on a semi-loaded vehicle. DETAILED DESCRIPTION
[0056] It should be noted that, in the absence of conflict, the embodiments of the present invention and the features in the embodiments can be combined with each other. The present invention will be described in detail below with reference to the accompanying drawings and in combination with the embodiments.
[0057] Reference Figure 1 The present invention proposes a method for identifying a main target of scrap steel in a semi-loaded vehicle, comprising:
[0058] S1. Obtaining an image of scrap steel to be identified on a vehicle;
[0059] S2, identifying the image to be identified and obtaining a target area image;
[0060] S3, performing background texture filtering on the target area image;
[0061] S4, performing edge extraction on the target area image after background texture filtering to obtain an edge extracted image;
[0062] S5, performing contour detection on the edge extraction image to obtain a plurality of completely closed contour blocks; performing feature value extraction on each contour block to obtain a feature value of each contour block;
[0063] S6, using an eigenvalue fusion method to fuse the eigenvalues of each contour block to obtain mutually different eigenvalues, and using the number of mutually different eigenvalues as the number of adaptive classifications;
[0064] S7. According to the number of adaptive classifications, the background of the image to be identified is segmented to obtain an accurate target image of the scrap steel body.
[0065] The present invention first identifies the image to be identified to obtain the target area image, then performs background texture filtering on the target area image, and then determines the number of adaptive classifications based on edge detection and contour detection. Then, according to the adaptive classification number, the background of the image to be identified is segmented to obtain an accurate scrap steel main target image, thereby effectively improving the recognition accuracy of the scrap steel target.
[0066] In this embodiment, in S2, the image to be identified is identified to obtain a target area image, which specifically includes:
[0067] The DeepLabv3++ model of the deep recognition network based on void convolution and residual module is used to recognize the image to be recognized and obtain the target area image, so as to effectively extract the overall area of the main target area of the scrap steel on the vehicle.
[0068] In this embodiment, in S3, background texture filtering is performed on the target area image, specifically including:
[0069] The relative total differential algorithm is used to perform background texture filtering on the target area image to enhance the overall uniformity of the background characteristics of the inner wall of the carriage and improve the accuracy of carriage background segmentation.
[0070] In this embodiment, in S4, edge extraction is performed on the target area image after background texture filtering to obtain an edge extracted image, which specifically includes:
[0071] S41, extracting edges of the target area image after background texture filtering, obtaining an edge gradient map including edge nodes and gradient values, so as to roughly divide the target area image into regions, providing a basis for determining the number of target area classifications;
[0072] S42, edge purification is performed on the edge gradient map to eliminate interference from small divisions in the region, improve the integrity of the regional background, and improve the accuracy of the number of classifications in the target region;
[0073] S43, reconstructing edge lines according to the purified edge gradient map to obtain an edge extraction image, so as to make up for the missing edges caused by too large a threshold in the edge extraction process, improve the independence of each area of the image, and further improve the accuracy of the number of target area classifications.
[0074] It should be noted that edge purification in this embodiment refers to removing interference features similar to edges to eliminate interference from small divisions in the region, thereby achieving the purpose of improving the integrity of the regional background and improving the accuracy of the number of classifications in the target region.
[0075] In order to better roughly divide the target area image, in a further embodiment, in S41, the target area image after background texture filtering is subjected to image edge extraction to obtain an edge gradient map including edge nodes and gradient values, specifically including:
[0076] The Canny edge detection algorithm is used to extract the image edge of the target area image after background texture filtering, and an edge gradient map including edge nodes and gradient values is obtained.
[0077] In order to further eliminate the interference of small divisions in the region, improve the integrity of the regional background, and improve the accuracy of the number of target region classifications, in a further embodiment, in S41, edge purification is performed on the edge gradient map, specifically including:
[0078] The edge gradient map is edge purified using the breadth-first search method.
[0079] Among them, in S42, the edge gradient map is edge purified by using a breadth-first search method, specifically:
[0080] S421, record the edge nodes in the edge gradient graph as nodes v(i, j); wherein i and j represent the corresponding horizontal and vertical coordinate positions of the edge nodes in the graph, the value of a non-empty node is v(i, j)=1, and the value of an empty node is v(i, j)=0;
[0081] S422, select any node v(i0, j0), and search for the adjacent nodes v(i k , j k ), and record all node paths D0 k :v(i0,j0)→v(i k , j k ) is adjacent to the position (i0, j0) k , j k );
[0082] S423, select non-empty adjacent nodes v(i k , j k ) as a new starting point and re-search the adjacent node v(i r , j r ), and update path D 0r :v(i0,j0)→v(i k , j k )→v(i r , j r );
[0083] S424: Repeat S423. If the node v(i n , j n) If the corresponding new adjacent node is empty or coincides with the node being searched, stop searching and calculate the path D 0n :v(i0,j0)→v(i k , j k )→v(i r , j r )→…→v(i n , j n ) 0n ;
[0084] S425: Make a judgment based on the preset threshold γ. If Then delete all nodes corresponding to the path (that is, assign the value corresponding to the node to 0);
[0085] S426: Repeat steps S422-S425 until all edge nodes are traversed.
[0086] In this embodiment, the path length is determined by a preset threshold value γ during the traversal process. When deleting short paths, the purpose of purification is to remove the interference of local small objects and stains and rust spots on the edges, so that larger separable areas with similar characteristics can be obtained.
[0087] In order to make up for the edge loss caused by the Canny operator due to the excessively large threshold, improve the independence of each area of the image, and further improve the accuracy of the number of target area classification, in a further embodiment, in S43, edge line reconstruction is performed according to the purified edge gradient map to obtain an edge extraction image, which specifically includes:
[0088] The edge line is reconstructed according to the purified edge gradient map using cubic spline interpolation method to obtain an edge extracted image.
[0089] In order to improve the classification efficiency of the target area, in this embodiment, in S7, the background segmentation of the image to be identified is performed according to the number of adaptive classifications to obtain an accurate scrap steel image, which specifically includes:
[0090] S71. Construct a spectral clustering segmentation algorithm based on weighted distance;
[0091] S72. Use a spectral clustering segmentation algorithm based on weighted distance to perform background segmentation on the image to be identified according to the number of adaptive classifications to obtain an accurate scrap steel image.
[0092] In a further embodiment, in S71, a spectral clustering segmentation algorithm based on weighted distance is constructed, specifically including:
[0093] S711: Calculate the gradient features of the target area according to the edge gradient image, and enhance the low-scale edge of the target area using the gradient features;
[0094] S712: A weighted distance metric d is constructed by combining the linear gradient of Euclidean distance for large difference data and the sensitivity of Mahalanobis distance for low difference data;
[0095] S713: construct degree matrix D and adjacency matrix W;
[0096] S714: Construct the Laplace matrix L=DW and obtain all eigenvectors η of L i (i=1, 2, ..., N), construct the feature matrix F NN =(η1, η2, ..., η N ).
[0097] In a further embodiment, in S72, a spectral clustering segmentation algorithm based on weighted distance is used to perform background segmentation on the image to be identified according to the number of adaptive classifications to obtain an accurate target image of the scrap steel body, specifically including:
[0098] Using adaptive classification number and feature matrix F NN , weighted distance metric d and Kmeans algorithm are used to perform spectral clustering segmentation on the image to be identified, separate the target from the background, and obtain an accurate scrap steel main target image.
[0099] In a further embodiment, when separating the target from the background, the background area of the inner wall of the vehicle body is automatically selected using the principle of maximum area, and the inner wall of the vehicle body can be removed adaptively to obtain an accurate scrap steel main body target.
[0100] In summary, compared with the existing scrap steel assessment target recognition algorithm, the present invention adopts a solution that combines deep network and texture background segmentation, which effectively makes up for the defect that a single deep network model cannot exclude the carriage background, while solving the difficulty that non-learning algorithms have no experience reference and are difficult to determine the target. The improved combination of the two methods greatly improves the recognition accuracy of the target subject.
[0101] The present invention also proposes a semi-loaded vehicle-mounted scrap steel main body target recognition system, comprising:
[0102] An acquisition module, used for acquiring the image to be identified of the scrap steel on the vehicle;
[0103] A preliminary recognition module is used to recognize the image to be recognized and obtain a target area image;
[0104] A filtering processing module is used to perform background texture filtering on the target area image;
[0105] An edge extraction module is used to extract the edge of the target area image after background texture filtering to obtain an edge extracted image;
[0106] The feature value extraction module is used to perform contour detection on the edge extraction image to obtain multiple completely closed contour blocks; perform feature value extraction on each contour block to obtain the feature value of each contour block;
[0107] An adaptive classification number determination module is used to fuse the feature values of each contour block using a feature value fusion method to obtain mutually different feature values, and use the number of mutually different feature values as the adaptive classification number;
[0108] The segmentation module is used to perform background segmentation on the image to be identified according to the number of adaptive classifications to obtain an accurate target image of the scrap steel body.
[0109] It should be noted that the working methods of the various modules in this embodiment are the same as those described in the above method embodiments, and will not be described in detail here.
[0110] The present invention also proposes a computer-readable storage medium, on which a main target identification program for scrap steel on a semi-loaded vehicle is stored. When the main target identification program for scrap steel on a semi-loaded vehicle is executed by a processor, a main target identification method for scrap steel on a semi-loaded vehicle as described in any one of the above is implemented.
[0111] The present invention also proposes a device, including a memory, a processor, and a main target recognition program for scrap steel on a semi-loaded vehicle stored in the memory and runnable on the processor. When the processor executes the main target recognition program for scrap steel on a semi-loaded vehicle, the main target recognition method for scrap steel on a semi-loaded vehicle as described in any one of the above items is implemented.
[0112] The above description is only a preferred specific implementation manner of the present invention, but the protection scope of the present invention is not limited thereto. Any technician familiar with the technical field can make equivalent replacements or changes according to the technical scheme and inventive concept of the present invention within the technical scope disclosed by the present invention, which should be covered by the protection scope of the present invention.
Claims
1. A method for identifying the main target of scrap steel on a semi-loaded vehicle. It is characterized in that include: S1. Obtaining an image of scrap steel to be identified on a vehicle; S2, identifying the image to be identified and obtaining a target area image; S3, performing background texture filtering on the target area image; S4, performing edge extraction on the target area image after background texture filtering to obtain an edge extracted image; S5, performing contour detection on the edge extraction image to obtain a plurality of completely closed contour blocks, and performing feature value extraction on each contour block to obtain a feature value of each contour block; S6, using an eigenvalue fusion method to fuse the eigenvalues of each contour block to obtain mutually different eigenvalues, and using the number of mutually different eigenvalues as the number of adaptive classifications; S7. According to the number of adaptive classifications, the background of the image to be identified is segmented to obtain an accurate target image of the scrap steel body.
2. The method for identifying the main target of scrap steel on a semi-loaded vehicle according to claim 1, It is characterized in that In S2, the image to be identified is identified to obtain a target area image, which specifically includes: The DeepLabv3++ model, a deep recognition network based on dilated convolution and residual modules, is used to identify the image to be identified and obtain the target area image.
3. The method for identifying the main target of scrap steel on a semi-loaded vehicle according to claim 1, It is characterized in that In S3, background texture filtering is performed on the target area image, specifically including: The relative total differential algorithm is used to perform background texture filtering on the target area image.
4. The method for identifying the main target of scrap steel in a semi-loaded vehicle according to claim 1, It is characterized in that In S4, edge extraction is performed on the target area image after background texture filtering to obtain an edge extracted image, which specifically includes: S41, extracting edges of the target area image after background texture filtering to obtain an edge gradient map including edge nodes and gradient values; S42, performing edge purification on the edge gradient image; S43, reconstructing edge lines according to the purified edge gradient image to obtain an edge extracted image.
5. The method for identifying the main target of scrap steel in a semi-loaded vehicle according to claim 4, It is characterized in that In S41, the image edge is extracted from the target area image after the background texture filtering process to obtain an edge gradient map including edge nodes and gradient values, which specifically includes: The Canny edge detection algorithm is used to extract the image edge of the target area image after background texture filtering, and an edge gradient map including edge nodes and gradient values is obtained; Preferably, in S43, edge line reconstruction is performed according to the purified edge gradient map to obtain an edge extraction image, which specifically includes: The edge line is reconstructed according to the purified edge gradient map using cubic spline interpolation method to obtain an edge extracted image.
6. The method for identifying the main target of scrap steel on a semi-loaded vehicle according to claim 4, It is characterized in that In S42, edge purification is performed on the edge gradient map, specifically including: The edge gradient map is edge purified using the breadth-first search method; Preferably, in S42, a breadth-first search method is used to perform edge purification on the edge gradient map, specifically: S421, record the edge nodes in the edge gradient graph as nodes v(i, j); wherein i and j represent the corresponding horizontal and vertical coordinate positions of the edge nodes in the graph, the value of a non-empty node is v(i, j)=1, and the value of an empty node is v(i, j)=0; S422, select a node v(i 0 , j 0 ), and search for the adjacent nodes v(i k , j k ), and record all node paths D 0k :v(i 0 , j 0 )→v(i k , j k ) and (i 0 , j 0 ) position adjacent to the position (i k , j k ); S423, select non-empty adjacent nodes v(i k , j k ) as a new starting point and re-search the adjacent node v(i r , j r ), and update path D 0r :v(i 0 , j 0 )→v(i k , j k )→v(i r , j r ); S424: Repeat S423. If the node v(i n , j n ) If the new adjacent node corresponding to is empty or coincides with the searched node, stop searching and calculate the path D 0n :v(i 0 , j 0 )→v(i k , j k )→v(i r , j r )→…→v(i n , j n ) 0n ; S425: Make a judgment based on the preset threshold γ. If Then delete all nodes corresponding to the path; S426: Repeat steps S422-S425 until all edge nodes are traversed.
7. The method for identifying the main body of scrap steel in a semi-loaded vehicle according to claim 5, It is characterized in that In S7, the background of the image to be identified is segmented according to the number of adaptive classifications to obtain an accurate scrap steel image, which specifically includes: S71. Construct a spectral clustering segmentation algorithm based on weighted distance; S72, using a spectral clustering segmentation algorithm based on weighted distance to perform background segmentation on the image to be identified according to the number of adaptive classifications, to obtain an accurate scrap steel image; Preferably, in S71, a spectral clustering segmentation algorithm based on weighted distance is constructed, which specifically includes: S711: Calculate the gradient features of the target area according to the edge gradient image, and enhance the low-scale edge of the target area using the gradient features; S712: A weighted distance metric d is constructed by combining the linear gradient of Euclidean distance for large difference data and the sensitivity of Mahalanobis distance for low difference data; S713: construct degree matrix D and adjacency matrix W; S714: Construct the Laplace matrix L=DW and obtain all eigenvectors η of L i (i=1, 2, ..., N), construct the feature matrix F NN =(η 1 , η 2 ,…,η N ); Preferably, in S72, a spectral clustering segmentation algorithm based on weighted distance is used to perform background segmentation on the image to be identified according to the number of adaptive classifications to obtain an accurate target image of the main body of scrap steel, which specifically includes: Using adaptive classification number and feature matrix F NN , weighted distance metric d and Kmeans algorithm are used to perform spectral clustering segmentation on the image to be identified, separate the target from the background, and obtain an accurate scrap steel main target image.
8. A semi-loaded vehicle-mounted scrap steel main target recognition system, It is characterized in that include: An acquisition module, used for acquiring the image to be identified of the scrap steel on the vehicle; A preliminary recognition module is used to recognize the image to be recognized and obtain a target area image; A filtering processing module is used to perform background texture filtering on the target area image; An edge extraction module is used to extract the edge of the target area image after background texture filtering to obtain an edge extracted image; The feature value extraction module is used to perform contour detection on the edge extraction image to obtain multiple completely closed contour blocks; perform feature value extraction on each contour block to obtain the feature value of each contour block; An adaptive classification number determination module is used to fuse the feature values of each contour block using a feature value fusion method to obtain mutually different feature values, and use the number of mutually different feature values as the adaptive classification number; The segmentation module is used to perform background segmentation on the image to be identified according to the number of adaptive classifications to obtain an accurate target image of the scrap steel body.
9. A computer-readable storage medium, It is characterized in that A main target recognition program for scrap steel on a half-loaded vehicle is stored thereon, and when the main target recognition program for scrap steel on a half-loaded vehicle is executed by the processor, the main target recognition method for scrap steel on a half-loaded vehicle as claimed in any one of claims 1 to 8 is implemented.
10. A device, It is characterized in that The invention comprises a memory, a processor and a main target recognition program for scrap steel on a semi-loaded vehicle which is stored in the memory and can be run on the processor. When the processor executes the main target recognition program for scrap steel on a semi-loaded vehicle, the main target recognition method for scrap steel on a semi-loaded vehicle as claimed in any one of claims 1 to 8 is implemented.
Citation Information
Patent Citations
Moving target background segmentation method based on improved Vibe+ algorithm
CN110992381A
Superspeed impact damage area feature strengthening method
CN112884716A
Snow pressing vehicle appearance defect detection method based on vision under complex background
CN113160192A
Target object detection method and device for continuous contour and storage medium
CN114049499A
Target segmentation complementation and identification method in shielding environment
CN115984558A
