Ask Your Question

Revision history [back]

Get coordinates from the detected object using haar cascade (c++)

Im working my image processing in c++, and Im using the method of haar cascade. And I got the object detected, but my problem is, the detected object is stored in Vector<rect>. I do understand to get a coordinate using find contours, but if the object is in Mat and it is 8 bit. But I dont understand how to convert Vector<rect> to Mat. Or if you guys have another way to get the coordinate. I hope that it is clear enough. Thank you