https://github.com/sampreets3/treecounter-ml
A simple application that detects and counts the number of trees in a vineyard. Makes use of darknet and OpenCV.
https://github.com/sampreets3/treecounter-ml
darknet deep-learning opencv opencv-python yolov3
Last synced: about 2 months ago
JSON representation
A simple application that detects and counts the number of trees in a vineyard. Makes use of darknet and OpenCV.
- Host: GitHub
- URL: https://github.com/sampreets3/treecounter-ml
- Owner: sampreets3
- License: gpl-3.0
- Created: 2021-02-01T23:27:12.000Z (over 4 years ago)
- Default Branch: main
- Last Pushed: 2022-01-02T19:27:16.000Z (over 3 years ago)
- Last Synced: 2025-04-30T21:07:48.840Z (about 2 months ago)
- Topics: darknet, deep-learning, opencv, opencv-python, yolov3
- Language: Python
- Homepage:
- Size: 145 MB
- Stars: 7
- Watchers: 3
- Forks: 2
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# treecounter-ML
A simple application that detects and counts the number of trees in a vineyard. Makes use of [darknet](https://pjreddie.com/darknet/) and [OpenCV](https://opencv.org/).
![]()
---
## Setup
- Clone the repository onto your local machine : `git clone https://github.com/sampreets3/treecounter-ML`
- Create the **videos** and **models** directories :
```
$ mkdir models
$ mkdir videos
```
- Add the video in the `videos` directory.
- Add the model-specific data in the `models` directory
- Run the detector :
```sh
python3 test.py -iv imgs/input-video.mp4 -ov result.mp4
```
---### Common Problems:
- [](https://shields.io/) **Gtk-Message: Failed to load module "canberra-gtk-module" :** You can fix the issue by installing the gtk and gtk3 modules `sudo apt install libcanberra-gtk-module libcanberra-gtk3-module`
### Maintainer Information
Sampreet Sarkar `[email protected]`