1 | initial version |
In your first case you try to use OpenCV functionality before library initialization. You may call any OpenCV objects and functions, including object constructors only after OpenCV initialization. When OpenCV is initialized correctly onManagerConnected(LoaderCallbackInterface.SUCCESS)
is called.