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!