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;
51 std::atomic<std::size_t> current_task_id = 0;
52 size_t current_model_id = 0;
53 size_t current_sensor_id = 0;
54 size_t current_algorithm_id = 0;
56 float shared_threshold_score = 0.25;
57 float shared_threshold_nms = 0.45;
59 std::atomic<bool> is_ready =
false;
60 std::atomic<bool> is_sample =
false;
61 std::atomic<bool> is_invoke =
false;
64 #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:42