rapidvms icon indicating copy to clipboard operation
rapidvms copied to clipboard

add face detect option to code

Open ahmadi219 opened this issue 8 years ago • 5 comments

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

ahmadi219 avatar Sep 03 '16 08:09 ahmadi219

you have build the server and client?

xsmart avatar Sep 03 '16 13:09 xsmart

yes i did.

ahmadi219 avatar Sep 06 '16 05:09 ahmadi219

you can reg raw data callback in factory

xsmart avatar Sep 06 '16 15:09 xsmart

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 avatar Sep 07 '16 08:09 ahmadi219

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

ahmadi219 avatar Sep 07 '16 11:09 ahmadi219