Improved how we use camera2 API to fix low FPS

Merged Sylvain Berfini requested to merge fix/low_fps into master

Merge request reports