// // Created by pansen on 2017/8/4. // #ifndef RTSPNATIVECODEC_REMOTEMETHODCLIENT_H #define RTSPNATIVECODEC_REMOTEMETHODCLIENT_H #include #include #include "RemoteMethod.proto.h" #include "CameraWrapperServer.h" const RtspFaceView::Client getRtspFaceViewClient(); class RtspFaceViewClient{ public: RtspFaceViewClient(); ~RtspFaceViewClient(); RtspFaceView::GetFaceListResults::Reader getFaceList(int cameraIndex); RtspFaceView::GetFaceListResults::Reader getFaceImages(int cameraIndex); void setFaceLable(int cameraIndex,int trackId,std::string label); private: capnp::EzRpcClient rpcClient; RtspFaceDetect::Client client; }; class RtspFaceDetectImpl final : public RtspFaceDetect::Server{ public: RtspFaceDetectImpl(); ~RtspFaceDetectImpl(); virtual ::kj::Promise fireFaceCountListener(FireFaceCountListenerContext context) override ; }; #endif //RTSPNATIVECODEC_REMOTEMETHODCLIENT_H