支持反向的上报,首先,再model.txt里面类别设置为!mouse等(在类别前面加一个英文的感叹号,表示非),然后yolov5正常上报,数字(比如,现在上报的是0个),rk1808-tool在收到消息之后,会查看前面是否有感叹号,如果有,表示在个数为0的时候,持续10秒钟,就上报;否则,就是在个数不为0,且持续10秒钟之后上报。
This commit is contained in:
+1
-1
@@ -225,7 +225,7 @@ time_period_t* get_time_period_from_string(char *str) {
|
||||
}
|
||||
printf("rest = \"%s\"", rest);
|
||||
if (strlen(rest) == 0) {
|
||||
token = "23:59:59";
|
||||
token = (char*)"23:59:59";
|
||||
} else {
|
||||
token = rest;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user