I’m color-blind and I made a small android app to exchange colors in a realtime image in order to distinguish red from black.
But the app runs slowly and gets just one frame from the camera.
After many attempts (I initially blamed on my filters, but they took less than 40 microseconds to run), I discovered that this code shows a camera preview image:
image (cam,width/2, height/2);
While this code produces no image at all:
ketaiCamera cam; PImage img; cam.start(); .... img=cam.get(); image (img,width/2, height/2);
What can I do to get the preview frame into a PImage so I can apply a filter to its pixels ?