Frame Streaming

Hello.

I have an application in which we’re streaming and displaying it on an industrial HMI.
The display control is very basic; it’s not a web browser.

We’re sending the image with the example program, but we do see that modifying the image compression affects the viewer: “cframe = frame.compress(quality=x)”

With compression of 35, the image is sometimes cut out, with 50 the image is flashy and with 90-100 it is displayed correctly.

The problem we’re having right now is that when I send the black and white image to adjust the thresholds, if it goes completely black or white, the control freezes and won’t refresh again.

I think it could be due to compression. I don’t know if there’s any way to improve compatibility with very basic browsers like the one we’re using.

I have been trying with “cframe = frame.to_jpeg(quality=100, subsampling=image.JPEG_SUBSAMPLING_AUTO)” but we are not able to get the image stability.

Thank you and greetings.

Hi, you might need to manually select the right subsampling: image — machine vision — MicroPython 1.24 documentation

The auto algorithm changes between 444, 422, and 420 at 60% and 35% quality.