Image difference warning

Hi I am new user of OpenMV with very basic programming experience. I would like to compare a fixed static image of a shaped part with parts viewed by the OpenMV camera. When there is a match to light a green led and when it’s unmatched to light a red led.
Which program module I have to use? How I can send a signal to led.

Hi, see the frame difference example under the examples folder and then for how to control and I/O pin look at the board control examples folder.