Text this: A Real-Time Power-Saving Framework for Mobile Camera Applications Based on Machine Learning