初始化提交
This commit is contained in:
11
boards/default/python_mixpy/examples/人工智能Py/07拓展发现-2.py
Normal file
11
boards/default/python_mixpy/examples/人工智能Py/07拓展发现-2.py
Normal file
@@ -0,0 +1,11 @@
|
||||
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={}))
|
||||
Reference in New Issue
Block a user