i need a source code for eye detection,features extraction

조회 수: 6 (최근 30일)
tota2014
tota2014 2014년 5월 5일
답변: Justin Pinkney 2020년 1월 31일
i need a source code for eye detection,features extraction using image processing

답변 (4개)

Image Analyst
Image Analyst 2014년 5월 5일
See section 21 for algorithms: http://iris.usc.edu/Vision-Notes/bibliography/contents.html or check the File Exchange.

Shahzaib Rizvi
Shahzaib Rizvi 2018년 12월 4일
function displayTrackingResults()
% Convert the frame and the mask to uint8 RGB.
frame = im2uint8(frame);
mask = uint8(repmat(mask, [1, 1, 3])) .* 255;
minVisibleCount = 8;
if ~isempty(tracks)
% Noisy detections tend to result in short-lived tracks.
% Only display tracks that have been visible for more than
% a minimum number of frames.
reliableTrackInds = ...
[tracks(:).totalVisibleCount] > minVisibleCount;
reliableTracks = tracks(reliableTrackInds);
% Display the objects. If an object has not been detected
% in this frame, display its predicted bounding box.
if ~isempty(reliableTracks)
% Get bounding boxes.
bboxes = cat(1, reliableTracks.bbox);
% Get ids.
ids = int32([reliableTracks(:).id]);
% Create labels for objects indicating the ones for
% which we display the predicted rather than the actual
% location.
labels = cellstr(int2str(ids'));
predictedTrackInds = ...
[reliableTracks(:).consecutiveInvisibleCount] > 0;
isPredicted = cell(size(labels));
isPredicted(predictedTrackInds) = {' predicted'};
labels = strcat(labels, isPredicted);
% Draw the objects on the frame.
frame = insertObjectAnnotation(frame, 'rectangle', ...
bboxes, labels);
% Draw the objects on the mask.
mask = insertObjectAnnotation(mask, 'rectangle', ...
bboxes, labels);
end
end
% Display the mask and the frame.
obj.maskPlayer.step(mask);
obj.videoPlayer.step(frame);
end
  댓글 수: 1
wasan alkshri
wasan alkshri 2019년 2월 17일
편집: Image Analyst 2019년 2월 17일
hello , i fund this error
Undefined function or variable 'frame'.
Error in displayTrackingResults (line 4)
frame = im2uint8(frame);

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


Image Analyst
Image Analyst 2019년 2월 17일
When it says
% Convert the frame and the mask to uint8 RGB.
frame = im2uint8(frame);
frame is not defined at that point. It looks like it's supposed to be an RGB image that was passed in. I think mask and tracks were also supposed to be passed in.

Justin Pinkney
Justin Pinkney 2020년 1월 31일
You can try this deep learning based face detector: https://github.com/matlab-deep-learning/mtcnn-face-detection
It outputs the location of eyes, nose and mouth corners as well as the face bounding box.

카테고리

Help CenterFile Exchange에서 Deep Learning Toolbox에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by