Added copy to grayscale img crop related to issue #247 and #216

This commit is contained in:
Matt Hill
2016-01-11 20:22:48 -05:00
parent 6d5ab9c651
commit 8f7b991f46

View File

@@ -94,6 +94,11 @@ namespace alpr
// Make a grayscale copy as well for faster processing downstream
cv::cvtColor(pipeline_data->color_deskewed, pipeline_data->crop_gray, CV_BGR2GRAY);
}
else
{
// Copy the already grayscale image to the crop_gray img
pipeline_data->color_deskewed.copyTo(pipeline_data->crop_gray);
}
if (this->config->debugGeneral)