【文件属性】:
文件名称:firstaitest:视频AI测试
文件大小:3KB
文件格式:ZIP
更新时间:2021-04-03 21:05:08
Python
使用OpenCV Flask进行实时流式传输
Flask Web应用程序可从本地网络摄像头或CCTV实时流式传输(rtsp链接)
使用笔记本电脑的内置网络摄像头
将零(O)放入cv2.VideoCapture(0)
cv2.VideoCapture(0)
使用IP摄像机/ CCTV / RTSP链接
cv2.VideoCapture('rtsp://username:password@camera_ip_address:554/user=username_password='password'_channel=channel_number_stream=0.sdp')
RTSP链接示例
cv2.VideoCapture('rtsp://mamun:123456@101.134.16.117:554/user=mamun_password=123456_channel=0_stream
【文件预览】:
firstaitest-main
----app.py(1KB)
----README.md(968B)
----templates()
--------index.html(760B)
----requirments.txt(2KB)