cleanup some code
call OpenCV initialisation outside of it...