Hi guys.

I am searching for someone who can help with IPL and OpenCV libraries. well the problem I'm facing is that I need to read a picture of an office desktop and recognise objects ( just pens) on it. in the end the programm has to show similarity of each object to a pen and the ammount of pens found on the image. The stage I got to is that I proccessed the image, made it binary, identified objects with white and background with black colour. So the objects are identified now. The problem is that , how do i get objects parameters such as perimeter, area, size?
I need to get thiese parameters in order to comare them with a tempate , to see if it maches it or not.


So please if anyone can give any suggestions on how to elicit parameters of the objects on the image, please give a hand.
Tahnks for that guys..
Dmitry