I want to insert rectangle shape to the real time image
8 次查看(过去 30 天)
显示 更早的评论
MATLAB Function3:
function fakeImg = fcn(RealImg)
I = RealImg;
fakeImg = insertShape(I,"line",[10 10 40 40],Color="black",Opacity=1);
0 个评论
回答(2 个)
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.
0 个评论
Birju Patel
2023-8-10
You can also use the Draw Shapes block in Simulink:
https://www.mathworks.com/help/vision/ref/drawshapes.html
0 个评论
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Computer Vision with Simulink 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!