write a MATLAB code to locate all yellow circles in the provided image

8 ビュー (過去 30 日間)
nishanth patil
nishanth patil 2024 年 7 月 12 日
回答済み: Sam Chak 2024 年 7 月 12 日
Automatically detect circular objects in an image and visualize the detected circles.
Steps are here, just detect all the yellow circles in the image

回答 (1 件)

Sam Chak
Sam Chak 2024 年 7 月 12 日
The code is available in the example to locate the bright yellow circular objects. You need to adjust the Sensitivity level though.
rgb = imread("coloredChips.png");
imshow(rgb)
[centersBright, radiiBright] = imfindcircles(rgb, [20 25], ObjectPolarity="bright", Sensitivity=0.95);
hBright = viscircles(centersBright, radiiBright, Color="b");

カテゴリ

Help Center および File ExchangeComputer Vision with Simulink についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by