Outputs JSON data. Added additional compression to OpenCV to improve processing speed