File size: 365 Bytes
52d2ec6
8d3c246
 
929496a
 
8d3c246
 
784d811
8d3c246
 
784d811
 
 
d05fe89
8d3c246
784d811
8d3c246
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
#### IMPORT #####
import cv2
import time
import streamlit as st

### CONNECT TO CAMERA 

capture = cv2.VideoCapture('rtsp://atualli:[email protected]:1024/Streaming/channels/102/?transportmode=unicast')


pic = st.empty()

while True:
    x, frame = capture.read()
    frame = cv2.cvtColor(frame, cv2.COLOR_BGR2RGB)
    pic.image(frame)
    time.sleep(0.025)