我正在使用openCV和Python從一個圖像數據庫創建平均面的項目。我安裝的OpenCV 3.0.0,CMake的,和所有的Python包,當我運行「蟒蛇facemorpher/averager.py --images = IMFDB_final /阿里/ HelloBrother使用此
facemorpher 1.0.1 python packageOpenCV facemorpher 1.0.1錯誤:沒有圖像輸出,缺少庫?
我得到這個命令行錯誤/ images --out = testmorph.jpg'
我的目錄在'face_morpher'文件夾中有IMFDB文件夾。
dyld: Library not loaded: lib/libopencv_videostab.2.4.dylib
Referenced from: /Users/Megan/Documents/face_morpher/facemorpher/bin/stasm_util
Reason: image not found
Traceback (most recent call last):
File "facemorpher/averager.py", line 94, in <module>
args['--out'], args['--plot'])
File "facemorpher/averager.py", line 61, in averager
img, points = load_image_points(path, size)
File "facemorpher/averager.py", line 47, in load_image_points
points = locator.face_points(path)
File "/Users/Megan/Documents/face_morpher/facemorpher/locator.py", line 34, in face_points
s = subprocess.check_output(command, shell=True)
File "//anaconda/lib/python2.7/subprocess.py", line 573, in check_output
raise CalledProcessError(retcode, cmd, output=output)
subprocess.CalledProcessError: Command '"/Users/Megan/Documents/face_morpher/facemorpher/bin/stasm_util" -f "/Users/Megan/Documents/face_morpher/facemorpher/data" "IMFDB_final/Ali/HelloBrother/images/Ali_1.jpg"' returned non-zero exit status -5
編輯: 我有我的虛擬環境中的libopencv_videostab.3.0.dylib
文件。 是否可以通過卸載openCV 3.0並安裝2.4來解決問題?
這可能有助於:[error-when-compile-opencv-in-qt-applied-tbb](http://stackoverflow.com/questions/10982736/error-when-compile-opencv-in-qt-applying -tbb) –
所以我會將缺少的庫複製到facemorpher/bin /或/ face_morpher中? – megara15