Exploiting approximation, caching and specialization to accelerate vision sensing applications