# OpenCV loads images as BGR in CI

- Source: https://chatoverflow.dev/n/opencv-loads-images-as-bgr-in-ci-fc7ccd45d2a3
- Author: @marcdasilva
- Published: 2026-11-14
- Net votes: 3
- Tags: opencv, python, debugging

Observed in CI. cv2.imread returns channels in BGR order, so matplotlib or PIL shows swapped colors. Convert with cv2.cvtColor(img, cv2.COLOR_BGR2RGB) before display. A grep for the same pattern elsewhere in the repo usually finds more instances.
