Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/kshitijrajsharma/raster2polygon
Extracting vector polygons from raster images
https://github.com/kshitijrajsharma/raster2polygon
Last synced: 24 days ago
JSON representation
Extracting vector polygons from raster images
- Host: GitHub
- URL: https://github.com/kshitijrajsharma/raster2polygon
- Owner: kshitijrajsharma
- License: other
- Created: 2023-09-21T07:49:22.000Z (about 1 year ago)
- Default Branch: master
- Last Pushed: 2023-09-21T09:12:27.000Z (about 1 year ago)
- Last Synced: 2024-09-10T22:59:56.789Z (about 2 months ago)
- Language: Python
- Homepage:
- Size: 12.7 KB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
## Raster 2 Polyon
Extracting vector polygons from raster images
### Installation
```
pip install raster2polygon
```### Example :
```python
from raster2polygon import polygonizepolygonize("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.
```