Skip to content

Commit

Permalink
fix: adjust baseline & resultLable recognition
Browse files Browse the repository at this point in the history
  • Loading branch information
KumoSiunaus committed Oct 23, 2022
1 parent 5a7572d commit 90f21f3
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/result.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ using dict = nlohmann::ordered_json;
namespace penguin
{ // result
const int BASELINE_V_HEIGHT_MIN = 10;
const int RESULT_DIST_THRESHOLD = 25;
const int RESULT_DIST_THRESHOLD = 40;
const double STAR_WIDTH_PROP = 0.4;
const double DROP_AREA_X_PROP = 0.21;
const double DROP_AREA_Y_PROP = 0.2;
Expand Down Expand Up @@ -1347,7 +1347,7 @@ class Result_New : public Widget
static_cast<int>(0.2 * width),
static_cast<int>(0.4 * height)));
cv::cvtColor(img_bin, img_bin, cv::COLOR_BGR2GRAY);
cv::threshold(img_bin, img_bin, 120, 255, cv::THRESH_BINARY);
cv::threshold(img_bin, img_bin, 100, 255, cv::THRESH_BINARY);

auto sp = separate(img_bin, DirectionFlags::LEFT);
cv::Rect baseline_v_rect;
Expand Down

0 comments on commit 90f21f3

Please sign in to comment.