CN112580659A - Ore identification method based on machine vision - Google Patents
Ore identification method based on machine vision Download PDFInfo
- Publication number
- CN112580659A CN112580659A CN202011245109.3A CN202011245109A CN112580659A CN 112580659 A CN112580659 A CN 112580659A CN 202011245109 A CN202011245109 A CN 202011245109A CN 112580659 A CN112580659 A CN 112580659A
- Authority
- CN
- China
- Prior art keywords
- ore
- image
- features
- machine vision
- identification method
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Pending
Links
Images
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06V—IMAGE OR VIDEO RECOGNITION OR UNDERSTANDING
- G06V10/00—Arrangements for image or video recognition or understanding
- G06V10/40—Extraction of image or video features
- G06V10/56—Extraction of image or video features relating to colour
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F18/00—Pattern recognition
- G06F18/20—Analysing
- G06F18/21—Design or setup of recognition systems or techniques; Extraction of features in feature space; Blind source separation
- G06F18/214—Generating training patterns; Bootstrap methods, e.g. bagging or boosting
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F18/00—Pattern recognition
- G06F18/20—Analysing
- G06F18/25—Fusion techniques
- G06F18/253—Fusion techniques of extracted features
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06V—IMAGE OR VIDEO RECOGNITION OR UNDERSTANDING
- G06V10/00—Arrangements for image or video recognition or understanding
- G06V10/40—Extraction of image or video features
- G06V10/42—Global feature extraction by analysis of the whole pattern, e.g. using frequency domain transformations or autocorrelation
Landscapes
- Engineering & Computer Science (AREA)
- Theoretical Computer Science (AREA)
- Data Mining & Analysis (AREA)
- General Physics & Mathematics (AREA)
- Physics & Mathematics (AREA)
- Computer Vision & Pattern Recognition (AREA)
- Bioinformatics & Computational Biology (AREA)
- Evolutionary Biology (AREA)
- Evolutionary Computation (AREA)
- Bioinformatics & Cheminformatics (AREA)
- General Engineering & Computer Science (AREA)
- Artificial Intelligence (AREA)
- Life Sciences & Earth Sciences (AREA)
- Multimedia (AREA)
- Image Analysis (AREA)
Abstract
The invention discloses an ore identification method based on machine vision, which comprises the following steps: acquiring an ore image, manufacturing the ore image into a data set, and labeling the image in the data set into a qualified type and an unqualified type (the qualified label is 1, and the unqualified label is 0); preprocessing a data set, including operations such as denoising and cutting; extracting color features and texture features of the preprocessed image, and combining the two features to form a new feature set; performing feature selection on the combined feature set by adopting a feature reduction algorithm; and finally, performing classification and identification by using a machine learning classification algorithm. The invention forms a set of complete ore identification method based on machine vision, and the algorithm is simple and efficient, and the identification precision is high.
Description
Technical Field
The invention relates to an image identification method, in particular to an ore identification method based on machine vision.
Background
The ore screening is an important link in the ore process production, and the ore with high impurity content can influence the quality of the whole ore and is not suitable for producing building materials. The traditional ore sorting method is manual sorting, and the manual sorting method has the defects of poor operating environment, low production efficiency and the like. With the development of computer vision technology in recent years, the recognition technology based on image processing is widely applied, one of the most key points in image recognition is the extraction of image features, the image features mainly comprise three types of colors, textures and shapes, and the selection of the features has important influence on the recognition result. Since the ore has some special surface features, such as rough and mottled surface, adhesion between dust and ore particles, stacking and the like, the single texture and color features are not enough for effectively identifying complex images.
When a machine learning method is applied to classify ores, the selection of image features has a crucial influence on the classification and identification performance, redundant features not only cause the identification speed to be slow, but also reduce the classification accuracy.
Disclosure of Invention
In order to solve the technical problems, the invention provides the ore identification method based on the machine vision, which is simple and efficient in algorithm and high in identification precision.
The technical scheme for solving the problems is as follows: a machine vision-based ore identification method comprises the following steps:
the method comprises the following steps: obtaining an ore image, and marking the collected image, wherein the qualified image is marked as 1, and the unqualified image is marked as 0;
step two: preprocessing images in the data set, wherein the preprocessing mainly comprises operations such as denoising and the like;
step three: extracting color (RGB) features and gray level co-occurrence matrix (GLCM) features of the image, and combining the two features to form a new feature set;
step four: using a feature reduction algorithm to the combined feature set to reduce the feature number in the feature set;
step five: and inputting the key feature set and the corresponding type label into a classifier for training.
In the above ore identification method based on machine vision, in the first step, a plurality of ore image sample sets are collected at the site of an ore processing plant; and (5) segmenting and labeling the ore images in the sample set, wherein the qualified mark is 1, and the unqualified mark is 0.
In the second step, the images in the sample set are preprocessed to remove image quality damage caused in the imaging process, and the preprocessing method comprises operations such as median filtering and cutting.
In the above ore identification method based on machine vision, in the third step, the identification of the ore image includes the following steps:
i) extracting the color (RGB) characteristics of each ore image in a sample set to obtain the average value of R, G, B three color components of each ore image;
II) extracting the gray level co-occurrence matrix (GLCM) characteristics of each ore image in the sample set to obtain 4 texture characteristics of contrast, correlation, energy and inverse difference moment of each ore image, and obtaining a 16-dimensional characteristic set by calculating corresponding values in four directions of 0 degree, 45 degrees, 90 degrees and 135 degrees;
in the formula (f)1、f2、f3、f4Contrast, correlation, energy and moment of dissimilarity, respectively; l is the number of gray levels; i and j respectively represent gray values of different positions in an image; d is a distance, typically 1; theta is the direction and takes the values of 0 degree, 45 degrees, 90 degrees and 135 degrees; u. of1Is the mean value of the variable i and,u2is the average of the variable j and is,σ1is the variance of the variable i and is,σ2is the variance of the variable j and,
III) combining the extracted color features with the gray level co-occurrence matrix features to form a feature set with 19 dimensions.
In the fourth step, the combined features are reduced by using an attribute reduction algorithm based on neighborhood granulation and inconsistency measurement, and a proper evaluation function is selected for reduction to obtain a key feature set capable of identifying the ore image.
In the fifth step, the key feature set and the corresponding type label are used as training samples in the classifier, an ore classification model based on machine vision is obtained through training, and experimental verification is performed.
The invention has the beneficial effects that: firstly, collecting ore images on the site of an ore processing factory, making the collected ore images into a sample set, and marking the ore images in the sample set after segmenting the ore images, wherein the ore images are divided into qualified and unqualified ore images; then, preprocessing the image, and eliminating the influence of noise from external environment, imaging equipment and the like to a certain extent when the image is obtained so as to obtain a high-quality clear image sample; extracting the features of the preprocessed images, extracting the color (RGB) features and the gray level co-occurrence matrix (GLCM) features in the texture features of each ore image, and combining the two features to form a new feature set; reducing the combined features by adopting a fast attribute reduction algorithm based on neighborhood granulation and inconsistency measurement, removing redundant features, reserving the most important features for identification, and forming a new feature set; and finally, taking the key feature set and the corresponding type label as training samples of the classifier, and obtaining a classification model through training. The whole method describes an ore identification method based on machine vision, different features are extracted and combined, and then a feature selection algorithm is used for selecting the features to obtain a key feature set, so that the simplification of feature numbers in the ore identification process is realized, the identification rate of a classifier is improved, the algorithm is simple, and the identification precision is high.
Drawings
FIG. 1 is a flow chart of the present invention.
FIG. 2 is a flow chart of feature selection in accordance with the present invention.
FIG. 3 is a result diagram of attribute reduction and classification accuracy in accordance with the present invention.
Detailed Description
The invention will be further described with reference to the accompanying drawings.
As shown in fig. 1, a machine vision-based ore identification method includes the following steps:
the method comprises the following steps: according to ores obtained in an ore processing plant site, acquiring an ore image, creating a data set, and segmenting and marking the image in the data set. The method is divided into two types, wherein the qualified ore image is marked as 1, and the unqualified ore image is marked as 0.
Step two: the images in the data set are pre-processed.
In the process of acquiring the image, the image is generally influenced by the external environment and the imaging equipment, noise interference is brought to a certain extent, and the quality of the image is reduced. The method has the advantages that the image preprocessing is needed before the characteristic extraction is carried out on the ore image, so that the high-quality clear image is obtained, the noise can be reduced by adopting median filtering according to the noise caused by the actual scene of ore mining and imaging, and the loss of the edge information of the image can be avoided while the noise is filtered.
Step three: and extracting color features and texture features of each ore image, and combining the two features. The method comprises the following steps:
i) extracting color (RGB) features of each ore image in a sample set to obtain an R, G, B three-component average value of each ore image as a 3-dimensional feature set;
II) extracting 4 texture features of contrast, correlation, energy and inverse difference moment of each ore image, and obtaining a 16-dimensional feature set by calculating corresponding values in four directions of 0 degree, 45 degrees, 90 degrees and 135 degrees;
in the formula (f)1、f2、f3、f4Contrast, correlation, energy and moment of dissimilarity, respectively; l is the number of gray levels; i and j respectively represent gray values of different positions in an image; d is a distance, typically 1; theta is the direction and takes the values of 0 degree, 45 degrees, 90 degrees and 135 degrees; u. of1Is the mean value of the variable i and,u2is the average of the variable j and is,σ1is the variance of the variable i and is,σ2is the variance of the variable j and,
III) combining the extracted color features with the gray level co-occurrence matrix features to form a feature set with 19 dimensions.
Step four: as shown in fig. 2, for the features obtained in step three, a fast attribute reduction algorithm based on neighborhood granulation and inconsistency measurement is used for feature reduction, as shown in table 1, a key feature set capable of identifying an ore image is obtained through the reduction algorithm, feature dimensions are further reduced, and a large amount of original feature information is retained.
TABLE 1 Key feature set and Classification accuracy results
Step five: and regarding the key feature set obtained in the step four and the corresponding type label as a training sample in the classifier. Fig. 3 is a graph of attribute reduction and classification accuracy results, where the highest classification accuracy of 90.78% is achieved when the neighborhood radius σ is 0.28 and the number of reduced attributes is 11. Table 2 shows the influence of the neighborhood radius on the reduced feature number, and the partial data of which the classification accuracy varies with the reduced feature number.
TABLE 2 comparison of partial feature set number to Classification accuracy results
Claims (6)
1. A machine vision-based ore identification method comprises the following steps:
the method comprises the following steps: acquiring an ore image, and marking the acquired image, wherein the qualified mark is 1, and the unqualified mark is 0;
step two: preprocessing images in the data set, wherein the preprocessing mainly comprises operations such as denoising and cutting;
step three: extracting color (RGB) features and gray level co-occurrence matrix (GLCM) features of ores in the image, and combining the two features to form a new feature set;
step four: using a feature reduction algorithm to the combined feature set to reduce the feature number in the feature set;
step five: inputting the simplified features and the labels thereof into a classifier for training.
2. The ore identification method based on machine vision according to claim 1, characterized in that the specific steps in the first step are as follows:
1-1) collecting an ore image sample set on the site of an ore processing plant;
1-2) segmenting and labeling the ore image, wherein the qualified mark is 1, and the unqualified mark is 0.
3. The ore identification method based on machine vision according to claim 2, wherein in the second step, the images in the sample set are preprocessed, and the influence of noise from external environment and imaging equipment is removed by using operations such as denoising.
4. The machine-vision-based ore identification method according to claim 3, wherein the third step specifically comprises the following steps:
i) extracting color (RGB) characteristics of each ore image to obtain an average value of R, G, B three-color components of each ore image;
II) extracting the gray level symbiosis (GLCM) characteristics of each ore image to obtain the contrast f of each ore image1Correlation f2Energy f3Sum and inverse difference moment f44 texture features, and a 16-dimensional feature set is obtained by calculating corresponding values in four directions of 0 degrees, 45 degrees, 90 degrees and 135 degrees;
in the formula (f)1、f2、f3、f4Contrast, correlation, energy and moment of dissimilarity, respectively; l is the number of gray levels; i and j respectively represent gray values of different positions in an image; d is a distance, typically 1; theta is the direction and takes the values of 0 degree, 45 degrees, 90 degrees and 135 degrees; u. of1Is the mean value of the variable i and,u2is the average of the variable j and is,σ1is the variance of the variable i and is,σ2is the variance of the variable j and,
III) combining the extracted color features with the gray level co-occurrence matrix features to form a feature set with 19 dimensions.
5. The ore identification method based on machine vision according to claim 4, characterized in that in the fourth step, the combined feature set is reduced by using an attribute reduction algorithm based on neighborhood granulation and inconsistency measurement, and an appropriate evaluation function is selected for reduction, so as to obtain a key feature set capable of identifying the ore image.
6. The machine vision-based ore identification method according to claim 5, wherein in the fifth step, the key feature set and the type label thereof are used as training samples in a classifier, and an ore classification model based on machine vision is obtained through training and is subjected to experimental verification.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202011245109.3A CN112580659A (en) | 2020-11-10 | 2020-11-10 | Ore identification method based on machine vision |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202011245109.3A CN112580659A (en) | 2020-11-10 | 2020-11-10 | Ore identification method based on machine vision |
Publications (1)
Publication Number | Publication Date |
---|---|
CN112580659A true CN112580659A (en) | 2021-03-30 |
Family
ID=75122572
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN202011245109.3A Pending CN112580659A (en) | 2020-11-10 | 2020-11-10 | Ore identification method based on machine vision |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN112580659A (en) |
Cited By (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN113554071A (en) * | 2021-07-08 | 2021-10-26 | 广东石油化工学院 | Method and system for identifying associated minerals in rock sample |
CN113591583A (en) * | 2021-06-30 | 2021-11-02 | 沈阳科来沃电气技术有限公司 | Intelligent boron ore beneficiation system and method |
Citations (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN107766856A (en) * | 2016-08-20 | 2018-03-06 | 湖南军芃科技股份有限公司 | A kind of ore visible images method for separating based on Adaboost machine learning |
CN107808161A (en) * | 2017-10-26 | 2018-03-16 | 江苏科技大学 | A kind of Underwater targets recognition based on light vision |
CN108564111A (en) * | 2018-03-26 | 2018-09-21 | 太原理工大学 | A kind of image classification method based on neighborhood rough set feature selecting |
CN109214415A (en) * | 2018-07-19 | 2019-01-15 | 西安建筑科技大学 | A kind of ore reduction grinding effect evaluation method |
CN109308697A (en) * | 2018-09-18 | 2019-02-05 | 安徽工业大学 | A kind of leaf disease recognition method based on machine learning algorithm |
CN111091134A (en) * | 2019-11-14 | 2020-05-01 | 武汉纺织大学 | Method for identifying tissue structure of colored woven fabric based on multi-feature fusion |
-
2020
- 2020-11-10 CN CN202011245109.3A patent/CN112580659A/en active Pending
Patent Citations (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN107766856A (en) * | 2016-08-20 | 2018-03-06 | 湖南军芃科技股份有限公司 | A kind of ore visible images method for separating based on Adaboost machine learning |
CN107808161A (en) * | 2017-10-26 | 2018-03-16 | 江苏科技大学 | A kind of Underwater targets recognition based on light vision |
CN108564111A (en) * | 2018-03-26 | 2018-09-21 | 太原理工大学 | A kind of image classification method based on neighborhood rough set feature selecting |
CN109214415A (en) * | 2018-07-19 | 2019-01-15 | 西安建筑科技大学 | A kind of ore reduction grinding effect evaluation method |
CN109308697A (en) * | 2018-09-18 | 2019-02-05 | 安徽工业大学 | A kind of leaf disease recognition method based on machine learning algorithm |
CN111091134A (en) * | 2019-11-14 | 2020-05-01 | 武汉纺织大学 | Method for identifying tissue structure of colored woven fabric based on multi-feature fusion |
Cited By (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN113591583A (en) * | 2021-06-30 | 2021-11-02 | 沈阳科来沃电气技术有限公司 | Intelligent boron ore beneficiation system and method |
CN113554071A (en) * | 2021-07-08 | 2021-10-26 | 广东石油化工学院 | Method and system for identifying associated minerals in rock sample |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN108982508B (en) | Plastic package IC chip defect detection method based on feature template matching and deep learning | |
CN108562589B (en) | Method for detecting surface defects of magnetic circuit material | |
CN110443128B (en) | Finger vein identification method based on SURF feature point accurate matching | |
CN113239954B (en) | Attention mechanism-based image semantic segmentation feature fusion method | |
AU2020103716A4 (en) | Training method and device of automatic identification device of pointer instrument with numbers in natural scene | |
CN111582294A (en) | Method for constructing convolutional neural network model for surface defect detection and application thereof | |
CN112037219A (en) | Metal surface defect detection method based on two-stage convolution neural network | |
CN112580659A (en) | Ore identification method based on machine vision | |
CN102509109B (en) | Method for distinguishing Thangka image from non-Thangka image | |
CN111738367B (en) | Part classification method based on image recognition | |
CN115661072A (en) | Disc rake surface defect detection method based on improved fast RCNN algorithm | |
CN111932639B (en) | Detection method of unbalanced defect sample based on convolutional neural network | |
CN113870202A (en) | Far-end chip defect detection system based on deep learning technology | |
CN110503051B (en) | Precious wood identification system and method based on image identification technology | |
CN116205876A (en) | Unsupervised notebook appearance defect detection method based on multi-scale standardized flow | |
CN107145888A (en) | Video caption real time translating method | |
CN112132798B (en) | Method for detecting complex background PCB mark point image based on Mini ARU-Net network | |
CN113723314A (en) | Sugarcane stem node identification method based on YOLOv3 algorithm | |
CN110349129B (en) | Appearance defect detection method for high-density flexible IC substrate | |
CN109615626B (en) | Quality evaluation method for chip surface printing symbol structure defects | |
CN111768456A (en) | Feature extraction method based on wood color space | |
CN107818579B (en) | Color texture feature extraction method based on quaternion Gabor filtering | |
CN114627463A (en) | Non-contact power distribution data identification method based on machine identification | |
CN114723953A (en) | Deep neural network for image source detection | |
CN113570542A (en) | Coal gangue detection method based on machine vision under shielding condition |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
PB01 | Publication | ||
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
WD01 | Invention patent application deemed withdrawn after publication | ||
WD01 | Invention patent application deemed withdrawn after publication |
Application publication date: 20210330 |