I want to insert rectangle shape to the real time image

13 vues (au cours des 30 derniers jours)
Ibrahim Naglah
Ibrahim Naglah le 2 Août 2023
MATLAB Function3:
function fakeImg = fcn(RealImg)
I = RealImg;
fakeImg = insertShape(I,"line",[10 10 40 40],Color="black",Opacity=1);

Réponses (2)

Image Analyst
Image Analyst le 2 Août 2023
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 le 10 Août 2023
You can also use the Draw Shapes block in Simulink:
https://www.mathworks.com/help/vision/ref/drawshapes.html

Catégories

En savoir plus sur Computer Vision with Simulink dans Help Center et File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by