Skip to content

A python turtle that sketches (almost) any image given to it, while mimicking the "human way" of sketching

License

Notifications You must be signed in to change notification settings

hrshtv/Sketchy-Turtle

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

14 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Sketchy Turtle:turtle:

A turtle that (almost) sketches any image given to it.



Directions to use:

  1. Clone this repo: git clone https://github.com/hrshtv/Sketchy-Turtle.git
  2. Run: python3 sketch.py -in <input_img_path> -o <output_file_path> -wt <width> -ht <height>
    • -in (--input) : The input image's path
    • -o (--output) : The output file's name. The output will be an .eps file, provide only the name without any extensions
    • -wt (--width), -ht (--height) : Decides the shape (width, height) to which the input image will be resized to. This is also the canvas size on which the turtle will draw.

Example:

Comparison


References:


Improvements/To-do

  • Try other autothresholding methods like the Otsu's method and compare the results
  • Increase the efficiency of the sketching program
    • Currently some edges detected are very thick, which increases time taken unneccesarily, try edge thinning algorithms
    • While finding closest neighbours, omit the points that are too close to one another, to decrease the input size
    • Ramer–Douglas–Peucker algorithm

Contributors:

About

A python turtle that sketches (almost) any image given to it, while mimicking the "human way" of sketching

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages