I want to insert rectangle shape to the real time image

11 次查看(过去 30 天)
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:
https://www.mathworks.com/help/vision/ref/drawshapes.html

类别

Help CenterFile Exchange 中查找有关 Computer Vision with Simulink 的更多信息

Community Treasure Hunt

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

Start Hunting!

Translated by