Ask Your Question

Revision history [back]

Foot Measurement [Python]

Hi Everyone,

I have to find the length and the width of a foot placed on a A4 Sheet.

First i tried with some object, like a business card or flyer then it works. I detect the contours of the A4 sheet by finding the 4 contours and cv2.boundingRect() to get a rectangle. and as we know the A4 size then i can find the size of the objects inside.

BUT with the foot obviously it block the 4th contours so i can't get my rectangle and by deduction not use the A4 sheet to measure the foot.

Could someone tell me the approach, thank you so much.

ps : here is the image C:\fakepath\foot3.jpg