The invention relates to a method for measuring
coal bunker material level based on
laser and
binocular vision and a device thereof, belonging to the field of
machine vision. The device comprises two CCD cameras with the same parameters, two lenses with consistent parameters, one or a plurality of lasers, a
light source, a
processing element and an explosion-proof case provided with a window. A rotating mechanism is also included when one
laser is used. The method includes that the
laser emits
variable size laser beams, so as to form a
light spot on
coal surface, image
parallax of the
light spot between the two cameras is utilized to measure material level, and an
image pair is acquired by the two cameras;
corrosion expansion pre-treatment is carried out on the obtained images by utilizing an
improved algorithm; for the two images after being pretreated, a new rapid stereoscopic vision
algorithm is utilized to calculate a
depth map; depth is obtained according to the
depth map, and finally high efficiency, real time and accurate
coal bunker material
level measurement is realized. The device has two measuring
modes, namely real-time detection mode and sensor detection mode.