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
|
@@ -9,11 +9,12 @@ import argparse
|
|
| 9 |
import numpy as np
|
| 10 |
import cv2 as cv
|
| 11 |
|
| 12 |
-
from wechatqrcode import WeChatQRCode
|
| 13 |
-
|
| 14 |
# Check OpenCV version
|
| 15 |
-
|
| 16 |
-
|
|
|
|
|
|
|
|
|
|
| 17 |
|
| 18 |
# Valid combinations of backends and targets
|
| 19 |
backend_target_pairs = [
|
|
|
|
| 9 |
import numpy as np
|
| 10 |
import cv2 as cv
|
| 11 |
|
|
|
|
|
|
|
| 12 |
# Check OpenCV version
|
| 13 |
+
opencv_python_version = lambda str_version: tuple(map(int, (str_version.split("."))))
|
| 14 |
+
assert opencv_python_version(cv.__version__) >= opencv_python_version("4.10.0"), \
|
| 15 |
+
"Please install latest opencv-python for benchmark: python3 -m pip install --upgrade opencv-python"
|
| 16 |
+
|
| 17 |
+
from wechatqrcode import WeChatQRCode
|
| 18 |
|
| 19 |
# Valid combinations of backends and targets
|
| 20 |
backend_target_pairs = [
|