Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/lucs1590/eucalyptus-count
🌲🧮 Eucalyptus counting using artisanal methods and computer vision.
https://github.com/lucs1590/eucalyptus-count
computer-vision countours-opencv cv eucalyptus handcrafted handcrafted-features image-processing open-source opencv opencv-python tree-count
Last synced: 3 days ago
JSON representation
🌲🧮 Eucalyptus counting using artisanal methods and computer vision.
- Host: GitHub
- URL: https://github.com/lucs1590/eucalyptus-count
- Owner: Lucs1590
- Created: 2023-09-19T15:41:37.000Z (over 1 year ago)
- Default Branch: main
- Last Pushed: 2023-09-25T19:38:03.000Z (over 1 year ago)
- Last Synced: 2024-11-13T18:50:54.602Z (2 months ago)
- Topics: computer-vision, countours-opencv, cv, eucalyptus, handcrafted, handcrafted-features, image-processing, open-source, opencv, opencv-python, tree-count
- Language: Python
- Homepage:
- Size: 19.3 MB
- Stars: 2
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Eucalyptus Count
This project is made to count the number of eucalyptus trees in a given image.
To do it, basically the steps are:
1. Read the image
2. Convert it to HSV color space
3. Get the intersection between upper and lower bounds mapped to trackbars
4. Apply a Gaussian blur to the image
5. Detect the contours of the image
6. Draw the contours on the imageDoing it you will get the number of eucalyptus trees in the terminal.
The green contours are the ones that were detected as eucalyptus following the determined rules.
The red contours are the ones that didn't follow the rules.An example of the result is shown below:
![Detections](https://raw.githubusercontent.com/Lucs1590/eucalyptus-count/main/images/detections.jpeg)
## How to run
To run the project, you need to have Python 3 installed on your machine. Then, you need to install the needed libraries. To do it, run the following command:
```bash
pip install -r requirements.txt
```After that, you can run the project with the following command:
```bash
python src/trackbar_new.py
```If you want to understand how the code works, you can check the [trackbar_new.py](src/trackbar_new.py) file. But if you want to see a simpler version of color detection, you can check the [highlight_color.py](src/highlight_color.py) file.