Skip to content

Commit

Permalink
Merge branch 'hotfix/v0.3.4'
Browse files Browse the repository at this point in the history
  • Loading branch information
g199209 committed Jan 4, 2016
2 parents c70c1c7 + ae10e20 commit 85ef2e3
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions LPR/LPR.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -45,10 +45,10 @@ void LPR::binary(cv::Mat & Img)
// 中值滤波
medianBlur(Img, Img, 7);

// 提取G通道转为灰度图
// 提取B通道转为灰度图
vector<Mat> mv;
split(Img, mv);
Img = mv[1];
Img = mv[2];

// 计算平均灰度值
uchar ThreVal = (uchar)cv::mean(Img).val[0];
Expand Down

0 comments on commit 85ef2e3

Please sign in to comment.