Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

Multiple camera preview in android with openCV

Hey guys someone knows how to spilt native camera view in android to show for example two frames at the same time?

For example i would like to see on the left normal frame and on the right the same frame but with effect applied. I have tried putting two native camera elements in the xml file but it is not showing anything.

Then i tried to put in the same Mat (divided in to two parts) the original frame rescaled(on the left RGBA Frame and on the right Gray frame for instance), i am having trouble also rescaling in the appropriate way but i am also afraid if this is the correct way to do what i want.