0

我是图书馆的新手,我正在编写一个程序来按照教程分析视频。这是我的代码片段:

        detector = new VideoDetector(24);
        detector.setClassifierPath(classifierPath);
        detector.setImageListener(this);

        detector.setDetectAllExpressions(true);
        detector.setDetectAllEmotions(true);
        detector.setDetectAllEmojis(true);
        detector.setDetectAllAppearances(true);
        detector.setDetectAge(true);
        detector.setDetectEthnicity(true);
        detector.start();
        detector.process("path to the video file");

我得到以下异常:

打开视频文件时出错:来源:__cdecl FileVideoCapture::FileVideoCapture(const class boost::filesystem::path &,const float)(C:\Jenkins\workspace\affdexface-win64\src\modules\utils\FileVideoCapture.cpp LINE 12 )

我不确定“C:\Jenkins\workspace\”部分来自哪里?有人可以帮我吗?

谢谢!

4

1 回答 1

0

您能否粘贴有关视频文件编解码器的更多信息。您可以通过以下几种方式找到编解码器信息。

你能验证 opencv_ffmpeg*.dll 的版本吗?在 Affectiva->AffdexSDK->bin 下的 SDK 安装程序中,我们包含基于 x86 或 x64 的 opencv_ffmpeg248 或 opencv_ffmpeg248_64.dll。您能否使用随附的 dll 验证您是否收到错误消息?

您是否使用ffmpeg将视频转换为不同的文件格式,然后重新运行该应用程序?

于 2016-11-15T17:00:37.583 回答