{"id":28254059,"url":"https://github.com/leo-aa88/py-security-camera","last_synced_at":"2026-04-27T16:31:06.567Z","repository":{"id":125834468,"uuid":"419020633","full_name":"leo-aa88/py-security-camera","owner":"leo-aa88","description":"A simple security camera written in Python which starts recording when a face is detected and warns the user by e-mail.","archived":false,"fork":false,"pushed_at":"2021-10-19T17:42:52.000Z","size":23,"stargazers_count":2,"open_issues_count":0,"forks_count":1,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-08-03T10:13:26.931Z","etag":null,"topics":["opencv","opencv-python","opencv2","opencv2-python","security-cam","security-camera","security-camera-python"],"latest_commit_sha":null,"homepage":"","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"gpl-3.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/leo-aa88.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":"2021-10-19T17:11:54.000Z","updated_at":"2023-06-08T20:46:10.000Z","dependencies_parsed_at":null,"dependency_job_id":"df1a57fd-adaf-42f6-adb6-a110b50de095","html_url":"https://github.com/leo-aa88/py-security-camera","commit_stats":null,"previous_names":["gotz1480/py-security-camera","leo-aa88/py-security-camera","araujo88/py-security-camera"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/leo-aa88/py-security-camera","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/leo-aa88%2Fpy-security-camera","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/leo-aa88%2Fpy-security-camera/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/leo-aa88%2Fpy-security-camera/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/leo-aa88%2Fpy-security-camera/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/leo-aa88","download_url":"https://codeload.github.com/leo-aa88/py-security-camera/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/leo-aa88%2Fpy-security-camera/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":32297893,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-26T09:34:17.070Z","status":"ssl_error","status_checked_at":"2026-04-26T09:34:00.993Z","response_time":129,"last_error":"SSL_read: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"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":["opencv","opencv-python","opencv2","opencv2-python","security-cam","security-camera","security-camera-python"],"created_at":"2025-05-19T18:19:33.622Z","updated_at":"2026-04-27T16:31:06.560Z","avatar_url":"https://github.com/leo-aa88.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# py-security-camera\nA simple security camera written in Python which starts recording when a face is detected and warns the user by e-mail using the Python library OpenCV.\n\n## Installation and settings\nInstall requirements:\n  - ```pip install -r requirements.txt``` (Windows)\n  - ```pip3 install -r requirements.txt``` (Linux/macOS)\n\nConfigure settings:\n  - Set ```EMAIL_USER``` and ```EMAIL_PASSWORD``` as system variables\n  - Substitute ```sender@email.com```, ```recipient@email.com``` and ```smtp.email.com``` in the ```py-security-camera.py``` file with your sender and destinatary e-mails and your e-mail provider. Make sure to use SMTPS (secured SMTP).\n\n## Usage\nRun the program with:\n - ```python py-security-camera.py``` (Windows)\n - ```python3 py-security-camera.py``` (Linux/macOS)\n\n When the program is running, the webcam is turned on and cannot be used by other applications. It starts recording whenever a face is detected by the camera and sends an e-mail warning to the preconfigured e-mail setting. \n \n It stops recording 5 seconds after no face is being detected on screen. This 5 seconds setting can be modified by altering the variable ```SECONDS_TO_RECORD_AFTER_DETECTION```.\n \n The application can be exited by pressing ```q```.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fleo-aa88%2Fpy-security-camera","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fleo-aa88%2Fpy-security-camera","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fleo-aa88%2Fpy-security-camera/lists"}