How to change the parameter width and height of bbox from vision.cascade object detector?
古いコメントを表示
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,
採用された回答
その他の回答 (0 件)
カテゴリ
ヘルプ センター および File Exchange で ROI-Based Processing についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!