From e0a8ae3449f90a6d88ad8d597af8fd27be7cfe6c Mon Sep 17 00:00:00 2001 From: qvyuanxin <qvyuanxin@454eff88-639b-444f-9e54-f578c98de674> Date: 星期四, 13 七月 2017 18:08:08 +0800 Subject: [PATCH] --- VisitFace/RtspNativeCodec/app/src/main/cpp/CameraWrapper.h | 6 +++++- 1 files changed, 5 insertions(+), 1 deletions(-) diff --git a/VisitFace/RtspNativeCodec/app/src/main/cpp/CameraWrapper.h b/VisitFace/RtspNativeCodec/app/src/main/cpp/CameraWrapper.h index 21aa478..8bb9f05 100644 --- a/VisitFace/RtspNativeCodec/app/src/main/cpp/CameraWrapper.h +++ b/VisitFace/RtspNativeCodec/app/src/main/cpp/CameraWrapper.h @@ -53,12 +53,14 @@ PLPLContext plplContext; + std::map<int, std::string> faceLabels; + CameraWrapper() : pipeLineDecoderDetector(nullptr), pipeLineAnalyzer(nullptr), pipeLineRender(nullptr), queueFrame(nullptr), rtspConfig(), amcdConfig(), asvrConfig(), sftConfig(), cameraIdx(0), javaVM(nullptr), javaEnv(nullptr), faceCallbackClazz(0), faceCallbackFunc(0), windowRender(nullptr), windowDecode(nullptr), decoder_thid(0), analyzer_thid(0), running(false), faceCacheLocked(false), faceCache(), - plplContext() + plplContext(), faceLabels() { } @@ -71,6 +73,8 @@ void lockFace(); void releaseFace(); + void setFaceLabel(int st_track_id, const std::string& label); + private: static void* decoder_thd(void *arg); static void* analyzer_thd(void *arg); -- Gitblit v1.8.0