Skip to content

hunger-cp/img2cp

Repository files navigation

Python


IMG2CP

Table of Contents
    About The Project
  1. Getting Started
  2. Roadmap
  3. Contact
  4. Acknowledgments

About

Currently identifies 2 starting reference folds given .png/.jpg images of M/V crease patterns.

Image of Web App

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/

(back to top)

Getting Started

To get started, clone the repository

git clone https://github/hunger-cp/img2cp

Prerequisites

Please use pip to install all required packages:

  • pip3
    pip3 install requirements.txt

(back to top)

Roadmap

  • 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).

(back to top)

Contact

Clint Wang - @txst54 - wang1024x768@gmail.com

Project Link: https://github.com/hunger-cp/img2cp

(back to top)

Acknowledgments

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

(back to top)

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published