Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix a not initialized variable #306

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions src/core/core_func.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ namespace easypr {

const float minabs_sv = 95; //95;

// H range of blue
// H range of blue

const int min_blue = 100; // 100
const int max_blue = 140; // 140
Expand Down Expand Up @@ -526,7 +526,7 @@ void clearBorder(const Mat &img, Rect& cropRect) {
avgValue += i * histogram[i];
}

int thresholdV;
int thresholdV = 0;
float maxVariance = 0;
float w = 0, u = 0;
for (int i = 0; i < 256; i++) {
Expand Down Expand Up @@ -2137,7 +2137,7 @@ void clearBorder(const Mat &img, Rect& cropRect) {

}

// this spatial_ostu algorithm are robust to
// this spatial_ostu algorithm are robust to
// the plate which has the same light shine, which is that
// the light in the left of the plate is strong than the right.
void spatial_ostu(InputArray _src, int grid_x, int grid_y, Color type) {
Expand Down