我是库的新手,我正在编写一个程序来分析教程后面的视频。下面是我的代码片段:
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 filevideoccapture:: filevideoccapture(常量类boost::filesystem::path &,常量float)(C:Jenkinsworkspace affdexfacewin64 srcmodulesutils filevideoccapture .cpp LINE 12)
我不确定"C:Jenkinsworkspace"部分来自哪里?有人能帮我吗?
谢谢!
能否将更多信息粘贴到视频文件的编解码器上?以下是查找编解码器信息的几种方法。
你能验证openv_ffmpeg *.dll的版本吗?在AffdexSDK->bin下的SDK安装程序中,我们包含基于x86或x64的opencv_ffmpeg248或opencv_ffmpeg248_64.dll。您可以验证您正在使用附带的dll获得错误吗?
您是否使用ffmpeg将视频转换为不同的文件格式,然后重新运行应用程序?