Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Live Streaming and Face Detection with Flask in Browser

License

NotificationsYou must be signed in to change notification settings

akmamun/live-stream-face-detection

Repository files navigation

pipinstall-rrequirements.txt

Run Server

pythonapp.py

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:123456@101.134.16.117:554/user=mamun_password=123456_channel=0_stream=0.sdp')

Change Channel Number to Change the Camera

cv2.VideoCapture('rtsp://mamun:123456@101.134.16.117:554/user=mamun_password=123456_channel=1_stream=0.sdp')

Display the resulting frame in browser

cv2.imencode('.jpg',frame)[1].tobytes()

Display the resulting frame in window

Instead of return use this incamera.py

cv2.imshow('frame',frame)ifcv2.waitKey(1)&0xFF==ord('q'):break

Learn More

Learn More about Streaming with flask

Releases

No releases published

Packages

No packages published

Contributors2

  •  
  •  

[8]ページ先頭

©2009-2025 Movatter.jp