AGS5 | 55248cd | 2020-05-13 11:15:19 -0400 | [diff] [blame] | 1 | #ifndef _PLUGINPARAMETERS_H_ |
| 2 | #define _PLUGINPARAMETERS_H_ |
| 3 | |
| 4 | // #pragma once |
| 5 | #include <string> |
| 6 | #include <map> |
| 7 | |
AGS5 | 55248cd | 2020-05-13 11:15:19 -0400 | [diff] [blame] | 8 | struct PluginParameters { |
| 9 | std::string stream = "out"; |
AGS5 | 1aa4c6d | 2020-05-20 15:49:11 -0400 | [diff] [blame^] | 10 | #ifdef TFLITE |
| 11 | #ifdef __ANDROID |
AGS5 | 55248cd | 2020-05-13 11:15:19 -0400 | [diff] [blame] | 12 | std::string model = "model_256_Qlatency.tflite"; |
AGS5 | 1aa4c6d | 2020-05-20 15:49:11 -0400 | [diff] [blame^] | 13 | #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"; |
AGS5 | 55248cd | 2020-05-13 11:15:19 -0400 | [diff] [blame] | 20 | }; |
| 21 | |
| 22 | void setGlobalPluginParameters(std::map<std::string, std::string> pp); |
| 23 | |
| 24 | void getGlobalPluginParameters(PluginParameters* mPluginParameters); |
| 25 | PluginParameters* getGlobalPluginParameters(); |
| 26 | |
| 27 | #endif //__PLUGINPREFERENCE_H_ |