Quote Originally Posted by bajoelkid12 View Post
actually yes.. i have some problems with using OpenCV in my code.. this is what i've done so far..

mycamerawindow.cpp
Qt Code:
  1. #include "MyCameraWindow.h"
  2.  
  3. MyCameraWindow::MyCameraWindow(CvCapture *cam, QWidget *parent) : QWidget(parent) {
  4. camera = cam;
  5. QVBoxLayout *layout = new QVBoxLayout;
  6. cvwidget = new QOpenCVWidget(this);
  7. layout->addWidget(cvwidget);
  8. setLayout(layout);
  9. resize(500, 400);
  10.  
  11. startTimer(100); // 0.1-second timer
  12. }
  13.  
  14. void MyCameraWindow::timerEvent(QTimerEvent*) {
  15. IplImage *image=cvQueryFrame(camera);
  16. cvwidget->putImage(image);
  17. }
To copy to clipboard, switch view to plain text mode 

i get this code from http://qt-apps.org/content/show.php/...?content=89995

btw thank you for the algorithm, now i'll try to implement it to my code.. but if you don't mind, may i send my project file to you ?
if you use your code, you cant record with audio, how to record video with audio use OpenCV ???