-
Notifications
You must be signed in to change notification settings - Fork 4.8k
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
How to configure RGB format #4218
Comments
Default format used by OpenCV is BGR config cfg;
cfg.enable_stream(RS2_STREAM_DEPTH);
cfg.enable_stream(RS2_STREAM_COLOR, RS2_FORMAT_BGR8);
pipeline p;
p.start(cfg); |
@dorodnic Thanks,I've done it. |
I had the same issue, I have solved it with codes here. Complete code for the requirement: int main()
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Required Info
| Camera Model | { D415 } |
| Operating System & Version | {Win 10 |
| SDK Version | 2.0 |
| Language | C++ |
Platform: visual studio 2015
When I show color stream in this way:
rs2::frameset data = pipe.wait_for_frames();
rs2::frame color = data.get_color_frame();
the color it shows might be wrong.blue things will turn yellow.
Where can I configure for color? How to configure RGB format for it? Thanks!
The text was updated successfully, but these errors were encountered: