camerartsp / app.py
Mauricio Guerta
Adiciona camera awake
784d811
raw
history blame
365 Bytes
#### 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)