7 #include <ma_config_board.h>
23 #if MA_USE_ENGINE_TFLITE
24 static EngineTFLite engine_default;
25 #elif MA_USE_ENGINE_CVI
26 static EngineCVI engine_default;
28 #error "No engine is defined"
30 engine = &engine_default;
31 int ret = engine->init();
38 executor = &executor_default;
40 MA_STORAGE_GET_POD(device->getStorage(),
"ma#score_threshold", shared_threshold_score, shared_threshold_score);
41 MA_STORAGE_GET_POD(device->getStorage(),
"ma#nms_threshold", shared_threshold_nms, shared_threshold_nms);
54 std::atomic<std::size_t> current_task_id = 0;
55 size_t current_model_id = 0;
56 size_t current_sensor_id = 0;
57 size_t current_algorithm_id = 0;
59 float shared_threshold_score = 0.25;
60 float shared_threshold_nms = 0.45;
62 std::atomic<bool> is_ready =
false;
63 std::atomic<bool> is_sample =
false;
64 std::atomic<bool> is_invoke =
false;
67 #define static_resource StaticResource::getInstance()
Definition: ma_device.h:15
static Device * getInstance() noexcept
Definition: ma_executor.hpp:17
Definition: ma_engine_base.h:17
#define MA_LOGD(TAG,...)
Definition: ma_debug.h:79
#define MA_LOGE(TAG,...)
Definition: ma_debug.h:30
#define MA_TAG
Definition: ma_debug.h:9
@ MA_OK
Definition: ma_types.h:23
Definition: ma_engine_base.h:15
Definition: algorithm.hpp:11
Definition: resource.hpp:17
static StaticResource * getInstance() noexcept
Definition: resource.hpp:45