已有授权key,运行TestFaceApi.exe正常,可以检测到人脸
python代码如下
#coding=utf-8
import ctypes
from ctypes import *
BaiduApi=CDLL("D:/face_detect/TestFaceApi/x64/BaiduFaceApi.dll")
BaiduApi.__init__()
报错信息:
Traceback (most recent call last):
File "D:/face_detect/TestFaceApi/x64/人脸识别.py", line 5, in
BaiduApi.__init__()
TypeError: __init__() missing 1 required positional argument: 'name'
提示说缺了个参数。不过参数(name="name")加上去后会再提示缺了找不到指定的模块
Traceback (most recent call last):
File "D:/face_detect/TestFaceApi/x64/人脸识别.py", line 5, in
BaiduApi.__init__(name="name")
File "C:\Users\Administrator\AppData\Local\Programs\Python\Python36\lib\ctypes\__init__.py", line 348, in __init__
self._handle = _dlopen(self._name, mode)
OSError: [WinError 126] 找不到指定的模块。
请高手解答