Article Outline
Python pil example 'Pycharm project Definitions'
python Pycharm project Definitions
Python pil example: Pycharm project Definitions
#define possible alphabets, numbers
numbers = ['0','1','2','3','4','5','6','7','8','9']
alphabets = ['a','b','c','d','e','f','g','h','i','j','k','l','m','n','o','p','q','r','s','t','u','v','w','x','y','z']
ALPHABETs = ['A','B','C','D','E','F','G','H','I','J','K','L','M','N','O','P','Q','R','S','T','U','V','W','X','Y','Z']
# Define Image Properties
IMAGE_HEIGHT = 60
IMAGE_WIDTH = 160
# Define max captcha = 4 digits
MAX_CAPTCHA = 4
# Define char set length
charSet = numbers + alphabets + ALPHABETs
CHAR_SET_LEN = len(charSet)
print(CHAR_SET_LEN)
Python links
- Learn Python: https://pythonbasics.org/
- Python Tutorial: https://pythonprogramminglanguage.com