Files
mixly3/boards/default/python_mixpy/examples/NP_t8URyEWtW/07拓展发现-2.py
2024-07-21 09:30:11 +08:00

12 lines
423 B
Python

import FileDialog
import aip
f = open(FileDialog.getOneFile(), 'rb')
f2 = open(FileDialog.getOneFile(), 'rb')
client = aip.AipOcr("Enter Your APP_ID", "Enter Your API_KEY", "Enter Your SECRET_KEY")
client2 = aip.AipImageClassify("Enter Your APP_ID", "Enter Your API_KEY", "Enter Your SECRET_KEY")
print(client.licensePlate(f.read(), options={})["words_result"]["number"])
print(client2.carDetect(f2.read(), options={}))