if you use your code, you cant record with audio, how to record video with audio use OpenCV ???actually yes.. i have some problems with using OpenCV in my code.. this is what i've done so far..
mycamerawindow.cpp
Qt Code:
#include "MyCameraWindow.h" camera = cam; cvwidget = new QOpenCVWidget(this); layout->addWidget(cvwidget); setLayout(layout); resize(500, 400); startTimer(100); // 0.1-second timer } IplImage *image=cvQueryFrame(camera); cvwidget->putImage(image); }#include "MyCameraWindow.h" MyCameraWindow::MyCameraWindow(CvCapture *cam, QWidget *parent) : QWidget(parent) { camera = cam; QVBoxLayout *layout = new QVBoxLayout; cvwidget = new QOpenCVWidget(this); layout->addWidget(cvwidget); setLayout(layout); resize(500, 400); startTimer(100); // 0.1-second timer } void MyCameraWindow::timerEvent(QTimerEvent*) { IplImage *image=cvQueryFrame(camera); cvwidget->putImage(image); }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 ?





but if you don't mind, may i send my project file to you ?
Reply With Quote
Bookmarks