Extracting the motive out of a wax stamp seal. Creates shapes out of contours and scores them according to
- their size (~65% of wax size and ~99% most likely)
- how close to the middle they are
- how even their rotations are
- symmetry of underlying thresholded image
- density (meaning relation between pixels of the underlying thresholded image to full shape size)
and interprets the shape with the highest score as the motive.
Part of the Coding Da Vinci Niedersachsen 2020 Hackathon, we scan images of seals and produce 3D object out of them.
You need Python version >= 3.8
pip install -e . -r requirements.txt
For development, after clone, run:
pip install -e . -r requirements.txt
Options are:
usage: sealExtraction.py [-h] -o OUTPUT INPUT
positional arguments:
INPUT input file
optional arguments:
-h, --help show this help message and exit
-o OUTPUT, --output OUTPUT
output file
You may need to add 'python3' beforehand depending on your machine's settings. Aka python3 sealExtraction.py ...
.