你好,我对python中的标签有一个问题。我已经搜索了一个多星期,尝试了多种解决方案,但都没有奏效。
我的问题不是librairy的导入,而是当我试图创建检测器时。有一个对xxxx.dll文件(我认为)不起作用的引用。
我的代码
很简单
from pupil_apriltags import Detector
import cv2
import numpy as np
at_detector = Detector(families='tag36h11',
nthreads=1,
quad_decimate=1.0,
quad_sigma=0.0,
refine_edges=1,
decode_sharpening=0.25,
debug=0)我的错误
Traceback (most recent call last):
File "detection_apriltags.py", line 6, in <module>
at_detector = Detector()
File "C:\Users\Utilisateur\anaconda3\lib\site-packages\pupil_apriltags\bindings.py", line 285, in __init__
self.libc = ctypes.CDLL(str(hit))
File "C:\Users\Utilisateur\anaconda3\lib\ctypes\__init__.py", line 381, in __init__
self._handle = _dlopen(self._name, mode)
FileNotFoundError: Could not find module 'C:\Users\Utilisateur\anaconda3\lib\site-
packages\pupil_apriltags\lib\apriltag.dll' (or one of its dependencies). Try using the full path
with constructor syntax.我的配置
发布于 2021-06-17 08:32:16
因此,我没有找到解决方案的瞳孔-4月标签(在视窗上),但我不同意阿鲁科,这是不道德地在Opencv (与包:opencv-contrib,在这一天)。
arucoDict = cv2.aruco.Dictionary_get(cv2.aruco.DICT_4X4_50)
arucoParams = cv2.aruco.DetectorParameters_create()
(corners, ids, rejected) = cv2.aruco.detectMarkers(image, arucoDict,parameters=arucoParams)发布于 2022-03-27 14:12:56
多亏了曼努埃尔·瓦伦苏埃拉的评论,我解决了这个问题,我给学生做了个公关--注册回购;之后,这个问题就不再是问题了。
https://github.com/pupil-labs/apriltags/pull/48
正如Manuel所说,这是Python3.8和DLL搜索中的一个问题。真正搞清楚这件事的人是@Mad物理学家:
https://stackoverflow.com/questions/67919822
复制相似问题