{"id":23057520,"url":"https://github.com/jerinpious/motion-security-camera","last_synced_at":"2025-04-03T06:13:12.492Z","repository":{"id":198986652,"uuid":"701942584","full_name":"jerinpious/Motion-Security-Camera","owner":"jerinpious","description":"This project will use the device's front camera to use it as a security camera using OpenCV and python, when an object is detected in the feed the device will give out an alarm","archived":false,"fork":false,"pushed_at":"2023-10-10T02:39:45.000Z","size":5,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-02-08T19:45:19.016Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/jerinpious.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":"securitycam.py","support":null,"governance":null}},"created_at":"2023-10-08T03:00:15.000Z","updated_at":"2023-10-08T03:18:52.000Z","dependencies_parsed_at":null,"dependency_job_id":"13519c6f-7f98-4d16-910d-0380ebb245a6","html_url":"https://github.com/jerinpious/Motion-Security-Camera","commit_stats":null,"previous_names":["jerinpious/motion-security-camera"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jerinpious%2FMotion-Security-Camera","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jerinpious%2FMotion-Security-Camera/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jerinpious%2FMotion-Security-Camera/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jerinpious%2FMotion-Security-Camera/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/jerinpious","download_url":"https://codeload.github.com/jerinpious/Motion-Security-Camera/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":246944389,"owners_count":20858773,"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":[],"created_at":"2024-12-16T02:12:39.177Z","updated_at":"2025-04-03T06:13:12.455Z","avatar_url":"https://github.com/jerinpious.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Webcam Motion Detection\n\nThis Python script captures video from your webcam and detects motion in real-time using OpenCV. When motion is detected, it saves a snapshot and produces a beep sound.\n\n## Prerequisites\n\nBefore running the script, ensure you have the following installed:\n\n- Python\n- OpenCV (`opencv-python` package)\n- `winsound` (usually comes with Python)\n\nYou can install OpenCV via pip:\npip install opencv-python\n\n\n## Usage\n\n1. Clone this repository to your local machine:\n\n\n\n2. Navigate to the project directory:\n\ncd webcam-motion-detection\n\n3. Run the script:\n\npython motion_detection.py\n\n\n4. Press the `Esc` key to exit the application.\n\n## How it Works\n\n- The script captures video from your default webcam (`VideoCapture(0)`).\n- It continuously compares two consecutive frames to detect differences.\n- If the difference surpasses a certain threshold, it is considered motion.\n- The detected motion is outlined with a bounding box and saved as 'motion.png.'\n- A beep sound is played when motion is detected.\n\n## Customization\n\nYou can customize the motion detection parameters (such as the threshold and contour area) by modifying the script variables:\n\n- `THRESHOLD`: Adjust the value to control the sensitivity of motion detection.\n- `MIN_CONTOUR_AREA`: Set the minimum contour area to consider as motion.\n\n## Contributing\n\nContributions are welcome! Feel free to fork this repository, make improvements, and submit a pull request.\n\n## License\n\nThis project is licensed under the MIT License.\n\n## Acknowledgments\n\n- Thanks to the OpenCV and Python communities for their contributions.\n\n---\n\n*This README template is for educational purposes and can be customized for your specific project.*\n\n\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjerinpious%2Fmotion-security-camera","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fjerinpious%2Fmotion-security-camera","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjerinpious%2Fmotion-security-camera/lists"}