我已使用Install Openalpr in Windows python答案中所述的方法在Windows中使用Anaconda和Python 3.7安装了OpenALPR。
当我致电alpr = Alpr('us', alpr_dir + '/openalpr.conf', alpr_dir + '/runtime_data')
时,出现以下错误:
Traceback (most recent call last):
File "C:\ProgramData\Anaconda3\lib\site-packages\openalpr\openalpr.py", line 51, in __init__
self._openalprpy_lib = ctypes.cdll.LoadLibrary("libopenalprpy.dll")
File "C:\ProgramData\Anaconda3\lib\ctypes\__init__.py", line 434, in LoadLibrary
return self._dlltype(name)
File "C:\ProgramData\Anaconda3\lib\ctypes\__init__.py", line 356, in __init__
self._handle = _dlopen(self._name, mode)
OSError: [WinError 126] Le module spécifié est introuvable
The above exception was the direct cause of the following exception:
Traceback (most recent call last):
File "alpr2.py", line 6, in <module>
alpr = Alpr('us', alpr_dir + '/openalpr.conf', alpr_dir + '/runtime_data')
File "C:\ProgramData\Anaconda3\lib\site-packages\openalpr\openalpr.py", line 61, in __init__
raise nex
OSError: Unable to locate the OpenALPR library. Please make sure that OpenALPR is properly installed on your system and that the libraries are in the appropriate paths.
Exception ignored in: <function Alpr.__del__ at 0x00000214EEAD48C8>
Traceback (most recent call last):
File "C:\ProgramData\Anaconda3\lib\site-packages\openalpr\openalpr.py", line 258, in __del__
File "C:\ProgramData\Anaconda3\lib\site-packages\openalpr\openalpr.py", line 135, in is_loaded
AttributeError: 'Alpr' object has no attribute 'loaded'
请帮助,谢谢!