From b9def3128e19a76dccafa20718eb63ca968937c6 Mon Sep 17 00:00:00 2001 From: Kalman Date: Tue, 7 Aug 2018 17:06:14 +0800 Subject: [PATCH] Replace CV_BGRA2RGBA with CV_BGR2RGB in samples/uvc/camera.cc --- samples/uvc/camera.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/samples/uvc/camera.cc b/samples/uvc/camera.cc index 1384d7f..04b6010 100644 --- a/samples/uvc/camera.cc +++ b/samples/uvc/camera.cc @@ -144,7 +144,7 @@ int main(int argc, char *argv[]) { // only lastest frame is valid cv::Mat img(400, 1280, CV_8UC3, const_cast(frame->data)); - cv::cvtColor(img, img, CV_BGRA2RGBA); + cv::cvtColor(img, img, CV_BGR2RGB); cv::imshow("frame", img); frame = nullptr;