Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/victorqribeiro/deforestation

A machine learning exercise, using KNN to classify deforested areas
https://github.com/victorqribeiro/deforestation

image-analysis image-classification image-processing image-recognition knn machine-learning

Last synced: 3 months ago
JSON representation

A machine learning exercise, using KNN to classify deforested areas

Awesome Lists containing this project

README

        

# Deforestation

That time I used [KNN](https://en.wikipedia.org/wiki/K-nearest_neighbors_algorithm) to classify deforested areas for my machine learning class.

![Result](result.png)

## About

This project was developed as an assignment for a machine learning class, where we were given a pictures from the Amazon forest and we should write a machine learning algorithm to identify possibles deforested areas, including farming areas.

I then gather some training data, generated a histogram for every image and analysed the final image with a simple KNN (k=7) I wrote.

I was very happy with the results I got given the little code I wrote (this project is from 2017).

## How to run

```
python classify.py img/final_image.png
```