Multiple camera preview in android with openCV

asked 2015-02-24 02:03:52 -0600

HSB gravatar image

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.

edit retag flag offensive close merge delete

Comments

Something like this

HSB gravatar imageHSB ( 2015-02-24 02:33:46 -0600 )edit

Have you seen this? Maybe it helps. If the "two native cameras" does not work (start by displaying the same thing: the captured frame, then try to change one), try the "put everything in the same Mat".

thdrksdfthmn gravatar imagethdrksdfthmn ( 2015-02-24 06:20:46 -0600 )edit

Did you find any solution to this?

Vismay gravatar imageVismay ( 2020-02-04 04:27:11 -0600 )edit