Files
mixly3-server/mixly/boards/default/python_mixpy/examples/人工智能Py/07拓展发现-2.py
2026-01-24 16:13:38 +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={}))