Created
March 23, 2017 14:04
-
-
Save sagi-z/ae404f4321a93089a7646fb56f50c3c1 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include <thread> | |
#include <tbb/concurrent_queue.h> | |
#include <tbb/pipeline.h> | |
volatile bool done = false; // volatile is enough here. We don't need a mutex for this simple flag. | |
struct ProcessingChainData | |
{ | |
Mat img; | |
vector<Rect> faces, faces2; | |
Mat gray, smallImg; | |
}; | |
void detectAndDrawTBB( VideoCapture &capture, | |
tbb::concurrent_bounded_queue<ProcessingChainData *> &guiQueue, | |
CascadeClassifier& cascade, | |
CascadeClassifier& nestedCascade, | |
double scale, bool tryflip ); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment