Logo white

Hu Chunming / village_ascend_arm

Sign in
  • Sign in
  • Project
  • Files
  • Commits
  • Network
  • Graphs
  • Milestones
  • Issues 0
  • Merge Requests 0
  • Labels
  • Wiki
  • village_ascend_arm
  • src
  • ai_engine_module
  • MotorPhoneAnalysis.h
  • 设置初始值,避免异常值影响
    b1547dfc
    Hu Chunming authored
    2025-01-21 16:06:56 +0800  
    Browse Code »
MotorPhoneAnalysis.h 404 Bytes
Edit Raw Blame History Permalink
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25
#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};
};