forked from ROCm/MIVisionX
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathDGtest.h
57 lines (46 loc) · 823 Bytes
/
DGtest.h
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
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
#pragma once
#include "annmodule.h"
/**
* Class to run the inference
*/
class DGtest
{
public:
/**
* Constructor
*/
DGtest(const char* weights);
/**
* Destructor
*/
~DGtest();
/**
* Run the inference
*/
int runInference(cv::Mat &image);
/**
* Get the inference result
*/
int getResult();
private:
/**
* Inference result
*/
int mDigit;
/**
* Context that will be used for the inference
*/
vx_context mContext;
/**
* Graph that will be used for the inference
*/
vx_graph mGraph;
/**
* Graph that will be used for the inference
*/
vx_tensor mInputTensor;
/**
* Graph that will be used for the inference
*/
vx_tensor mOutputTensor;
};