Skip to content

deepaks11/TresPass_StoreGuard

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

TresPass_StoreGuard

TresPassGuard is a real-time security system designed for retail environments, particularly gold stores. It uses advanced object detection, line-crossing detection, and alert mechanisms to notify store owners of unauthorized movements. TresPassGuard supports multiple RTSP cameras for comprehensive surveillance.

Features

  • Object Detection: Utilizes YOLOv8 for accurate person detection.
  • Line-Crossing Detection: Detects when a person crosses a predefined boundary using Shapely for intersection detection.
  • Real-Time Alerts: Triggers an alarm to alert the shop owner of a potential trespasser.
  • Visualization: Uses OpenCV to display detected objects and crossing events on the camera feed.

Components

  • YOLOv8: For object detection.
  • Shapely: For geometric operations to detect line crossings.
  • Supervision: To manage and process detection events.
  • OpenCV: For image processing and visualization.

Requirements

Installation

  1. Clone the repository:

    git clone https://github.com/deepaks11/TresPass_StoreGuard
    cd TresPass_StoreGuard
  2. Set Up Conda Environment conda create --name (env name) python=3.10 conda activate intent-identification

  3. Install Dependencies pip install -r requirements.txt

  4. Run the Project python rtsp_stream.py

Usage

  1. Configure the detection zone: Edit the script to set up the boundary line coordinates according to your store layout.

  2. Run the script:

    python rtsp_stream.py
  3. The system will start detecting people and trigger an alert if someone crosses the predefined line.

Example

Here's an example of how the system detects and alerts on trespassing:

TresPassGuard Example

Author

Deepak.s

Contributing

We welcome contributions to enhance TresPassGuard. If you have any ideas or improvements, please open an issue or submit a pull request.

License

This project is licensed under the MIT License. See the LICENSE file for more details.

Acknowledgements

  • Thanks to the developers of YOLOv8, Shapely, Supervision, and OpenCV for their excellent tools.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages