Safety Cam is a project developed by the Artificial Intelligence Club (AI Club) at Michigan State University (MSU). The goal of this project is to develop a camera capable of detecting dangers using camera visuals and sound detection.
The Safety Cam uses a combination of computer vision and sound detection algorithms to identify potentially dangerous situations. The camera captures live footage and processes it in real-time using various computer vision techniques such as object detection and tracking. At the same time, the camera also analyzes the sound in the environment and identifies sounds and speeches that potentially signify dangers. If the camera detects a dangerous situation, it alerts the user through a mobile app and sends an emergency alert to predefined contacts.
To get started with the Safety Cam, you will need the following:
- A computer with a camera and microphone
- Python 3.10 or later installed
- Git
To set up the Safety Cam, follow the steps below:
- Clone the Safety Cam repository to your computer using the following command:
git clone https://github.com/MSU-AI/safety-camera.git
- Install the required dependencies by running the following command in the Safety Cam directory:
pip install -r requirements.txt
- Start the Safety Cam by running:
cd app/
streamlit run main.py
- The Safety Cam web app will open in your default web browser.
- Click on the "Start" button to start the camera stream.
- The camera will start capturing footage and processing it in real-time.
- If the Safety Cam detects a potentially dangerous situation, it will display an alert on the screen.
- To stop the camera stream, click on the "Stop Stream" button.
We welcome contributions to the Safety Cam project. If you would like to contribute, please follow the steps below:
- Set up a virtual environment named
env
:
python -m venv env
- Activate the virtual environment. On Windows, run:
env\Scripts\activate
On Linux or macOS, run:
source env/bin/activate
- Install the required dependencies by running the following command in the Safety Cam directory:
pip install -r requirements.txt
- Install
safetycam
as a local editable package:
pip install -e .
The Safety Cam project is licensed under the MIT License. See the LICENSE file for more information.