Giter VIP home page Giter VIP logo

dog-poop-detector-yolov5's Introduction

Dog Poop Detector using YOLOv5

Python 3.9

Features

  • Live detect when dog pooped
    • Play alert sound
    • Send notification via Pushbullet
      • Attach detection image in notification
  • Deployable to Raspberry Pi

Installation

This project uses Poetry for package management. If you don't have Poetry installed, you can install it using the following command:

pip install poetry wheel

Once you have Poetry installed, you can install the project dependencies using the following steps:

  1. Clone the repository:
git clone https://github.com/dennislwy/dog-poop-detector-yolov5.git
  1. Navigate to the project directory:
cd dog-poop-detector-yolov5
  1. Install the project dependencies:
poetry config --local virtualenvs.in-project true
poetry install --only main -v

This will install all the dependencies listed in the pyproject.toml file.

Now, you should be able to run the project. For example, to start live detection with an RTSP stream, you can use the following command:

python live.py --weights best.pt --view-img --nosave --notify-img --source rtsp://your_rtsp_url

Live Detection

RTSP Stream

python live.py --weights best.pt --view-img --nosave --notify-img --source rtsp://your_rtsp_url

Testing with MP4 video

python live.py --weights best.pt --view-img --nosave --no-notify --source dataset/tests/test1.mp4

Sample Detection 1

alt text

Sample Detection 2

alt text

Use yolov5 CLI

Inference

yolov5 detect --conf-thres 0.7 --line-thickness 2 --view-img --weights best.pt --source dataset/tests/test1.mp4

dog-poop-detector-yolov5's People

Contributors

dennislwy avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.