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

v4l2 (Color Spaces in Video) #32

Open
mxochicale opened this issue Mar 1, 2024 · 0 comments
Open

v4l2 (Color Spaces in Video) #32

mxochicale opened this issue Mar 1, 2024 · 0 comments

Comments

@mxochicale
Copy link
Owner

mxochicale commented Mar 1, 2024

Streamed video to your host computer is in the format RGBA32 for V4L2VideoCaptureOp in holoscan-sdk [1], meaning that video has four channels stored in 32 bits [2]. So, you might need to drop alpha channels to match the usual three channel input and this can be done definitng your destination data type e.g. "rgb888" or "rgba8888") [3]. Maybe you would to refresh your memory on color space, chroma subsampling, bit depth and more [4]

[1] https://github.com/nvidia-holoscan/holoscan-sdk/blob/main/python/holoscan/operators/v4l2_video_capture/pydoc.hpp
[2] https://en.wikipedia.org/wiki/RGBA_color_model
[3] https://github.com/nvidia-holoscan/holoscan-sdk/blob/main/python/holoscan/operators/format_converter/pydoc.hpp
[4] https://video.matrox.com/en/media/guides-articles/introduction-color-spaces-video

extras

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

No branches or pull requests

1 participant