Skip to content

Ready to deploy project that allows user to turn any camera into a security camera.

Notifications You must be signed in to change notification settings

Astroisback/Security-Camera

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

26 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Real-Time Camera Streaming, Face Detection, and Video Recording with Flask

This project demonstrates real-time camera streaming, face detection, and video recording using Flask. It utilizes OpenCV to capture video frames from the camera, detect faces, and record videos when faces are detected. Flask is used to serve the video stream over a web interface.

Prerequisites

  • Python 3.x
  • OpenCV
  • Flask

Installation

  1. Clone this repository: git clone https://github.com/Astroisback/Security-Camera/

  2. Install the required dependencies: pip install opencv-python Flask

Usage

  1. Run the 'app.py' file.

  2. Open a web browser and navigate to http://localhost:5000/ to view the live camera stream. Note- If you wish to access the stream from internet not limited to your wifi. You can use port forwarding feature on VScode. This has nothing to do with opeing port on your router so you aee safe! You may start a pull request, I'll help you do it.

Features

  • Real-time camera streaming over a web interface.
  • Date, time, and seconds displayed on the video stream.
  • Face detection with bounding boxes around detected faces.
  • Automatic screenshot capture of detected faces, saved in the "detected_faces" folder.
  • Video recording when faces are detected, with recordings saved in the "recordings" folder.
  • Adjustable frame rate for streaming and recording.
  • Recording duration can be set (default is 10 seconds after the last face detection).
  • Listen to Audio from the camera (In development)

Folder Structure

  • detected_faces: Contains screenshots of detected faces.
  • recordings: Contains recorded video files when faces are detected.

Contributing and Feature request.

Contributions are welcome! Feel free to open an issue or submit a pull request. I'm constantly looking to add new feature but i need your suggestion, I'm blank what to add next.

Currently this project is on hold.

About

Ready to deploy project that allows user to turn any camera into a security camera.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published