Skip to content
Python code to submit rotated images to the Cloud Vision API + R code for visualizing it
Branch: master
Clone or download
Latest commit 7cf74ea Mar 12, 2019
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
.gitignore
LICENSE
README.md
animation.Rmd README + meta files Mar 8, 2019
duckorrabbit.png README + meta files Mar 8, 2019
image_rot_results.csv README + meta files Mar 8, 2019
image_rotation_data.py remove redundant bg Mar 7, 2019
optillusion-animation.Rproj R Notebook Mar 7, 2019

README.md

Rabbit or Duck? It depends on how the image is rotated.

Python code to submit rotated images to the Cloud Vision API + R code for visualizing it. This repository was used to create this animation.

All tools used:

  • Python to rotate the image and get predictions from the API for each rotation.
  • R, ggplot2, gganimate for building the animations.
  • ffmpeg to render the animations.
  • A video editor to stitch all the animations together.

Disclaimer: This was my first time working with gganimate (and working around a few bugs which surfaced), as a result my R code is messier than my typical R code.

Maintainer

Max Woolf (@minimaxir)

Max's open-source projects are supported by his Patreon. If you found this project helpful, any monetary contributions to the Patreon are appreciated and will be put to good creative use.

License

MIT

You can’t perform that action at this time.