Write a classifier in the form of MATLAB m-files and train it using dataset of hand gesture images (Dataset will be provided). Your aim is to train your classifier in a way that it recognizes every gesture

답변 (1개)

But for a class assignment like this appears to be you can't be expected to write something super robust like people who did Ph.D. dissertations on it. So what I would do is to simply threshold every image in the database and extract the largest blob (demo attached below in blue). Then calculate it's area and perimeter. Every image in the database will have a unique area. So, given an "unknown" image from the database, you can identify it by calculating its area and comparing it to the known areas of all the images:
theIndex = find(area == databaseAreas);
You only need to consider perimeter if there is more than one image with the same area. If it's an image not from the database, you can include the perimeter and build a feature vector [area, perimeter] and get the distance of your feature vector from the vectors of all the database images, to find out which database image seems to be "closest" to your test image. If it's not working, add other features, like solidity or majorAxisLength, until it works.

카테고리

도움말 센터File Exchange에서 Image Processing Toolbox에 대해 자세히 알아보기

질문:

2014년 2월 9일

답변:

2014년 2월 9일

Community Treasure Hunt

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

Start Hunting!

Translated by