Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Flask REST API for interfacing with convolutional neural network based satellite image classification model

License

NotificationsYou must be signed in to change notification settings

conlamon/satellite-classification-flask-api

Repository files navigation

Basic Overview

A Python and Flask based REST API that serves a Keras/TensorFlow Convolutional Neural Network (CNN) modeltrained to classify satellite image tiles into 17 different possible labels.This API currently interfaces with aReact and Leaflet front-end.

Site

How It Works

When the user clicks on an area selected on the map, a POST request, containing the center latitude/longitude coordinatefor the area selected, is sent to the REST API. The API then searches a PostgreSQL database for the file location of a satellite image tilecontaining the selected area. This image is then processed, in real time, through a Keras/TensorFlow ResNet50model. This model makes a multilabel classification over 17 different labels returning a score between 0 and 1 for each label.The resultant scores are filtered based on a cutoff value, and then returned as JSON to the front-end.

Data

The model was trained using the publicdatasetfromPlanet that was part of their Kaggle competition in 2017.This dataset consisted of ~42,000 image tiles of the amazon rainforest, all labeled.The main labels that appear in the current implementation are defined as the following:

LabelDescription
No CloudsNo clouds in the image
PrimaryA segment of dense tree cover
HabitationAny human homes or buildings
AgricultureAny area of agriculture
RoadAny road within the image
WaterRiver or Lake

There are many more labels which can be foundhere.

Model Choice

AResNet architecture was chosen for the CNN due to it'sfast inference time, good accuracy and smaller model size. See thispaperfor a comparison on all of these traits for the most common CNN architectures.

About

Flask REST API for interfacing with convolutional neural network based satellite image classification model

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

[8]ページ先頭

©2009-2025 Movatter.jp