Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

blue and red flipped python #4542

Closed
teriterance opened this issue Aug 1, 2019 · 1 comment
Closed

blue and red flipped python #4542

teriterance opened this issue Aug 1, 2019 · 1 comment
Labels

Comments

@teriterance
Copy link


Required Info
Camera Model { D415 /D435i }
Operating System & Version Linux (Ubuntu 18.04)
Kernel Version (Linux Only) (e.g. 4.14.13)
Platform PC
Language {C/ opencv / pyhton }
Segment {others }

Issue Description

<Describe your issue / question / feature request />
Hi
I am getting some color problem with my camera, yellow and blue are inversed
Screenshot from 2019-08-01 12-11-33
success, frames = pipeline.try_wait_for_frames() img = np.asanyarray(frames.get_color_frame().get_data()) cv2.imshow('img',img)

@dorodnic
Copy link
Contributor

dorodnic commented Aug 1, 2019

OpenCV uses BGR format by default. You can configure RealSense to output BGR, or add img = cv2.cvtColor(img, cv2.COLOR_RGB2BGR) to your code

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants