我看了一個教程,該教程是用Python編寫的關于OpenCV的。當我嘗試導入類時遇到錯誤。錯誤如下。 Traceback (most recent call last): File "webstreaming.py", line 1, in <module> from pyimagesearch.motion_detection import SingleMotionDetectorImportError: cannot import name 'SingleMotionDetector' from 'pyimagesearch.motion_detection' (/home/pi/Desktop/Denemeler/pyimagesearch/motion_detection/__init__.py)這是我的目錄樹。.├── pyimagesearch│ ├── __init__.py│ └── motion_detection│ ├── __init__.py│ └── singlemotiondetector.py├── templates│ └── index.html└── webstreaming.py我檢查了堆棧溢出,但沒有一個答案對我有用。謝謝。
添加回答
舉報
0/150
提交
取消