Hacker News new | ask | show | jobs
by jphoward 939 days ago
I like opencv, but can there be a stretch goal where if they raise $1M they agree to move from Blue/Green/Red colour channel order by default to RGB in OpenCV5, like everyone else on planet earth? I genuinely avoid opencv for this reason because I know I will forget to BGR->RGB on loading and RGB->BGR before saving occasionally, and so I'd rather stick to skimage/imageio/PIL. Or hell, add an `as_rgb=False` parameter to the load/save functions or something!
1 comments

> The reason the early developers at OpenCV chose BGR color format is 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.

For anyone curious about why OpenCV uses BGR: https://learnopencv.com/why-does-opencv-use-bgr-color-format...