Python image preprocessing and model implementation for research of "Deep Learning-Based Visual Enhancement and Real-Time Underground-Mine Water Inflow Detection".