Artisan abstract portraits generated with hand-crafted code
Switch branches/tags
Nothing to show
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
cfg
data
.eslintrc
.gitignore
README.md
abhishek.jpg
adam.jpg
adam2.jpg
adam3.jpg
adamjazz.jpg
andrew.jpg
andrew2.jpg
andrew3.jpg
coarse.jpg
dog.jpg
dog.png
fine.jpg
group.jpg
index.js
out.jpg
out2.jpg
package.json
potato.jpg
regions.jpg
yarn.lock

README.md

good-portraits

Artisan abstract portraits generated with hand-crafted code.

When technology and art combine, that is when society gets truly pushed forward. Andy Warhol pioneered the technique of leveraging technology to produce art en masse to force consideration of what art even means, so I intend to continue this mission and reduce the meaning in art even more.

This script takes in a regular image and produces a high-quality, carefully thought-out portrait. It's abstract, which packs even more meaning into the image while I put even less thought into it.

Sometimes it gets too abstract, so you can pass in a command line flag to label things in the image for you so you can still tell what they are.

"The turmoil of the soul", 2017

"Life is meaningless", 2017

Setup

Install darknet as per the instructions here: https://github.com/moovel/node-yolo

curl -L http://pjreddie.com/media/files/yolo.weights > yolo.weights
yarn install

Run the script

node index.js adam.jpg && open out.jpg
node index.js andrew3.jpg true && open out.jpg