Skip to main content

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

Installation

In order to install this package, please download the yaml file in order to create the environment:

  • ✅ If CUDA is available:

    conda env create -f environment_cuda.yaml
    conda activate sam_apb_env
    pip install apb_spatial_computer_vision
    
  • ❌ If CUDA is not available:

    conda env create -f environment_cpu.yaml
    conda activate sam_apb_env
    pip install apb_spatial_computer_vision
    

Metadata

Release files for apb-spatial-computer-vision 1.1.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for apb-spatial-computer-vision 1.1.0
File Size Uploaded Provenance Actions
apb_spatial_computer_vision-1.1.0.tar.gz 42.4 kB Without provenance Details for apb_spatial_computer_vision-1.1.0.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for apb-spatial-computer-vision 1.1.0
File Interpreter ABI Platform Actions
apb_spatial_computer_vision-1.1.0-py3-none-any.whl Python 3 none any Details for apb_spatial_computer_vision-1.1.0-py3-none-any.whl

Total release size: 92.7 kB

Release files / apb_spatial_computer_vision-1.1.0.tar.gz

Download URL apb_spatial_computer_vision-1.1.0.tar.gz
Size 42.4 kB
Tags Source
SHA-256 checksum
How to use checksums
3e2fabb5a1e4a6e9e843d04df38875d45bc7a5ad6d8d467138f3a8898e63586f
BLAKE2b-256 checksum
How to use checksums
d12c46f256bf8e459c8fea1f82871cc28eda23563ab76411768132a69328f911
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.1.0 CPython/3.13.5

Release files / apb_spatial_computer_vision-1.1.0-py3-none-any.whl

Download URL apb_spatial_computer_vision-1.1.0-py3-none-any.whl
Size 50.3 kB
Tags Python 3
SHA-256 checksum
How to use checksums
dddbfcc227f14857d355d338e1fbd6e7daa162f2ceb5e701dadbf3c293b34057
BLAKE2b-256 checksum
How to use checksums
599e5e6ff35caede4c6ea5512b72c5fcca5c255276544d5ae51d4b3bf46e9cea
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.1.0 CPython/3.13.5

Security for apb-spatial-computer-vision 1.1.0

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Release history Release notifications | RSS feed

This release

1.1.0 This release

2 release files No provenance

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page