Text this: Integrating Color and Contour Analysis with Deep Learning for Robust Fire and Smoke Detection