Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我已经在 Windows 机器上安装了 opencv,并且需要在 C 驱动器中单独拥有 opencv 文件夹(不在任何其他文件夹内),但找不到安装它的文件夹。请帮我。
可能所有模块都可以用来__file__在磁盘上找到它
__file__
import cv2 print(cv2.__file__)
cv2还有.xml用于识别面部的文件路径的特殊变量 - 它也很有用。
cv2
.xml
print(cv2.data.haarcascades)