mirror of
https://github.com/RustyRaptor/learnopencv.git
synced 2026-12-03 22:15:16 -07:00
bug fix for cvtColor and pyzbar
This commit is contained in:
1 parent
03418c3c2d
commit
bd60053a6a
2 files changed
+2
-2
No files matched your search
@@ -24,7 +24,7 @@ void decode(Mat &im, vector<decodedObject>&decodedObjects)
|
||||
|
||||
// Convert image to grayscale
|
||||
Mat imGray;
|
||||
cvtColor(im, imGray,CV_BGR2GRAY);
|
||||
cvtColor(im, imGray,COLOR_BGR2GRAY);
|
||||
|
||||
// Wrap image data in a zbar image
|
||||
Image image(im.cols, im.rows, "Y800", (uchar *)imGray.data, im.cols * im.rows);
|
||||
|
||||
Reference in new issue
Block a user