01-06-2012 06:06 AM
hey, I am working on a program that uses a usb camera to output the dimensions of the object its reading... for example if we put a box having a width of 5cm and lenght of 6 cm the program outputs for me these dimensions...is it possible to do this through the webcam.. I am searching for the right palletes to do that.. can anyone help me plz?
Thanks
01-09-2012 05:30 AM
Hi Abook7
You cannot perform this kind of measurement without knowing additional variables ie. depth or having a calibration pattern. Another way you can do it is using two cameras in steroscopy. What idea did you have to do this? If only one camera, with no information on depth, it is not possible.
Piotr
01-12-2012 02:53 PM
hey, I have the depth information about the object...I got a potentiometer to measure the depth for me, but i still have the length and width to find and i hopefully can use the camera to find it..any idea concerning that?
01-13-2012 09:15 AM
An idea will be to use another object as reference. If you have a reference object that you know exactly the dimensions, using edge detection you can measure it's dimensions and after that comparing with a simpel algoritm you can find the dimensions of the objects you are looking for.
Kind regrads,
Ion R.