Skip to content

A path-finding algorithm that returns a path to draw a portrait in one stroke.

License

Notifications You must be signed in to change notification settings

toytag/oneStroke

Repository files navigation

oneStroke

Use oneStroke drawing, to draw a portrait.

Description

All the implementations are in foo.py.

In dev branch, there is a GLHF/ folder containing a jupyter notebook that will help you get a better feeling of this implementation.

Unfortunately this implementation does not find a Euler path, even if the graph is somehow Eulerian graph. (by somehow I mean almost impossible, unless magic)

Dependencies

pip install -r requirements.txt

Basically, it's just opencv-python, numpy, scipy. Not too many dependencies. Actually, jupyter and matplotlib is also required if you want to dive in GLHF/ in the dev branch.

Last But Not The Least

Good Luck Have Fun :)

The package is used on the robotics project to generate one stroke portrait path.
Check out the website: https://sites.google.com/berkeley.edu/ee106a-roboart/vision/one-stroke-portrait

About

A path-finding algorithm that returns a path to draw a portrait in one stroke.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages