finger detection from binary image?

9 views (last 30 days)
YUNUS
YUNUS on 29 Mar 2014
Commented: Ngin Kimlong on 6 Apr 2018
hi, im working real time hand recognition, i obtained hand clearly and i want to obtain fingers from this picture, can anyone help me?
  3 Comments
Ngin Kimlong
Ngin Kimlong on 6 Apr 2018
I = imread('0002.png'); [L,N] = superpixels(I,1000); BW = boundarymask(L); % imshow(imoverlay(I,BW,'cyan'),'InitialMagnification',100)
figure
% Define centroid
Ibw = im2bw(I);
Ibw = imfill(Ibw,'holes');
Ilabel = bwlabel(Ibw);
stat = regionprops(Ilabel,'centroid');
[L,N] = superpixels(I,500)
BW = boundarymask(L);
imshow(imoverlay(I,BW,'cyan'),'InitialMagnification',100); hold on;
for x = 1: numel(stat)
plot(stat(x).Centroid(1),stat(x).Centroid(2),'ro');
end

Sign in to comment.

Answers (1)

Image Analyst
Image Analyst on 29 Mar 2014
There are 3 hand segmentation apps on Dirk's File Exchange page that looks like they will help you: http://www.mathworks.com/matlabcentral/fileexchange/index?term=authorid%3A29180
  1 Comment
Image Analyst
Image Analyst on 16 Mar 2016
Remove the clutter, like hang a sheet or cyc behind the person.

Sign in to comment.

Community Treasure Hunt

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

Start Hunting!