I have written a program to count no of cars from the captured video. I have installed opencv and cvblob, raspbian wheezy OS on raspberry pi 2. The problem I am facing is "During run time the program hangs at cvLabel after certain no of iterations.
IplImage *labelImg =cvCreateImage(cvGetSize(greyImage), IPL_DEPTH_LABEL, 1);
unsigned int result = cvLabel(greyImage, labelImg,blobs);
But when I run the same program on Virtual Machine in my laptop it will run completely. What might be the reason for this..? Please advice