{"id":15321946,"url":"https://github.com/akmamun/live-stream-face-detection","last_synced_at":"2025-03-05T22:16:23.353Z","repository":{"id":43208899,"uuid":"154185996","full_name":"akmamun/live-stream-face-detection","owner":"akmamun","description":"Live Streaming and Face Detection with Flask in Browser ","archived":false,"fork":false,"pushed_at":"2024-08-30T23:52:32.000Z","size":115,"stargazers_count":82,"open_issues_count":3,"forks_count":36,"subscribers_count":6,"default_branch":"master","last_synced_at":"2025-02-26T21:11:44.040Z","etag":null,"topics":["camera-feed","camera-stream","face-detection","flask","ip-camera","live-streaming","open-cv","python","rtsp","rtsp-stream","stream-api","streaming","video-streaming","web-frame","webcam-streaming"],"latest_commit_sha":null,"homepage":"","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/akmamun.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2018-10-22T17:25:27.000Z","updated_at":"2025-01-05T02:49:57.000Z","dependencies_parsed_at":"2024-10-31T04:03:14.705Z","dependency_job_id":null,"html_url":"https://github.com/akmamun/live-stream-face-detection","commit_stats":{"total_commits":16,"total_committers":2,"mean_commits":8.0,"dds":0.125,"last_synced_commit":"358331620eed3e97085e15b6d5bc41a719ecc74b"},"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/akmamun%2Flive-stream-face-detection","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/akmamun%2Flive-stream-face-detection/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/akmamun%2Flive-stream-face-detection/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/akmamun%2Flive-stream-face-detection/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/akmamun","download_url":"https://codeload.github.com/akmamun/live-stream-face-detection/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":242109872,"owners_count":20073271,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["camera-feed","camera-stream","face-detection","flask","ip-camera","live-streaming","open-cv","python","rtsp","rtsp-stream","stream-api","streaming","video-streaming","web-frame","webcam-streaming"],"created_at":"2024-10-01T09:13:42.978Z","updated_at":"2025-03-05T22:16:23.311Z","avatar_url":"https://github.com/akmamun.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"## Live Streaming and Face Detection with Flask\n\n```python\npip install -r requirements.txt\n```\n\n### Run Server\n\n```python\npython app.py\n```\n\n### Use Built-in Webcam of Laptop\n- Put Zero (O) in cv2.VideoCapture(0)\n```python\ncv2.VideoCapture(0)\n```\n\n#### Use Ip Camera/CCTV/RTSP Link\n\n```python\ncv2.VideoCapture('rtsp://username:password@camera_ip_address:554/user=username_password='password'_channel=channel_number_stream=0.sdp')\n```\n\n#### Example RTSP Link\n\n```python\ncv2.VideoCapture('rtsp://mamun:123456@101.134.16.117:554/user=mamun_password=123456_channel=0_stream=0.sdp')\n```\n\n#### Change Channel Number to Change the Camera\n\n```python\ncv2.VideoCapture('rtsp://mamun:123456@101.134.16.117:554/user=mamun_password=123456_channel=1_stream=0.sdp')\n```\n\n#### Display the resulting frame in browser\n\n```python\ncv2.imencode('.jpg', frame)[1].tobytes()\n```\n\n#### Display the resulting frame in window\n\n#### Instead of return use this in [camera.py](/camera.py)\n\n```python\ncv2.imshow('frame', frame)\nif cv2.waitKey(1) \u0026 0xFF == ord('q'):\n       break\n```\n\n### Learn More\n\nLearn More about Streaming with flask\n\n- https://blog.miguelgrinberg.com/post/video-streaming-with-flask\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fakmamun%2Flive-stream-face-detection","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fakmamun%2Flive-stream-face-detection","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fakmamun%2Flive-stream-face-detection/lists"}