rapidvms
rapidvms copied to clipboard
add face detect option to code
im working on this app for add face detect option can u guide me? i cant access video or frames of it to analyze each frame???
you have build the server and client?
yes i did.
you can reg raw data callback in factory
i did somthing like below, but cant show it in the wall, show is in new window.
void VSCMotion::face_detection(){
StorSyncInf syncInf(m_pStor);
syncInf.Connect();
VidCamera pCam;
syncInf.GetVidCamera(m_strCam, pCam);
QMessageBox msg;
msg.setText(QString::fromStdString(pCam.strrtspurl()));
msg.show();
msg.exec();
VideoCapture capture;
capture.open(pCam.strrtspurl());
Mat frame;
capture >> frame;
imshow("hi",frame);
cvWaitKey(1);
sabra *mProducer = new sabra(capture, 1);
mProducer->start();
}
Hi where is definition of "reg raw data callback " ? if your mean is StorFactory::RegRawCallback , why it is deactived with #if 0 in storfactoryimpl.hpp? with using this method, can I process each frame of video ? Thanks for your attention