Skip to content

Instantly share code, notes, and snippets.

@ivder
Created April 23, 2019 00:29
Show Gist options
  • Save ivder/9f02f1e715bb308c4c67943e0a1fb4c8 to your computer and use it in GitHub Desktop.
Save ivder/9f02f1e715bb308c4c67943e0a1fb4c8 to your computer and use it in GitHub Desktop.
Intel OpenVIno Classification header
#pragma once
#include "CommonDef.h"
#include "Utils.h"
#include <string>
typedef std::pair<string, float> Prediction;
class ClassificationWithIntelContext;
class ClassificationWithIntel {
public:
ClassificationWithIntel(string modelPath);
//~ClassificationWithIntel();
ClassifyResultCNN Classify(string imagePath);
/*void SetPredictRate(float rate);*/
private:
std::string IntelModelPath;
std::string IntelImagePath;
float predict_rate;
ClassificationWithIntelContext* ctx;
};
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment