35 files changed +114
-93
lines changed Original file line number Diff line number Diff line change @@ -55,7 +55,7 @@ python benchmark.py --all --cfg_overwrite_backend_target 1
55
55
56
56
# # Detailed Results
57
57
58
- Benchmark is done with latest ` opencv-python==4.8.0.74 ` and ` opencv-contrib-python==4.8.0.74 ` on the following platforms. Some models are excluded because of support issues.
58
+ Benchmark is done with latest opencv-python & opencv-contrib-python (current 4.10.0) on the following platforms. Some models are excluded because of support issues.
59
59
60
60
# ## Intel 12700K
61
61
Original file line number Diff line number Diff line change 9
9
from utils import METRICS , DATALOADERS
10
10
11
11
# Check OpenCV version
12
- assert cv .__version__ >= "4.9.0" , \
12
+ opencv_python_version = lambda str_version : tuple (map (int , (str_version .split ("." ))))
13
+ assert opencv_python_version (cv .__version__ ) >= opencv_python_version ("4.10.0" ), \
13
14
"Please install latest opencv-python for benchmark: python3 -m pip install --upgrade opencv-python"
14
15
15
16
# Valid combinations of backends and targets
Original file line number Diff line number Diff line change 1
1
cmake_minimum_required (VERSION 3.24.0)
2
2
project (opencv_zoo_face_detection_yunet)
3
3
4
- set (OPENCV_VERSION "4.9 .0" )
4
+ set (OPENCV_VERSION "4.10 .0" )
5
5
set (OPENCV_INSTALLATION_PATH "" CACHE PATH "Where to look for OpenCV installation" )
6
6
7
7
# Find OpenCV
Original file line number Diff line number Diff line change 9
9
import numpy as np
10
10
import cv2 as cv
11
11
12
- from yunet import YuNet
13
-
14
12
# Check OpenCV version
15
- assert cv .__version__ >= "4.9.0" , \
16
- "Please install latest opencv-python to try this demo: python3 -m pip install --upgrade opencv-python"
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 yunet import YuNet
17
18
18
19
# Valid combinations of backends and targets
19
20
backend_target_pairs = [
Original file line number Diff line number Diff line change 10
10
import numpy as np
11
11
import cv2 as cv
12
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
+
13
18
from sface import SFace
14
19
15
20
sys .path .append ('../face_detection_yunet' )
16
21
from yunet import YuNet
17
22
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
23
# Valid combinations of backends and targets
23
24
backend_target_pairs = [
24
25
[cv .dnn .DNN_BACKEND_OPENCV , cv .dnn .DNN_TARGET_CPU ],
Original file line number Diff line number Diff line change @@ -4,7 +4,7 @@ set(project_name "opencv_zoo_face_expression_recognition")
4
4
5
5
PROJECT (${project_name} )
6
6
7
- set (OPENCV_VERSION "4.9 .0" )
7
+ set (OPENCV_VERSION "4.10 .0" )
8
8
set (OPENCV_INSTALLATION_PATH "" CACHE PATH "Where to look for OpenCV installation" )
9
9
find_package (OpenCV ${OPENCV_VERSION} REQUIRED HINTS ${OPENCV_INSTALLATION_PATH} )
10
10
# Find OpenCV, you may need to set OpenCV_DIR variable
Original file line number Diff line number Diff line change 6
6
import numpy as np
7
7
import cv2 as cv
8
8
9
+ # Check OpenCV version
10
+ opencv_python_version = lambda str_version : tuple (map (int , (str_version .split ("." ))))
11
+ assert opencv_python_version (cv .__version__ ) >= opencv_python_version ("4.10.0" ), \
12
+ "Please install latest opencv-python for benchmark: python3 -m pip install --upgrade opencv-python"
13
+
9
14
from facial_fer_model import FacialExpressionRecog
10
15
11
16
sys .path .append ('../face_detection_yunet' )
12
17
from yunet import YuNet
13
18
14
- # Check OpenCV version
15
- assert cv .__version__ >= "4.9.0" , \
16
- "Please install latest opencv-python to try this demo: python3 -m pip install --upgrade opencv-python"
17
-
18
19
# Valid combinations of backends and targets
19
20
backend_target_pairs = [
20
21
[cv .dnn .DNN_BACKEND_OPENCV , cv .dnn .DNN_TARGET_CPU ],
Original file line number Diff line number Diff line change 4
4
import numpy as np
5
5
import cv2 as cv
6
6
7
+ # Check OpenCV version
8
+ opencv_python_version = lambda str_version : tuple (map (int , (str_version .split ("." ))))
9
+ assert opencv_python_version (cv .__version__ ) >= opencv_python_version ("4.10.0" ), \
10
+ "Please install latest opencv-python for benchmark: python3 -m pip install --upgrade opencv-python"
11
+
7
12
from mp_handpose import MPHandPose
8
13
9
14
sys .path .append ('../palm_detection_mediapipe' )
10
15
from mp_palmdet import MPPalmDet
11
16
12
- # Check OpenCV version
13
- assert cv .__version__ >= "4.9.0" , \
14
- "Please install latest opencv-python to try this demo: python3 -m pip install --upgrade opencv-python"
15
-
16
17
# Valid combinations of backends and targets
17
18
backend_target_pairs = [
18
19
[cv .dnn .DNN_BACKEND_OPENCV , cv .dnn .DNN_TARGET_CPU ],
Original file line number Diff line number Diff line change @@ -4,7 +4,7 @@ set(project_name "opencv_zoo_human_segmentation")
4
4
5
5
PROJECT (${project_name} )
6
6
7
- set (OPENCV_VERSION "4.9 .0" )
7
+ set (OPENCV_VERSION "4.10 .0" )
8
8
set (OPENCV_INSTALLATION_PATH "" CACHE PATH "Where to look for OpenCV installation" )
9
9
find_package (OpenCV ${OPENCV_VERSION} REQUIRED HINTS ${OPENCV_INSTALLATION_PATH} )
10
10
# Find OpenCV, you may need to set OpenCV_DIR variable
Original file line number Diff line number Diff line change 9
9
import numpy as np
10
10
import cv2 as cv
11
11
12
- from pphumanseg import PPHumanSeg
13
-
14
12
# Check OpenCV version
15
- assert cv .__version__ >= "4.9.0" , \
16
- "Please install latest opencv-python to try this demo: python3 -m pip install --upgrade opencv-python"
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 pphumanseg import PPHumanSeg
17
18
18
19
# Valid combinations of backends and targets
19
20
backend_target_pairs = [
Original file line number Diff line number Diff line change @@ -3,7 +3,7 @@ set(project_name "opencv_zoo_image_classification_mobilenet")
3
3
4
4
PROJECT (${project_name} )
5
5
6
- set (OPENCV_VERSION "4.9 .0" )
6
+ set (OPENCV_VERSION "4.10 .0" )
7
7
set (OPENCV_INSTALLATION_PATH "" CACHE PATH "Where to look for OpenCV installation" )
8
8
find_package (OpenCV ${OPENCV_VERSION} REQUIRED HINTS ${OPENCV_INSTALLATION_PATH} )
9
9
# Find OpenCV, you may need to set OpenCV_DIR variable
Original file line number Diff line number Diff line change 3
3
import numpy as np
4
4
import cv2 as cv
5
5
6
- from mobilenet import MobileNet
7
-
8
6
# Check OpenCV version
9
- assert cv .__version__ >= "4.9.0" , \
10
- "Please install latest opencv-python to try this demo: python3 -m pip install --upgrade opencv-python"
7
+ opencv_python_version = lambda str_version : tuple (map (int , (str_version .split ("." ))))
8
+ assert opencv_python_version (cv .__version__ ) >= opencv_python_version ("4.10.0" ), \
9
+ "Please install latest opencv-python for benchmark: python3 -m pip install --upgrade opencv-python"
10
+
11
+ from mobilenet import MobileNet
11
12
12
13
# Valid combinations of backends and targets
13
14
backend_target_pairs = [
Original file line number Diff line number Diff line change @@ -3,7 +3,7 @@ set(project_name "opencv_zoo_image_classification_ppresnet")
3
3
4
4
PROJECT (${project_name} )
5
5
6
- set (OPENCV_VERSION "4.9 .0" )
6
+ set (OPENCV_VERSION "4.10 .0" )
7
7
set (OPENCV_INSTALLATION_PATH "" CACHE PATH "Where to look for OpenCV installation" )
8
8
find_package (OpenCV ${OPENCV_VERSION} REQUIRED HINTS ${OPENCV_INSTALLATION_PATH} )
9
9
# Find OpenCV, you may need to set OpenCV_DIR variable
Original file line number Diff line number Diff line change 9
9
import numpy as np
10
10
import cv2 as cv
11
11
12
- from ppresnet import PPResNet
13
-
14
12
# Check OpenCV version
15
- assert cv .__version__ >= "4.9.0" , \
16
- "Please install latest opencv-python to try this demo: python3 -m pip install --upgrade opencv-python"
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 ppresnet import PPResNet
17
18
18
19
# Valid combinations of backends and targets
19
20
backend_target_pairs = [
Original file line number Diff line number Diff line change 4
4
from efficientSAM import EfficientSAM
5
5
6
6
# Check OpenCV version
7
- assert cv .__version__ >= "4.10.0" , \
8
- "Please install latest opencv-python to try this demo: python3 -m pip install --upgrade opencv-python"
7
+ opencv_python_version = lambda str_version : tuple (map (int , (str_version .split ("." ))))
8
+ assert opencv_python_version (cv .__version__ ) >= opencv_python_version ("4.10.0" ), \
9
+ "Please install latest opencv-python for benchmark: python3 -m pip install --upgrade opencv-python"
9
10
10
11
# Valid combinations of backends and targets
11
12
backend_target_pairs = [
Original file line number Diff line number Diff line change 3
3
import numpy as np
4
4
import cv2 as cv
5
5
6
- from lpd_yunet import LPD_YuNet
7
-
8
6
# Check OpenCV version
9
- assert cv .__version__ >= "4.9.0" , \
10
- "Please install latest opencv-python to try this demo: python3 -m pip install --upgrade opencv-python"
7
+ opencv_python_version = lambda str_version : tuple (map (int , (str_version .split ("." ))))
8
+ assert opencv_python_version (cv .__version__ ) >= opencv_python_version ("4.10.0" ), \
9
+ "Please install latest opencv-python for benchmark: python3 -m pip install --upgrade opencv-python"
10
+
11
+ from lpd_yunet import LPD_YuNet
11
12
12
13
# Valid combinations of backends and targets
13
14
backend_target_pairs = [
Original file line number Diff line number Diff line change @@ -3,7 +3,7 @@ set(project_name "opencv_zoo_object_detection_nanodet")
3
3
4
4
PROJECT (${project_name} )
5
5
6
- set (OPENCV_VERSION "4.9 .0" )
6
+ set (OPENCV_VERSION "4.10 .0" )
7
7
set (OPENCV_INSTALLATION_PATH "" CACHE PATH "Where to look for OpenCV installation" )
8
8
find_package (OpenCV ${OPENCV_VERSION} REQUIRED HINTS ${OPENCV_INSTALLATION_PATH} )
9
9
# Find OpenCV, you may need to set OpenCV_DIR variable
Original file line number Diff line number Diff line change 2
2
import cv2 as cv
3
3
import argparse
4
4
5
- from nanodet import NanoDet
6
-
7
5
# Check OpenCV version
8
- assert cv .__version__ >= "4.9.0" , \
9
- "Please install latest opencv-python to try this demo: python3 -m pip install --upgrade opencv-python"
6
+ opencv_python_version = lambda str_version : tuple (map (int , (str_version .split ("." ))))
7
+ assert opencv_python_version (cv .__version__ ) >= opencv_python_version ("4.10.0" ), \
8
+ "Please install latest opencv-python for benchmark: python3 -m pip install --upgrade opencv-python"
9
+
10
+ from nanodet import NanoDet
10
11
11
12
# Valid combinations of backends and targets
12
13
backend_target_pairs = [
Original file line number Diff line number Diff line change @@ -3,7 +3,7 @@ set(project_name "opencv_zoo_object_detection_yolox")
3
3
4
4
PROJECT (${project_name} )
5
5
6
- set (OPENCV_VERSION "4.9 .0" )
6
+ set (OPENCV_VERSION "4.10 .0" )
7
7
set (OPENCV_INSTALLATION_PATH "" CACHE PATH "Where to look for OpenCV installation" )
8
8
find_package (OpenCV ${OPENCV_VERSION} REQUIRED HINTS ${OPENCV_INSTALLATION_PATH} )
9
9
# Find OpenCV, you may need to set OpenCV_DIR variable
Original file line number Diff line number Diff line change 2
2
import cv2 as cv
3
3
import argparse
4
4
5
- from yolox import YoloX
6
-
7
5
# Check OpenCV version
8
- assert cv .__version__ >= "4.9.0" , \
9
- "Please install latest opencv-python to try this demo: python3 -m pip install --upgrade opencv-python"
6
+ opencv_python_version = lambda str_version : tuple (map (int , (str_version .split ("." ))))
7
+ assert opencv_python_version (cv .__version__ ) >= opencv_python_version ("4.10.0" ), \
8
+ "Please install latest opencv-python for benchmark: python3 -m pip install --upgrade opencv-python"
9
+
10
+ from yolox import YoloX
10
11
11
12
# Valid combinations of backends and targets
12
13
backend_target_pairs = [
Original file line number Diff line number Diff line change @@ -3,7 +3,7 @@ set(project_name "opencv_zoo_object_tracking_vittrack")
3
3
4
4
PROJECT (${project_name} )
5
5
6
- set (OPENCV_VERSION "4.9 .0" )
6
+ set (OPENCV_VERSION "4.10 .0" )
7
7
set (OPENCV_INSTALLATION_PATH "" CACHE PATH "Where to look for OpenCV installation" )
8
8
find_package (OpenCV ${OPENCV_VERSION} REQUIRED HINTS ${OPENCV_INSTALLATION_PATH} )
9
9
# Find OpenCV, you may need to set OpenCV_DIR variable
Original file line number Diff line number Diff line change 6
6
import numpy as np
7
7
import cv2 as cv
8
8
9
- from vittrack import VitTrack
10
-
11
9
# Check OpenCV version
12
- assert cv .__version__ >= "4.9.0" , \
13
- "Please install latest opencv-python to try this demo: python3 -m pip install --upgrade opencv-python"
10
+ opencv_python_version = lambda str_version : tuple (map (int , (str_version .split ("." ))))
11
+ assert opencv_python_version (cv .__version__ ) >= opencv_python_version ("4.10.0" ), \
12
+ "Please install latest opencv-python for benchmark: python3 -m pip install --upgrade opencv-python"
13
+
14
+ from vittrack import VitTrack
14
15
15
16
# Valid combinations of backends and targets
16
17
backend_target_pairs = [
Original file line number Diff line number Diff line change 3
3
import cv2 as cv
4
4
import numpy as np
5
5
6
- from raft import Raft
7
-
8
6
# Check OpenCV version
9
- assert cv .__version__ >= "4.9.0" , \
10
- "Please install latest opencv-python to try this demo: python3 -m pip install --upgrade opencv-python"
7
+ opencv_python_version = lambda str_version : tuple (map (int , (str_version .split ("." ))))
8
+ assert opencv_python_version (cv .__version__ ) >= opencv_python_version ("4.10.0" ), \
9
+ "Please install latest opencv-python for benchmark: python3 -m pip install --upgrade opencv-python"
10
+
11
+ from raft import Raft
11
12
12
13
parser = argparse .ArgumentParser (description = 'RAFT (https://github.com/princeton-vl/RAFT)' )
13
14
parser .add_argument ('--input1' , '-i1' , type = str ,
Original file line number Diff line number Diff line change 3
3
import numpy as np
4
4
import cv2 as cv
5
5
6
- from mp_palmdet import MPPalmDet
7
-
8
6
# Check OpenCV version
9
- assert cv .__version__ >= "4.9.0" , \
10
- "Please install latest opencv-python to try this demo: python3 -m pip install --upgrade opencv-python"
7
+ opencv_python_version = lambda str_version : tuple (map (int , (str_version .split ("." ))))
8
+ assert opencv_python_version (cv .__version__ ) >= opencv_python_version ("4.10.0" ), \
9
+ "Please install latest opencv-python for benchmark: python3 -m pip install --upgrade opencv-python"
10
+
11
+ from mp_palmdet import MPPalmDet
11
12
12
13
# Valid combinations of backends and targets
13
14
backend_target_pairs = [
Original file line number Diff line number Diff line change @@ -3,7 +3,7 @@ set(project_name "opencv_zoo_person_detection_mediapipe")
3
3
4
4
PROJECT (${project_name} )
5
5
6
- set (OPENCV_VERSION "4.9 .0" )
6
+ set (OPENCV_VERSION "4.10 .0" )
7
7
set (OPENCV_INSTALLATION_PATH "" CACHE PATH "Where to look for OpenCV installation" )
8
8
find_package (OpenCV ${OPENCV_VERSION} REQUIRED HINTS ${OPENCV_INSTALLATION_PATH} )
9
9
# Find OpenCV, you may need to set OpenCV_DIR variable
Original file line number Diff line number Diff line change 3
3
import numpy as np
4
4
import cv2 as cv
5
5
6
- from mp_persondet import MPPersonDet
7
-
8
6
# Check OpenCV version
9
- assert cv .__version__ >= "4.9.0" , \
10
- "Please install latest opencv-python to try this demo: python3 -m pip install --upgrade opencv-python"
7
+ opencv_python_version = lambda str_version : tuple (map (int , (str_version .split ("." ))))
8
+ assert opencv_python_version (cv .__version__ ) >= opencv_python_version ("4.10.0" ), \
9
+ "Please install latest opencv-python for benchmark: python3 -m pip install --upgrade opencv-python"
10
+
11
+ from mp_persondet import MPPersonDet
11
12
12
13
# Valid combinations of backends and targets
13
14
backend_target_pairs = [
Original file line number Diff line number Diff line change 10
10
import numpy as np
11
11
import cv2 as cv
12
12
13
- from youtureid import YoutuReID
14
-
15
13
# Check OpenCV version
16
- assert cv .__version__ >= "4.9.0" , \
17
- "Please install latest opencv-python to try this demo: python3 -m pip install --upgrade opencv-python"
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 youtureid import YoutuReID
18
19
19
20
# Valid combinations of backends and targets
20
21
backend_target_pairs = [
Original file line number Diff line number Diff line change @@ -3,7 +3,7 @@ set(project_name "opencv_zoo_pose_estimation_mediapipe")
3
3
4
4
PROJECT (${project_name} )
5
5
6
- set (OPENCV_VERSION "4.9 .0" )
6
+ set (OPENCV_VERSION "4.10 .0" )
7
7
set (OPENCV_INSTALLATION_PATH "" CACHE PATH "Where to look for OpenCV installation" )
8
8
find_package (OpenCV ${OPENCV_VERSION} REQUIRED HINTS ${OPENCV_INSTALLATION_PATH} )
9
9
# Find OpenCV, you may need to set OpenCV_DIR variable
0 commit comments