I want to insert rectangle shape to the real time image

11 ビュー (過去 30 日間)
Ibrahim Naglah
Ibrahim Naglah 2023 年 8 月 2 日
回答済み: Birju Patel 2023 年 8 月 10 日
MATLAB Function3:
function fakeImg = fcn(RealImg)
I = RealImg;
fakeImg = insertShape(I,"line",[10 10 40 40],Color="black",Opacity=1);

回答 (2 件)

Image Analyst
Image Analyst 2023 年 8 月 2 日
You might find using rectangle to draw into the overlay is faster than using insertShape to burn the rectangle into an RGB image.

Birju Patel
Birju Patel 2023 年 8 月 10 日
You can also use the Draw Shapes block in Simulink:


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