CameraPulse is a security monitoring system that leverages computer vision to ensure vigilance by detecting the presence of a person, the use of a phone, and camera tampering. It generates alerts based on defined conditions and stores them in a local database. Another script processes these alerts, uploads images to an FTP server, and sends data to an API.
- Person Detection: Alerts if no person is detected in the camera for
x
seconds. - Phone Detection: Alerts if a phone is detected for more than
y
seconds. - Camera Tampering Detection: Alerts if the camera is tampered with.
- Local Database Storage: Stores all alerts in a local database.
- FTP Upload: Uploads images stored locally to an FTP server.
- API Integration: Sends the data from the database to an API.
- Python 3.x
- Required Python packages (listed in
requirements.txt
)
- Clone the repository:
git clone https://github.com/Sparsh57/VigilanceMonitor.git
- Navigate to the project directory:
cd VigilanceMonitor
- Install the required packages:
pip install -r requirements.txt
-
Running the Monitoring Script:
python Person_cell_optimized_2.py
This script starts the monitoring process and generates alerts based on the defined conditions.
-
Uploading to FTP and Sending Data to API:
python database_update.py
This script reads the local database, uploads images to the FTP server, and sends the data to the API.
- Ensure the configuration settings for the camera, FTP server, and API are correctly set in the respective configuration files.
Contributions are welcome! Follow these steps to contribute:
- Fork the repository.
- Create a new branch:
git checkout -b feature-branch
- Commit your changes:
git commit -m 'Add new feature'
- Push to the branch:
git push origin feature-branch
- Create a new Pull Request.
This project is licensed under the MIT License. See the LICENSE file for details.
For any questions or issues, please open an issue on GitHub or contact Sparsh57.