Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

add face detect option to code #60

Open
ahmadi219 opened this issue Sep 3, 2016 · 5 comments
Open

add face detect option to code #60

ahmadi219 opened this issue Sep 3, 2016 · 5 comments

Comments

@ahmadi219
Copy link

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
Copy link
Member

xsmart commented Sep 3, 2016

you have build the server and client?

@ahmadi219
Copy link
Author

ahmadi219 commented Sep 6, 2016

yes i did.

@xsmart
Copy link
Member

xsmart commented Sep 6, 2016

you can reg raw data callback in factory

@ahmadi219
Copy link
Author

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
Copy link
Author

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants