linkingvision / rapidvms

rapidvms(open source VMS/NVR Video Management System/ Network Video Recorder) ==> project closed, use https://www.linkingvision.com/usc instead
https://www.linkingvision.com/
Other
432 stars 242 forks source link

add face detect option to code #60

Open ahmadi219 opened 7 years ago

ahmadi219 commented 7 years ago

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???

xsmart commented 7 years ago

you have build the server and client?

ahmadi219 commented 7 years ago

yes i did.

xsmart commented 7 years ago

you can reg raw data callback in factory

ahmadi219 commented 7 years ago

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();

}

ahmadi219 commented 7 years ago

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