amadeuszsz / splines_generator

Drawing splines on image and save coordinates to json

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Splines Generator

Simple splines generator. Application allows to draw a splines with a given image as a background and save all consecutive points to json file. Output file contains list with size (m, n, d), where

  • m - num of splines,
  • n - num of points for a single spline (default 128, use --points arg to modify)
  • d - spline dimension, equals 2, (x, y) order

Installation

git clone https://github.com/amadeuszsz/splines_generator
cd splines_generator
pip3 install -r requirements.txt

Usage

Splines generator

  • Check possible args
python3 splines_generator.py --help 
  • Run splines generator
python3 splines_generator --filepath /path/to/images/file.jpg 

OR

python3 splines_generator --filepath /path/to/images/directory 

See command output for app instructions.

Splines comparator

  • Check possible args
python3 splines_comparator.py --help 
  • Run splines comparator
python3 splines_comparator --filepath /path/to/images/directory --ground-truth-splines /path/to/ground_truth/json/directory --test-splines /path/to/test/json/directory

See command output for app instructions.

About

Drawing splines on image and save coordinates to json

License:Apache License 2.0


Languages

Language:Python 100.0%