필터 지우기
필터 지우기

separate the color channels of the image in face detection

조회 수: 1 (최근 30일)
Elahe Karimi
Elahe Karimi 2019년 6월 14일
댓글: maher hussien 2020년 3월 30일
Hello,
I used this code for face detection. Input is color image.
I want to separate the color channels of the image. That is:
Img=imread(fullFileName);
RedImg=Img(:,:,1);
GreenImg=Img(:,:,2);
BlueImg=Img(:,:,3);
When I separate colors after using this code : [bbox, bbimg, faces, bbfaces, imageCrop] = detectFaceParts(detector,RedImg,1);
, code show the following error:
Error using ShapeInserter/step
The Image input has 1 color planes and the Pts input has 1 shapes. The Color value(s) parameter must be a scalar.
Error in detectFaceParts (line 137)
bbX = step(shapeInserter, bbX, bb);
Error in TrainData (line 88)
[bbox, bbimg, faces, bbfaces, imageCrop] = detectFaceParts(detector,RedImg,1);
I've sent all the code in the file.
How do I separate channels and do all of the colored matrices (that is, red and blue and green) face detection with this code?
Please advise me which problem is my work and how can I fix it?
thank you so much
  댓글 수: 5
Elahe Karimi
Elahe Karimi 2019년 6월 16일
@Image Analyst , thanks a lot. My problem has been solved. For the next questions,I'm doing the thing you said. Thank you for your advice.
maher hussien
maher hussien 2020년 3월 30일
@Elahe Karimi Please can you tell us how the problem was solved

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

답변 (0개)

카테고리

Help CenterFile Exchange에서 Computer Vision with Simulink에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by