How to crop detected image from vision.Cas​cadeObject​Detector?

3 visualizaciones (últimos 30 días)
PERCY NIAL
PERCY NIAL el 9 de Dic. de 2016
Respondida: Image Analyst el 9 de Dic. de 2016
I wish to crop out the detected image (ROI) from vision.CascadeObjectDetector but idont know how to do it.
rgb_img = imread('put image file path here'); % Load the image image(rgb_img) % Display the RGB image figure(1);imshow(rgb_img); EyeDetect = vision.CascadeObjectDetector('LeftEyeCART','MergeThreshold',40); Eye=step(EyeDetect,rgb_img); out=insertObjectAnnotation(rgb_img,'rectangle',Eye,'detection'); figure(2),imshow(out)

Respuestas (1)

Image Analyst
Image Analyst el 9 de Dic. de 2016
Get the bounding box and then call imcrop().

Categorías

Más información sobre Computer Vision with Simulink en Help Center y File Exchange.

Community Treasure Hunt

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

Start Hunting!

Translated by