From df116ad80d8aab6fc8ec3e9bb3f2363ed01e49d8 Mon Sep 17 00:00:00 2001
From: houxiao <houxiao@454eff88-639b-444f-9e54-f578c98de674>
Date: 星期五, 10 二月 2017 10:44:43 +0800
Subject: [PATCH] add android build config
---
RtspFace/SensetimeFaceAPIWrapper/src/faceAPI.cpp | 12 ++++++++++++
1 files changed, 12 insertions(+), 0 deletions(-)
diff --git a/RtspFace/SensetimeFaceAPIWrapper/src/faceAPI.cpp b/RtspFace/SensetimeFaceAPIWrapper/src/faceAPI.cpp
index 50c2cf8..e45806d 100644
--- a/RtspFace/SensetimeFaceAPIWrapper/src/faceAPI.cpp
+++ b/RtspFace/SensetimeFaceAPIWrapper/src/faceAPI.cpp
@@ -279,15 +279,27 @@
cv_face_t *p_face = NULL;
int face_count = 0;
cv_result_t st_result = CV_OK;
+ fprintf(stderr, "cv_face_detect start!\n");
+ if (handle_detect != NULL)
+ {
+ fprintf(stderr, "handle_detect is not null!\n");
+ }
+ else
+ {
+ fprintf(stderr, "handle_detect is null!\n");
+ }
st_result = cv_face_detect(handle_detect, image_color.data, CV_PIX_FMT_BGR888,
image_color.cols, image_color.rows, image_color.step,
CV_FACE_UP, &p_face, &face_count);
+ fprintf(stderr, "cv_face_detect end!\n");
if (face_count >= 1)
{
+ fprintf(stderr, "cv_verify_get_feature end!\n");
st_result = cv_verify_get_feature(handle_verify,
(unsigned char *)image_color.data, CV_PIX_FMT_BGR888,
image_color.cols, image_color.rows, image_color.step,
p_face, &p_feature, NULL);
+ fprintf(stderr, "cv_verify_get_feature end!\n");
if (st_result != CV_OK)
{
fprintf(stderr, "cv_verify_get_feature failed, error code %d\n", st_result);
--
Gitblit v1.8.0