Skip to content

Releases: Barqawiz/Snnapy2-Filters

0.2

09 Feb 22:50
953d320
Compare
Choose a tag to compare

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()