Skip to content
プロジェクト

NakulLakhotia/Live-Streaming-using-OpenCV-Flask

GitHubで見る

概要

A Flask Web-App to stream live from local webcam or CCTV (rtsp link)

Web・アプリ開発

この数値の測り方

計測したスター増加

24時間
0
7日間
0
15日間
0
1か月
履歴を収集中

期間ごとの純増数です。期間は重複しており、日別の値ではありません。未計測の値は空欄です。スター数は注目度の指標であり、品質の保証ではありません。

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

関連プロジェクトを探す

読み込み中…