Update prediction.py
Browse files- prediction.py +4 -5
prediction.py
CHANGED
@@ -11,7 +11,6 @@ from imutils.video import VideoStream
|
|
11 |
from imutils.video import FPS
|
12 |
from centroidtracker import CentroidTracker
|
13 |
from trackableobject import TrackableObject
|
14 |
-
# import base64
|
15 |
|
16 |
|
17 |
class smartcities:
|
@@ -29,7 +28,7 @@ class smartcities:
|
|
29 |
PATH_OUTPUT = "/tmp/video_out.mp4"
|
30 |
|
31 |
# Cuántos frames vamos a saltarnos (Durante estos frames nuestro algoritmo de seguimiento funciona)
|
32 |
-
SKIP_FPS =
|
33 |
|
34 |
# Cuál será el umbral mínimo par que se considere una detección
|
35 |
TRESHOLD = 0.5
|
@@ -197,7 +196,7 @@ class smartcities:
|
|
197 |
writer.release()
|
198 |
vs.release()
|
199 |
|
200 |
-
|
201 |
-
|
202 |
|
203 |
-
return
|
|
|
11 |
from imutils.video import FPS
|
12 |
from centroidtracker import CentroidTracker
|
13 |
from trackableobject import TrackableObject
|
|
|
14 |
|
15 |
|
16 |
class smartcities:
|
|
|
28 |
PATH_OUTPUT = "/tmp/video_out.mp4"
|
29 |
|
30 |
# Cuántos frames vamos a saltarnos (Durante estos frames nuestro algoritmo de seguimiento funciona)
|
31 |
+
SKIP_FPS = 15
|
32 |
|
33 |
# Cuál será el umbral mínimo par que se considere una detección
|
34 |
TRESHOLD = 0.5
|
|
|
196 |
writer.release()
|
197 |
vs.release()
|
198 |
|
199 |
+
video = open(PATH_OUTPUT, "rb")
|
200 |
+
video_read = video.read()
|
201 |
|
202 |
+
return video_read
|