renatotn7 commited on
Commit
4b9ee7c
·
1 Parent(s): 2d26079

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +4 -4
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
- 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`
 
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`