OAID / TengineKit

TengineKit - Free, Fast, Easy, Real-Time Face Detection & Face Landmarks & Face Attributes & Hand Detection & Hand Landmarks & Body Detection & Body Landmarks & Iris Landmarks & Yolov5 SDK On Mobile.
Other
2.38k stars 318 forks source link

how to use facesdk_eyelandmark3d API ? #23

Closed CheckerBoards closed 3 years ago

CheckerBoards commented 3 years ago

Hi. Follow your demo, I guess it should read the detect model at first, so facesdk_readModelFromFile(ModelType::Detect, "../models/detect.bin", ImageFormat::RGB); sdkFaces faces = facesdk_detect(data);

and then, I try to read the iris_landmark.bin model, facesdk_readModelFromFile(ModelType::Iris, "../models/iris_landmark.bin", ImageFormat::RGB); sdkFaces3d faces1 = facesdk_eyelandmark3d();

However, the faces1.face3d_count always equals to 0. Anything wrong in my steps?

Crusoekid commented 3 years ago

you need init first. then use Detect && Landmark3d && Iris

CheckerBoards commented 3 years ago

Thanks for your reply, it works now.