Mauricio Guerta commited on
Commit
4fc187b
·
1 Parent(s): a18f289

Uma camera apenas

Browse files
Files changed (1) hide show
  1. app.py +4 -3
app.py CHANGED
@@ -6,8 +6,9 @@ import streamlit as st
6
  ### CONNECT TO CAMERA
7
 
8
  capture = [1,2,3,4,5,6,7,8]
9
- ip = '177.94.213.14' #'67.159.226.218'
10
- for x in range(4):
 
11
  #capture[x] = cv2.VideoCapture('rtsp://atualli:Atualli22@'+ip+':1024/Streaming/channels/'+str(x+1)+'02/?transportmode=unicast')
12
  capture[x] = cv2.VideoCapture('rtsp://'+ip+':554/user=atualli&password=Ope1w3r&channel='+str(x+1)+'&stream=0.sdp')
13
 
@@ -16,7 +17,7 @@ pic = [st.empty(),st.empty(),st.empty(),st.empty(),st.empty(),st.empty(),st.empt
16
  col1 = st.columns(4)
17
 
18
  while True:
19
- for i in range(4):
20
  x, frame = capture[i].read()
21
  frame = cv2.cvtColor(frame, cv2.COLOR_BGR2RGB)
22
  pic[i].image(frame)
 
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
  capture[x] = cv2.VideoCapture('rtsp://'+ip+':554/user=atualli&password=Ope1w3r&channel='+str(x+1)+'&stream=0.sdp')
14
 
 
17
  col1 = st.columns(4)
18
 
19
  while True:
20
+ for i in range(1):
21
  x, frame = capture[i].read()
22
  frame = cv2.cvtColor(frame, cv2.COLOR_BGR2RGB)
23
  pic[i].image(frame)