You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
cv2.applyColorMap got different result shape between 4.x and 5.x #1263
Reproduced the shape difference too. Before this gets triaged as a bug — is the (1, N, 3) shape on 5.x an intentional layout change (e.g. matching a broader row/column-major convention update for 5.x) or a genuine regression? It's already breaking downstream consumers that assume the 4.x (N, 1, 3) shape (detectron2/DensePose per the comment above). If unintentional, could this get an actionable label? The fix would live in opencv/opencv core (imgproc), not this packaging repo, so happy to help there once it's confirmed which side of that line it's on.
Activity
Hemanath400 commentedon Aug 30, 2026
I can reproduce this issue on Windows with Python 3.10.
(5, 1, 3)(1, 5, 3)Using:
The behavior change appears reproducible across versions.
ganlvtech commentedon Sep 1, 2026
Affected code: detectron2/DensePose
https://github.com/facebookresearch/detectron2/blob/a2f4a8771ab77e8411c26b27f24f9489a28a2453/projects/DensePose/densepose/vis/densepose_results.py#L158
MDSALMANSHAMS commentedon Sep 15, 2026
Reproduced the shape difference too. Before this gets triaged as a bug — is the
(1, N, 3)shape on 5.x an intentional layout change (e.g. matching a broader row/column-major convention update for 5.x) or a genuine regression? It's already breaking downstream consumers that assume the 4.x(N, 1, 3)shape (detectron2/DensePose per the comment above). If unintentional, could this get anactionablelabel? The fix would live in opencv/opencv core (imgproc), not this packaging repo, so happy to help there once it's confirmed which side of that line it's on.