How can I reduce false positives when using the "readAprilTag" function?
13 ビュー (過去 30 日間)
古いコメントを表示
MathWorks Support Team
2023 年 5 月 30 日
回答済み: MathWorks Support Team
2023 年 6 月 5 日
I have an image that contains an AprilTag. When I use the "readAprilTag" function, MATLAB correctly identifies the AprilTag, but also picks up an extraneous AprilTag in the background of the image.
How can I reduce the number of false positives that the "readAprilTag" function returns?
採用された回答
MathWorks Support Team
2023 年 5 月 30 日
The easiest way to assist in accurate AprilTag detection is to increase the contrast or brightness of the image. Please refer to the following example, where "I" refers to the image:
I = I + 70; % Increases the contrast of the image
I = imadjust(I, [], [], 0.2); % Increases the brightness of the image
Alternatively, try measuring the area of the AprilTag using the returned "loc" data. False positive AprilTags will most likely have different size from true positive AprilTags. That may allow for easy filtering.
0 件のコメント
その他の回答 (0 件)
参考
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!