Modifiy images using Instagram-like filters in python. Read how it works on Medium!
pip install instafilter
Example:
from instafilter import Instafilter
model = Instafilter("Lo-fi")
new_image = model("myimage.jpg")
# To save the image, use cv2
import cv2
cv2.imwrite("modified_image.jpg", new_image)
Browse samples for every filter in development/examples
.
See the code in development/train_new_model
to train a new model.
- Medium post
-
Made with ❤️ by Travis Hoppe.
-
Header image sourced from Will Terra and modified with instafilter.