Spaces:
Sleeping
Sleeping
Commit
·
784119e
1
Parent(s):
6bbba28
Update main.py
Browse files
main.py
CHANGED
@@ -21,6 +21,9 @@ def create_database():
|
|
21 |
db.create_all()
|
22 |
|
23 |
|
|
|
|
|
|
|
24 |
def draw_faces(im, bboxes):
|
25 |
for bbox in bboxes:
|
26 |
x0, y0, x1, y1 = [int(_) for _ in bbox]
|
@@ -59,8 +62,6 @@ def video_feed():
|
|
59 |
if vidcap is None:
|
60 |
return jsonify({'error': 'Error decoding video file'})
|
61 |
|
62 |
-
create_database()
|
63 |
-
|
64 |
success, image = vidcap.read()
|
65 |
|
66 |
while success:
|
|
|
21 |
db.create_all()
|
22 |
|
23 |
|
24 |
+
create_database()
|
25 |
+
|
26 |
+
|
27 |
def draw_faces(im, bboxes):
|
28 |
for bbox in bboxes:
|
29 |
x0, y0, x1, y1 = [int(_) for _ in bbox]
|
|
|
62 |
if vidcap is None:
|
63 |
return jsonify({'error': 'Error decoding video file'})
|
64 |
|
|
|
|
|
65 |
success, image = vidcap.read()
|
66 |
|
67 |
while success:
|