blob: ec38f220824fa9372e6d9efc531cfeb392d1db8b [file] [log] [blame]
AGS555248cd2020-05-13 11:15:19 -04001#ifndef _PLUGINPARAMETERS_H_
2#define _PLUGINPARAMETERS_H_
3
4// #pragma once
5#include <string>
6#include <map>
7
AGS555248cd2020-05-13 11:15:19 -04008struct PluginParameters {
9 std::string stream = "out";
AGS51aa4c6d2020-05-20 15:49:11 -040010#ifdef TFLITE
11#ifdef __ANDROID
AGS555248cd2020-05-13 11:15:19 -040012 std::string model = "model_256_Qlatency.tflite";
AGS51aa4c6d2020-05-20 15:49:11 -040013#else
14 std::string model = "model_256_F_16.tflite";
15#endif
16#else
17 std::string model = "frozen_inference_graph.pb";
18#endif //TFLITE
19 std::string image = "background2.png";
AGS555248cd2020-05-13 11:15:19 -040020};
21
22void setGlobalPluginParameters(std::map<std::string, std::string> pp);
23
24void getGlobalPluginParameters(PluginParameters* mPluginParameters);
25PluginParameters* getGlobalPluginParameters();
26
27#endif //__PLUGINPREFERENCE_H_