by utilising one global object forn the camera, which avoids many invisible internal opencv problemms