A kind of spoil coal carrying rate online test method and device based on machine vision
Technical field
The present invention relates to coal production technical fields, online more particularly to a kind of spoil coal carrying rate based on machine vision
Detection method and device.
Background technique
In coal separation production process, spoil coal carrying rate is an important technical indicator, reflects performance and the behaviour of screening installation
Make the level of personnel, therefore usually evaluates point of the equipment such as jigging machine, dense medium cyclone, compound sorting machine with spoil coal carrying rate
Effect is selected, is one of important technology performance assessment criteria.
The measurement of spoil coal carrying rate is that also have coal quality inspection personnel to hit with a hammer on Gangue knowledge by floating experiment
Other simple method, has following Railway Project:
1., need personnel largely to sample spoil in the process, consume manpower and material resources;
2., the sampling of the spoil of larger granularity when difficult, also increase the operation difficulty of floating experiment;
3., artificially sample when can exist only select pure spoil to avoid detect exceeded influences examination the phenomenon that so that sample
Under-represented, testing result is untrue;
4., entirely detection process takes long time, can not quickly learn screening installation effect adjusted so that equipment adjust
It is to take time and effort, causes the waste of energy resources.
Summary of the invention
In order to overcome the above-mentioned deficiencies of the prior art, the present invention provides a kind of, and the spoil coal carrying rate based on machine vision exists
Line detecting method and device substitute existing spoil coal carrying rate detection method, save human and material resources, improve the accurate of testing result
Property, realize on-line checking.
The technical scheme adopted by the invention is that: a kind of spoil coal carrying rate online test method based on machine vision, packet
Include following steps:
Spoil after S1, raw coal separation passes through belt haulage, and the gangue on belt reaches hood mask
When in range, computer control camera periodically shoots image and is transferred to computer;
S2, computer carry out real-time Digital Image Processing to the gangue image that camera takes: first passing through edge inspection
The image-region that every lump coal spoil in image is obtained with image segmentation is surveyed, all kinds of images of the coal gangue area after extracting segmentation are special
Sign;
S3, using gangue Forecasting Model of Density prediction corresponding region density, and distinguish every piece of region be coal or
Spoil calculates the quality of every lump coal spoil by the volume of gangue corresponding to every piece of region of volume predictions model prediction;
S4, statistics single image and in a period of time in image the quality m of coal and gangue gross mass M, pass through formula
Spoil coal carrying rate is calculated, real value and average value, the calculation formula of spoil coal carrying rate are obtained are as follows:
Spoil coal carrying rate=m/M × 100%
Further, image taking interval according to shooting area size and belt speed is set as 2-6s in step sl.
Further, the characteristics of image to be extracted in step s 2 has: extracting the r component, g component and b point of rgb space
Amount;H component, S component and the V component of HSV space;The gray value of gray space describes color, and extracts the one of color histogram
The color characteristic of rank square, second moment, third moment as image;Energy, contrast, correlation, the entropy of gray level co-occurrence matrixes are extracted,
Textural characteristics of the roughness, contrast, direction degree of Tamura texture as image;Extract the length of gangue minimum circumscribed rectangle
L, the wide B of gangue minimum circumscribed rectangle, the area A of coal gangue area, the perimeter P of coal gangue area are special as the geometry of image
Sign.
Further, the Forecasting Model of Density of gangue in step s3, for different grain size grade to extracted color
Feature and textural characteristics carry out feature selecting, and the Forecasting Model of Density of gangue is established by filtered out feature.
Further, the volume predictions model of gangue in step s3 are as follows:
ρ is the gangue density that Forecasting Model of Density predicts in formula.
Further, the detection device includes belt conveyor and detection device, and the detection device is arranged in belt
Above the middle part of conveyer.
Further, the detection device includes hood, computer, camera and LED light source, connection in the hood
There are camera and LED light source, and camera and LED light source are connected to a computer.
Further, the LED light source is 4, is symmetrically arranged at camera surrounding, the close hood inlet
LED light source on the outside of be equipped with frosted glass lamp shade.
Further, the hood includes metallic framework, and the metallic framework is wrapped with light-proof material, metal bone
A working space is formed in frame.
Compared with prior art, the beneficial effects of the present invention are: the present invention utilizes image recognition by machine vision technique
It realizes the on-line checking function of spoil coal carrying rate, in the transmission process after sorting the quick of spoil coal carrying rate is carried out to spoil
Prediction, had not only avoided influence of the human factor to measurement result, but also substantially reduce drain on manpower and material resources, and online pre- in real time
The timely adjustment for being conducive to screening installation parameter is surveyed, for improving sharpness of separation, promotes resources effective utilization to have particularly significant
Meaning.
Detailed description of the invention
Fig. 1 is that the present invention is based on the flow charts of the spoil coal carrying rate online test method of machine vision;
Fig. 2 is structure of the detecting device schematic diagram of the present invention;
Fig. 3 is camera and light source layout drawing in hood in the present invention
Wherein: 1- waits for measuring coal gangue, 2-LED light source, 3- camera, 4- computer, 5- hood, 6- belt conveyor.
Specific embodiment
In order to deepen the understanding of the present invention, present invention will be further explained below with reference to the attached drawings and examples, the implementation
Example for explaining only the invention, does not constitute protection scope of the present invention and limits.
As shown in Figure 1, a kind of spoil coal carrying rate online test method based on machine vision, comprising the following steps:
Spoil after S1, raw coal separation passes through belt haulage, and the gangue on belt reaches hood mask
When in range, computer control camera periodically shoots image and is transferred to computer;
S2, computer carry out real-time Digital Image Processing to the gangue image that camera takes: first passing through edge inspection
The image-region that every lump coal spoil in image is obtained with image segmentation is surveyed, all kinds of images of the coal gangue area after extracting segmentation are special
Sign;
S3, using gangue Forecasting Model of Density prediction corresponding region density, and distinguish every piece of region be coal or
Spoil calculates the quality of every lump coal spoil by the volume of gangue corresponding to every piece of region of volume predictions model prediction;
S4, statistics single image and in a period of time in image the quality m of coal and gangue gross mass M, pass through formula
Spoil coal carrying rate is calculated, real value and average value, the calculation formula of spoil coal carrying rate are obtained are as follows:
Spoil coal carrying rate=m/M × 100%
In the above-described embodiments, image-taking frequency need to be set according to shooting area size and belt speed in step sl
It is fixed, select 2 seconds as shooting interval, it is ensured that the gangue shot in image does not repeat.
In the above-described embodiments, the characteristics of image to be extracted in step s 2 has: extracting the r component of rgb space, g divides
Amount and b component;H component, S component and the V component of HSV space;The gray value of gray space describes color, and extracts color histogram
Color characteristic of the first moment, second moment, third moment of figure as image;Extract energy, the contrast, correlation of gray level co-occurrence matrixes
Property, entropy, textural characteristics of the roughness, contrast, direction degree of Tamura texture as image;Extract the minimum external square of gangue
The long L of shape, the wide B of gangue minimum circumscribed rectangle, the area A of coal gangue area, coal gangue area perimeter P as image
Geometrical characteristic.
In the above-described embodiments, utilize genetic algorithm (GA) to extracted color for different grain size grade in step s3
Feature and textural characteristics carry out feature selecting, and the density prediction mould of gangue is established by support vector machine classifier (SVM)
Type.
In the above-described embodiments, the volume predictions model of gangue in step s3 are as follows:
ρ is the gangue density that Forecasting Model of Density predicts in formula.
As shown in Fig. 2, a kind of spoil coal carrying rate on-line measuring device based on machine vision includes belt conveyor 6 and inspection
Measurement equipment, the detection device are arranged in above the middle part of belt conveyor 6;The detection device includes hood 5, computer
4, camera 3 and LED light source 2, are connected with camera 3 and LED light source 2 in the hood 5, and camera 3 and LED light source 2 with
Computer 4 is connected;The LED light source 2 is 4, is symmetrically arranged at 3 surrounding of camera, the close hood inlet
LED light source 2 on the outside of be equipped with frosted glass lamp shade;The hood 5 includes metallic framework, and the metallic framework is wrapped with opaque
Material, metallic framework is interior to form a working space.
What the embodiment of the present invention was announced is preferred embodiment, and however, it is not limited to this, the ordinary skill people of this field
Member, easily according to above-described embodiment, understands spirit of the invention, and make different amplification and variation, but as long as not departing from this
The spirit of invention, all within the scope of the present invention.