def get_opencv_version():
if cv2.__version__.startswith("<STR_LIT:3>"):<EOL><INDENT>return <NUM_LIT:3><EOL><DEDENT>elif cv2.__version__.startswith("<STR_LIT:2>"):<EOL><INDENT>return <NUM_LIT:2><EOL><DEDENT>else:<EOL><INDENT>return <NUM_LIT:2><EOL><DEDENT>
Return the OpenCV version by checking cv2.__version__
:return: int, 2 or 3