How can I calculate area of target object with Calibrated Camera
2 ビュー (過去 30 日間)
古いコメントを表示
I have followed the url [http://in.mathworks.com/help/vision/examples/measuring-planar-objects-with-a-calibrated-camera.html] to get idea on Measuring Planar Objects with a Calibrated Camera. The example provides codes to measure the diameter of coins. I believe the same code will help detect any other target object (circle/square etc). However, I would like to measure the area of the target object. Please help me on measuring area of target object.
0 件のコメント
回答 (1 件)
Dima Lisin
2016 年 2 月 24 日
That would depend on the object. If it is circle, and you can measure its diameter, then you can calculate its area as pi*r^2. If it is a square, then you would need to detect its corners in the image, find their world coordinates, measure the side of the square and calculate its area.
参考
カテゴリ
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!