Skip to content

Commit 9fca6ab

Browse files
committed
Moved cv2 import after dlib import
1 parent 756626d commit 9fca6ab

3 files changed

Lines changed: 5 additions & 3 deletions

File tree

src/cli/add.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,6 @@
77
import json
88
import configparser
99
import builtins
10-
import cv2
1110
import numpy as np
1211
from recorders.video_capture import VideoCapture
1312

@@ -22,6 +21,9 @@
2221
print("pip3 show dlib")
2322
sys.exit(1)
2423

24+
# OpenCV needs to be imported after dlib
25+
import cv2
26+
2527
# Get the absolute path to the current directory
2628
path = os.path.abspath(__file__ + "/..")
2729

src/cli/test.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,8 @@
55
import os
66
import sys
77
import time
8-
import cv2
98
import dlib
9+
import cv2
1010
from recorders.video_capture import VideoCapture
1111

1212
# Get the absolute path to the current file

src/compare.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,8 +14,8 @@
1414
import os
1515
import json
1616
import configparser
17-
import cv2
1817
import dlib
18+
import cv2
1919
import datetime
2020
import snapshot
2121
import numpy as np

0 commit comments

Comments
 (0)