How to change the parameter width and height of bbox from vision.cascade object detector?
Mostra commenti meno recenti
I'm working on my final project for a lip readings. I face a problem to detect lip automatically by using cascade tool. My input data is video that record face region from eye brow to neck, but the auto lip detection coding is not accurate for all frames in the video. when the mouth opens too wide it will crop the upper and lower lip.
here is the coding that i used to auto detect lip region for every frame.
% Create a cascade detector object. mouthDetector = vision.CascadeObjectDetector('Mouth','MergeThreshold',32);
% Read a video frame and run the detector. videoFileReader = vision.VideoFileReader('M2U02039.avi'); videoFrame = step(videoFileReader);
bbox = step(mouthDetector, videoFrame);
boxInserter = vision.ShapeInserter('BorderColor','Custom',... 'CustomBorderColor',[255 255 0]); videoOut = step(boxInserter, videoFrame, int32(bbox)); figure, imshow(videoOut), title('Detected Mouth');
rgbImage = imcrop(videoFrame,bbox);
Thanks,
Risposta accettata
Più risposte (0)
Categorie
Scopri di più su ROI-Based Processing in Centro assistenza e File Exchange
Prodotti
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!