Releases: Barqawiz/Snnapy2-Filters
Releases · Barqawiz/Snnapy2-Filters
0.2
Snappy2 published to pip repos:
pip install snappy2
Code Examples (How to)
from snappy2 import Snappy2
- Draw Mustache on face:
snappy = Snappy2()
human_image = snappy.load_image('<file_path>')
snappy.set_mustache(human_image, mus_index=0)
- Draw ears on face:
snappy = Snappy2()
human_image = snappy.load_image('<file_path>')
snappy.set_ears(human_image, gls_index=0)
- Draw text:
snappy = Snappy2()
human_image = snappy.load_image('<file_path>')
snappy.set_text(human_image, 'Snappy2', 60, v_position='bottom')
- To display the image
human_image.show()