Getting Meters per Pixel out of the camera calibration app?
6 ビュー (過去 30 日間)
古いコメントを表示
Is it possible to get meters per pixel out of the camera calibration app? The calibration was successful with the use of a checkboard but just need to know the m/Pixal so i can use it for motion tracking. Or is there a way of using the camera calibration data within the motion tracking?
I have objects moving is a video from a static camera and need to find the velocity of the objects. I have photos of a calibration board at the same distance from the camera as the objects i want to track. I have used the camera calibration app to measure the check board but im stuck as to how i can extract the information i need so that i can find an acurate (ish) distance traveled of the object in the video.
Thanks and much love.
0 件のコメント
採用された回答
Bjorn Gustavsson
2021 年 1 月 6 日
If you know the size of the squares on the checkerboard and your objects are at the same distance then you only need to count the size of the squares in pixels and then you have it. something like this:
checkerboard_size = [0.04 0.05]; % [m] pure guesswork - but reasonable size of a checkerboard square?
pixels_per_square = [34, 35;34.5 34.5; 34 36]; % extracted pixel-sizes of a couple of representative...
% squares of the checkerboard in an image
length_per_pixel = checkerboard_size./mean(pixels_per_square);
Note that I've not bothered to do this with a proper statistical estimate, that is left to the traveler. Also be very careful with the
use of this since it will only be valid at the same distance from the camera as the checkerboard.
HTH
その他の回答 (0 件)
参考
カテゴリ
Help Center および File 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!