Skip to content

Turns images into clusters of circles, with the radius determined by pixel brightness.

License

Notifications You must be signed in to change notification settings

OlympusMonds/PyCircleriser

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

19 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

PyCircleriser

Turns images into clusters of circles, with the radius determined by pixel brightness.

Dependencies

  • PIL
  • Numpy
  • PyPrind (optional)

Examples

A random face from Google images:

face

to this:

circle face

Using the command:

python PyCircleriser.py --circimg images/face-2.jpg --outimg outputs/face-2.jpg --log

monet

to this:

monet

Using the command:

python PyCircleriser.py --circimg images/monet-starry.jpg --outimg outputs/monet-starry.jpg --log

There are also a few modifiers you can use, for example:

python PyCircleriser.py --circimg images/monet-starry.jpg --outimg outputs/monet-starry_flags.jpg --bgimg images/monet-starry.jpg --bgcolour 0 --log --nooutline

monet

And another example, with a different background colouring, and scaling (which often can improve the look of an output):

python PyCircleriser.py --circimg images/face-2.jpg --outimg outputs/face-2-colour.jpg --log --bgimg images/union-jack.png --scale 2

circle face

To do

  • Add option to render progressively (to make a gif or whatnot)
  • General speed ups (see lineprofile.txt)

Help

I'm no noob, but I'm hardly a pro (and I never get code reviews), so if you find some code odd or inefficient, please let me know or submit a pull request. I would be super appreciative.

About

Turns images into clusters of circles, with the radius determined by pixel brightness.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages