I am doing a project on face recognition. Qt is used for creating the front-end.
When I click the button(which is having the label 'select video from webcam') it will capture video from web-cam, but it is not visible. Not visible in the sense, the parent window is covering the video which is currently playing, or video which is playing currently is behind the parent window. what should I do to make it in front of all the parent windows, until the video ends.
void admin_db_creation::on_pushButton_3_clicked()
{
capture = cvCaptureFromCAM(0);
if(!capture)
{
cout<<"Could not initialize capturing..."<<endl;
}
while(1)
{
frame2 = cvQueryFrame(capture);
frame3=detectFace(frame2);
imshow("window", frame2);
char key = cvWaitKey(10);
if (key == 27)
break;
}
}
This is button click code,it contains code for playing the video..