| 1 | initial version |
In most cases application uses only one camera in the same time. So all OpenCV examples added only one view in the window layout and CvCameraViewListener/CvCameraViewListener2 interface implementation to Activity class. It simplifies examples and helps most developers to start easier.
In your case you need to add two views to application layout (vertical or horizontal, as you want) and add two fields to Activity, that implements CvCameraViewListener/CvCameraViewListener2 for both cameras. Separate view components in layout, separate CvCameraViewListener/CvCameraViewListener2 objects for view events handling.