-
Notifications
You must be signed in to change notification settings - Fork 8
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
Fix video stream demo image scaling, shaking and color shift #40
Fix video stream demo image scaling, shaking and color shift #40
Conversation
- The image was trembling due to the display of the HTML element 'write-time'. This element is the image frame refresh interval oscillating between ~9 and ~11 ms, which results in a element length toggling. - As the image has a display 'inline-block' style, it flickers along with the 'write-time' length. - We just use a line break to avoid this effect.
Refer to issue 41. - OpenCV library assumes the color channel order to be BGR or BGRA. - before calling `cv::imencode()`, use `cv::cvtColor()` for converting the original channel order into BGR or BGRA. - an exception is raised for non supported pixel codes.
I'm still finishing an approach based on @S-Dafarra's suggestion, but it's already worth reviewing the implementation so far already discussed in the call. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks, seems ok. Not sure if you want to check if we can do just with YARP but anyhow we can always merge this and improve it later.
Thanks @traversaro , I will submit a separate PR for the improvement, as you suggested, that way it shall be easier to discuss around it and eventually discard it. |
Fixes #39 .