Skip to main content

Meta AI' Segment Anything Model (SAM) for Geospatial Data

Project description

segment-geospatial

image image image image image

A Python package for segmenting geospatial data with the Segment Anything Model (SAM)

The segment-geospatial package draws its inspiration from segment-anything-eo repository authored by Aliaksandr Hancharenka. To facilitate the use of the Segment Anything Model (SAM) for geospatial data, I have developed the segment-anything-py and segment-geospatial Python packages, which are now available on PyPI and conda-forge. My primary objective is to simplify the process of leveraging SAM for geospatial data analysis by enabling users to achieve this with minimal coding effort. I have adapted the source code of segment-geospatial from the segment-anything-eo repository, and credit for its original version goes to Aliaksandr Hancharenka.

Features

  • Download map tiles from Tile Map Service (TMS) servers and create GeoTIFF files
  • Segment GeoTIFF files using the Segment Anything Model (SAM)
  • Save segmentation results as common vector formats (GeoPackage, Shapefile, GeoJSON, etc.)
  • Visualize segmentation results on interactive maps

Examples

Demos

  • Automatic mask generator

Acknowledgements

This package was made possible by the following open source projects. Credit goes to the developers of these projects.

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

segment-geospatial-0.4.0.tar.gz (19.6 kB view details)

Uploaded Source

Built Distribution

segment_geospatial-0.4.0-py2.py3-none-any.whl (19.2 kB view details)

Uploaded Python 2 Python 3

File details

Details for the file segment-geospatial-0.4.0.tar.gz.

File metadata

  • Download URL: segment-geospatial-0.4.0.tar.gz
  • Upload date:
  • Size: 19.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.11.3

File hashes

Hashes for segment-geospatial-0.4.0.tar.gz
Algorithm Hash digest
SHA256 2ce499b2193e213fc9fe81a75a89d47d6857425729d85a979403b02e94d35d79
MD5 1a5ef4e372d1405ccbe4ebcee6b84ce4
BLAKE2b-256 2457efad5d3926626160247a10b5df7ea2d85fd6c9abf1a4c24362a8ddf248de

See more details on using hashes here.

File details

Details for the file segment_geospatial-0.4.0-py2.py3-none-any.whl.

File metadata

File hashes

Hashes for segment_geospatial-0.4.0-py2.py3-none-any.whl
Algorithm Hash digest
SHA256 fb07b43242233e20728feea80ba20338f44cc6f996d3830ffd01a6862596794a
MD5 89210bc19fe96ae15abda66ccfa9dcc3
BLAKE2b-256 a29122e9d7fcbd219261dd0094959cea503baa808bb30bcea44fbbe98e9a0afa

See more details on using hashes here.

Supported by

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