The invention discloses a
water level measuring
system and a
water level measuring method based on
digital image processing. The
water level measuring
system comprises a spherical
buoy, a fixing rod, an
image acquisition module, an image transmission module and an
image processing module. The water level measuring method comprises the following steps: floating the spherical
buoy along the fixing rod up and down through raise and fall of the water level; shooting a water surface by a positioned and orientated
image acquisition module; transmitting an image to an
image processing device by the image transmission module; and after the
image processing device acquires the image, converting the image into a YUV (luma and chroma)
color processing model, performing binarization
processing, extracting out a spherical
buoy object by a
binary image connective
region growing notation method, extracting out the edge of the spherical buoy object through
edge detection, working out spherical center coordinates of the spherical buoy according to edge pixel coordinates of the extracted image, and thus working out the current water level height. The water level measuring
system and the water level measuring method are not affected by
water temperature,
water quality,
sediment concentration and other outside interference factors and are strong in adaptability; and the water level measuring system is simple in composition, convenient to install and easy to use.