Photo / VideoDetector启动方法在Ubuntu平台上崩溃

时间:2016-07-24 05:59:30

标签: affdex-sdk

我在C ++示例中运行detector-> start()方法时看到下面的崩溃。我在Ubuntu 14.10平台上使用affdex3-0版本。你能帮忙搞清楚这个问题吗?

Program received signal SIGSEGV, Segmentation fault.
0x00007ffff73f6b4d in cv::minMaxLoc(cv::_InputArray const&, double*, double*, cv::Point_<int>*, cv::Point_<int>*, cv::_InputArray const&) ()
   from /home/Research/emotion/affdex-sdk/lib/libaffdex-native.so
(gdb) bt
#0  0x00007ffff73f6b4d in cv::minMaxLoc(cv::_InputArray const&, double*, double*, cv::Point_<int>*, cv::Point_<int>*, cv::_InputArray const&) ()
   from /home/Research/emotion/affdex-sdk/lib/libaffdex-native.so
#1  0x00007ffff70e6c24 in SimpleInvMeanGuess::SetProperties(cv::Mat_<float>, cv::Mat_<float>) ()
   from /home/Research/emotion/affdex-sdk/lib/libaffdex-native.so
#2  0x00007ffff70e8496 in SimpleInvMeanGuess::LoadModel(portable_binary_iarchive&) ()
   from /home/Research/emotion/affdex-sdk/lib/libaffdex-native.so
#3  0x00007ffff71fc244 in Mapper::Load(boost::filesystem::path const&) () from /home/Research/emotion/affdex-sdk/lib/libaffdex-native.so
#4  0x00007ffff70d0ecd in LoadMapper(MapperConfig const&) () from /home/Research/emotion/affdex-sdk/lib/libaffdex-native.so
#5  0x00007ffff70d10df in LoadMultipleMappersFromConfig(std::vector<MapperConfig, std::allocator<MapperConfig> > const&) ()
   from /home/Research/emotion/affdex-sdk/lib/libaffdex-native.so
#6  0x00007ffff70d11e1 in LoadMultipleMappers(boost::filesystem::path const&) ()
   from /home/Research/emotion/affdex-sdk/lib/libaffdex-native.so
#7  0x00007ffff70d1238 in LoadMultipleRTMappers(boost::filesystem::path const&) ()
   from /home/Research/emotion/affdex-sdk/lib/libaffdex-native.so
#8  0x00007ffff7121ca1 in DynamicTracker::DynamicTracker(boost::property_tree::basic_ptree<std::string, std::string, std::less<std::string> > const&) () from /home/Research/emotion/affdex-sdk/lib/libaffdex-native.so
#9  0x00007ffff70d3af2 in boost::shared_ptr<Mapper> CreateMapperInstance<DynamicTracker>(boost::property_tree::basic_ptree<std::string, std::string, std::less<std::string> > const&) () from /home/Research/emotion/affdex-sdk/lib/libaffdex-native.so
#10 0x00007ffff70d0964 in CreatePtrMapper(std::string const&, boost::property_tree::basic_ptree<std::string, std::string, std::less<std::string> > const&, boost::property_tree::basic_ptree<std::string, std::string, std::less<std::string> > const&) ()
   from /home/Research/emotion/affdex-sdk/lib/libaffdex-native.so
#11 0x00007ffff70d0c35 in CreatePtrMapper(MapperConfig const&) () from /home/Research/emotion/affdex-sdk/lib/libaffdex-native.so
#12 0x00007ffff70d0d5c in LoadMapper(MapperConfig const&) () from /home/emotion/affdex-sdk/lib/libaffdex-native.so
#13 0x00007ffff70db2c2 in MapperFactory::Activate(std::set<std::string, std::less<std::string>, std::allocator<std::string> > const&) ()
   from /home/Research/emotion/affdex-sdk/lib/libaffdex-native.so
#14 0x00007ffff70c9d22 in AffdexMultiFace::UpdateActiveSet() () from /home/emotion/affdex-sdk/lib/libaffdex-native.so
#15 0x00007ffff70ca28d in AffdexMultiFace::Activate(std::string const&) () from /home//emotion/affdex-sdk/lib/libaffdex-native.so
#16 0x00007ffff70cadad in AffdexMultiFace::Initialize(IntegrationLayerParams const&) ()
   from /home/Research/emotion/affdex-sdk/lib/libaffdex-native.so
#17 0x00007ffff70b1df4 in affdex::MultiFaceDetectorBase::initWithParams(affdex::Config) ()
   from /homeResearch/emotion/affdex-sdk/lib/libaffdex-native.so
#18 0x00007ffff70637d6 in affdex::DetectorBase::init(affdex::Config const&) ()
   from /home/emotion/affdex-sdk/lib/libaffdex-native.so
#19 0x00007ffff706356b in affdex::DetectorBase::start() () from /home/Research/emotion/affdex-sdk/lib/libaffdex-native.so
#20 0x00007ffff705bc5d in affdex::Detector::start() () from /home/emotion/affdex-sdk/lib/libaffdex-native.so
#21 0x00007ffff709dfa4 in affdex::PhotoDetector::start() () from /home/emotion/affdex-sdk/lib/libaffdex-native.so
#22 0x0000000000438396 in main ()

1 个答案:

答案 0 :(得分:1)

Affdex支持gcc 4.8, opencv 2.4 and boost 1.59。你有正确的依赖设置吗?我建议按照README上的cpp-sdk-samples安装说明。我们刚发布了affdex-3.1你可以找到发行说明here

以下是安装指南的链接: