mirror of
https://github.com/opencv/opencv.git
synced 2024-12-15 09:49:13 +08:00
3c89a28a06
* feat: OpenCV extension with pure Python modules * feat: cv2 is now a Python package instead of extension module Python package cv2 now can handle both Python and C extension modules properly without additional "subfolders" like "_extra_py_code". * feat: can call native function from its reimplementation in Python
6 lines
90 B
Python
6 lines
90 B
Python
import cv2
|
|
|
|
|
|
def get_ocv_version():
|
|
return getattr(cv2, "__version__", "unavailable")
|