| | |
| | | #ifndef RTSPNATIVECODEC_REMOTEMETHODCLIENT_H
|
| | | #define RTSPNATIVECODEC_REMOTEMETHODCLIENT_H
|
| | |
|
| | | #include <iostream>
|
| | | #include <string>
|
| | | #include <capnp/ez-rpc.h>
|
| | | #include "RemoteMethod.proto.h"
|
| | | #include "CameraWrapperServer.h"
|
| | |
|
| | | const RtspFaceView::Client getRtspFaceViewClient();
|
| | |
|
| | | class RtspFaceViewClient{
|
| | | void startRemoteServer();
|
| | | class RtspFaceViewClient : RtspFaceView::Client{
|
| | | public:
|
| | | RtspFaceViewClient();
|
| | | ~RtspFaceViewClient();
|
| | |
|
| | | RtspFaceView::GetFaceListResults::Reader getFaceList(int cameraIndex);
|
| | | RtspFaceView::GetFaceListResults::Reader getFaceImages(int cameraIndex);
|
| | | void setFaceLable(int cameraIndex,int trackId,std::string label);
|
| | |
|
| | | ~RtspFaceViewClient(){};
|
| | | ::kj::WaitScope& getWaitScope();
|
| | | private:
|
| | | capnp::EzRpcClient rpcClient;
|
| | | RtspFaceDetect::Client client;
|
| | | };
|
| | |
|
| | | const RtspFaceViewClient& getRtspFaceViewClient();
|
| | |
|
| | | class RtspFaceDetectImpl final : public RtspFaceDetect::Server{
|
| | | public:
|
| | | RtspFaceDetectImpl();
|
| | | ~RtspFaceDetectImpl();
|
| | |
|
| | | virtual ::kj::Promise<void> fireFaceCountListener(FireFaceCountListenerContext context) override ;
|
| | | };
|
| | |
|