프로젝트
GitHub에서 보기
NakulLakhotia/Live-Streaming-using-OpenCV-Flask
소개
A Flask Web-App to stream live from local webcam or CCTV (rtsp link)
웹 및 앱 개발측정된 스타 증가
- in 24h
- 0
- in 7 days
- 0
- in 15 days
- 0
- in 1 month
- 기록 수집 중
서로 겹치는 기간의 순증가량이며 일별 합계가 아닙니다. 측정값이 없으면 비워 둡니다. 스타는 관심도를 나타내며 품질을 보장하지 않습니다.
README.md
OriginalLive-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
관련 프로젝트 살펴보기
불러오는 중…