#include "widget.h"
#include <QApplication>
int main(int argc, char *argv[])
{
QApplication a(argc, argv);
Widget w;
w.show();
VideoCapture v;
v.open("D:/opencv/heads/01.mp4");
Mat temp,temp2,temp3;
while(v.read(temp))
{
imshow("full color",temp);
cvtColor(temp,temp2,CV_BGR2GRAY);
imshow("grey",temp2);
equalizeHist(temp2,temp3);
imshow("test",temp3);
if(waitKey(30)==27)
{
break;
}
}
return a.exec();
}