Closed higolel closed 3 years ago
I don’t understand what went wrong with you, you can dump it and see
Execute the order ./FaceSDKDemo ../resources/image/4.jpg result: terminate called after throwing an instance of 'std::bad_alloc' what(): std::bad_alloc Aborted (core dumped)
demo.cpp facesdk_readModelFromFile(ModelType::Landmark, "models/landmark4.bin", ImageFormat::RGB, true);
but tenginekit_api.h void faces dk_readModelFromFile(ModelType type, const char* model_path, ImageFormat modelInputFormat);
i Had update ,you can use the newest .use "faces dk_readModelFromFile(ModelType type, const char* model_path, ImageFormat modelInputFormat);" api
I tried the new version and changed the model paths into absolute paths, and it worked. Please try!
terminate called after throwing an instance of 'std::bad_alloc' what(): std::bad_alloc Aborted (core dumped)