commit | b493ba27fc74ccf339f88a48b29b4fccaf651b86 | [log] [tgz] |
---|---|---|
author | Gloria Wang <gwang@google.com> | Tue Nov 24 16:11:15 2009 -0800 |
committer | Gloria Wang <gwang@google.com> | Tue Nov 24 16:15:57 2009 -0800 |
tree | c480c13897eae01114fc193bb034245c4045e49a | |
parent | 241299bf9b1c40412678c0b9f75be55da1c3e171 [diff] |
Add log for initialization errors before detecting faces.
diff --git a/FaceDetector_jni.cpp b/FaceDetector_jni.cpp index a4ceeec..03bd908 100644 --- a/FaceDetector_jni.cpp +++ b/FaceDetector_jni.cpp
@@ -243,6 +243,8 @@ int numberOfFaces = 0; if (btk_FaceFinder_putDCR(hfd, hdcr) == btk_STATUS_OK) { numberOfFaces = btk_FaceFinder_faces(hfd); + } else { + LOGE("ERROR: Return 0 faces because error exists in btk_FaceFinder_putDCR.\n"); } // release the arrays we're using