Skip to main content

Python package to integrate image pyramids and raster/vector algorithms for computer vision at Port of Barcelona. Allows text, bounding box and point-based segmentation based on SAMGeo and GroundingDINO. Please refer to the homepage https://victorpachecoaznar.github.io/TFG/

Project description

TFG

This repository hosts the code for my Bachelors' thesis in Geoinfomation and Geomatics Engineering. The project has been tutored by Port de Barcelona and Universitat Politècnica de Catalunya.

Please refer to the homepage of the project:

🏡 https://victorpachecoaznar.github.io/TFG/

About this package

The goal of APB_spatial_computer_vision is to provide a framework to perform computer vision tasks on geospatial imagery. Its focus is semantic segmentation, mainly though SAM. The logic can be accessed in several points:

  • Through text, to perform image to bbox tasks via Grounding DINO.
  • Through bounding box, to perform SAM and achieve segmentation.
  • Throgh a lower resolution vector dataset coming from another model, in an attempt to improve segmentation.

Tools

  • 🦆 The program leverages Spatial-SQL DuckDB queries for precise vector operations
  • ⚡ Image pyramids have been optimized via concurrency to GDAL-warping
  • 📷 Integration of virtual layers through GDAL to SAMGeo
  • 📄 MKDocs for automated docs+ jupyter visualization

Instructions

The entry points of the system are the following environment variables:

  • TEXT_PROMPT: a string with the prompt to look for via Grounding DINO
  • VECTOR_DATASET: a vector dataset
  • DATA_DIR: location of the data
  • BASE_DIR: where this package is located, acessible for deployments
  • NAME_ORTOFOTO: basename for the image to be processed

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

apb_spatial_computer_vision-1.0.0.tar.gz (42.1 kB view details)

Uploaded Source

Built Distribution

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

apb_spatial_computer_vision-1.0.0-py3-none-any.whl (50.2 kB view details)

Uploaded Python 3

File details

Details for the file apb_spatial_computer_vision-1.0.0.tar.gz.

File metadata

File hashes

Hashes for apb_spatial_computer_vision-1.0.0.tar.gz
Algorithm Hash digest
SHA256 66577f6af213c36ab6315b8beb5cb439693cdab11370e78f067b3b42c02783fc
MD5 4d19ea4be06278bcd6304e837a23a0ac
BLAKE2b-256 558ac0a013bdaec87a91b7edb19fd74c2d08440675bd1050c846e607c645c0a3

See more details on using hashes here.

File details

Details for the file apb_spatial_computer_vision-1.0.0-py3-none-any.whl.

File metadata

File hashes

Hashes for apb_spatial_computer_vision-1.0.0-py3-none-any.whl
Algorithm Hash digest
SHA256 7a428d461a297d1189fe8136637e42e900e8b33ebb1e22ff8b1e9f7fa053aacb
MD5 dbdb5e111add7f151187939fdaf446f6
BLAKE2b-256 bf37ac45d5bbba09e6a024500bd6df9e86902f899c17f58e714c429320fcf52a

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