Use enum value.

This commit is contained in:
Peter Rekdal Sunde
2015-08-12 15:57:18 +02:00
parent 6cfb804ad0
commit bdcd318ffe
2 changed files with 3 additions and 3 deletions

View File

@@ -457,7 +457,7 @@ namespace openalprnet {
array<Byte>^ PreWarp(array<Byte>^ imageBuffer)
{
std::vector<char> buffer = AlprHelper::ToVector(imageBuffer);
cv::Mat src = cv::imdecode(buffer, 1);
cv::Mat src = cv::imdecode(buffer, CV_LOAD_IMAGE_COLOR);
alpr::PreWarp *preWarp = new alpr::PreWarp(m_Impl->getConfig());
cv::Mat warpedImage = preWarp->warpImage(src);