开始测试人脸识别,关闭检测框体,下一步修复无法识别人脸的问题
This commit is contained in:
parent
49699263e0
commit
8dda41633d
@ -69,6 +69,7 @@
|
||||
"enable": true,
|
||||
"draw_bbox": true,
|
||||
"draw_text": true,
|
||||
"draw_face_det": false,
|
||||
"line_width": 2,
|
||||
"font_scale": 1,
|
||||
"labels": []
|
||||
|
||||
@ -287,6 +287,7 @@ public:
|
||||
id_ = config.ValueOr<std::string>("id", "osd");
|
||||
draw_bbox_ = config.ValueOr<bool>("draw_bbox", true);
|
||||
draw_text_ = config.ValueOr<bool>("draw_text", true);
|
||||
draw_face_det_ = config.ValueOr<bool>("draw_face_det", draw_face_det_);
|
||||
line_width_ = config.ValueOr<int>("line_width", 2);
|
||||
font_scale_ = config.ValueOr<int>("font_scale", 1);
|
||||
|
||||
@ -319,7 +320,8 @@ public:
|
||||
|
||||
bool Start() override {
|
||||
LogInfo(std::string("[osd] start id=") + id_ + " draw_bbox=" + (draw_bbox_ ? "true" : "false") +
|
||||
" draw_text=" + (draw_text_ ? "true" : "false"));
|
||||
" draw_text=" + (draw_text_ ? "true" : "false") +
|
||||
" draw_face_det=" + (draw_face_det_ ? "true" : "false"));
|
||||
return true;
|
||||
}
|
||||
|
||||
@ -336,7 +338,7 @@ public:
|
||||
out = CloneFrameForWrite(out);
|
||||
}
|
||||
DrawDetections(out);
|
||||
DrawFaceDet(out);
|
||||
if (draw_face_det_) DrawFaceDet(out);
|
||||
DrawFaceRecog(out);
|
||||
}
|
||||
|
||||
@ -518,6 +520,7 @@ private:
|
||||
std::string id_;
|
||||
bool draw_bbox_ = true;
|
||||
bool draw_text_ = true;
|
||||
bool draw_face_det_ = true;
|
||||
int line_width_ = 2;
|
||||
int font_scale_ = 1;
|
||||
std::vector<std::string> labels_;
|
||||
|
||||
Loading…
Reference in New Issue
Block a user