Water detection labeling algorithm based on opencv