Scrap steel thickness classification method based on multi-angle feature fusion model and related equipment

Through the multi-angle feature fusion model, multi-view sampling pictures are combined with camera position coordinates, and local attention convolution and non-local information transfer modules are used for feature fusion, which solves the problems of large scrap steel thickness identification errors and long calculation time in the existing technology. problem, enabling more efficient and accurate scrap steel thickness classification.

CN118570538APending Publication Date: 2024-08-30XIAN MICROELECTRONICS TECH INST
View PDF 0 Cites 1 Cited by

Patent Information

Application Number
CN202410701324.1
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-05-31
Publication Date
2024-08-30

AI Technical Summary

Technical Problem

Existing scrap steel thickness identification methods have large measurement errors and long calculation times, and the deep learning method based on single-view collection is difficult to accurately classify. The three-dimensional point cloud method has a large amount of calculations, resulting in classification errors and calculation time problems.

Method used

A method based on the multi-angle feature fusion model is adopted to combine multi-view sampling pictures with camera position coordinates, extract multi-view features through the residual neural network, and use local attention convolution and non-local information transfer modules for feature fusion to construct a Feature representation map to obtain multi-angle global descriptors of three-dimensional objects for scrap steel thickness classification.

Benefits of technology

It improves the accuracy of scrap steel thickness classification and system accuracy, reduces calculation costs, reduces the subjectivity of manual visual estimation, and achieves more efficient scrap steel quality inspection.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118570538A
    Figure CN118570538A
Patent Text Reader

Abstract

The invention discloses a scrap steel thickness classification method based on a multi-angle feature fusion model and related equipment, on one hand, compared with direct three-dimensional representation, a multi-view sampling picture and a camera position coordinate are combined to construct a view-graph with nodes represented by different view features, and the view-graph is used for classifying the thickness of the scrap steel; on the one hand, a mature advanced network framework can be utilized to perform feature extraction while an input data acquisition way is simple, on the other hand, compared with simple fusion (such as maximum or average selection), a local graph attention convolution module and a non-local information transfer module are utilized to perform hierarchical learning on multi-angle global feature descriptors containing a plurality of view relationships, and the multi-angle global feature descriptors are more accurate. For a two-dimensional image set shot at multiple angles, the image convolution can effectively solve the problem of a data structure with irregular image position distribution, and node feature updating and weight redistribution are carried out according to an adjacent matrix.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention belongs to the technical field of scrap steel material identification, and specifically relates to a scrap steel material thickness classification method based on a multi-angle feature fusion model and related equipment. Background Art

[0002] With the rapid development of urbanization and economic society, resource and energy consumption in key industries such as steel and nonferrous metals is continuing to grow. Scrap steel, as an important high-energy green resource, will become increasingly important in the future steel industry. Due to the common problems of large quantities and mixed shapes of scrap steel recycling, the existing scrap steel quality inspection (i.e., weight estimation of scrap steel for a whole vehicle) system needs to obtain the length, width and thickness of the scrap steel material when estimating the weight of the scrap steel. Most steel mills use manual visual estimation methods, and the experience of quality inspectors is subjective and uncertain.

[0003] With the continuous development of the field of artificial intelligence, scrap steel measurement methods based on deep learning have gradually been proposed. At present, most methods only focus on the length and width of scrap steel and ignore the impact of its thickness on measurement. The current image-based metal thickness classification method is mainly divided into metal edge images and three-dimensional point cloud data for thickness recognition in terms of input data selection, and is mainly divided into edge feature extraction networks and attention networks for predicting thickness in terms of thickness feature extraction. For three-dimensional scrap steel objects, most of the research methods based on deep learning use neural networks to identify thickness after collecting scrap steel images from a single perspective. This type of method has large measurement errors and is prone to classification errors in practical applications. The point cloud-based research method uses three-dimensional convolution to directly generate three-dimensional representations from three-dimensional data. This type of method is limited by the amount of calculation and calculation time in practical applications. Summary of the invention

[0004] The present invention provides a scrap steel thickness classification method and related equipment based on a multi-angle feature fusion model, which solves the problems of large scrap steel category recognition errors and long calculation time.

[0005] To achieve the above object, the present invention provides the following technical solutions:

[0006] The scrap steel thickness classification method based on the multi-angle feature fusion model includes the following steps:

[0007] S1 obtains sampling images of a single scrap steel from different perspectives and marks the thickness categories to generate a scrap steel dataset;

[0008] S2 preprocesses the scrap steel data set and sends the preprocessed multi-view scrap steel images to the residual neural network to extract multi-view features of three-dimensional scrap steel object instances;

[0009] S3 combines the multi-view features extracted from the different perspective sampling images in the data set with their corresponding camera position coordinates to construct a directed feature representation graph with nodes representing different view features;

[0010] S4 performs multi-view feature fusion on the directed feature representation graph to obtain a global descriptor with multi-angle features of three-dimensional objects, and classifies the thickness of scrap steel based on the global descriptor.

[0011] Preferably, the specific operation of preprocessing the scrap steel data set in S2 is:

[0012] After scaling the scrap steel images of different viewpoints in the dataset, the mean and variance of the RGB channel pixels are calculated and normalized, and the normalized multi-view images are stacked in the view dimension.

[0013] Preferably, the specific method for constructing the directed feature representation graph in S3 is:

[0014] A ij =Γ(r ij θ a )

[0015] r ij represents the spatial relationship between two view nodes, Γ is a parameter θ a Non-linear function.

[0016] Preferably, in S4, the specific fusion method for performing multi-view feature fusion on the directed feature representation graph to obtain a global descriptor having multi-angle features of the three-dimensional object is:

[0017] The directed feature representation graph is updated successively with view nodes using local attention convolution and non-local information transfer.

[0018] The view selector is used to coarsen the directed feature representation graph after node update, and all levels of features generated by the view selector are aggregated to obtain a global descriptor with multi-angle features of 3D objects.

[0019] Preferably, the local attention convolution is used to update the view nodes of the directed feature representation graph successively, and the specific operations are as follows:

[0020] First, the camera position coordinates and the k-nearest neighbor algorithm are used to find a fixed number of adjacent nodes for each view node, and only the edges between adjacent nodes are retained. Then, a shared linear change is applied to each view node, and a weight matrix is ​​obtained according to the edges between adjacent nodes and the shared linear change. The attention coefficient of each node is calculated based on the weight matrix, and the result vectors after linear transformation are concatenated and mapped using a feedforward network a and activated by LeakyReLU, and finally normalized by softmax to obtain the final result.

[0021] Preferably, non-local information transfer is used to update the view nodes of the directed feature representation graph successively, and the specific operations are as follows:

[0022] The relationship between two nodes in the directed feature representation graph is obtained, and then the relationship information of a certain node and other nodes is collected from all the view node relationships obtained above, and the feature information of the point is merged with the relationship information with other nodes to update the node feature of the node.

[0023] Preferably, the camera coordinate vector of the sampled view after the view selector downsamples the directed feature representation graph is:

[0024]

[0025] where V(·) is a view selector with parameter θ, which is composed of different sampled views j∈[1,N l+1 ] and the lth layer graph are defined respectively, The directed features before sampling for the view selector represent the feature information of each node in the graph.

[0026] Scrap steel thickness classification system based on multi-angle feature fusion model, including:

[0027] Dataset acquisition module: used to obtain sampling images of a single scrap steel material from different perspectives and generate a scrap steel material dataset;

[0028] Multi-view feature extraction module: used to preprocess the scrap steel data set, and send the preprocessed multi-view scrap steel images to the residual neural network to extract the multi-view features of the three-dimensional scrap steel object instance;

[0029] Directed feature construction module: used to combine the multi-view features extracted from the different perspective sampling images in the data set with their corresponding camera position coordinates to construct a directed feature representation graph with nodes representing different view features;

[0030] Classification module: used to perform multi-view feature fusion on the directed feature representation graph to obtain a global descriptor with multi-angle features of three-dimensional objects, and classify the thickness of scrap steel based on the global descriptor.

[0031] A computer device comprises a memory, a processor and a computer program stored in the memory and executable on the processor. When the processor executes the computer program, the steps of a scrap steel thickness classification method based on a multi-angle feature fusion model are implemented.

[0032] A computer-readable storage medium stores a computer program, which, when executed by a processor, implements the steps of a scrap steel thickness classification method based on a multi-angle feature fusion model.

[0033] Compared with the prior art, the present invention has the following beneficial effects: the present invention proposes a scrap steel thickness classification method based on a multi-angle feature fusion model, which represents a three-dimensional object as a two-dimensional image at different perspectives, and then uses a neural network and perspective coordinates to extract and fuse features, which can effectively improve the scrap steel thickness classification accuracy, and further make up for the problem that the existing scrap steel thickness recognition method lacks the ability to extract features from multiple perspectives to estimate the thickness of scrap steel. On the one hand, compared with direct three-dimensional representation, the present invention combines multi-perspective sampling images with camera position coordinates to construct a view-graph with nodes representing different view features, which can use a mature advanced network framework for feature extraction while obtaining input data in a simple way. On the other hand, compared with simple fusion (such as maximum or average selection), the present invention uses a local graph attention convolution module and a non-local information transfer module to hierarchically learn multi-angle global feature descriptors containing multiple view relationships. For a set of two-dimensional images taken from multiple angles, graph convolution can effectively solve the data structure with irregular image position distribution, and realize node feature update and weight redistribution according to the proximity matrix. This method can use less computing cost to realize thickness classification of a single scrap steel instance under the premise of automation and low acquisition cost, thereby effectively improving the accuracy and objectivity of the existing scrap steel quality inspection system, and effectively reducing the scrap steel recycling cost caused by the current manual visual estimation method. BRIEF DESCRIPTION OF THE DRAWINGS

[0034] Figure 1 This is a flow chart of a scrap steel thickness classification method based on a multi-angle feature fusion model of the present invention;

[0035] Figure 2 This is an overall flow chart of a scrap steel thickness classification method based on a multi-angle feature fusion model according to an embodiment of the present invention;

[0036] Figure 3 This is the specific structure of View-GAN of the present invention;

[0037] Figure 4 This is a system block diagram of the scrap steel thickness classification method based on the multi-angle feature fusion model of the present invention. DETAILED DESCRIPTION

[0038] In order to make the purpose, technical solutions and advantages of the embodiments of the present invention clearer, the technical solutions in the embodiments of the present invention will be clearly and completely described below in conjunction with the drawings in the embodiments of the present invention. Obviously, the described embodiments are part of the embodiments of the present invention, not all of the embodiments. Generally, the components of the embodiments of the present invention described and shown in the drawings here can be arranged and designed in various different configurations.

[0039] Therefore, the following detailed description of the embodiments of the present invention provided in the accompanying drawings is not intended to limit the scope of the invention claimed for protection, but merely represents selected embodiments of the present invention. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present invention.

[0040] It should be noted that similar reference numerals and letters denote similar items in the following drawings, and therefore, once an item is defined in one drawing, further definition and explanation thereof is not required in subsequent drawings.

[0041] In the description of the embodiments of the present invention, it should be noted that if the terms "upper", "lower", "horizontal", "inner", etc. indicate an orientation or positional relationship based on the orientation or positional relationship shown in the drawings, or the orientation or positional relationship in which the product of the invention is usually placed when in use, it is only for the convenience of describing the present invention and simplifying the description, and does not indicate or imply that the device or element referred to must have a specific orientation, be constructed and operated in a specific orientation, and therefore cannot be understood as a limitation on the present invention. In addition, the terms "first", "second", etc. are only used to distinguish the description, and cannot be understood as indicating or implying relative importance.

[0042] In addition, if the term "horizontal" appears, it does not mean that the component must be absolutely horizontal, but can be slightly tilted. For example, "horizontal" only means that its direction is more horizontal than "vertical", which does not mean that the structure must be completely horizontal, but can be slightly tilted.

[0043] In the description of the embodiments of the present invention, it is also necessary to explain that, unless otherwise clearly specified and limited, the terms "set", "install", "connect", and "connect" should be understood in a broad sense, for example, it can be a fixed connection, a detachable connection, or an integral connection; it can be a mechanical connection or an electrical connection; it can be a direct connection, or it can be indirectly connected through an intermediate medium, or it can be the internal connection of two components. For ordinary technicians in this field, the specific meanings of the above terms in the present invention can be understood according to specific circumstances.

[0044] In order to enable those skilled in the art to better understand the technical solution of the present invention, the present invention will be further described in detail below with reference to the accompanying drawings.

[0045] The scrap steel measurement method based on deep learning has gradually become a way to replace manual visual inspection with the widespread application of deep learning in the field of image processing. However, how to accurately identify the thickness of scrap steel with less computation has become one of the bottleneck problems in the current scrap steel measurement. The present invention proposes a scrap steel thickness classification method based on a multi-angle feature fusion model, which represents a three-dimensional object as a two-dimensional image at different perspectives, and then uses a neural network and perspective coordinates to extract and fuse features, which can effectively improve the accuracy of scrap steel thickness classification, and further make up for the problem that the existing scrap steel thickness recognition method lacks the ability to extract features from multiple perspectives to estimate the thickness of scrap steel. On the one hand, compared with direct three-dimensional representation, the present invention combines multi-perspective sampling images with camera position coordinates to construct a view-graph with nodes representing different view features. While the way to obtain input data is simple, a mature advanced network framework can be used for feature extraction. On the other hand, compared with simple fusion (such as maximum or average selection), the present invention uses the local graph attention convolution module and the non-local information transfer module to hierarchically learn the multi-angle global feature descriptor containing multiple view relationships. For a set of two-dimensional images shot from multiple angles, graph convolution can effectively solve the data structure with irregular image position distribution, and realize node feature update and weight redistribution according to the proximity matrix. Therefore, the use of the present invention to perform view feature fusion of different perspectives on a single scrap steel instance can complement the detailed features of the three-dimensional scrap steel object, and take into account the positional relationship between the perspective images, thereby effectively improving the thickness classification accuracy, solving the above-mentioned scrap steel measurement problem while making up for the problem that the existing scrap steel thickness recognition method lacks the feature extraction from multiple perspectives to estimate the thickness of the scrap steel.

[0046] like Figure 1 As shown, the present invention provides a scrap steel thickness classification method based on a multi-angle feature fusion model, comprising:

[0047] S1 obtains sampling images of a single scrap steel from different perspectives to generate a scrap steel data set;

[0048] S2 preprocesses the scrap steel data set and sends the preprocessed multi-view scrap steel images to the residual neural network to extract multi-view features of three-dimensional scrap steel object instances;

[0049] S3 combines the multi-view features extracted from the different perspective sampling images in the data set with their corresponding camera position coordinates to construct a directed feature representation graph with nodes representing different view features;

[0050] S4 performs multi-view feature fusion on the directed feature representation graph to obtain a global descriptor with multi-angle features of three-dimensional objects, and classifies the thickness of scrap steel based on the global descriptor.

[0051] like Figure 2 The detailed steps are as follows:

[0052] Step 1: Get sample images of a single scrap steel instance from different perspectives and manually annotate the thickness categories to generate a scrap steel dataset S (N×V×H×W). It is worth noting that the dataset needs to be manually annotated with thickness categories during the network training phase, but this is not required in actual applications.

[0053] Where: N represents the number of single scrap steel instances contained in the scrap steel dataset;

[0054] V represents the number of acquisition perspectives;

[0055] H and W represent the height and width of the perspective sampling image size respectively.

[0056] Step 2: After scaling the scrap steel images of different viewing angles in the dataset to the specified size, the mean and variance of the RGB channel pixels are calculated, and they are stacked in the view dimension after normalization;

[0057] The preprocessed multi-view scrap steel images are fed into a residual neural network to extract multiple view features of three-dimensional scrap steel object instances and generate multi-view features C (N×V×C).

[0058] Among them, C represents the dimension of feature representation after feature extraction.

[0059] Step three, the features extracted from the sampled images of different view angles in the dataset are combined with their corresponding camera position coordinates to construct a directed feature representation graph whose nodes represent different view features. This directed graph is called a view-graph.

[0060] The specific view-graph construction method is: Assume that the corresponding camera coordinate of the i-th view node is v i , each element in the view-graph adjacency matrix A is expressed as formula (1):

[0061] A ij =Γ(r ij θ a ) (1)

[0062] Among them, r ij represents the spatial relationship between two view nodes, Γ is a parameter θ a The nonlinear function is implemented by a three-layer perceptron with a LeakyReLU activation function in the present invention.

[0063] In step 4, the view-graph constructed in step 3 is fed into the subsequent multi-view feature fusion module to obtain a global descriptor with multi-angle features of three-dimensional objects. The feature fusion part adopts a two-layer View-GAN (including a local graph attention convolution module, a non-local information transfer module, and a graph coarsening module.

[0064] In step 4.1, the view nodes of the view-graph are updated successively using local attention convolution and non-local information transfer.

[0065] Step 4.1.1 (local attention convolution), given N l The l-th level view of the view node - Figure G l ,and The rows represent the corresponding features of the view nodes. The node features of this group are Local graph attention convolution updates node features by considering the relationships between neighboring nodes determined by kNN.

[0066] First, the camera position coordinates and the k-nearest neighbor algorithm (kNN) are used to find a fixed number of neighboring nodes for each view node, and only the edges between neighboring nodes are retained.

[0067] Then a shared linear transformation is applied to each view node, given by the weight matrix Represents. Then calculate the attention coefficient of each node, concatenate the result vectors after linear transformation, map them using feedforward network a and activate them through LeakyReLU, and then normalize them through softmax to get the final result. In order to make the attention mechanism more scalable. The present invention defines a multi-head attention mechanism (K represents K multi-heads), first calculate the attention weights and then perform cascading, which can be specifically expressed as:

[0068]

[0069] Among them, σ(·) represents a nonlinear activation function, and the present invention adopts LeakyReLU as the activation function; ||(·) represents a cascade operation, and K represents the number of heads. When it is in the last layer of the network, if the cascade is continued, the dimension of the output node feature will be too large, so the last layer changes the cascade operation to accumulation and averaging, and the specific expression is as follows:

[0070]

[0071] Given a feature matrix Combined with the above calculated node attention coefficient matrix Attention l , the local graph attention convolutional layer is defined as:

[0072]

[0073] Among them, Attention l Representation View - Figure G l The attention adjacency matrix Ψ is composed of the BN layer and the parameter The nonlinear transformation of LeakyReLU is composed of . Therefore, the output F l The size is still The input node features are first passed through the adjacency matrix Attention l Diffusion is performed, and then the linear transformation W l Each node is updated and then a nonlinear transformation is performed. l The row is the updated node feature.

[0074] Step 4.1.2 (non-local information transfer), the view node is further updated through the non-local information transfer operation, which is used to capture the remote relationship between the view nodes in the view-graph. i With v j The relationship between them is shown as follows:

[0075] m ij =Φ([f i ,f j ];θ m ) (7)

[0076] Among them, f i represents the features in the i-th view node, [·,·] represents the concatenation between two vectors, and Φ is the vector with parameter θ m The relationship function is used to explore the relationship between view nodes. In the present invention, this operation is designed as a three-layer perceptron with a LeakyReLU activation function. Then, information about the i-th node is collected from all view nodes, and the accumulated information c i With the original feature information f i Fusion to update node features, expressed as:

[0077]

[0078] Step 4.2, use the view selector to coarsen the updated view-graph of the node, aggregate all levels of features generated by the view selector to obtain a global descriptor with multi-angle features of the three-dimensional object. The camera coordinate vector of the sampled view of the view selector is:

[0079]

[0080] where V(·) is a view selector with parameter θ, whose output is the probability of belonging to the thickness class. And the maximum operator represents the maximum value in the vector. The view selector is composed of different sampled views j∈[1,N l+1 ] and the first layer (level) graph are defined separately. The present invention simply sets it as a two-layer MLP.

[0081] The present invention also proposes an optimization method for estimating the thickness category of the global descriptor scrap steel material instance

[0082] The thickness classification model proposed in the present invention uses the TPE search algorithm to automatically adjust parameters to select hyperparameters with better model results, and uses the SGD with Momentum optimizer and the Focal Loss loss function to solve the problem of class imbalance in the small dataset of scrap steel for model training. The Focal Loss loss is expressed as formula (10), as follows:

[0083] L CE =-∝ t (1-p t ) γ log (p t ) (10)

[0084] Among them, p t Represents the value corresponding to the tth class in the output result after the softmax activation function. (1-p t ) γ This will make the easy-to-classify samples attenuate more, and in disguise increase the weight of the difficult-to-classify samples. t is a balance parameter used to adjust the weight of positive and negative samples. t and γ are both manually set, and are set to [0.5, 0.3, 0.2] and 2 in the present invention.

[0085] The overall loss function is composed of the loss based on the fused global descriptor and the loss of the view selector output in the fusion stage. The specific loss function is set as follows:

[0086]

[0087] Among them, F represents the global descriptor, y is the object thickness category label corresponding to the input image; C represents the classifier, which contains a weighted FC layer and a softmax layer, and V represents the view selector.

[0088] Example:

[0089] The hardware testing platform of the present invention is: GPU (NVIDIA GeForce RTX 3060), memory (16GB); the software testing platform is: Windows 11 64-bit operating system, pytorch1.13.1.

[0090] The multi-view image dataset of scrap steel used in the simulation experiment is generated by reconstructing the three-dimensional scene of multi-view scrap steel pictures collected in the steel plant using 8 virtual cameras at different viewpoints and manually segmenting and annotating them. It contains a total of 360 pictures taken in 2 scenes. The thickness categories of the photographed objects are divided into three categories: ["less than or equal to 2 mm", "2 to 6 mm", and "greater than 6 mm". The following table gives the specific information of the dataset used in this embodiment.

[0091] Table 1 Details of scrap steel multi-view image dataset

[0092]

[0093] The algorithm network proposed in this invention is divided into two stages in the training process. First, the view feature extraction part is pre-trained, using all multi-view Figure 2 The feature extraction network of the 3D image is fine-tuned on the basic framework of ResNet18 for subsequent classification. Secondly, the overall network structure including the single-view feature extraction network and the graph convolutional feature fusion network is trained end-to-end to obtain the global descriptor of scrap steel for classification and recognition. When fine-tuning the single-view feature extraction network, the SGD optimizer is used for training. The learning rate adjustment strategy in this stage is to reduce it by half every 10 epochs. After the training in this stage, the feature extraction model with the best result is used as the initial parameter of the overall network training for subsequent training.

[0094] When training the overall network structure, the overall training loss function is adopted. The experiment still uses the SGD optimizer. In this stage, the learning rate warm-up and cosine annealing strategy are used to adjust the learning rate. The learning rate increases linearly to the initial learning rate in the first epoch and then drops to 0 after a quarter of the cosine cycle.

[0095] The present invention is applied to conduct experimental tests on a multi-view image dataset of scrap steel, and the trained model is used to output the thickness category of the test set. The simulation uses classification accuracy as the test indicator. The scene 1 / scene 2 datasets are set as the network training set and test set, and three cross-validation experiments are performed on the two scene mixed datasets. The test results are shown in the following table. For the real scene of scrap steel, the scrap steel thickness classification method based on the multi-angle feature fusion model proposed in the present invention can meet the premise of low acquisition cost and use less computing time and computing cost to achieve the thickness category output of scrap steel, and the classification accuracy of a large number of acquisition views is better than that of a small number of views.

[0096] Table 2 Classification accuracy of the present invention on a small dataset of scrap steel

[0097]

[0098] like Figure 4As shown, the present invention also provides a scrap steel thickness classification system based on a multi-angle feature fusion model, comprising:

[0099] Dataset acquisition module: used to obtain sampling images of a single scrap steel material from different perspectives and generate a scrap steel material dataset;

[0100] Feature extraction module: used to preprocess the scrap steel data set, and send the preprocessed multi-view scrap steel images to the residual neural network to extract the multi-view features of the three-dimensional scrap steel object instance;

[0101] Directed feature graph construction module: used to combine the multi-view features extracted from the different perspective sampling images in the data set with their corresponding camera position coordinates to construct a directed feature representation graph with nodes representing different view features;

[0102] Classification module: used to perform multi-view feature fusion on the directed feature representation graph to obtain a global descriptor with multi-angle features of three-dimensional objects, and classify the thickness of scrap steel based on the global descriptor.

[0103] A terminal device is provided in one embodiment of the present invention. The terminal device of this embodiment includes: a processor, a memory, and a computer program stored in the memory and executable on the processor. When the processor executes the computer program, the steps in the above-mentioned method embodiments are implemented. Alternatively, when the processor executes the computer program, the functions of the modules / units in the above-mentioned device embodiments are implemented.

[0104] The computer program may be divided into one or more modules / units, and the one or more modules / units are stored in the memory and executed by the processor to accomplish the present invention.

[0105] The terminal device may be a computing device such as a desktop computer, a notebook, a PDA, a cloud server, etc. The terminal device may include, but is not limited to, a processor and a memory.

[0106] The processor can be a central processing unit (CPU), or other general-purpose processors, digital signal processors (DSP), application-specific integrated circuits (ASIC), field-programmable gate arrays (FPGA) or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components, etc.

[0107] The memory may be used to store the computer programs and / or modules, and the processor implements various functions of the terminal device by running or executing the computer programs and / or modules stored in the memory and calling the data stored in the memory.

[0108] If the module / unit integrated in the terminal device is implemented in the form of a software functional unit and sold or used as an independent product, it can be stored in a computer-readable storage medium. Based on this understanding, the present invention implements all or part of the processes in the above-mentioned embodiment method, and can also be completed by instructing the relevant hardware through a computer program. The computer program can be stored in a computer-readable storage medium, and the computer program can implement the steps of the above-mentioned various method embodiments when executed by the processor. Among them, the computer program includes computer program code, and the computer program code can be in source code form, object code form, executable file or some intermediate form. The computer-readable medium may include: any entity or device capable of carrying the computer program code, recording medium, U disk, mobile hard disk, disk, optical disk, computer memory, read-only memory (ROM, Read-Only Memory), random access memory (RAM, Random Access Memory), electric carrier signal, telecommunication signal and software distribution medium. It should be noted that the content contained in the computer-readable medium can be appropriately increased or decreased according to the requirements of legislation and patent practice in the jurisdiction. For example, in some jurisdictions, according to legislation and patent practice, computer-readable media do not include electric carrier signals and telecommunication signals.

[0109] Although the embodiments of the present invention are described above in conjunction with the accompanying drawings, the present invention is not limited to the above-mentioned specific embodiments and application fields, and the above-mentioned specific embodiments are only illustrative and instructive, rather than restrictive. Under the guidance of the specification, a person skilled in the art can also make many forms without departing from the scope of protection of the claims of the present invention, all of which belong to the scope of protection of the present invention.

Claims

1. A scrap steel thickness classification method based on a multi-angle feature fusion model, characterized in that: The steps include: S1 obtains sampling images of a single scrap steel from different perspectives and marks the thickness categories to generate a scrap steel dataset; S2 preprocesses the scrap steel data set and sends the preprocessed multi-view scrap steel images to the residual neural network to extract multi-view features of three-dimensional scrap steel object instances; S3 combines the multi-view features extracted from the different perspective sampling images in the data set with their corresponding camera position coordinates to construct a directed feature representation graph with nodes representing different view features; S4 performs multi-view feature fusion on the directed feature representation graph to obtain a global descriptor with multi-angle features of three-dimensional objects, and classifies the thickness of scrap steel based on the global descriptor.

2. The scrap steel thickness classification method based on the multi-angle feature fusion model according to claim 1 is characterized in that: The specific operations for preprocessing the scrap steel data set in S2 are: After scaling the scrap steel images of different viewpoints in the dataset, the mean and variance of the RGB channel pixels are calculated and normalized, and the normalized multi-view images are stacked in the view dimension.

3. The scrap steel thickness classification method based on the multi-angle feature fusion model according to claim 1 is characterized in that: The specific method for constructing the directed feature representation graph in S3 is: A ij =Γ(r ij ;θ a ) r ij represents the spatial relationship between two view nodes, Γ is a parameter θ a Non-linear function.

4. The scrap steel thickness classification method based on the multi-angle feature fusion model according to claim 1 is characterized in that: The specific fusion method of performing multi-view feature fusion on the directed feature representation graph in S4 to obtain a global descriptor with multi-angle features of a three-dimensional object is: The directed feature representation graph is updated successively with view nodes using local attention convolution and non-local information transfer. The view selector is used to coarsen the directed feature representation graph after node update, and all levels of features generated by the view selector are aggregated to obtain a global descriptor with multi-angle features of 3D objects.

5. The scrap steel thickness classification method based on the multi-angle feature fusion model according to claim 4 is characterized in that: The local attention convolution is used to update the view nodes of the directed feature representation graph successively. The specific operations are as follows: First, the camera position coordinates and the k-nearest neighbor algorithm are used to find a fixed number of adjacent nodes for each view node, and only the edges between adjacent nodes are retained. Then, a shared linear change is applied to each view node, and a weight matrix is ​​obtained according to the edges between adjacent nodes and the shared linear change. The attention coefficient of each node is calculated based on the weight matrix, and the result vectors after linear transformation are concatenated and mapped using a feedforward network a and activated by LeakyReLU, and finally normalized by softmax to obtain the final result.

6. The scrap steel thickness classification method based on the multi-angle feature fusion model according to claim 4 is characterized in that: The view nodes of the directed feature representation graph are updated successively using non-local information transmission. The specific operations are as follows: The relationship between two nodes in the directed feature representation graph is obtained, and then the relationship information of a certain node and other nodes is collected from all the view node relationships obtained above, and the feature information of the point is merged with the relationship information with other nodes to update the node feature of the node.

7. The scrap steel thickness classification method based on the multi-angle feature fusion model according to claim 4 is characterized in that: The camera coordinate vector of the sampled view after the view selector downsamples the directed feature representation graph is: where V(·) is a view selector with parameter θ, which is composed of different sampled views j∈[1,N l+1 ] and the lth layer graph are defined respectively, The directed features before sampling for the view selector represent the feature information of each node in the graph.

8. The scrap steel thickness classification system based on the multi-angle feature fusion model is characterized by: include: Dataset acquisition module: used to obtain sampling images of a single scrap steel material from different perspectives and generate a scrap steel material dataset; Multi-view feature extraction module: used to preprocess the scrap steel data set, and send the preprocessed multi-view scrap steel images to the residual neural network to extract the multi-view features of the three-dimensional scrap steel object instance; Directed feature construction module: used to combine the multi-view features extracted from the different perspective sampling images in the data set with their corresponding camera position coordinates to construct a directed feature representation graph with nodes representing different view features; Classification module: used to perform multi-view feature fusion on the directed feature representation graph to obtain a global descriptor with multi-angle features of three-dimensional objects, and classify the thickness of scrap steel based on the global descriptor.

9. A computer device comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, characterized in that: When the processor executes the computer program, the steps of the scrap steel thickness classification method based on the multi-angle feature fusion model as described in any one of claims 1 to 7 are implemented.

10. A computer-readable storage medium storing a computer program, characterized in that: When the computer program is executed by a processor, the steps of the scrap steel thickness classification method based on the multi-angle feature fusion model as described in any one of claims 1 to 7 are implemented.

Citation Information

Cited By

  • Identity document detection method, computing device, storage medium, and computer program product

    WO2026179205A1