Can somebody help me with face alignment code error?

When i run the code on my images it works perfectly on some but it gives me the error below on some.. how can i fix that?
Attempted to access bbox(3); index out of bounds because numel(bbox)=0.
Error in InitShape (line 18) a = 0.80*bbox(3)/(max(rshape(1:n))-min(rshape(1:n)));
Error in Demo (line 43) test_init_shape = InitShape(bbox,refShape);

댓글 수: 5

José-Luis
José-Luis 2014년 6월 16일
편집: José-Luis 2014년 6월 16일
Have you tried using the debugger and looking at the offending variables.
bbox is empty when it is not expected to be so. Why that is? Hard to tell without wild guessing. And that is inefficient.
ya that's the question i have, why is it working on some images and it shows empty on other. I am confused..am still working on it though
but how can i use isempty to check if the bbox is empty and go to the next one?
matlab face detection fails on some images. you need better face detection. try face detection from https://sites.google.com/site/akshayasthana/clm-wild-code
That is what am using but it still don't work on some of my images. it doesn't even detect some of my images i don't know why

댓글을 달려면 로그인하십시오.

답변 (1개)

Mahmood ul haq
Mahmood ul haq 2017년 12월 17일

0 개 추천

can you please share your code with me. my email mahmoodfarooqi@ciit.net.pk

질문:

2014년 6월 16일

답변:

2017년 12월 17일

Community Treasure Hunt

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

Start Hunting!

Translated by