Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

Difference in BGR values between C++ and Python

Hello,

I'm using OpenCV in C++ and Python and compare the results. I noticed that BGR values slightly differ (+/- 1, sometimes +/- 2) between those two languages after reading the same frame from a webcam. OpenCV in Python should actually be using C++ codes and so I'm not sure why the values differ. How can I get identical BGR values?

Thanks in advance.

Difference in BGR values between C++ and Python

Hello,

I'm using OpenCV in C++ and Python and compare the results. I noticed that BGR values slightly differ (+/- 1, sometimes +/- 2) between those two languages after reading the same frame from a webcam. the same video. OpenCV in Python should actually be using C++ codes and so I'm not sure why the values differ. How can I get identical BGR values?

Thanks in advance.