Check out this beard length detector I wrote in 22 lines of Python with SimpleCV
What is the unit of measure for line.length()?
On top of that, you will have to be able to identify the object you are trying to measure (unless it is a manually driven process).