MotorPhoneAnalysis.h
404 Bytes
#include "include.h"
struct MotorPhoneResult {
int phoning{0};
float prob{0.0};
};
class MotorPhoneAnalysis
{
public:
MotorPhoneAnalysis(/* args */);
~MotorPhoneAnalysis();
int init(int devId, std::string sdk_root);
vector<MotorPhoneResult> detect(vector<sy_img> vec_img);
private:
int release();
private:
void* m_handle{nullptr};
aclrtContext ctx{nullptr};
};