Mauricio Guerta commited on
Commit
3d547bb
·
1 Parent(s): 63a9038

Uma camera apenas 2

Browse files
Files changed (1) hide show
  1. app.py +3 -2
app.py CHANGED
@@ -4,14 +4,15 @@ import time
4
  import streamlit as st
5
 
6
  ### CONNECT TO CAMERA
7
-
 
8
  capture = [1,2,3,4,5,6,7,8]
9
  ip = '177.94.213.14'
10
  #ip = '192.168.0.131'
11
  for x in range(1):
12
  #capture[x] = cv2.VideoCapture('rtsp://atualli:Atualli22@'+ip+':1024/Streaming/channels/'+str(x+1)+'02/?transportmode=unicast')
13
  strrtsp = 'rtsp://'+ip+':554/user=atualli&password=Ope1w3r&channel='+str(x+1)+'&stream=0.sdp'
14
- capture[x] = cv2.VideoCapture(strrtsp)
15
  print (strrtsp)
16
 
17
  pic = [st.empty(),st.empty(),st.empty(),st.empty(),st.empty(),st.empty(),st.empty(),st.empty()]
 
4
  import streamlit as st
5
 
6
  ### CONNECT TO CAMERA
7
+ # rtsp://177.94.213.14:554/user=atualli&password=Ope1w3r&channel=2&stream=0.sdp
8
+
9
  capture = [1,2,3,4,5,6,7,8]
10
  ip = '177.94.213.14'
11
  #ip = '192.168.0.131'
12
  for x in range(1):
13
  #capture[x] = cv2.VideoCapture('rtsp://atualli:Atualli22@'+ip+':1024/Streaming/channels/'+str(x+1)+'02/?transportmode=unicast')
14
  strrtsp = 'rtsp://'+ip+':554/user=atualli&password=Ope1w3r&channel='+str(x+1)+'&stream=0.sdp'
15
+ capture[x] = cv2.VideoCapture(0) # cv2.VideoCapture(strrtsp)
16
  print (strrtsp)
17
 
18
  pic = [st.empty(),st.empty(),st.empty(),st.empty(),st.empty(),st.empty(),st.empty(),st.empty()]