pans
2017-08-04 b4edb9b542a8399484b892cddb72ef79975f1a8e
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
//
// Created by pansen on 2017/8/4.
//
 
#ifndef RTSPNATIVECODEC_REMOTEMETHODCLIENT_H
#define RTSPNATIVECODEC_REMOTEMETHODCLIENT_H
 
#include <iostream>
#include <capnp/ez-rpc.h>
#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<void> fireFaceCountListener(FireFaceCountListenerContext context) override ;
};
 
#endif //RTSPNATIVECODEC_REMOTEMETHODCLIENT_H