Skip to content

Python code to submit rotated images to the Cloud Vision API + R code for visualizing it

License

Notifications You must be signed in to change notification settings

minimaxir/optillusion-animation

Repository files navigation

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

About

Python code to submit rotated images to the Cloud Vision API + R code for visualizing it

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages