Skip to content
Snippets Groups Projects
Select Git revision
  • 66b9adbf2dc94cd6a834aa89bf0611efb84acb01
  • master default protected
2 results

pluginParameters.h

Blame
  • Code owners
    Assign users and groups as approvers for specific file changes. Learn more.
    pluginParameters.h 759 B
    #ifndef _PLUGINPARAMETERS_H_
    #define _PLUGINPARAMETERS_H_
    
    // #pragma once
    #include <string>
    #include <map>
    
    struct PluginParameters {
        std::string stream = "out";
    #ifdef TFLITE
        bool useGPU = false; //only used when on desktop
    #ifdef __ANDROID
        std::string model = "model_256_Qlatency.tflite";
    #else
        std::string model = "model_256_F_16.tflite";
    #endif
    #else
        bool useGPU = true; //only used when on desktop
        std::string model = "frozen_inference_graph.pb";
    #endif //TFLITE
        std::string image = "background2.png";
    };
    
    void setGlobalPluginParameters(std::map<std::string, std::string> pp);
    
    void getGlobalPluginParameters(PluginParameters* mPluginParameters);
    PluginParameters* getGlobalPluginParameters();
    
    #endif //__PLUGINPREFERENCE_H_