#ifndef __OPEN_CV_ENGINE_H__ #define __OPEN_CV_ENGINE_H__ #include "EngineCommon.h" #include "IOpenCVEngine.h" #include "BnOpenCVEngine.h" #include "IPackageManager.h" #include #include #include #include #include #include class OpenCVEngine: public BnOpenCVEngine { public: OpenCVEngine(IPackageManager* PkgManager); int32_t GetVersion(); android::String16 GetLibPathByVersion(android::String16 version); virtual android::String16 GetLibraryList(android::String16 version); bool InstallVersion(android::String16 version); protected: IPackageManager* PackageManager; static const std::set KnownVersions; OpenCVEngine(); static std::set InitKnownOpenCVersions(); bool ValidateVersionString(const std::string& version); std::string NormalizeVersionString(std::string version); bool FixPermissions(const std::string& path); static const int Platform; static const int CpuID; }; #endif