// // Created by pansen on 2017/8/4. // #include "RemoteFuncServer.h" RtspFaceDetectClient rtspFaceDetectClient; const RtspFaceDetectClient& getRtspFaceDetectClient(){ return rtspFaceDetectClient; } //#todo RtspFaceDetectClient::RtspFaceDetectClient():rpcClient("127.0.0.1",8111), client(rpcClient.getMain()) {} void RtspFaceDetectClient::fireFaceCountListener(int cameraIndex, int faceCount){ auto req = client.fireFaceCountListenerRequest(); req.setCameraIndex(cameraIndex); req.setFaceCount(faceCount); auto send = req.send(); send.wait(rpcClient.getWaitScope()); } //#todo ::kj::Promise RtspFaceViewImpl::RtspFaceViewImpl() {} ::kj::Promise RtspFaceViewImpl::~RtspFaceViewImpl(){} ::kj::Promise RtspFaceViewImpl::getFaceList(GetFaceListContext context) override{} ::kj::Promise RtspFaceViewImpl::getFaceImages(GetFaceImagesContext context) override{} ::kj::Promise RtspFaceViewImpl::setFaceLabel(SetFaceLabelContext context) override {}