A package for extracting vector prints from raster image
Project description
Raster 2 Polyon
Extracting vector polygons from raster images
Installation
pip install raster2polygon
Example :
from raster2polygon import polygonize
polygonize("data/masks_v2/4", "labels.geojson")
Args :
input_path: Path of the directory where the image files are stored.
output_path: Path of the output file.
remove_inputs: Clears the input image after geojson is produced
simplify_tolerance : the simplification accuracy as max. percentage of the arc length, in [0, 1] , Percentage Tolerance= ( Tolerance in Meters / Arc Length in Meters)×100
merging_distance_threshold : Minimum distance to define adjacent polygons, in meters , default 0.5 m
area_threshold (float, optional): Threshold for filtering polygon areas. Defaults to 1 sqm.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
raster2polygon-0.0.1.tar.gz
(8.6 kB
view details)
File details
Details for the file raster2polygon-0.0.1.tar.gz
.
File metadata
- Download URL: raster2polygon-0.0.1.tar.gz
- Upload date:
- Size: 8.6 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.10.9
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 63f1541c9cd7eb5a86f78f37fd72118ed775397217e8ff672b695c41f6133252 |
|
MD5 | b14ee695984ad8b02d58a2000a42da24 |
|
BLAKE2b-256 | 1102649d3ff1794e65194fb9f7a92411d43d2bb448dee8b3dbff22540eaf580f |