Table of Contents
Currently identifies 2 starting reference folds given .png
/.jpg
images of M/V crease patterns.
Frontend code can be found at https://github.com/hunger-cp/img2cp-frontend
A demo of this program can be found on https://colab.research.google.com/drive/1zbKQMQm-CBQU1WjXgZEqbIYEnOUe-WI-?usp=sharing
Goal: Convert .png
/.jpg
images of M/V crease patterns into common cp file formats.
Pipeline:
- Detect corners as possible vertices in crease pattern
- Connect the possible vertices to yield a
.cp
file - Refine vertice locations to generate a near flatfoldable crease pattern
Test crease patterns are stored in images/
To get started, clone the repository
git clone https://github/hunger-cp/img2cp
Please use pip to install all required packages:
- pip3
pip3 install requirements.txt
- Corner detection
- Remove false positives
- Search for lines
- Correct vertice placement
- Export
- .cp
- .fold
- .opx
See the open issues for a full list of proposed features (and known issues).
Clint Wang - @txst54 - wang1024x768@gmail.com
Project Link: https://github.com/hunger-cp/img2cp
README:
Thank you to the following contributers:
Starting Reference Finder uses Kamiya's References: https://www.folders.jp/reference/reference.html
Crease Patterns in Examples folder taken from:
- raiden_shogun.webp - Chen Xiao
- switzerland.webp - Kei Morisue