Skip to main content

Detect deforestation on area over a given period of time

Project description

Forest Guard CLI

Check our website for documentation and more info - https://forestguardian.ru/. Forest Guard CLI using Click framework.

About

Our goal is to look for deforestation area and track them in time period on satellite images. For example:

We tried to use unsupervised and supervised learning on this problem and got two best algorithms:

  1. K-Means
  2. U-Net model

Of course we are taking information from date of photos (It takes a long time for a forest to grow back). The main problem are clouds and "even human can't be 100% sure if this pixel is forest or deforestation".

example

Data

We download data from Sentinel Hub (https://www.sentinel-hub.com). We work only with L1C and L2A satellites. You need API token for this.

Preparation

Use venv!

  • Install requirements using this command:
pip install -r requirements/dev.txt
  • Wake the setup.py up:
pip install .

This will give you the opportunity to use fguard.

Usage

  • Add credentials to a programm:
fguard config [–f “path/to/config/settings.toml”] | [--id “YOUR_ID” --token “YOUR_TOKEN”]
  • Request:
fguard request [–f “path/to/config/settings.toml”] | [-c  c1 c2 c3 c4 -t t1 t2] “output/folder” {-s "size" –d "detector" --isolate}

This will save images in output folder. Also saves json files of all events (new, add, merge).

  • Erase cache, config file, etc:
fguard delete [--cache] | [--config] | [--model]
  • To use net detector you need to download model:
fguard net --update

It can be also used to update model (we still train it).

For more info check our website - https://forestguardian.ru/.

Example of toml settings file

  • config-settings-example.toml
[config]
id = ""
token = ""
  • request-settings-example.toml
coordinates = [ 42.65614, 59.58242, 42.73579, 5952529 ]
time = [ "2017.12.01", "2023.02.28" ]

Some images on what program gives as a result

example example example

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

fguard-1.2.0.tar.gz (26.3 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

fguard-1.2.0-py3-none-any.whl (26.9 kB view details)

Uploaded Python 3

File details

Details for the file fguard-1.2.0.tar.gz.

File metadata

  • Download URL: fguard-1.2.0.tar.gz
  • Upload date:
  • Size: 26.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.1.0 CPython/3.11.4

File hashes

Hashes for fguard-1.2.0.tar.gz
Algorithm Hash digest
SHA256 57f65217598978c7ec4e3a3a42ccd625185bf90e64a76c6d4f88522d87decdca
MD5 540b9d197de4812ddef792618a51e888
BLAKE2b-256 380273b02194d00c210bf1c67353e1b200f5995fe678878dbc1e4666e448268f

See more details on using hashes here.

File details

Details for the file fguard-1.2.0-py3-none-any.whl.

File metadata

  • Download URL: fguard-1.2.0-py3-none-any.whl
  • Upload date:
  • Size: 26.9 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.1.0 CPython/3.11.4

File hashes

Hashes for fguard-1.2.0-py3-none-any.whl
Algorithm Hash digest
SHA256 1d01f3c1a9a8748389debd64df75ec5ce12fc5bc41c19ba199722ccd94aad1af
MD5 8b37133bc896e79a5cba8a45e1b44341
BLAKE2b-256 440d20475aed47577a7a337630d7eefdb10bffcf96965f478372cfa5e223e83c

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page