camera calibration for measuring objects

4 次查看(过去 30 天)
Hi. in the help of matlab for Measuring Planar Objects with a Calibrated Camera, a checkboared is used . this checkboard is beside the penny for measuring the diameter of it. i want to know that is there any way to measure diameter of penny without the checkboard , I mean that first use the checkboard for calibrating and then use penny in the another picture and measure it's diameter separately.

采纳的回答

Dima Lisin
Dima Lisin 2015-9-15
To measure a planar object with a single camera you need to know the extrinsics, which is the transformation between the plane of the object and the camera's coordinate system. You can take a picture of the checkerboard on the table separately and compute the extrinsics. You can then take a picture of the penny on the same table and measure it, but the camera must not move between these two pictures.
Alternatively, you can calibrate a stereo pair of cameras using the Stereo Camera Calibrator app, and then you would not need the checkerboard at all. You would also be able to measure non-planar objects.

更多回答(1 个)

Walter Roberson
Walter Roberson 2015-9-13
Yes. Even if you do not use the Computer Vision routines for Camera Calibration, you can use the checkerboard to compute the projection information, and then on the next picture you use the same calculated projection information to find the size of the object.
  1 个评论
forough j
forough j 2015-9-13
thanks for your answer.im new in matlab.i want to calculate the diameter of an object in millimeter. the code which is in the help of matlab can be used when the object(which want to calculate it's diameter) is beside the checkboard.could you please tell me which part of this code (in the help of matlab) I must change to calculate the object separatly? or if you have another code which can help me . thanks

请先登录,再进行评论。

类别

Help CenterFile Exchange 中查找有关 MATLAB Support Package for USB Webcams 的更多信息

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by