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

Color shift on video inferencing #22

Open
pdr0github opened this issue Dec 2, 2024 · 0 comments
Open

Color shift on video inferencing #22

pdr0github opened this issue Dec 2, 2024 · 0 comments

Comments

@pdr0github
Copy link

pdr0github commented Dec 2, 2024

There is a slight color shift on video inferencing

I believe it has to do with YCbCr to/from RGB conversion. The RGB image inferencing is not affected

To test, I changed in the inference_video_plus_...py scripts the cv2.VideoWriter_fourcc to FFVH for lossless compression, and it also supports many pixel types, but the output is always YUV420P8.

You can also see this more easily on greyscale video input. Instead of the input Cb=Cr=128 , the output video has deviations between 125-130 and a tint appears even on non interpolated frames.

If you need any assets or examples to clarify, please let me know

Thanks for developing this interesting project

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