bump opencv version to 4.10.0 (#260)
Browse files* bump opencv version to 4.10.0
* doc: version change
* fix version control
* fix version control for efficient sam
demo.py
CHANGED
|
@@ -10,15 +10,16 @@ import argparse
|
|
| 10 |
import numpy as np
|
| 11 |
import cv2 as cv
|
| 12 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 13 |
from sface import SFace
|
| 14 |
|
| 15 |
sys.path.append('../face_detection_yunet')
|
| 16 |
from yunet import YuNet
|
| 17 |
|
| 18 |
-
# Check OpenCV version
|
| 19 |
-
assert cv.__version__ >= "4.9.0", \
|
| 20 |
-
"Please install latest opencv-python to try this demo: python3 -m pip install --upgrade opencv-python"
|
| 21 |
-
|
| 22 |
# Valid combinations of backends and targets
|
| 23 |
backend_target_pairs = [
|
| 24 |
[cv.dnn.DNN_BACKEND_OPENCV, cv.dnn.DNN_TARGET_CPU],
|
|
|
|
| 10 |
import numpy as np
|
| 11 |
import cv2 as cv
|
| 12 |
|
| 13 |
+
# Check OpenCV version
|
| 14 |
+
opencv_python_version = lambda str_version: tuple(map(int, (str_version.split("."))))
|
| 15 |
+
assert opencv_python_version(cv.__version__) >= opencv_python_version("4.10.0"), \
|
| 16 |
+
"Please install latest opencv-python for benchmark: python3 -m pip install --upgrade opencv-python"
|
| 17 |
+
|
| 18 |
from sface import SFace
|
| 19 |
|
| 20 |
sys.path.append('../face_detection_yunet')
|
| 21 |
from yunet import YuNet
|
| 22 |
|
|
|
|
|
|
|
|
|
|
|
|
|
| 23 |
# Valid combinations of backends and targets
|
| 24 |
backend_target_pairs = [
|
| 25 |
[cv.dnn.DNN_BACKEND_OPENCV, cv.dnn.DNN_TARGET_CPU],
|