Why OpenCV Using BGR Colour Space Instead of RGB

“The reason why the early developers at OpenCV chose BGR color format is probably that back then BGR color format was popular among camera manufacturers and software providers. E.g. in Windows, when specifying color value using COLORREF they use the BGR format 0x00bbggrr. BGR was a choice made for historical reasons and now we have … Read more

sift = cv2.xfeatures2d.SIFT_create() not working even though have contrib installed

I had the same problem. It seems that SIRF and SURF are no longer available in opencv > 3.4.2.16. I chose an older opencv-python and opencv-contrib-python versions and solved this problem. Here is the history version about opencv-python, and I use the following code : pip install opencv-python==3.4.2.16 pip install opencv-contrib-python==3.4.2.16 Edit For Anaconda User … Read more

‘unresolved external symbol’ error when linking with OpenCV 3.0

Here the steps to use OpenCV 3.0.0 with precompiled libs, for a C++ project that links OpenCV statically, in Windows (tested with Windows 8.1) and Visual Studio (tested with Visual Studio 2013) to run this program: #include <opencv2\opencv.hpp> using namespace cv; int main() { Mat3b img = imread(“path_to_image”); imshow(“img”, img); waitKey(); return 0; } Download … Read more

2 usb cameras not working with opencv

The typical reason for 2+ USB cameras to not work together (still they might be working fine separately) is that USB bandwidth is insufficient for them both to run simultaneously. There is a bandwidth limit, which is rather low: The maximum throughput of an isochronous pipe (which is usually used for video) is 24MB/s. More … Read more