mardi 1 août 2017

How can I use .caffemodel in Android?

I have a FaceAlignment Project and I want to run it in my cellphone.I have built my algorithm part as a .so file ,and use jni to call this .so file. In my project,I have two parts including face detect and face alignment.when I only run face detect,it is normal without problems because this part only includes opencv usage.But when I use link libcaffe.so to init caffemodel just like new Net(), the apk crashes in operations like cv:clone() cv:cvtColor().This happened even in situations without face detect and alignment opertions. ps:I must convert the camera image from NV21 to BGR,and It can be converted without ini caffemodel,so strange. Any help will be appreciated.

Aucun commentaire:

Enregistrer un commentaire