Vote count:
0
I'm done with detecting vehicles in OpenCV C++ but i need to count them, not counting cars in "frame". i need to count all the cars passed. This is my detecting code, what am i suppose to do? Help me please. Thank you , regards
arac_cascade.detectMultiScale( frame_gray, arac, 1.1, 2, 0|CV_HAAR_SCALE_IMAGE, Size(20, 20) );
for(int i = 0; i < arac.size(); i++)
{
Point pt1(arac[i].x + arac[i].width, arac[i].y + arac[i].height);
Point pt2(arac[i].x, arac[i].y);
rectangle(frame, pt1, pt2, cvScalar(0, 255, 0, 0), 1, 8, 0);
Mat aracROI = frame_gray( arac[i] );
asked 1 min ago
OpenCV counting vehicles
Aucun commentaire:
Enregistrer un commentaire