13 lines
316 B
Python
13 lines
316 B
Python
from aip import AipOcr
|
|
|
|
APP_ID = '24797034'
|
|
API_KEY = 'ykebbHq8GaK2cD1sIPy7PEPu'
|
|
SECRET_KEY = '4rU7QPC1oGFbZgIbsDvMGcqPky4kv7kV'
|
|
import base64
|
|
from urllib.parse import quote
|
|
import json
|
|
client = AipOcr(APP_ID, API_KEY, SECRET_KEY)
|
|
def getCaptcha(image):
|
|
return client.numbers(image)['words_result'][0]['words']
|
|
|