-1
これはnoobの質問かもしれません...私はトレーニングのコードを実行すると、私はEmotion Recognition With Python, OpenCV and a Face Datasetジェンキンスとは誰ですか?エラー/ユーザー/ジェンキンス/ miniconda ...
にこのチュートリアルを以下のよ は、次のエラーを取得する:
OpenCV Error: Bad argument (Wrong input image size. Reason: Training and Test images must be of equal size! Expected an image with 122500 elements, but got 4.) in predict, file /Users/jenkins/miniconda/1/x64/conda-bld/conda_1486587097465/work/opencv-3.1.0/build/opencv_contrib/modules/face/src/fisher_faces.cpp, line 132
Traceback (most recent call last):
File "trainModel.py", line 64, in <module>
correct = run_recognizer()
File "trainModel.py", line 52, in run_recognizer
pred, conf = fishface.predict(image)
cv2.error: /Users/jenkins/miniconda/1/x64/conda-bld/conda_1486587097465/work/opencv-3.1.0/build/opencv_contrib/modules/face/src/fisher_faces.cpp:132: error: (-5) Wrong input image size. Reason: Training and Test images must be of equal size! Expected an image with 122500 elements, but got 4. in function predict
データセットのフォルダ内のすべての画像が正しいサイズの350x350pxですが、画像サイズが350×350 = 122500ではないと不平を言っています。
そして、それが言うように、私のユーザー名は「ジェンキンス」ではありませんで/ユーザ/ジェンキンス/ miniconda ...わからないところ、それが来るから、またはのための感謝をfisher_faces.cppするために、私の正しいパスでそれを置き換えるためにどのように助けて!