better detect opencv version