[go: up one dir, main page]

CN113554071B - A method and system for identifying associated minerals in rock samples - Google Patents

A method and system for identifying associated minerals in rock samples Download PDF

Info

Publication number
CN113554071B
CN113554071B CN202110773556.4A CN202110773556A CN113554071B CN 113554071 B CN113554071 B CN 113554071B CN 202110773556 A CN202110773556 A CN 202110773556A CN 113554071 B CN113554071 B CN 113554071B
Authority
CN
China
Prior art keywords
point
image
mineral
corner
ore
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.)
Expired - Fee Related
Application number
CN202110773556.4A
Other languages
Chinese (zh)
Other versions
CN113554071A (en
Inventor
刘哲
李佳静
张帮亮
王伟
董英杰
王超
刘思婷
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Guangdong University of Petrochemical Technology
Original Assignee
Guangdong University of Petrochemical Technology
Priority date (The priority date 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 date listed.)
Filing date
Publication date
Application filed by Guangdong University of Petrochemical Technology filed Critical Guangdong University of Petrochemical Technology
Priority to CN202110773556.4A priority Critical patent/CN113554071B/en
Publication of CN113554071A publication Critical patent/CN113554071A/en
Application granted granted Critical
Publication of CN113554071B publication Critical patent/CN113554071B/en
Expired - Fee Related legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F18/00Pattern recognition
    • G06F18/20Analysing
    • G06F18/24Classification techniques
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T7/00Image analysis
    • G06T7/0002Inspection of images, e.g. flaw detection
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T7/00Image analysis
    • G06T7/10Segmentation; Edge detection
    • G06T7/11Region-based segmentation
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T7/00Image analysis
    • G06T7/20Analysis of motion
    • G06T7/246Analysis of motion using feature-based methods, e.g. the tracking of corners or segments

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Computer Vision & Pattern Recognition (AREA)
  • General Physics & Mathematics (AREA)
  • Physics & Mathematics (AREA)
  • Data Mining & Analysis (AREA)
  • Bioinformatics & Cheminformatics (AREA)
  • Evolutionary Biology (AREA)
  • Evolutionary Computation (AREA)
  • Bioinformatics & Computational Biology (AREA)
  • General Engineering & Computer Science (AREA)
  • Artificial Intelligence (AREA)
  • Life Sciences & Earth Sciences (AREA)
  • Quality & Reliability (AREA)
  • Multimedia (AREA)
  • Image Analysis (AREA)

Abstract

The invention discloses a method and a system for identifying associated minerals in a rock sample, which are implemented by collecting a cross-sectional image of a cross section of the rock sample; preprocessing, screening and segmenting the sectional images to obtain sub-mine area images, wherein the sub-mine area images form a first image set; classifying and identifying each sub-mine image in the first image set; calculating the number of associated mine images marked as associated mines in the first image set; when the number of the associated ore images exceeds a threshold value, the rock samples are judged to contain the associated ores, otherwise, the rock samples do not contain the associated ores, whether the rock samples contain the associated ores or not can be intelligently, quickly and accurately identified, so that the ores containing the associated ores can be quickly separated and screened, the mining value can be improved, and the method and the device are applied to the field of ore screening and classification.

Description

一种岩石样品中伴生矿物识别方法及系统A method and system for identifying associated minerals in rock samples

技术领域technical field

本公开属于机器视觉技术、矿石识别领域,具体涉及一种岩石样品中伴生矿物识别方法及系统。The present disclosure belongs to the field of machine vision technology and ore identification, and in particular relates to a method and system for identifying associated minerals in rock samples.

背景技术Background technique

伴生矿物是存在于某种含有其他矿产的矿藏,有很多的矿石中都是含有伴生矿的。伴生矿在同一矿床(矿体)内,不具备单独开采价值,但能与其伴生的主要矿产一起被开采利用。伴生矿是相对主要矿产而言,由于它们具有相似的地球化学性质和共同的物质来源,因而常伴生在同一矿床(矿体)内。Associated minerals are found in a mineral deposit containing other minerals, and many ores contain associated minerals. Associated ore is in the same ore deposit (ore body) and does not have the value of independent mining, but can be exploited and utilized together with its associated main minerals. Associated minerals are relative to the main minerals. Because they have similar geochemical properties and common material sources, they are often associated in the same ore deposit (ore body).

伴生矿一般不独立存在于独立矿物中,如斑岩铜矿中的辉铝矿;或混合的被包含在主要矿产的矿物(主矿物)中,如方铅矿、闪锌矿中的锡、铟、镓、锗等,只是如果伴生的含量一般不太高,只是在其价值大的情况下开采分离,伴生矿采矿难,究其原因是因为,在大量的矿石中,只有一小部分附着有伴生矿,而大部分的矿石中并不存在伴生矿,因此很难从现有的矿石中分离筛选出哪些矿石具有伴生矿,目前的现有技术手段,难以快速识别出矿石是否具有伴生矿物。Associated minerals generally do not exist independently in independent minerals, such as bauxite in porphyry copper ores; or mixed in minerals (main minerals) contained in main minerals, such as galena, tin in sphalerite, Indium, gallium, germanium, etc., but if the associated content is generally not too high, it is only mined and separated when its value is large, and the associated ore is difficult to mine. The reason is that in a large amount of ores, only a small part is attached. There are associated minerals, but most of the ores do not have associated minerals, so it is difficult to separate and screen out which ores have associated minerals from the existing ores, and it is difficult to quickly identify whether the ore has associated minerals with the current existing technical means. .

发明内容SUMMARY OF THE INVENTION

本发明的目的在于提出一种岩石样品中伴生矿物识别方法及系统,以解决现有技术中所存在的一个或多个技术问题,至少提供一种有益的选择或创造条件。The purpose of the present invention is to provide a method and system for identifying associated minerals in rock samples, so as to solve one or more technical problems existing in the prior art, and at least provide a beneficial choice or create conditions.

为了实现上述目的,根据本公开的一方面,提供一种岩石样品中伴生矿物识别方法,所述方法包括以下步骤:In order to achieve the above object, according to an aspect of the present disclosure, a method for identifying associated minerals in a rock sample is provided, the method comprising the following steps:

S100,采集岩石样品截面的截面图像;S100, collecting cross-sectional images of rock sample cross-sections;

S200,对截面图像进行预处理筛选分割得到各个子矿区图像,各个子矿区图像构成第一图像集合;S200, performing preprocessing, screening and segmentation on the cross-sectional images to obtain images of each sub-mining area, and each sub-mining area image constitutes a first image set;

S300,对第一图像集合中的各个子矿区图像进行分类识别;S300, classifying and identifying images of each sub-mining area in the first image set;

S400,计算第一图像集合中标记为伴生矿的伴生矿图像数量;S400, calculating the number of associated ore images marked as associated ore in the first image set;

S500,当伴生矿图像数量超过阈值时判断岩石样品包含伴生矿,否则岩石样品不包含伴生矿。S500, when the number of associated ore images exceeds a threshold, it is determined that the rock sample contains associated ore, otherwise the rock sample does not contain associated ore.

进一步地,在S100中,采集岩石样品的截面图像的方法为:通过高光谱相机、高光谱成像仪、线阵CCD工业相机、近红外光图像传感器中任意一种对岩石样品的截面进行图像采集得到截面图像。Further, in S100, the method for collecting the cross-section image of the rock sample is: collecting the image of the cross-section of the rock sample by any one of a hyperspectral camera, a hyperspectral imager, a linear CCD industrial camera, and a near-infrared light image sensor. Obtain cross-sectional images.

进一步地,在S100中,岩石样品包括斑岩铜矿、黑钨矿、方铅矿、闪锌矿、铁矿、水晶矿、镍矿、稀土矿、钽铌矿、锆英矿、磷酸盐矿、铀矿、钍矿中任意一种矿石。Further, in S100, the rock samples include porphyry copper ore, wolframite, galena, sphalerite, iron ore, crystal ore, nickel ore, rare earth ore, tantalum niobium ore, zircon ore, phosphate ore , Uranium Ore, Thorium Ore.

进一步地,在S200中,对截面图像进行预处理筛选分割得到各个子矿区图像,各个子矿区图像构成第一图像集合的方法为:对截面图像进行高斯滤波并灰度化得到灰度图,将灰度图以分水岭算法计算得到边界点,以各个边界点连接得到边缘线,各个边缘线构成的集水盆区域作为子矿区图像,由各个子矿区图像构成第一图像集合。Further, in S200, the cross-sectional images are preprocessed, screened and segmented to obtain images of each sub-mining area, and the method for each sub-mining area image to form the first image set is as follows: Gaussian filtering and graying of the cross-sectional image to obtain a grayscale image, The grayscale image is calculated by the watershed algorithm to obtain the boundary points, and the edge lines are obtained by connecting each boundary point.

进一步地,在S200中,对截面图像进行预处理筛选分割得到各个子矿区图像,各个子矿区图像构成第一图像集合的方法为:对截面图像进行高斯滤波并灰度化得到灰度图,将灰度图以通过Sobel边缘检测算子检测得到边缘线,以各个边缘线构成的封闭的图像区域作为子矿区图像,由各个子矿区图像构成第一图像集合。Further, in S200, the cross-sectional images are preprocessed, screened and segmented to obtain images of each sub-mining area, and the method for each sub-mining area image to form the first image set is as follows: Gaussian filtering and graying of the cross-sectional image to obtain a grayscale image, In the grayscale image, edge lines are detected by the Sobel edge detection operator, and the closed image area formed by each edge line is used as a sub-mining area image, and each sub-mining area image constitutes a first image set.

进一步地,在S300中,对第一图像集合中的各个子矿区图像进行分类识别的方法为:Further, in S300, the method for classifying and identifying each sub-mining area image in the first image set is:

S301,令第一图像集合为G1={G1i},令K为第一图像集合G1中子矿区图像的数量,设置变量i、j,i∈[1,K],G1i为第一图像集合中第i个子矿区图像;令i的值为1;S301, let the first image set be G1={G1 i }, let K be the number of sub-mining images in the first image set G1, set variables i, j, i∈[1,K], G1 i is the first image The image of the ith sub-mining area in the set; let the value of i be 1;

S302,以角点检测算法对G1i进行角点检测得到G1i的各个角点,将各个角点按照角点到G1i的几何中心点距离从小到大排序得到有序的角点集合H1={Hj},Hj为G1i的各个角点构成的角点集合H1中第j个角点;令S为G1i的角点的数量,令j的值为1,i∈[1,S];所述角点检测算法为Harris角点检测算法或者Shi-Tomasi角点检测算法;S302, perform corner detection on G1 i with a corner detection algorithm to obtain each corner point of G1 i , and sort each corner point according to the distance from the corner point to the geometric center point of G1 i from small to large to obtain an ordered set of corner points H1= {H j }, H j is the jth corner point in the corner point set H1 formed by the corner points of G1 i ; let S be the number of corner points of G1 i , let the value of j be 1, i∈[1, S]; Described corner detection algorithm is Harris corner detection algorithm or Shi-Tomasi corner detection algorithm;

S303,(由于矿石上分布的子矿区图像表示的矿物区域不同,矿物区域之间密度不一样导致产生的应力不一样,从而矿石表面的子矿区图像形状呈现碎裂、拉伸状态,直接获取的子矿区图像用于伴生矿识别难以准确的识别,误识别率很高,因此,如果要准确的提取子矿区图像,需要对子矿区图像进行以下的处理以凸显出伴生矿和主矿物的特征),S303, (due to the different mineral regions represented by the images of the sub-mining areas distributed on the ore, and the different densities between the mineral areas result in different stress, so the shape of the image of the sub-mining areas on the ore surface is fragmented and stretched, and the directly obtained The sub-mining area image is difficult to be accurately identified for the identification of associated minerals, and the misrecognition rate is very high. Therefore, if you want to accurately extract the sub-mining area image, the following processing should be performed on the sub-mining area image to highlight the characteristics of the associated ores and main minerals) ,

连接Hj与Hj+1得到线段L1、连接Hj与Hj+2得到线段L2、连接Hj+1与Hj+2得到线段L3,以Hj为顶点且以L1、L2为边的夹角为∠A,以Hj+1为顶点且以L1、L3为边的夹角为∠B,以Hj+2为顶点且以L2、L3为边的夹角为∠C;Hj在边L3上的垂线的线段或者Hj到L3中点的连线的线段为C1;Connect H j and H j+1 to get line segment L1, connect H j and H j+2 to get line segment L2, connect H j+1 and H j+2 to get line segment L3, take H j as vertex and L1, L2 as edges The included angle is ∠A, the included angle with H j+1 as vertex and L1, L3 as sides is ∠B, the included angle with H j+2 as vertex and L2, L3 as sides is ∠C; H The line segment of the vertical line of j on the side L3 or the line segment of the line connecting H j to the midpoint of L3 is C1;

S304,如果∠A、∠B、∠C中任意一个角为钝角,(若此时进行采样矿物识别,即子矿区图像形状中伴生矿与主矿物由于过于狭小纠缠在一起,若采样的子矿区图像过于狭小会导致,容易采集到非矿物区域因此需要修正Hj的位置),若点Hj到边L3上有投影点则令点Hj到边L3上的投影点为HPj,若点Hj到边L3上没有投影点则以L3的中点为HPj,即以点Hj到边L3上的垂线与边L3的交点或者以L3的中点为HPjS304, if any one of ∠A, ∠B, ∠C is an obtuse angle, (if sampling mineral identification is performed at this time, that is, the associated minerals and main minerals in the image shape of the sub-mining area are too narrow and entangled together, if the sampled sub-mining area is If the image is too small, it is easy to collect non-mineral areas, so the position of H j needs to be corrected). If there is a projection point on the point H j to the side L3, let the projection point from the point H j to the side L3 be HP j , if the point There is no projection point on the side L3 from H j to the midpoint of L3 as HP j , that is, from the point H j to the intersection of the vertical line on the side L3 and the side L3 or the midpoint of L3 as HP j ;

连接点HPj到点Hj形成直线C1,以点Hj到点HPj的方向为第一方向,以点HPj到点Hj的方向为第二方向;The connection point HP j to the point H j forms a straight line C1, and the direction from the point H j to the point HP j is the first direction, and the direction from the point HP j to the point H j is the second direction;

若∠A不是钝角,则将Hj的位置沿着直线C1往第一方向移动距离△L,从而更新Hj的位置坐标,其中,ΔL=|Max(D2)-Min(D1)|,其中,Max(D2)为计算集合D2中最大的元素,Min(D1)为计算集合D1中最小的元素;If ∠A is not an obtuse angle, move the position of H j to the first direction along the straight line C1 by a distance ΔL to update the position coordinates of H j , where ΔL=|Max(D2)-Min(D1)|, where , Max(D2) is the largest element in the calculation set D2, Min(D1) is the smallest element in the calculation set D1;

集合D1,D2分别为根据步骤S3041到步骤S3043得到的相邻采样点之间的最大距离阈值集合和最小距离阈值集合;Sets D1 and D2 are respectively the maximum distance threshold set and the minimum distance threshold set between adjacent sampling points obtained according to steps S3041 to S3043;

S3041:设变量k的初始值为1,设置空集合D1,D2;S3041: Set the initial value of the variable k to 1, and set the empty sets D1 and D2;

S3042:计算有序的角点集合H1中的角点Hk到角点Hk+1的欧氏距离d1,角点Hk到角点Hk+2的欧氏距离d2,角点Hk+1到角点Hk+2的欧氏距离d3;Hk为H1中第K个角点;取d1、d2和d3中最大值加入到集合D1中,d1、d2和d3中最小值加入到集合D2中;S3042: Calculate the Euclidean distance d1 from the corner point H k to the corner point H k+1 in the ordered corner point set H1, the Euclidean distance d2 from the corner point H k to the corner point H k+2 , and the corner point H k The Euclidean distance d3 from +1 to the corner point H k+2 ; H k is the Kth corner point in H1; the maximum value of d1, d2 and d3 is added to the set D1, and the minimum value of d1, d2 and d3 is added to the set into set D2;

S3043:如果k+2<S则令k的值增加1并转到步骤S3042,否则输出得到的最大距离阈值集合D1和最小距离阈值集合D2;S3043: if k+2<S, increase the value of k by 1 and go to step S3042, otherwise output the obtained maximum distance threshold set D1 and minimum distance threshold set D2;

若∠A是钝角,则将Hj的位置沿着直线C1往第二方向移动距离△L,从而更新Hj的位置坐标;If ∠A is an obtuse angle, move the position of H j along the straight line C1 to the second direction by a distance ΔL, thereby updating the position coordinates of H j ;

S305,如果∠A、∠B、∠C均为锐角,(此时进行采样矿物识别,采样区域过小,会使主矿物和伴生矿物采样混淆导致失真,需要放大采样区),令点Hj+1在边L2上投影点为HPj+1,令点Hj+2在边L1上的投影点为HPj+2,连接点HPj+1到点Hj+1形成直线C2,以点HPj+1到点Hj+1的方向为第三方向;连接点HPj+2到点Hj+2形成直线C3,以点HPj+2到点Hj+2的方向为第四方向;将Hj+1的位置沿着直线C2往第三方向移动距离△L,从而更新Hj+1的位置坐标;将Hj+2的位置沿着直线C3往第四方向移动距离△L,从而更新Hj+2的位置坐标;S305, if ∠A, ∠B, and ∠C are all acute angles, (at this time, the sampling mineral identification is performed, and the sampling area is too small, which will confuse the sampling of the main mineral and the associated mineral and cause distortion, and the sampling area needs to be enlarged), let the point H j The projected point of +1 on the edge L2 is HP j+1 , let the projected point of the point H j+2 on the edge L1 be HP j+2 , and connect the point HP j+1 to the point H j+1 to form a straight line C2, with The direction from point HP j+1 to point H j+1 is the third direction; connecting point HP j+2 to point H j+2 forms a straight line C3, and the direction from point HP j+2 to point H j+2 is the third direction. Four directions; move the position of H j+1 along the straight line C2 to the third direction by a distance ΔL, thereby updating the position coordinates of H j+1 ; move the position of H j+2 along the straight line C3 to the fourth direction by a distance △L, thereby updating the position coordinates of H j+2 ;

S306,将更新后的顶点Hj、Hj+1与Hj+2构成的三角形区域记为待识别矿区;S306, the triangular area formed by the updated vertices H j , H j+1 and H j+2 is recorded as the mining area to be identified;

S307,获取待识别矿区的三个顶点Hj、Hj+1与Hj+2位置的光谱波形数据,分别提取三个顶点位置的光谱波形数据的光谱波形特征,根据光谱波形特征位置的波长通过光谱数据库匹配进行矿物类型识别;S307, obtaining the spectral waveform data at the positions of the three vertexes H j , H j+1 and H j+2 of the mining area to be identified, extracting the spectral waveform characteristics of the spectral waveform data at the three vertex positions respectively, according to the wavelength of the spectral waveform characteristic position Mineral type identification by spectral database matching;

S308,如果三个顶点Hj、Hj+1与Hj+2中任意两个顶点的位置识别的矿物类型为第一矿物,则标记待识别矿区为第一矿物分区;如果三个顶点Hj、Hj+1与Hj+2中任意两个顶点的位置识别的矿物类型为第二矿物,则标记待识别矿区为第二矿物分区;如果j+2<S则令j的值增加1并转到步骤S303,否则转到步骤S309;S308, if the mineral type identified by the positions of any two of the three vertices H j , H j+1 and H j+2 is the first mineral, mark the mining area to be identified as the first mineral partition; if the three vertices H The mineral type identified by the positions of any two vertices in j , H j+1 and H j+2 is the second mineral, then mark the mining area to be identified as the second mineral partition; if j+2<S, increase the value of j 1 and go to step S303, otherwise go to step S309;

S309,如果i<K则令i的值增加1并转到步骤S302,否则对第一图像集合中的各个子矿区图像分类识别结束。S309, if i<K, increase the value of i by 1 and go to step S302; otherwise, the classification and recognition of the images of each sub-mining area in the first image set ends.

进一步地,在S307中,获取待识别矿区的光谱波形数据的方法为:通过地物光谱仪、高光谱相机、高光谱成像仪、近红外光谱仪中任意一种设备对光谱波形数据进行获取。Further, in S307, the method for acquiring the spectral waveform data of the mining area to be identified is as follows: acquiring the spectral waveform data through any one of a ground object spectrometer, a hyperspectral camera, a hyperspectral imager, and a near-infrared spectrometer.

进一步地,在S307中,根据光谱波形特征位置的波长通过光谱数据库匹配进行矿物类型识别的方法为:Further, in S307, the method for identifying the mineral type through spectral database matching according to the wavelength of the characteristic position of the spectral waveform is:

提取三个顶点的位置的光谱波形数据的光谱波形特征,光谱波形特征包括光谱波形的一阶微分、二阶微分、波峰、波谷;Extract the spectral waveform features of the spectral waveform data at the positions of the three vertices, and the spectral waveform features include the first-order differential, second-order differential, wave peak, and wave trough of the spectral waveform;

将各个光谱波形特征与光谱数据库中各个矿物的光谱波形特征进行波长匹配,得到与三个顶点的光谱波形数据的光谱波形特征一致的匹配矿物。Wavelength matching is performed between each spectral waveform feature and the spectral waveform feature of each mineral in the spectral database, and matching minerals that are consistent with the spectral waveform features of the spectral waveform data of the three vertices are obtained.

进一步地,在S307中,光谱数据库具体包括USGS波谱数据库、ASD原子光谱数据库、JPL标准波谱数据库、ASTER波谱数据库、HIPAS波谱数据库、JHU波谱数据库,此外还包括文献:张莹彤,肖青,闻建光,等.地物波谱数据库建设进展及应用现状[J].遥感学报,2017,21(001):12-26,该文献中所涉及到的任意一种波谱数据库。Further, in S307, the spectral database specifically includes the USGS spectral database, the ASD atomic spectral database, the JPL standard spectral database, the ASTER spectral database, the HIPAS spectral database, and the JHU spectral database, as well as the literature: Zhang Yingtong, Xiao Qing, Wen Jianguang , et al. Construction progress and application status of ground object spectral database [J]. Journal of Remote Sensing, 2017, 21(001): 12-26, any kind of spectral database involved in this document.

进一步地,在S400中,计算第一图像集合中标记为伴生矿的伴生矿图像数量的方法为:分别计算第一图像集合中标记为第一矿物分区的数量Ta1和第一图像集合中标记为第二矿物分区的数量Ta2,当Ta1>Ta2时,以第一矿物为主矿物,以第二矿物为伴生矿;当Ta1≤Ta2时,以第一矿物为伴生矿,以第二矿物为主矿物;计算第一图像集合中是伴生矿的第一矿物分区或者第二矿物分区作为伴生矿图像数量。Further, in S400, the method for calculating the number of associated ore images marked as associated ore in the first image set is: respectively calculating the number Ta1 marked as the first mineral partition in the first image set and the number Ta1 marked as the first image set in the first image set. The number of second mineral partitions Ta2, when Ta1>Ta2, the first mineral is the main mineral, and the second mineral is the associated mineral; when Ta1≤Ta2, the first mineral is the associated mineral, and the second mineral is the main mineral Minerals; calculate the first mineral partition or the second mineral partition that is an associated ore in the first image set as the number of associated ore images.

进一步地,在S308中,主矿物包括铜矿、黑钨矿、方铅矿、闪锌矿、铁矿、水晶矿、镍矿中任意一种矿物;伴生矿包括稀土矿、钽铌矿、锆英矿、磷酸盐矿、铀矿、钍矿中任意一种矿物。Further, in S308, the main minerals include any one of copper ore, wolframite, galena, sphalerite, iron ore, crystal ore, and nickel ore; associated minerals include rare earth ore, tantalum niobium ore, zirconium ore Any one of British Ore, Phosphate Ore, Uranium Ore, and Thorium Ore.

进一步地,在S500中,阈值的取值范围设置为第一图像集合中主矿物的图像数量的[0.2,0.5]倍或者将阈值设置为[5,20]个。Further, in S500, the value range of the threshold is set to [0.2, 0.5] times the number of images of main minerals in the first image set or the threshold is set to [5, 20].

本发明还提供了一种岩石样品中伴生矿物识别系统,所述系统包括:存储器、处理器以及存储在所述存储器中并可在所述处理器上运行的计算机程序,所述处理器执行所述计算机程序运行在以下系统的单元中:The present invention also provides a system for identifying associated minerals in a rock sample, the system comprising: a memory, a processor, and a computer program stored in the memory and executable on the processor, the processor executing the The computer program described runs in units of the following systems:

图像采集单元,用于采集岩石样品截面的截面图像;an image acquisition unit, used for acquiring cross-sectional images of rock sample cross-sections;

图像分割单元,用于对截面图像进行预处理筛选分割得到各个子矿区图像,各个子矿区图像构成第一图像集合;The image segmentation unit is used for preprocessing, screening and segmenting the cross-sectional image to obtain images of each sub-mining area, and each sub-mining area image constitutes a first image set;

分类识别单元,用于对第一图像集合中的各个子矿区图像进行分类识别;A classification and identification unit, used for classifying and identifying images of each sub-mining area in the first image set;

伴生矿识别单元,用于计算第一图像集合中标记为伴生矿的伴生矿图像数量;An associated ore identification unit, used to calculate the number of associated ore images marked as associated ore in the first image set;

伴生矿判断单元,用于当伴生矿图像数量超过阈值时判断岩石样品包含伴生矿,否则岩石样品不包含伴生矿。Associated ore judgment unit, used for judging that the rock sample contains associated ore when the number of associated ore images exceeds the threshold, otherwise the rock sample does not contain associated ore.

本公开的有益效果为:本发明提供一种岩石样品中伴生矿物识别方法及系统,能够智能的快速准确的识别出各个岩石样品中是否包含伴生矿,从而快速的分离筛选出包含伴生矿的矿石,能够提高提高开采价值。The beneficial effects of the present disclosure are as follows: the present invention provides a method and system for identifying associated minerals in rock samples, which can intelligently, quickly and accurately identify whether each rock sample contains associated minerals, so as to quickly separate and screen out the associated minerals containing associated minerals. , can improve the mining value.

附图说明Description of drawings

通过对结合附图所示出的实施方式进行详细说明,本公开的上述以及其他特征将更加明显,本公开附图中相同的参考标号表示相同或相似的元素,显而易见地,下面描述中的附图仅仅是本公开的一些实施例,对于本领域普通技术人员来讲,在不付出创造性劳动的前提下,还可以根据这些附图获得其他的附图,在附图中:The above-mentioned and other features of the present disclosure will become more apparent from the detailed description of the embodiments shown in conjunction with the accompanying drawings, in which the same reference numerals refer to the same or similar elements of the present disclosure. The drawings are only some embodiments of the present disclosure. For those of ordinary skill in the art, other drawings can also be obtained from these drawings without creative efforts. In the drawings:

图1所示为一种岩石样品中伴生矿物识别方法的流程图;Figure 1 shows a flowchart of a method for identifying associated minerals in a rock sample;

图2所示为一种岩石样品中伴生矿物识别系统结构图。Figure 2 shows the structure diagram of a system for identifying associated minerals in a rock sample.

具体实施方式Detailed ways

以下将结合实施例和附图对本公开的构思、具体结构及产生的技术效果进行清楚、完整的描述,以充分地理解本公开的目的、方案和效果。需要说明的是,在不冲突的情况下,本申请中的实施例及实施例中的特征可以相互组合。The concept, specific structure and technical effects of the present disclosure will be clearly and completely described below with reference to the embodiments and accompanying drawings, so as to fully understand the purpose, solutions and effects of the present disclosure. It should be noted that the embodiments in the present application and the features of the embodiments may be combined with each other in the case of no conflict.

如图1所示为一种岩石样品中伴生矿物识别方法的流程图,下面结合图1来阐述根据本发明的实施方式的一种岩石样品中伴生矿物识别方法,所述方法包括以下步骤:Figure 1 is a flow chart of a method for identifying associated minerals in a rock sample. The following describes a method for identifying associated minerals in a rock sample according to an embodiment of the present invention with reference to Figure 1. The method includes the following steps:

S100,采集岩石样品截面的截面图像;S100, collecting cross-sectional images of rock sample cross-sections;

S200,对截面图像进行预处理筛选分割得到各个子矿区图像,各个子矿区图像构成第一图像集合;S200, performing preprocessing, screening and segmentation on the cross-sectional images to obtain images of each sub-mining area, and each sub-mining area image constitutes a first image set;

S300,对第一图像集合中的各个子矿区图像进行分类识别;S300, classifying and identifying images of each sub-mining area in the first image set;

S400,计算第一图像集合中标记为伴生矿的伴生矿图像数量;S400, calculating the number of associated ore images marked as associated ore in the first image set;

S500,当伴生矿图像数量超过阈值时判断岩石样品包含伴生矿,否则岩石样品不包含伴生矿。S500, when the number of associated ore images exceeds a threshold, it is determined that the rock sample contains associated ore, otherwise the rock sample does not contain associated ore.

进一步地,在S100中,采集岩石样品的截面图像的方法为:通过高光谱相机、高光谱成像仪、线阵CCD工业相机、近红外光图像传感器中任意一种对岩石样品的截面进行图像采集得到截面图像。Further, in S100, the method for collecting the cross-section image of the rock sample is: collecting the image of the cross-section of the rock sample by any one of a hyperspectral camera, a hyperspectral imager, a linear CCD industrial camera, and a near-infrared light image sensor. Obtain cross-sectional images.

进一步地,在S100中,岩石样品包括斑岩铜矿、黑钨矿、方铅矿、闪锌矿、铁矿、水晶矿、镍矿、稀土矿、钽铌矿、锆英矿、磷酸盐矿、铀矿、钍矿中任意一种矿石。Further, in S100, the rock samples include porphyry copper ore, wolframite, galena, sphalerite, iron ore, crystal ore, nickel ore, rare earth ore, tantalum niobium ore, zircon ore, phosphate ore , Uranium Ore, Thorium Ore.

进一步地,在S200中,对截面图像进行预处理筛选分割得到各个子矿区图像,各个子矿区图像构成第一图像集合的方法为:对截面图像进行高斯滤波并灰度化得到灰度图,将灰度图以分水岭算法计算得到边界点,以各个边界点连接得到边缘线,各个边缘线构成的集水盆区域作为子矿区图像,由各个子矿区图像构成第一图像集合。Further, in S200, the cross-sectional images are preprocessed, screened and segmented to obtain images of each sub-mining area, and the method for each sub-mining area image to form the first image set is as follows: Gaussian filtering and graying of the cross-sectional image to obtain a grayscale image, The grayscale image is calculated by the watershed algorithm to obtain the boundary points, and the edge lines are obtained by connecting each boundary point.

进一步地,在S200中,对截面图像进行预处理筛选分割得到各个子矿区图像,各个子矿区图像构成第一图像集合的方法为:对截面图像进行高斯滤波并灰度化得到灰度图,将灰度图以通过Sobel边缘检测算子检测得到边缘线,以各个边缘线构成的封闭的图像区域作为子矿区图像,由各个子矿区图像构成第一图像集合。Further, in S200, the cross-sectional images are preprocessed, screened and segmented to obtain images of each sub-mining area, and the method for each sub-mining area image to form the first image set is as follows: Gaussian filtering and graying of the cross-sectional image to obtain a grayscale image, In the grayscale image, edge lines are detected by the Sobel edge detection operator, and the closed image area formed by each edge line is used as a sub-mining area image, and each sub-mining area image constitutes a first image set.

进一步地,在S300中,对第一图像集合中的各个子矿区图像进行分类识别的方法为:Further, in S300, the method for classifying and identifying each sub-mining area image in the first image set is:

S301,令第一图像集合为G1={G1i},令K为第一图像集合G1中子矿区图像的数量,设置变量i、j,i∈[1,K],G1i为第一图像集合中第i个子矿区图像;令i的值为1;S301, let the first image set be G1={G1 i }, let K be the number of sub-mining images in the first image set G1, set variables i, j, i∈[1,K], G1 i is the first image The image of the ith sub-mining area in the set; let the value of i be 1;

S302,以角点检测算法对G1i进行角点检测得到G1i的各个角点,将各个角点按照角点到G1i的几何中心点距离从小到大排序得到有序的角点集合H1={Hj},Hj为G1i的各个角点构成的角点集合H1中第j个角点;令S为G1i的角点的数量,令j的值为1,i∈[1,S];所述角点检测算法为Harris角点检测算法或者Shi-Tomasi角点检测算法;S302, perform corner detection on G1 i with a corner detection algorithm to obtain each corner point of G1 i , and sort each corner point according to the distance from the corner point to the geometric center point of G1 i from small to large to obtain an ordered set of corner points H1= {H j }, H j is the jth corner point in the corner point set H1 formed by the corner points of G1 i ; let S be the number of corner points of G1 i , let the value of j be 1, i∈[1, S]; Described corner detection algorithm is Harris corner detection algorithm or Shi-Tomasi corner detection algorithm;

S303,(由于矿石上分布的子矿区图像表示的矿物区域不同,矿物区域之间密度不一样导致产生的应力不一样,从而矿石表面的子矿区图像形状呈现碎裂、拉伸状态,直接获取的子矿区图像用于伴生矿识别难以准确的识别,误识别率很高,因此,如果要准确的提取子矿区图像,需要对子矿区图像进行以下的处理以凸显出伴生矿和主矿物的特征),S303, (due to the different mineral regions represented by the images of the sub-mining areas distributed on the ore, and the different densities between the mineral areas result in different stress, so the shape of the image of the sub-mining areas on the ore surface is fragmented and stretched, and the directly obtained The sub-mining area image is difficult to be accurately identified for the identification of associated minerals, and the misrecognition rate is very high. Therefore, if you want to accurately extract the sub-mining area image, the following processing should be performed on the sub-mining area image to highlight the characteristics of the associated ores and main minerals) ,

连接Hj与Hj+1得到线段L1、连接Hj与Hj+2得到线段L2、连接Hj+1与Hj+2得到线段L3,以Hj为顶点且以L1、L2为边的夹角为∠A,以Hj+1为顶点且以L1、L3为边的夹角为∠B,以Hj+2为顶点且以L2、L3为边的夹角为∠C;Hj在边L3上的垂线的线段或者Hj到L3中点的连线的线段为C1;Connect H j and H j+1 to get line segment L1, connect H j and H j+2 to get line segment L2, connect H j+1 and H j+2 to get line segment L3, take H j as vertex and L1, L2 as edges The included angle is ∠A, the included angle with H j+1 as vertex and L1, L3 as sides is ∠B, the included angle with H j+2 as vertex and L2, L3 as sides is ∠C; H The line segment of the vertical line of j on the side L3 or the line segment of the line connecting H j to the midpoint of L3 is C1;

S304,如果∠A、∠B、∠C中任意一个角为钝角,(若此时进行采样矿物识别,即子矿区图像形状中伴生矿与主矿物由于过于狭小纠缠在一起,若采样的子矿区图像过于狭小会导致,容易采集到非矿物区域因此需要修正Hj的位置),若点Hj到边L3上有投影点则令点Hj到边L3上的投影点为HPj,若点Hj到边L3上没有投影点则以L3的中点为HPj,即以点Hj到边L3上的垂线与边L3的交点或者以L3的中点为HPjS304, if any one of ∠A, ∠B, ∠C is an obtuse angle, (if sampling mineral identification is performed at this time, that is, the associated minerals and main minerals in the image shape of the sub-mining area are too narrow and entangled together, if the sampled sub-mining area is If the image is too small, it is easy to collect non-mineral areas, so the position of H j needs to be corrected). If there is a projection point on the point H j to the side L3, let the projection point from the point H j to the side L3 be HP j , if the point There is no projection point on the side L3 from H j to the midpoint of L3 as HP j , that is, from the point H j to the intersection of the vertical line on the side L3 and the side L3 or the midpoint of L3 as HP j ;

连接点HPj到点Hj形成直线C1,以点Hj到点HPj的方向为第一方向,以点HPj到点Hj的方向为第二方向;The connection point HP j to the point H j forms a straight line C1, and the direction from the point H j to the point HP j is the first direction, and the direction from the point HP j to the point H j is the second direction;

若∠A不是钝角,则将Hj的位置沿着直线C1往第一方向移动距离△L,从而更新Hj的位置坐标,其中,△L=|Max(D2)-Min(D1)|,其中,Max(D2)为计算集合D2中最大的元素,Min(D1)为计算集合D1中最小的元素;If ∠A is not an obtuse angle, move the position of H j along the straight line C1 to the first direction by a distance ΔL, so as to update the position coordinates of H j , where ΔL=|Max(D2)-Min(D1)|, Wherein, Max(D2) is the largest element in the calculation set D2, and Min(D1) is the smallest element in the calculation set D1;

集合D1,D2分别为根据步骤S3041到步骤S3043得到的相邻采样点之间的最大距离阈值集合和最小距离阈值集合;Sets D1 and D2 are respectively the maximum distance threshold set and the minimum distance threshold set between adjacent sampling points obtained according to steps S3041 to S3043;

S3041:设变量k的初始值为1,设置空集合D1,D2;S3041: Set the initial value of the variable k to 1, and set the empty sets D1 and D2;

S3042:计算有序的角点集合H1中的角点Hk到角点Hk+1的欧氏距离d1,角点Hk到角点Hk+2的欧氏距离d2,角点Hk+1到角点Hk+2的欧氏距离d3;Hk为H1中第K个角点;取d1、d2和d3中最大值加入到集合D1中,d1、d2和d3中最小值加入到集合D2中;S3042: Calculate the Euclidean distance d1 from the corner point H k to the corner point H k+1 in the ordered corner point set H1, the Euclidean distance d2 from the corner point H k to the corner point H k+2 , and the corner point H k The Euclidean distance d3 from +1 to the corner point H k+2 ; H k is the Kth corner point in H1; the maximum value of d1, d2 and d3 is added to the set D1, and the minimum value of d1, d2 and d3 is added to the set into set D2;

S3043:如果k+2<S则令k的值增加1并转到步骤S3042,否则输出得到的最大距离阈值集合D1和最小距离阈值集合D2;S3043: if k+2<S, increase the value of k by 1 and go to step S3042, otherwise output the obtained maximum distance threshold set D1 and minimum distance threshold set D2;

若∠A是钝角,则将Hj的位置沿着直线C1往第二方向移动距离△L,从而更新Hj的位置坐标;If ∠A is an obtuse angle, move the position of H j along the straight line C1 to the second direction by a distance ΔL, thereby updating the position coordinates of H j ;

S305,如果∠A、∠B、∠C均为锐角,(此时进行采样矿物识别,采样区域过小,会使主矿物和伴生矿物采样混淆导致失真,需要放大采样区),令点Hj+1在边L2上投影点为HPj+1,令点Hj+2在边L1上的投影点为HPj+2,连接点HPj+1到点Hj+1形成直线C2,以点HPj+1到点Hj+1的方向为第三方向;连接点HPj+2到点Hj+2形成直线C3,以点HPj+2到点Hj+2的方向为第四方向;将Hj+1的位置沿着直线C2往第三方向移动距离△L,从而更新Hj+1的位置坐标;将Hj+2的位置沿着直线C3往第四方向移动距离△L,从而更新Hj+2的位置坐标;S305, if ∠A, ∠B, and ∠C are all acute angles, (at this time, the sampling mineral identification is performed, and the sampling area is too small, which will confuse the sampling of the main mineral and the associated mineral and cause distortion, and the sampling area needs to be enlarged), let the point H j The projected point of +1 on the edge L2 is HP j+1 , let the projected point of the point H j+2 on the edge L1 be HP j+2 , and connect the point HP j+1 to the point H j+1 to form a straight line C2, with The direction from point HP j+1 to point H j+1 is the third direction; connecting point HP j+2 to point H j+2 forms a straight line C3, and the direction from point HP j+2 to point H j+2 is the third direction. Four directions; move the position of H j+1 along the straight line C2 to the third direction by a distance ΔL, thereby updating the position coordinates of H j+1 ; move the position of H j+2 along the straight line C3 to the fourth direction by a distance △L, thereby updating the position coordinates of H j+2 ;

S306,将更新后的顶点Hj、Hj+1与Hj+2构成的三角形区域记为待识别矿区;S306, the triangular area formed by the updated vertices H j , H j+1 and H j+2 is recorded as the mining area to be identified;

S307,获取待识别矿区的三个顶点Hj、Hj+1与Hj+2位置的光谱波形数据,分别提取三个顶点位置的光谱波形数据的光谱波形特征,根据光谱波形特征位置的波长通过光谱数据库匹配进行矿物类型识别;S307, obtaining the spectral waveform data at the positions of the three vertexes H j , H j+1 and H j+2 of the mining area to be identified, extracting the spectral waveform characteristics of the spectral waveform data at the three vertex positions respectively, according to the wavelength of the spectral waveform characteristic position Mineral type identification by spectral database matching;

S308,如果三个顶点Hj、Hj+1与Hj+2中任意两个顶点的位置识别的矿物类型为第一矿物,则标记待识别矿区为第一矿物分区;如果三个顶点Hj、Hj+1与Hj+2中任意两个顶点的位置识别的矿物类型为第二矿物,则标记待识别矿区为第二矿物分区;如果j+2<S则令j的值增加1并转到步骤S303,否则转到步骤S309;S308, if the mineral type identified by the positions of any two of the three vertices H j , H j+1 and H j+2 is the first mineral, mark the mining area to be identified as the first mineral partition; if the three vertices H The mineral type identified by the positions of any two vertices in j , H j+1 and H j+2 is the second mineral, then mark the mining area to be identified as the second mineral partition; if j+2<S, increase the value of j 1 and go to step S303, otherwise go to step S309;

S309,如果i<K则令i的值增加1并转到步骤S302,否则对第一图像集合中的各个子矿区图像分类识别结束。S309, if i<K, increase the value of i by 1 and go to step S302; otherwise, the classification and recognition of the images of each sub-mining area in the first image set ends.

进一步地,在S307中,获取待识别矿区的光谱波形数据的方法为:通过地物光谱仪、高光谱相机、高光谱成像仪、近红外光谱仪中任意一种设备对光谱波形数据进行获取。Further, in S307, the method for acquiring the spectral waveform data of the mining area to be identified is as follows: acquiring the spectral waveform data through any one of a ground object spectrometer, a hyperspectral camera, a hyperspectral imager, and a near-infrared spectrometer.

进一步地,在S307中,根据光谱波形特征位置的波长通过光谱数据库匹配进行矿物类型识别的方法为:Further, in S307, the method for identifying the mineral type through spectral database matching according to the wavelength of the characteristic position of the spectral waveform is:

提取三个顶点的位置的光谱波形数据的光谱波形特征,光谱波形特征包括光谱波形的一阶微分、二阶微分、波峰、波谷;Extract the spectral waveform features of the spectral waveform data at the positions of the three vertices, and the spectral waveform features include the first-order differential, second-order differential, wave peak, and wave trough of the spectral waveform;

将各个光谱波形特征与光谱数据库中各个矿物的光谱波形特征进行波长匹配,得到与三个顶点的光谱波形数据的光谱波形特征一致的匹配矿物。Wavelength matching is performed between each spectral waveform feature and the spectral waveform feature of each mineral in the spectral database, and matching minerals that are consistent with the spectral waveform features of the spectral waveform data of the three vertices are obtained.

进一步地,在S307中,光谱数据库具体包括USGS波谱数据库、ASD原子光谱数据库、JPL标准波谱数据库、ASTER波谱数据库、HIPAS波谱数据库、JHU波谱数据库,此外还包括文献:张莹彤,肖青,闻建光,等.地物波谱数据库建设进展及应用现状[J].遥感学报,2017,21(001):12-26,该文献中所涉及到的任意一种波谱数据库。Further, in S307, the spectral database specifically includes the USGS spectral database, the ASD atomic spectral database, the JPL standard spectral database, the ASTER spectral database, the HIPAS spectral database, and the JHU spectral database, as well as the literature: Zhang Yingtong, Xiao Qing, Wen Jianguang , et al. Construction progress and application status of ground object spectral database [J]. Journal of Remote Sensing, 2017, 21(001): 12-26, any kind of spectral database involved in this document.

进一步地,在S400中,计算第一图像集合中标记为伴生矿的伴生矿图像数量的方法为:分别计算第一图像集合中标记为第一矿物分区的数量Ta1和第一图像集合中标记为第二矿物分区的数量Ta2,当Ta1>Ta2时,以第一矿物为主矿物,以第二矿物为伴生矿;当Ta1≤Ta2时,以第一矿物为伴生矿,以第二矿物为主矿物;计算第一图像集合中是伴生矿的第一矿物分区或者第二矿物分区作为伴生矿图像数量。Further, in S400, the method for calculating the number of associated ore images marked as associated ore in the first image set is: respectively calculating the number Ta1 marked as the first mineral partition in the first image set and the number Ta1 marked as the first image set in the first image set. The number of second mineral divisions Ta2, when Ta1>Ta2, the first mineral is the main mineral, and the second mineral is the associated mineral; when Ta1≤Ta2, the first mineral is the associated mineral, and the second mineral is the main mineral Minerals; calculate the first mineral subregion or the second mineral subregion that is an associated mineral in the first image set as the number of associated mineral images.

进一步地,在S308中,主矿物包括铜矿、黑钨矿、方铅矿、闪锌矿、铁矿、水晶矿、镍矿中任意一种矿物;伴生矿包括稀土矿、钽铌矿、锆英矿、磷酸盐矿、铀矿、钍矿中任意一种矿物。Further, in S308, the main minerals include any one of copper ore, wolframite, galena, sphalerite, iron ore, crystal ore, and nickel ore; associated minerals include rare earth ore, tantalum niobium ore, zirconium ore Any one of British Ore, Phosphate Ore, Uranium Ore, and Thorium Ore.

进一步地,在S500中,阈值的取值范围设置为第一图像集合中主矿物的图像数量的[0.2,0.5]倍或者将阈值设置为[5,20]个。Further, in S500, the value range of the threshold is set to [0.2, 0.5] times the number of images of main minerals in the first image set or the threshold is set to [5, 20].

本公开的实施例提供的一种岩石样品中伴生矿物识别系统,如图2所示为本公开的一种岩石样品中伴生矿物识别系统结构图,该实施例的一种岩石样品中伴生矿物识别系统包括:处理器、存储器以及存储在所述存储器中并可在所述处理器上运行的计算机程序,所述处理器执行所述计算机程序时实现上述一种岩石样品中伴生矿物识别系统实施例中的步骤。An embodiment of the present disclosure provides a system for identifying associated minerals in a rock sample. FIG. 2 is a structural diagram of a system for identifying associated minerals in a rock sample of the present disclosure. In this embodiment, a system for identifying associated minerals in a rock sample is shown. The system 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, an embodiment of the above-mentioned system for identifying associated minerals in a rock sample is implemented steps in .

所述系统包括:存储器、处理器以及存储在所述存储器中并可在所述处理器上运行的计算机程序,所述处理器执行所述计算机程序运行在以下系统的单元中:The system includes: a memory, a processor, and a computer program stored in the memory and executable on the processor, the processor executing the computer program and running in elements of the following system:

图像采集单元,用于采集岩石样品截面的截面图像;an image acquisition unit, used for acquiring cross-sectional images of rock sample cross-sections;

图像分割单元,用于对截面图像进行预处理筛选分割得到各个子矿区图像,各个子矿区图像构成第一图像集合;The image segmentation unit is used for preprocessing, screening and segmenting the cross-sectional image to obtain images of each sub-mining area, and each sub-mining area image constitutes a first image set;

分类识别单元,用于对第一图像集合中的各个子矿区图像进行分类识别;A classification and identification unit, used for classifying and identifying images of each sub-mining area in the first image set;

伴生矿识别单元,用于计算第一图像集合中标记为伴生矿的伴生矿图像数量;An associated ore identification unit, used to calculate the number of associated ore images marked as associated ore in the first image set;

伴生矿判断单元,用于当伴生矿图像数量超过阈值时判断岩石样品包含伴生矿,否则岩石样品不包含伴生矿。Associated ore judgment unit, used for judging that the rock sample contains associated ore when the number of associated ore images exceeds the threshold, otherwise the rock sample does not contain associated ore.

所述一种岩石样品中伴生矿物识别系统可以运行于桌上型计算机、笔记本、掌上电脑及云端服务器等计算设备中。所述一种岩石样品中伴生矿物识别系统,可运行的系统可包括,但不仅限于,处理器、存储器。本领域技术人员可以理解,所述例子仅仅是一种岩石样品中伴生矿物识别系统的示例,并不构成对一种岩石样品中伴生矿物识别系统的限定,可以包括比例子更多或更少的部件,或者组合某些部件,或者不同的部件,例如所述一种岩石样品中伴生矿物识别系统还可以包括输入输出设备、网络接入设备、总线等。The system for identifying associated minerals in a rock sample can be run in computing devices such as a desktop computer, a notebook, a palmtop computer and a cloud server. In the system for identifying associated minerals in a rock sample, the operable system may include, but is not limited to, a processor and a memory. Those skilled in the art can understand that the example is only an example of an identification system for associated minerals in a rock sample, and does not constitute a limitation on an identification system for associated minerals in a rock sample, which may include more or less proportions of Components, or a combination of certain components, or different components, for example, the identification system for associated minerals in a rock sample may also include input and output devices, network access devices, buses, and the like.

所称处理器可以是中央处理单元(Central Processing Unit,CPU),还可以是其他通用处理器、数字信号处理器(Digital Signal Processor,DSP)、专用集成电路(Application Specific Integrated Circuit,ASIC)、现场可编程门阵列(Field-Programmable Gate Array,FPGA)或者其他可编程逻辑器件、分立门或者晶体管逻辑器件、分立硬件组件等。通用处理器可以是微处理器或者该处理器也可以是任何常规的处理器等,所述处理器是所述一种岩石样品中伴生矿物识别系统运行系统的控制中心,利用各种接口和线路连接整个一种岩石样品中伴生矿物识别系统可运行系统的各个部分。The processor may be a central processing unit (Central Processing Unit, CPU), or other general-purpose processors, digital signal processors (Digital Signal Processors, DSP), application specific integrated circuits (Application Specific Integrated Circuit, ASIC), field Programmable Gate Array (Field-Programmable Gate Array, FPGA) or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components, etc. The general-purpose processor can be a microprocessor or the processor can also be any conventional processor, etc. The processor is the control center of the operating system of the associated mineral identification system in the one rock sample, using various interfaces and circuits Linking the associated minerals identification system throughout a rock sample operates the various parts of the system.

所述存储器可用于存储所述计算机程序和/或模块,所述处理器通过运行或执行存储在所述存储器内的计算机程序和/或模块,以及调用存储在存储器内的数据,实现所述一种岩石样品中伴生矿物识别系统的各种功能。所述存储器可主要包括存储程序区和存储数据区,其中,存储程序区可存储操作系统、至少一个功能所需的应用程序(比如声音播放功能、图像播放功能等)等;存储数据区可存储根据手机的使用所创建的数据(比如音频数据、电话本等)等。此外,存储器可以包括高速随机存取存储器,还可以包括非易失性存储器,例如硬盘、内存、插接式硬盘,智能存储卡(Smart Media Card,SMC),安全数字(SecureDigital,SD)卡,闪存卡(Flash Card)、至少一个磁盘存储器件、闪存器件、或其他易失性固态存储器件。The memory can be used to store the computer program and/or module, and the processor implements the one by running or executing the computer program and/or module stored in the memory and calling the data stored in the memory. Various functions of associated mineral identification systems in rock samples. The memory may mainly include a stored program area and a stored data area, wherein the stored program area may store an operating system, an application program required for at least one function (such as a sound playback function, an image playback function, etc.), etc.; the storage data area may store Data (such as audio data, phonebook, etc.) created according to the usage of the mobile phone, etc. In addition, the memory may include high-speed random access memory, and may also include non-volatile memory, such as hard disk, internal memory, plug-in hard disk, Smart Media Card (SMC), Secure Digital (SD) card, Flash Card, at least one magnetic disk storage device, flash memory device, or other volatile solid state storage device.

尽管本公开的描述已经相当详尽且特别对几个所述实施例进行了描述,但其并非旨在局限于任何这些细节或实施例或任何特殊实施例,从而有效地涵盖本公开的预定范围。此外,上文以发明人可预见的实施例对本公开进行描述,其目的是为了提供有用的描述,而那些目前尚未预见的对本公开的非实质性改动仍可代表本公开的等效改动。Although the present disclosure has been described in considerable detail and with particular reference to a few of the described embodiments, it is not intended to be limited to any of these details or embodiments or to any particular embodiment so as to effectively encompass the intended scope of the present disclosure. Furthermore, the foregoing description of the present disclosure in terms of embodiments foreseen by the inventors is intended to provide a useful description, and those insubstantial modifications of the present disclosure that are not presently foreseen may nevertheless represent equivalent modifications of the present disclosure.

Claims (9)

1.一种岩石样品中伴生矿物识别方法,其特征在于,所述方法包括以下步骤:1. A method for identifying associated minerals in a rock sample, wherein the method comprises the following steps: S100,采集岩石样品截面的截面图像;S100, collecting cross-sectional images of rock sample cross-sections; S200,对截面图像进行预处理筛选分割得到各个子矿区图像,各个子矿区图像构成第一图像集合;S200, performing preprocessing, screening and segmentation on the cross-sectional images to obtain images of each sub-mining area, and each sub-mining area image constitutes a first image set; S300,对第一图像集合中的各个子矿区图像进行分类识别;S300, classifying and identifying images of each sub-mining area in the first image set; S400,计算第一图像集合中标记为伴生矿的伴生矿图像数量;S400, calculating the number of associated ore images marked as associated ore in the first image set; S500,当伴生矿图像数量超过阈值时判断岩石样品包含伴生矿,否则岩石样品不包含伴生矿;S500, when the number of associated ore images exceeds a threshold, it is judged that the rock sample contains associated ore, otherwise the rock sample does not contain associated ore; 其中,对第一图像集合中的各个子矿区图像进行分类识别的方法为:Among them, the method for classifying and identifying each sub-mining area image in the first image set is: S301,令第一图像集合为G1={G1i},令K为第一图像集合G1中子矿区图像的数量,设置变量i、j,i∈[1,K],G1i为第一图像集合中第i个子矿区图像;令i的值为1;S301, let the first image set be G1={G1 i }, let K be the number of sub-mining images in the first image set G1, set variables i, j, i∈[1,K], G1 i is the first image The image of the ith sub-mining area in the set; let the value of i be 1; S302,以角点检测算法对G1i进行角点检测得到G1i的各个角点,将各个角点按照角点到G1i的几何中心点距离从小到大排序得到有序的角点集合H1={Hj},Hj为G1i的各个角点构成的角点集合H1中第j个角点;令S为G1i的角点的数量,令j的值为1,i∈[1,S];所述角点检测算法为Harris角点检测算法或者Shi-Tomasi角点检测算法;S302, perform corner detection on G1 i with a corner detection algorithm to obtain each corner of G1 i , and sort each corner according to the distance from the corner to the geometric center point of G1 i from small to large to obtain an ordered set of corners H1= {H j }, H j is the jth corner point in the corner point set H1 formed by the corner points of G1 i ; let S be the number of corner points of G1 i , let the value of j be 1, i∈[1, S]; Described corner detection algorithm is Harris corner detection algorithm or Shi-Tomasi corner detection algorithm; S303,连接Hj与Hj+1得到线段L1、连接Hj与Hj+2得到线段L2、连接Hj+1与Hj+2得到线段L3,以Hj为顶点且以L1、L2为边的夹角为∠A,以Hj+1为顶点且以L1、L3为边的夹角为∠B,以Hj+2为顶点且以L2、L3为边的夹角为∠C;Hj在边L3上的垂线的线段或者Hj到L3中点的连线的线段为C1;S303, connect H j and H j+1 to obtain line segment L1, connect H j and H j+2 to obtain line segment L2, connect H j+1 and H j+2 to obtain line segment L3, take H j as a vertex and take L1, L2 The angle between the sides is ∠A, the angle with H j+1 as the vertex and the sides L1 and L3 is ∠B, the angle with H j+2 as the vertex and the sides L2 and L3 is ∠C ; The line segment of the vertical line of H j on the side L3 or the line segment of the line connecting H j to the midpoint of L3 is C1; S304,如果∠A、∠B、∠C中任意一个角为钝角,若点Hj到边L3上有投影点则令点Hj到边L3上的投影点为HPj,若点Hj到边L3上没有投影点则以L3的中点为HPj,即以点Hj到边L3上的垂线与边L3的交点或者以L3的中点为HPjS304, if any one of ∠A, ∠B, and ∠C is an obtuse angle, if there is a projection point on the point H j to the side L3, let the projection point from the point H j to the side L3 be HP j , if the point H j to the side L3 If there is no projection point on side L3, take the midpoint of L3 as HP j , that is, take the point H j to the intersection of the vertical line on side L3 and side L3 or take the midpoint of L3 as HP j ; 连接点HPj到点Hj形成直线C1,以点Hj到点HPj的方向为第一方向,以点HPj到点Hj的方向为第二方向;The connection point HP j to the point H j forms a straight line C1, and the direction from the point H j to the point HP j is the first direction, and the direction from the point HP j to the point H j is the second direction; 若∠A不是钝角,则将Hj的位置沿着直线C1往第一方向移动距离△L,从而更新Hj的位置坐标,其中,△L=|Max(D2)-Min(D1)|,其中,Max(D2)为计算集合D2中最大的元素, Min(D1)为计算集合D1中最小的元素;If ∠A is not an obtuse angle, move the position of H j to the first direction along the straight line C1 by a distance ΔL, so as to update the position coordinates of H j , where ΔL=|Max(D2)-Min(D1)|, Wherein, Max(D2) is the largest element in the calculation set D2, and Min(D1) is the smallest element in the calculation set D1; 集合D1,D2分别为根据步骤S3041到步骤S3043得到的最大距离阈值集合和最小距离阈值集合;Sets D1 and D2 are respectively the maximum distance threshold set and the minimum distance threshold set obtained according to steps S3041 to S3043; S3041:设变量k的初始值为1,设置空集合D1,D2;S3041: Set the initial value of the variable k to 1, and set the empty sets D1 and D2; S3042:计算有序的角点集合H1中的角点Hk到角点Hk+1的欧氏距离d1,角点Hk到角点Hk+2的欧氏距离d2,角点Hk+1到角点Hk+2的欧氏距离d3;Hk为H1中第K个角点;取d1、d2和d3中最大值加入到集合D1中,d1、d2和d3中最小值加入到集合D2中;S3042: Calculate the Euclidean distance d1 from the corner point H k to the corner point H k+1 in the ordered corner point set H1, the Euclidean distance d2 from the corner point H k to the corner point H k+2 , and the corner point H k The Euclidean distance d3 from +1 to the corner point H k+2 ; H k is the Kth corner point in H1; the maximum value of d1, d2 and d3 is added to the set D1, and the minimum value of d1, d2 and d3 is added to the set into set D2; S3043:如果k+2<S则令k的值增加1并转到步骤S3042,否则输出得到的最大距离阈值集合D1和最小距离阈值集合D2;S3043: if k+2<S, increase the value of k by 1 and go to step S3042, otherwise output the obtained maximum distance threshold set D1 and minimum distance threshold set D2; 若∠A是钝角,则将Hj的位置沿着直线C1往第二方向移动距离△L,从而更新Hj的位置坐标;If ∠A is an obtuse angle, move the position of H j along the straight line C1 to the second direction by a distance ΔL, thereby updating the position coordinates of H j ; S305,如果∠A、∠B、∠C均为锐角,令点Hj+1在边L2上投影点为HPj+1,令点Hj+2在边L1上的投影点为HPj+2,连接点HPj+1到点Hj+1形成直线C2,以点HPj+1到点Hj+1的方向为第三方向;连接点HPj+2到点Hj+2形成直线C3,以点HPj+2到点Hj+2的方向为第四方向;将Hj+1的位置沿着直线C2往第三方向移动距离△L,从而更新Hj+1的位置坐标;将Hj+2的位置沿着直线C3往第四方向移动距离△L,从而更新Hj+2的位置坐标;S305, if ∠A, ∠B, and ∠C are all acute angles, let the projection point of the point H j+1 on the side L2 be HP j+1 , and let the projection point of the point H j+2 on the side L1 be HP j+ 2. Connect the point HP j+1 to the point H j+1 to form a straight line C2, and take the direction from the point HP j+1 to the point H j+1 as the third direction; connect the point HP j+2 to the point H j+2 to form a straight line C2 Straight line C3, taking the direction from point HP j+2 to point H j+2 as the fourth direction; move the position of H j+1 along the straight line C2 to the third direction by a distance ΔL, thereby updating the position of H j+1 Coordinates; move the position of H j+2 along the straight line C3 to the fourth direction by a distance ΔL, thereby updating the position coordinates of H j+2 ; S306,将更新后的顶点Hj、Hj+1与Hj+2构成的三角形区域记为待识别矿区;S306, the triangular area formed by the updated vertices H j , H j+1 and H j+2 is recorded as the mining area to be identified; S307,获取待识别矿区的三个顶点Hj、Hj+1与Hj+2位置的光谱波形数据,分别提取三个顶点位置的光谱波形数据的光谱波形特征,根据光谱波形特征位置的波长通过光谱数据库匹配进行矿物类型识别;S307, obtaining the spectral waveform data at the positions of the three vertexes H j , H j+1 and H j+2 of the mining area to be identified, extracting the spectral waveform characteristics of the spectral waveform data at the three vertex positions respectively, according to the wavelength of the spectral waveform characteristic position Mineral type identification by spectral database matching; S308,如果三个顶点Hj、Hj+1与Hj+2中任意两个顶点的位置识别的矿物类型为第一矿物,则标记待识别矿区为第一矿物分区;如果三个顶点Hj、Hj+1与Hj+2中任意两个顶点的位置识别的矿物类型为第二矿物,则标记待识别矿区为第二矿物分区;如果j+2<S则令j的值增加1并转到步骤S303,否则转到步骤S309;S308, if the mineral type identified by the positions of any two of the three vertices H j , H j+1 and H j+2 is the first mineral, mark the mining area to be identified as the first mineral partition; if the three vertices H The mineral type identified by the positions of any two vertices in j , H j+1 and H j+2 is the second mineral, then mark the mining area to be identified as the second mineral partition; if j+2<S, increase the value of j 1 and go to step S303, otherwise go to step S309; S309,如果i<K则令i的值增加1并转到步骤S302,否则对第一图像集合中的各个子矿区图像分类识别结束。S309, if i<K, increase the value of i by 1 and go to step S302; otherwise, the classification and recognition of the images of each sub-mining area in the first image set ends. 2.根据权利要求1所述的一种岩石样品中伴生矿物识别方法,其特征在于,在S100中,采集岩石样品的截面图像的方法为:通过高光谱相机、高光谱成像仪、线阵CCD工业相机、近红外光图像传感器中任意一种对岩石样品的截面进行图像采集得到截面图像。2 . The method for identifying associated minerals in a rock sample according to claim 1 , wherein, in S100 , the method for collecting cross-sectional images of the rock sample is: using a hyperspectral camera, a hyperspectral imager, a linear CCD Any one of an industrial camera and a near-infrared light image sensor is used to acquire a cross-section image of the rock sample to obtain a cross-section image. 3.根据权利要求1所述的一种岩石样品中伴生矿物识别方法,其特征在于,在S100中,岩石样品包括斑岩铜矿、黑钨矿、方铅矿、闪锌矿、铁矿、水晶矿、镍矿、稀土矿、钽铌矿、锆英矿、磷酸盐矿、铀矿、钍矿中任意一种矿石。3. The method for identifying associated minerals in a rock sample according to claim 1, wherein in S100, the rock sample comprises porphyry copper ore, wolframite, galena, sphalerite, iron ore, Crystal ore, nickel ore, rare earth ore, tantalum niobium ore, zircon ore, phosphate ore, uranium ore, thorium ore. 4.根据权利要求1所述的一种岩石样品中伴生矿物识别方法,其特征在于,在S200中,对截面图像进行预处理筛选分割得到各个子矿区图像,各个子矿区图像构成第一图像集合的方法为:对截面图像进行高斯滤波并灰度化得到灰度图,将灰度图以分水岭算法计算得到边界点,以各个边界点连接得到边缘线,各个边缘线构成的集水盆区域作为子矿区图像,由各个子矿区图像构成第一图像集合。4 . The method for identifying associated minerals in a rock sample according to claim 1 , wherein in S200 , the cross-sectional images are preprocessed, screened, and segmented to obtain images of sub-mining areas, and the images of each sub-mining area constitute a first image set. 5 . The method is as follows: Gaussian filtering and graying of the cross-sectional image to obtain a grayscale image, the grayscale image is calculated by the watershed algorithm to obtain the boundary points, and each boundary point is connected to obtain an edge line, and the catchment area formed by each edge line is used as the boundary point. Sub-mining area images, each sub-mining area image constitutes a first image set. 5.根据权利要求1所述的一种岩石样品中伴生矿物识别方法,其特征在于,在S200中,对截面图像进行预处理筛选分割得到各个子矿区图像,各个子矿区图像构成第一图像集合的方法为:对截面图像进行高斯滤波并灰度化得到灰度图,将灰度图以通过Sobel边缘检测算子检测得到边缘线,以各个边缘线构成的封闭的图像区域作为子矿区图像,由各个子矿区图像构成第一图像集合。5 . The method for identifying associated minerals in a rock sample according to claim 1 , wherein in S200 , the cross-sectional images are preprocessed, screened, and segmented to obtain images of each sub-mining area, and each sub-mining area image constitutes a first image set. 6 . The method is as follows: Gaussian filtering and graying of the cross-sectional image to obtain a grayscale image, the grayscale image is detected by the Sobel edge detection operator to obtain edge lines, and the closed image area formed by each edge line is used as the sub-mining area image, A first set of images is formed by images of the respective sub-mining areas. 6.根据权利要求1所述的一种岩石样品中伴生矿物识别方法,其特征在于,在S307中,获取待识别矿区的光谱波形数据的方法为:通过地物光谱仪、高光谱相机、高光谱成像仪、近红外光谱仪中任意一种设备对光谱波形数据进行获取。6 . The method for identifying associated minerals in a rock sample according to claim 1 , wherein, in S307 , the method for obtaining spectral waveform data of the mining area to be identified is: through a ground object spectrometer, a hyperspectral camera, a hyperspectral The spectral waveform data can be acquired by any device among the imager and the near-infrared spectrometer. 7.根据权利要求1所述的一种岩石样品中伴生矿物识别方法,其特征在于,在S307中,根据光谱波形特征位置的波长通过光谱数据库匹配进行矿物类型识别的方法为:7. The method for identifying associated minerals in a rock sample according to claim 1, wherein, in S307, the method for identifying mineral types by spectral database matching according to the wavelength of the spectral waveform characteristic position is: 提取三个顶点的位置的光谱波形数据的光谱波形特征,光谱波形特征包括光谱波形的一阶微分、二阶微分、波峰、波谷;Extract the spectral waveform features of the spectral waveform data at the positions of the three vertices, and the spectral waveform features include the first-order differential, second-order differential, wave peak, and wave trough of the spectral waveform; 将各个光谱波形特征与光谱数据库中各个矿物的光谱波形特征进行波长匹配,得到与三个顶点的光谱波形数据的光谱波形特征一致的匹配矿物。Wavelength matching is performed between each spectral waveform feature and the spectral waveform feature of each mineral in the spectral database, and matching minerals that are consistent with the spectral waveform features of the spectral waveform data of the three vertices are obtained. 8.根据权利要求1所述的一种岩石样品中伴生矿物识别方法,其特征在于,在S400中,计算第一图像集合中标记为伴生矿的伴生矿图像数量的方法为:分别计算第一图像集合中标记为第一矿物分区的数量Ta1和第一图像集合中标记为第二矿物分区的数量Ta2,当Ta1>Ta2时,以第一矿物为主矿物,以第二矿物为伴生矿;当Ta1≤Ta2时,以第一矿物为伴生矿,以第二矿物为主矿物;计算第一图像集合中是伴生矿的第一矿物分区或者第二矿物分区作为伴生矿图像数量。8 . The method for identifying associated minerals in a rock sample according to claim 1 , wherein, in S400 , the method for calculating the number of associated mineral images marked as associated minerals in the first image set is: respectively calculating the first The number Ta1 marked as the first mineral partition in the image set and the number Ta2 marked as the second mineral partition in the first image set, when Ta1>Ta2, the first mineral is the main mineral, and the second mineral is the associated mineral; When Ta1≤Ta2, the first mineral is the associated mineral, and the second mineral is the main mineral; the first mineral partition or the second mineral partition that is the associated mineral in the first image set is calculated as the number of associated mineral images. 9.一种岩石样品中伴生矿物识别系统,其特征在于,所述系统包括:存储器、处理器以及存储在所述存储器中并可在所述处理器上运行的计算机程序,所述处理器执行所述计算机程序运行在以下系统的单元中:9. A system for identifying associated minerals in a rock sample, wherein the system comprises: a memory, a processor, and a computer program stored in the memory and executable on the processor, the processor executing The computer program runs in units of the following systems: 图像采集单元,用于采集岩石样品截面的截面图像;an image acquisition unit, used for acquiring cross-sectional images of rock sample cross-sections; 图像分割单元,用于对截面图像进行预处理筛选分割得到各个子矿区图像,各个子矿区图像构成第一图像集合;The image segmentation unit is used for preprocessing, screening and segmenting the cross-sectional images to obtain images of each sub-mining area, and each sub-mining area image constitutes a first image set; 分类识别单元,用于对第一图像集合中的各个子矿区图像进行分类识别;A classification and identification unit, used for classifying and identifying images of each sub-mining area in the first image set; 伴生矿识别单元,用于计算第一图像集合中标记为伴生矿的伴生矿图像数量;An associated ore identification unit, used to calculate the number of associated ore images marked as associated ore in the first image set; 伴生矿判断单元,用于当伴生矿图像数量超过阈值时判断岩石样品包含伴生矿,否则岩石样品不包含伴生矿;Associated ore judgment unit, used to judge that the rock sample contains associated ore when the number of associated ore images exceeds the threshold, otherwise the rock sample does not contain associated ore; 其中,对第一图像集合中的各个子矿区图像进行分类识别的方法为:Among them, the method for classifying and identifying each sub-mining area image in the first image set is: S301,令第一图像集合为G1={G1i},令K为第一图像集合G1中子矿区图像的数量,设置变量i、j,i∈[1,K],G1i为第一图像集合中第i个子矿区图像;令i的值为1;S301, let the first image set be G1={G1 i }, let K be the number of sub-mining images in the first image set G1, set variables i, j, i∈[1,K], G1 i is the first image The image of the ith sub-mining area in the set; let the value of i be 1; S302,以角点检测算法对G1i进行角点检测得到G1i的各个角点,将各个角点按照角点到G1i的几何中心点距离从小到大排序得到有序的角点集合H1={Hj},Hj为G1i的各个角点构成的角点集合H1中第j个角点;令S为G1i的角点的数量,令j的值为1,i∈[1,S];所述角点检测算法为Harris角点检测算法或者Shi-Tomasi角点检测算法;S302, perform corner detection on G1 i with a corner detection algorithm to obtain each corner of G1 i , and sort each corner according to the distance from the corner to the geometric center point of G1 i from small to large to obtain an ordered set of corners H1= {H j }, H j is the jth corner point in the corner point set H1 formed by the corner points of G1 i ; let S be the number of corner points of G1 i , let the value of j be 1, i∈[1, S]; Described corner detection algorithm is Harris corner detection algorithm or Shi-Tomasi corner detection algorithm; S303,连接Hj与Hj+1得到线段L1、连接Hj与Hj+2得到线段L2、连接Hj+1与Hj+2得到线段L3,以Hj为顶点且以L1、L2为边的夹角为∠A,以Hj+1为顶点且以L1、L3为边的夹角为∠B,以Hj+2为顶点且以L2、L3为边的夹角为∠C;Hj在边L3上的垂线的线段或者Hj到L3中点的连线的线段为C1;S303, connect H j and H j+1 to obtain line segment L1, connect H j and H j+2 to obtain line segment L2, connect H j+1 and H j+2 to obtain line segment L3, take H j as a vertex and take L1, L2 The angle between the sides is ∠A, the angle with H j+1 as the vertex and the sides L1 and L3 is ∠B, the angle with H j+2 as the vertex and the sides L2 and L3 is ∠C ; The line segment of the vertical line of H j on the side L3 or the line segment of the line connecting H j to the midpoint of L3 is C1; S304,如果∠A、∠B、∠C中任意一个角为钝角,若点Hj到边L3上有投影点则令点Hj到边L3上的投影点为HPj,若点Hj到边L3上没有投影点则以L3的中点为HPj,即以点Hj到边L3上的垂线与边L3的交点或者以L3的中点为HPjS304, if any one of ∠A, ∠B, and ∠C is an obtuse angle, if there is a projection point on the point H j to the side L3, let the projection point from the point H j to the side L3 be HP j , if the point H j to the side L3 If there is no projection point on side L3, take the midpoint of L3 as HP j , that is, take the point H j to the intersection of the vertical line on side L3 and side L3 or take the midpoint of L3 as HP j ; 连接点HPj到点Hj形成直线C1,以点Hj到点HPj的方向为第一方向,以点HPj到点Hj的方向为第二方向;The connection point HP j to the point H j forms a straight line C1, and the direction from the point H j to the point HP j is the first direction, and the direction from the point HP j to the point H j is the second direction; 若∠A不是钝角,则将Hj的位置沿着直线C1往第一方向移动距离△L,从而更新Hj的位置坐标,其中,△L=|Max(D2)-Min(D1)|,其中,Max(D2)为计算集合D2中最大的元素, Min(D1)为计算集合D1中最小的元素;If ∠A is not an obtuse angle, move the position of H j to the first direction along the straight line C1 by a distance ΔL, so as to update the position coordinates of H j , where ΔL=|Max(D2)-Min(D1)|, Wherein, Max(D2) is the largest element in the calculation set D2, and Min(D1) is the smallest element in the calculation set D1; 集合D1,D2分别为根据步骤S3041到步骤S3043得到的最大距离阈值集合和最小距离阈值集合;Sets D1 and D2 are respectively the maximum distance threshold set and the minimum distance threshold set obtained according to steps S3041 to S3043; S3041:设变量k的初始值为1,设置空集合D1,D2;S3041: Set the initial value of the variable k to 1, and set the empty sets D1 and D2; S3042:计算有序的角点集合H1中的角点Hk到角点Hk+1的欧氏距离d1,角点Hk到角点Hk+2的欧氏距离d2,角点Hk+1到角点Hk+2的欧氏距离d3;Hk为H1中第K个角点;取d1、d2和d3中最大值加入到集合D1中,d1、d2和d3中最小值加入到集合D2中;S3042: Calculate the Euclidean distance d1 from the corner point H k to the corner point H k+1 in the ordered corner point set H1, the Euclidean distance d2 from the corner point H k to the corner point H k+2 , and the corner point H k The Euclidean distance d3 from +1 to the corner point H k+2 ; H k is the Kth corner point in H1; the maximum value of d1, d2 and d3 is added to the set D1, and the minimum value of d1, d2 and d3 is added to the set into set D2; S3043:如果k+2<S则令k的值增加1并转到步骤S3042,否则输出得到的最大距离阈值集合D1和最小距离阈值集合D2;S3043: if k+2<S, increase the value of k by 1 and go to step S3042, otherwise output the obtained maximum distance threshold set D1 and minimum distance threshold set D2; 若∠A是钝角,则将Hj的位置沿着直线C1往第二方向移动距离△L,从而更新Hj的位置坐标;If ∠A is an obtuse angle, move the position of H j along the straight line C1 to the second direction by a distance ΔL, thereby updating the position coordinates of H j ; S305,如果∠A、∠B、∠C均为锐角,令点Hj+1在边L2上投影点为HPj+1,令点Hj+2在边L1上的投影点为HPj+2,连接点HPj+1到点Hj+1形成直线C2,以点HPj+1到点Hj+1的方向为第三方向;连接点HPj+2到点Hj+2形成直线C3,以点HPj+2到点Hj+2的方向为第四方向;将Hj+1的位置沿着直线C2往第三方向移动距离△L,从而更新Hj+1的位置坐标;将Hj+2的位置沿着直线C3往第四方向移动距离△L,从而更新Hj+2的位置坐标;S305, if ∠A, ∠B, and ∠C are all acute angles, let the projection point of the point H j+1 on the side L2 be HP j+1 , and let the projection point of the point H j+2 on the side L1 be HP j+ 2. Connect the point HP j+1 to the point H j+1 to form a straight line C2, and take the direction from the point HP j+1 to the point H j+1 as the third direction; connect the point HP j+2 to the point H j+2 to form a straight line C2 Straight line C3, taking the direction from point HP j+2 to point H j+2 as the fourth direction; move the position of H j+1 along the straight line C2 to the third direction by a distance ΔL, thereby updating the position of H j+1 Coordinates; move the position of H j+2 along the straight line C3 to the fourth direction by a distance ΔL, thereby updating the position coordinates of H j+2 ; S306,将更新后的顶点Hj、Hj+1与Hj+2构成的三角形区域记为待识别矿区;S306, the triangular area formed by the updated vertices H j , H j+1 and H j+2 is recorded as the mining area to be identified; S307,获取待识别矿区的三个顶点Hj、Hj+1与Hj+2位置的光谱波形数据,分别提取三个顶点位置的光谱波形数据的光谱波形特征,根据光谱波形特征位置的波长通过光谱数据库匹配进行矿物类型识别;S307, obtaining the spectral waveform data at the positions of the three vertexes H j , H j+1 and H j+2 of the mining area to be identified, extracting the spectral waveform characteristics of the spectral waveform data at the three vertex positions respectively, according to the wavelength of the spectral waveform characteristic position Mineral type identification by spectral database matching; S308,如果三个顶点Hj、Hj+1与Hj+2中任意两个顶点的位置识别的矿物类型为第一矿物,则标记待识别矿区为第一矿物分区;如果三个顶点Hj、Hj+1与Hj+2中任意两个顶点的位置识别的矿物类型为第二矿物,则标记待识别矿区为第二矿物分区;如果j+2<S则令j的值增加1并转到步骤S303,否则转到步骤S309;S308, if the mineral type identified by the positions of any two of the three vertices H j , H j+1 and H j+2 is the first mineral, mark the mining area to be identified as the first mineral partition; if the three vertices H The mineral type identified by the positions of any two vertices in j , H j+1 and H j+2 is the second mineral, then mark the mining area to be identified as the second mineral partition; if j+2<S, increase the value of j 1 and go to step S303, otherwise go to step S309; S309,如果i<K则令i的值增加1并转到步骤S302,否则对第一图像集合中的各个子矿区图像分类识别结束。S309, if i<K, increase the value of i by 1 and go to step S302; otherwise, the classification and recognition of the images of each sub-mining area in the first image set ends.
CN202110773556.4A 2021-07-08 2021-07-08 A method and system for identifying associated minerals in rock samples Expired - Fee Related CN113554071B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202110773556.4A CN113554071B (en) 2021-07-08 2021-07-08 A method and system for identifying associated minerals in rock samples

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202110773556.4A CN113554071B (en) 2021-07-08 2021-07-08 A method and system for identifying associated minerals in rock samples

Publications (2)

Publication Number Publication Date
CN113554071A CN113554071A (en) 2021-10-26
CN113554071B true CN113554071B (en) 2022-05-20

Family

ID=78102825

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202110773556.4A Expired - Fee Related CN113554071B (en) 2021-07-08 2021-07-08 A method and system for identifying associated minerals in rock samples

Country Status (1)

Country Link
CN (1) CN113554071B (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114092489B (en) * 2021-11-02 2023-08-29 清华大学 Porous medium seepage channel extraction and model training method, device and equipment

Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103699889A (en) * 2014-01-06 2014-04-02 成都理工大学 Hyperspectral remote sensing technology-based tailings identifying method and system
CN105574621A (en) * 2016-01-18 2016-05-11 中国地质科学院矿产资源研究所 Porphyry copper ore prediction system and method based on remote sensing alteration abnormity

Family Cites Families (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
DK2198983T3 (en) * 2008-12-19 2011-12-12 Omya Development Ag Process for separating mineral impurities from calcium carbonate-containing rocks by X-ray sorting
CN108121949B (en) * 2017-12-04 2018-11-23 交通运输部规划研究院 A kind of harbour Ore stockpile recognition methods based on remote sensing scene classification
CN110873722A (en) * 2018-09-03 2020-03-10 中国石油化工股份有限公司 Rock core mineral component identification method
WO2020225592A1 (en) * 2019-05-09 2020-11-12 Abu Dhabi National Oil Company (ADNOC) Automated method and system for categorising and describing thin sections of rock samples obtained from carbonate rocks
CN112580659A (en) * 2020-11-10 2021-03-30 湘潭大学 Ore identification method based on machine vision

Patent Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103699889A (en) * 2014-01-06 2014-04-02 成都理工大学 Hyperspectral remote sensing technology-based tailings identifying method and system
CN105574621A (en) * 2016-01-18 2016-05-11 中国地质科学院矿产资源研究所 Porphyry copper ore prediction system and method based on remote sensing alteration abnormity

Also Published As

Publication number Publication date
CN113554071A (en) 2021-10-26

Similar Documents

Publication Publication Date Title
CN107330376B (en) Lane line identification method and system
CN107330979B (en) Vector diagram generation method and device for building house type and terminal
US8588466B2 (en) Object area detection system, device, method, and program for detecting an object
Bazi et al. Unsupervised change detection in multispectral remotely sensed imagery with level set methods
CN109978890B (en) Target extraction method and device based on image processing and terminal equipment
US9443162B2 (en) Intelligent background selection and image segmentation
CN111598088B (en) Target detection method, device, computer equipment and readable storage medium
WO2020232910A1 (en) Target counting method and apparatus based on image processing, device, and storage medium
JP2022549728A (en) Target detection method and device, electronic device, and storage medium
CN113554071B (en) A method and system for identifying associated minerals in rock samples
CN110807457A (en) OSD character recognition method, device and storage device
CN114581658A (en) Target detection method and device based on computer vision
CN114283343A (en) Map updating method, training method and equipment based on remote sensing satellite image
Mohammadi et al. 2D/3D information fusion for building extraction from high-resolution satellite stereo images using kernel graph cuts
Huang et al. Detecting shadows in high-resolution remote-sensing images of urban areas using spectral and spatial features
Kumar An efficient text extraction algorithm in complex images
CN108960246B (en) Binarization processing device and method for image recognition
CN113807293B (en) Deceleration strip detection method, deceleration strip detection system, deceleration strip detection equipment and computer readable storage medium
CN112017221B (en) Method, device and equipment for multimodal image registration based on scale space
WO2025007919A1 (en) Data detection method and apparatus, computer, storage medium, and program product
Zingman et al. Detection of texture and isolated features using alternating morphological filters
JP3319408B2 (en) Facial feature extraction device
Yadav et al. Road network identification and extraction in satellite imagery using Otsu's method and connected component analysis
CN114581890B (en) Method and device for determining lane line, electronic equipment and storage medium
Katartzis et al. Application of mathematical morphology and Markov random field theory to the automatic extraction of linear features in airborne images

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
GR01 Patent grant
GR01 Patent grant
CF01 Termination of patent right due to non-payment of annual fee
CF01 Termination of patent right due to non-payment of annual fee

Granted publication date: 20220520