Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

linked list iterate within main for loop impacts face processing

I'm using the following facerecognizer example. http://docs.opencv.org/2.4/modules/contrib/doc/facerec/tutorial/facerec_video_recognition.html

Within the for loop in the main() function, i am iterating a linked list to search for intersecting rectangles. This seems to be having an impact in that it cant handle more then 2 faces.

What alternative is there? Should i use a vector? threads?

Thanks

linked list iterate within main for loop impacts face processing

Hi everyone. I'm using the following facerecognizer example. http://docs.opencv.org/2.4/modules/contrib/doc/facerec/tutorial/facerec_video_recognition.html

Within the for loop in the main() function, i am iterating a linked list to search for intersecting rectangles. This seems to be having an impact in that it cant handle more then 2 faces.

What alternative is there? Should i use a vector? threads?

Thanks

linked list iterate within main for loop impacts face processing

Hi everyone. I'm using the following facerecognizer example. http://docs.opencv.org/2.4/modules/contrib/doc/facerec/tutorial/facerec_video_recognition.html

Within the for loop in the main() function, i am iterating a linked list to search for intersecting rectangles. This seems to be having an impact in that it cant handle more then 2 faces.

What alternative is there? Should i use a vector? threads?

Thanks

update: This is the part i put in the for loop. The area() command seems to be the culprit.

tmp=head;
while(tmp) { 
bool intersects=((a&tmp->b).area()>0);  
if(intersects) cout << "intersected" << endl;
else cout << "not intersected" << endl;
tmp=tmp->next;

}