FaceAiSharp icon indicating copy to clipboard operation
FaceAiSharp copied to clipboard

exception on FaceAiSharpBundleFactory.CreateFaceDetectorWithLandmarks()

Open wsoftone opened this issue 3 months ago • 6 comments

Hi, I tried your example to compare two face (code below) and it worked fine on .net maui (win & andtoid). After making an update of the faceaisharp, the android app throw an exception: Microsoft.ML.OnnxRuntime.OnnxRuntimeException: '[ErrorCode:NoSuchFile] Load model from /data/data/com.companyname.facerecognitiontest/files/.override/onnx/scrfd_2.5g_kps.onnx failed:Load model /data/data/com.companyname.facerecognitiontest/files/.override/onnx/scrfd_2.5g_kps.onnx failed. File doesn't exist'

On windows it still working. but on Adroid i am getting the exception on this line: var det = FaceAiSharpBundleFactory.CreateFaceDetectorWithLandmarks(); I am not able to resolve this issue. Can you please help with this. Is it possible to provide an example that works on .net maui for Android.

thanks in advance.

wsoftone avatar Mar 18 '24 18:03 wsoftone