diff --git a/src/openalpr/pipeline_data.cpp b/src/openalpr/pipeline_data.cpp index 8936ff4..cabf3f1 100644 --- a/src/openalpr/pipeline_data.cpp +++ b/src/openalpr/pipeline_data.cpp @@ -11,7 +11,7 @@ namespace alpr Mat grayImg; if (colorImage.channels() > 2) { - cvtColor(this->colorImg, grayImg, CV_BGR2GRAY); + cvtColor(colorImage, grayImg, CV_BGR2GRAY); } else {