From ae10e2048bdb3c777f717549757532160b8e8f90 Mon Sep 17 00:00:00 2001 From: Mingfei Gao Date: Mon, 4 Jan 2016 14:03:30 +0800 Subject: [PATCH] G->B --- LPR/LPR.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/LPR/LPR.cpp b/LPR/LPR.cpp index 3bbb11f..7643f08 100644 --- a/LPR/LPR.cpp +++ b/LPR/LPR.cpp @@ -45,10 +45,10 @@ void LPR::binary(cv::Mat & Img) // 中值滤波 medianBlur(Img, Img, 7); - // 提取G通道转为灰度图 + // 提取B通道转为灰度图 vector mv; split(Img, mv); - Img = mv[1]; + Img = mv[2]; // 计算平均灰度值 uchar ThreVal = (uchar)cv::mean(Img).val[0];