Update app.py
Browse files
app.py
CHANGED
@@ -45,10 +45,10 @@ def chamada():
|
|
45 |
#exec=True
|
46 |
# st.write("ffmpeg separando imagens")
|
47 |
#if not os.path.isfile("./_input/imagem-0001.png"):
|
48 |
-
|
49 |
-
|
50 |
-
|
51 |
-
|
52 |
# get vcap property
|
53 |
width = vcap.get(cv2.cv.CV_CAP_PROP_FRAME_WIDTH) # float `width`
|
54 |
height = vcap.get(cv2.cv.CV_CAP_PROP_FRAME_HEIGHT) # float `height`
|
|
|
45 |
#exec=True
|
46 |
# st.write("ffmpeg separando imagens")
|
47 |
#if not os.path.isfile("./_input/imagem-0001.png"):
|
48 |
+
vcap = cv2.VideoCapture('inputvideo') # 0=camera
|
49 |
+
width=0
|
50 |
+
height=0
|
51 |
+
if vcap.isOpened():
|
52 |
# get vcap property
|
53 |
width = vcap.get(cv2.cv.CV_CAP_PROP_FRAME_WIDTH) # float `width`
|
54 |
height = vcap.get(cv2.cv.CV_CAP_PROP_FRAME_HEIGHT) # float `height`
|