We also can apply negative filter on an image by calling set_special_effect() with sensor.NEGATIVE.
The following is a sample complete code for applying negative filter.
import sensor sensor.reset() sensor.set_pixformat(sensor.RGB565) sensor.set_framesize(sensor.QVGA) sensor.skip_frames() while(True): sensor.set_special_effect(sensor.NEGATIVE) img = sensor.snapshot()
Run this program on OpenMV IDE.
Shooting any area from OpenMV board. You should see image on the right-upper.