Skip to content

Instantly share code, notes, and snippets.

@sgqy
Created September 26, 2021 13:32
Show Gist options
  • Save sgqy/f7e3561cf8062b003adad63fcb49102d to your computer and use it in GitHub Desktop.
Save sgqy/f7e3561cf8062b003adad63fcb49102d to your computer and use it in GitHub Desktop.
#!/usr/bin/env python3
from captcha.image import ImageCaptcha
cap = ImageCaptcha(width=400, height=100, fonts=['/usr/share/fonts/opentype/source-code-pro/SourceCodePro-Regular.otf'])
img = cap.generate_image('13800138000')
img.show()
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment