项目
在 GitHub 查看
NakulLakhotia/Live-Streaming-using-OpenCV-Flask
关于
A Flask Web-App to stream live from local webcam or CCTV (rtsp link)
网站与应用开发实测星标增长
- 24小时
- 0
- 7天
- 0
- 15天
- 0
- 1个月
- 正在收集历史
各周期内的星标净变化,周期相互重叠,并非每日新增。缺失的测量保持空白。星标代表关注度,不代表软件质量。
README.md
原文Live-Streaming-using-OpenCV-Flask
A Flask Web-App to stream live from local webcam or CCTV (rtsp link)
Use Built-in Webcam of Laptop
Put Zero (O) in cv2.VideoCapture(0)
cv2.VideoCapture(0)
Use Ip Camera/CCTV/RTSP Link
cv2.VideoCapture('rtsp://username:password@camera_ip_address:554/user=username_password='password'_channel=channel_number_stream=0.sdp')
Example RTSP Link
cv2.VideoCapture('rtsp://mamun:[email protected]:554/user=mamun_password=123456_channel=0_stream=0.sdp')
Change Channel Number to Change the Camera
cv2.VideoCapture('rtsp://mamun:[email protected]:554/user=mamun_password=123456_channel=1_stream=0.sdp')
Display the resulting frame in browser
cv2.imencode('.jpg', frame)[1].tobytes()
Or this one
net , buffer = cv2.imencode('.jpg', frame)
buffer.tobytes()
Reference
探索相关项目
加载中…