find object size in pixels
I'm new to opencv, i use the c++ package. I used the code in the tutorial to detect an known object in the picture. Now I need to find the size of the object in pixels. I just need the number of pixels of his height and width in the pic (not the actual size). I couldn't find something that will help me.. is there a way to do it?
We need more information than that. What have you done so far? Do you have bounding rectangles? If so you can easily check the size of the bounding rectangles. Width and height are members of the rect class.
could put your code, that will help us to help you