0
0
Fork 0
mirror of https://github.com/boltgolt/howdy.git synced 2024-09-12 09:41:18 +02:00

Moved cv2 import after dlib import

This commit is contained in:
boltgolt 2020-09-02 17:14:05 +02:00
parent 756626db7b
commit 9fca6ab837
No known key found for this signature in database
GPG key ID: BECEC9937E1AAE26
3 changed files with 5 additions and 3 deletions

View file

@ -7,7 +7,6 @@ import sys
import json
import configparser
import builtins
import cv2
import numpy as np
from recorders.video_capture import VideoCapture
@ -22,6 +21,9 @@ except ImportError as err:
print("pip3 show dlib")
sys.exit(1)
# OpenCV needs to be imported after dlib
import cv2
# Get the absolute path to the current directory
path = os.path.abspath(__file__ + "/..")

View file

@ -5,8 +5,8 @@ import configparser
import os
import sys
import time
import cv2
import dlib
import cv2
from recorders.video_capture import VideoCapture
# Get the absolute path to the current file

View file

@ -14,8 +14,8 @@ import sys
import os
import json
import configparser
import cv2
import dlib
import cv2
import datetime
import snapshot
import numpy as np