ANPR version check for OpenCV

regarding issue #2458. Added a version check