Unable to use vision.Cas​cadeObject​Detector function in gui model

I am trying to recognise a face using matlab.When i am using vision.CascadeObjectDetector in a normal .m file i am able to get output.But when i am trying to interface it with gui model the bounding box is returning a matrix of size 0 i.e, face is not being recognised.Please help me in solving this problem.Please state any alternatives will be there to recognise face with gui

5 件のコメント

Dima Lisin
Dima Lisin 2015 年 3 月 15 日
Hi Saideep,
Can you please clarify what you mean by "gui model"? Are you using Simulink?
saideep
saideep 2015 年 3 月 15 日
GUI means Graphical user interface
Dima Lisin
Dima Lisin 2015 年 3 月 16 日
That much I know. Can you please clarify further? Can you post a link to your code? Are you writing a GUI in MATLAB or are you creating a Simulink model ? Are you running vision.CascadeObjectDetector on the same still image in your normal .m file and your gui model, or are you running it on a live video feed? If you get different results from vision.CascadeObjectDetector then either you are using it with different parameters, or you are giving it a different image.
saideep
saideep 2015 年 3 月 18 日
Thanks for your help.Yes i applied vision.cascadeObjectDetector on same image.I am writing GUI in matlab. Sorry i cannot post the code.
Dima Lisin
Dima Lisin 2015 年 3 月 18 日
If you are indeed using the same image, and you get different output, then you should make sure that you are using vision.CascadeObjectDetector with exactly the same parameters. There may also be a bug in your code. This is about all I can tell you from the information that you have provided. I would suggest going through your code with a debugger and checking the values of all the variables.

サインインしてコメントする。

回答 (1 件)

Image Analyst
Image Analyst 2015 年 3 月 14 日

0 投票

4 件のコメント

saideep
saideep 2015 年 3 月 15 日
編集済み: saideep 2015 年 3 月 15 日
My problem is my code is working fine in a normal ".m" file.But once i interface the code with my graphical user interface model it is stating that there is no face present in the image even if the face is present. Thanks for considering my problem
saideep
saideep 2015 年 3 月 15 日
i didn't use the code in the link that you have mentioned
Image Analyst
Image Analyst 2015 年 3 月 15 日
You have a face detection problem rather than a face recognition problem. I don't do that so all I can suggest is to look at the Computer Vision System Toolbox which does do that.
saideep
saideep 2015 年 3 月 18 日
Thanks for your help.I will try again

サインインしてコメントする。

カテゴリ

質問済み:

2015 年 3 月 14 日

コメント済み:

2015 年 3 月 18 日

Community Treasure Hunt

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

Start Hunting!

Translated by