I am using following codes to get image from webcam :
CvCapture capture=opencv_highgui.cvCreateCameraCapture(1);
opencv_highgui.cvSetCaptureProperty(capture,CV_CAP_PROP_FRAME_HEIGHT, 768);
opencv_highgui.cvSetCaptureProperty(capture,CV_CAP_PROP_FRAME_WIDTH, 1388);
IplImage grabb=null;
grabb=opencv_highgui.cvQueryFrame(capture);
CanvasFrame f=new CanvasFrame("Wabcam");
while( (f.isVisible()) && ((grabb=opencv_highgui.cvQueryFrame(capture))!=null) )
{
f.showImage(grabb);
}
and it work nicely but it shows in a new window i have two webcam and i want to see data from both webcam at same time and in same window Some thing like:
--------------------------------------------------------------------
| ------------------- ------------------------ |
| | Video 1 | | Video2 | |
| | | | | |
| -------------------- ----------------------- |
| |
| Some other Controls like record and flip etc here |
| |
---------------------------------------------------------------------
I had create same design in netbeans
now i want to that CanvasFrame
only supports showImage(grabb);
. is there any other node in netbeans which can be used for showing image from webcam .
Please help me.
Thank You.