Spaces:
Running
Running
abrar-adnan
commited on
Commit
•
a52b576
1
Parent(s):
35d42b9
Update app.py
Browse files
app.py
CHANGED
@@ -4,11 +4,12 @@ import cv2
|
|
4 |
import face_recognition
|
5 |
from fastai.vision.all import load_learner
|
6 |
import time
|
|
|
7 |
|
8 |
model = load_learner("gaze-recognizer-v1.pkl")
|
9 |
|
10 |
def video_processing(video):
|
11 |
-
print(video)
|
12 |
start_time = time.time()
|
13 |
# Loop through the frames of the video
|
14 |
video_capture = cv2.VideoCapture(video)
|
|
|
4 |
import face_recognition
|
5 |
from fastai.vision.all import load_learner
|
6 |
import time
|
7 |
+
import chardet
|
8 |
|
9 |
model = load_learner("gaze-recognizer-v1.pkl")
|
10 |
|
11 |
def video_processing(video):
|
12 |
+
print('video encoding done into = ' + chardet.detect(video)['encoding'])
|
13 |
start_time = time.time()
|
14 |
# Loop through the frames of the video
|
15 |
video_capture = cv2.VideoCapture(video)
|