How to mirror horizontally the image from the MLX90640 sensor?

Hello! I use the MLX90640 sensor to my OpenMV and get a reflected thermal image. I use the standard example MLX90640_overlay.py from OpenMV IDE. How to mirror horizontally the image from the MLX90640 sensor?
fdfd.jpg

Use the snapshot() method to get the thermal image from the sensor. Then use set(h_mirror=True) to mirror the image and then use the draw_image() method to overlay the image using an alpha blend.

I get an error “AttributeError: ‘Image’ object has no attribute ‘set’”

Update your firmware.

Thanks! After the firmware upgrade, the standard example began to work correctly. And how can you compensate for the discrepancy between the optical systems of the camera and MLX90640? The contours of objects from the MLX90640 look more than they are in the image from the camera.

You’d want to use the rotation correction algorithm to change the image and then combine it with the image captured in the main frame buffer.

Basically, do snapshot () with the mlx, then rotation correction(), then snapshot of the main camera, then draw with alpha blending the thermal image on the regular image.