1 | initial version |
you should process your image in onCameraFrame()
.
just get your Mat from inputFrame.rgba();
, whatever you return , will get shown in the preview.
(no need to process byte[] buffers, also, in your example above, your 2nd put call overwrites the cvtColor() (and might even crash))