forked from xuos/xiuos
feat(knowing app): remove json config from menuconfig, adding to detect_app arg
This commit is contained in:
@@ -8,9 +8,3 @@ config K210_DETECT_ENTRY
|
||||
depends on USING_K210_YOLOV2_DETECT
|
||||
select LIB_USING_CJSON
|
||||
default n
|
||||
|
||||
config K210_DETECT_CONFIGJSON
|
||||
string "k210 detect config path"
|
||||
default "/kmodel/face.json"
|
||||
---help---
|
||||
k210 detect task config json path
|
||||
|
||||
@@ -24,7 +24,6 @@
|
||||
6.718375,
|
||||
9.01025
|
||||
],
|
||||
"kmodel_path": "/kmodel/face.kmodel",
|
||||
"kmodel_size": 388776,
|
||||
"obj_thresh": [
|
||||
0.7
|
||||
|
||||
@@ -24,7 +24,6 @@
|
||||
2.1128,
|
||||
3.184
|
||||
],
|
||||
"kmodel_path": "/kmodel/helmet.kmodel",
|
||||
"kmodel_size": 2714044,
|
||||
"obj_thresh": [
|
||||
0.7,
|
||||
|
||||
@@ -24,7 +24,6 @@
|
||||
2.049,
|
||||
4.6711
|
||||
],
|
||||
"kmodel_path": "/kmodel/instrusion.kmodel",
|
||||
"kmodel_size": 2713236,
|
||||
"obj_thresh": [
|
||||
0.7
|
||||
|
||||
@@ -3,7 +3,19 @@
|
||||
#endif
|
||||
#include <transform.h>
|
||||
|
||||
static void detect_app() { k210_detect(K210_DETECT_CONFIGJSON); }
|
||||
static void detect_app(int argc, char *argv[])
|
||||
{
|
||||
if (2 != argc) {
|
||||
printf("Usage: detect_app <ABSOLUTE_CONFIG_JSON_PATH>");
|
||||
exit(-1);
|
||||
}
|
||||
|
||||
k210_detect(argv[1]);
|
||||
|
||||
return;
|
||||
}
|
||||
// clang-format off
|
||||
#ifdef __RT_THREAD_H__
|
||||
MSH_CMD_EXPORT(detect_app, detect app);
|
||||
#endif
|
||||
MSH_CMD_EXPORT(detect_app, k210 detect app usage: detect_app <ABSOLUTE_CONFIG_JSON_PATH>);
|
||||
#endif
|
||||
// clang-format on
|
||||
|
||||
Reference in New Issue
Block a user