Image cross correlation - smart way


so I have the problem of calculating the cross correlation between two images. To do so I designed an algorithm to convert the image into a numpy array using get_pixel, and after that I calculate the cross correlation between a base image and the current caputred image.

I want to know if there is a smart way to do this using the base image functions instead of changing the image to a numpy array.

Thank You

Find_template()? This is what is does internally.

Yes, but how to obtain the correlation coefficient between two images not the position?

Oh, then you want to use the phase correlation method we have. image — machine vision — MicroPython 1.20 documentation

@kwagyeman thanks for your answer, that’s what I needed. I’m trying to use the results in an specific situation. As soon as its done I will post the results here.