11
GitHub - jbirms/ok-zoomer: A Go program that takes an image, uses pigo to detect...
source link: https://github.com/jbirms/ok-zoomer
Go to the source link to view the article. You can view the picture content, updated content and better typesetting reading experience. If the link is broken, please click the button below to view the snapshot at that time.
Join GitHub today
GitHub is home to over 50 million developers working together to host and review code, manage projects, and build software together.
Sign up
master
Code
README.md
ok-zoomer
Every GIF is a gift.
How it works
- face detection with esimov/pigo
- color quantization / dithering with esimov/colorquant
- image resizing with nfnt/resize
- text message API with twilio
- hosted on an AWS EC2 instance
- served with nginx
- SSL with let's encrypt
- write tests
- port to Go modules
- allow text message-passed parameters like number of frames, delay, and number of faces to detect
- put it on an AWS Lambda to make it more scalable, then release the twilio number into the wild
- add the possibility of rate limiting by using redis to store which gifs were made by which phone numbers, whitelist my own number
- clean up this code, it was my first Go project so the code is pretty sloppy
- less manual deployment and check in nginx + supervisor conf in this repo
Recommend
About Joyk
Aggregate valuable and interesting links.
Joyk means Joy of geeK