mirror of
https://github.com/boltgolt/howdy.git
synced 2024-09-19 09:51:19 +02:00
Moved cv2 import after dlib import
This commit is contained in:
parent
756626db7b
commit
9fca6ab837
3 changed files with 5 additions and 3 deletions
|
@ -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__ + "/..")
|
||||
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue