本文介绍了在btk_FaceFinder_putDCR FaceDetector存在错误的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我想从摄像机图像检测到人脸。
I am trying to detect a face from a camera picture.
但它总是在下面的错误结束:
But it always ends up in the following error:
错误:因为在btk_FaceFinder_putDCR存在错误返回0的面孔
ERROR: Return 0 faces because error exists in btk_FaceFinder_putDCR.
我的code:
FaceDetector fd = new FaceDetector(bmp.getWidth(), bmp.getHeight(), 1);
Face[] faces = new Face[1];
int nrOfFaces = fd.findFaces(bitmap565, faces);
我与code看到的唯一问题是,我不知道
位图配置,我不知道豪位图转换为Config.RGB_565格式。
The only problem I see with that code is, that I dont know the Bitmap Config and I dont know ho to convert a Bitmap to the Config.RGB_565 format.
谁能帮助?
推荐答案
图片的宽度必须为even.
这篇关于在btk_FaceFinder_putDCR FaceDetector存在错误的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!