Mauricio Guerta commited on
Commit
9ea67a5
·
1 Parent(s): fa1602a

Adiciona teste local

Browse files
Files changed (1) hide show
  1. app.py +2 -1
app.py CHANGED
@@ -25,7 +25,8 @@ while True:
25
  frame = cv2.cvtColor(frame, cv2.COLOR_BGR2RGB)
26
  pic[i].image(frame)
27
  else:
28
- strrtsp = 'rtsp://'+ip+':554/user=atualli&password=Ope1w3r&channel='+str(i+1)+'&stream=0.sdp'
 
29
  capture[i] = cv2.VideoCapture(strrtsp)
30
  print ("reconectando... frame invalido "+strrtsp)
31
  time.sleep(0.025)
 
25
  frame = cv2.cvtColor(frame, cv2.COLOR_BGR2RGB)
26
  pic[i].image(frame)
27
  else:
28
+ # strrtsp = 'rtsp://'+ip+':554/user=atualli&password=Ope1w3r&channel='+str(i+1)+'&stream=0.sdp'
29
+ strrtsp = "teste.mp4"
30
  capture[i] = cv2.VideoCapture(strrtsp)
31
  print ("reconectando... frame invalido "+strrtsp)
32
  time.sleep(0.025)