【发布时间】:2018-07-30 00:08:43
【问题描述】:
我正在使用 Fisher 人脸识别器。当我调用预测函数时,应用程序崩溃。这就是它在日志中所说的......
Face DetectedOpenCV(3.4.0-dev) Error: Bad argument (Wrong input image size. Reason: Training and Test images must be of equal size! Expected an image with 12000000 elements, but got 1296.) in predict, file /Users/Name/Desktop/OpenCVBuild/opencv_contrib/modules/face/src/fisher_faces.cpp, line 140
libc++abi.dylib: terminating with uncaught exception of type cv::Exception: OpenCV(3.4.0-dev) /Users/Name/Desktop/OpenCVBuild/opencv_contrib/modules/face/src/fisher_faces.cpp:140: error: (-5) Wrong input image size. Reason: Training and Test images must be of equal size! Expected an image with 12000000 elements, but got 1296. in function predict
(lldb)
我的训练和测试图像大小相同 (3000x4000)。有什么问题,我该如何解决?
【问题讨论】:
标签: ios objective-c opencv objective-c++ face-recognition