clasifiy kitchenware using neural networks: What are the features
Show older comments
hi
i try to use neural network to build simple system that classify four element
Screw, Spoon, Knife, Thorn
my problem is in feature extraction
This is the first application to me So my experience a few in feature extraction
can any help in chose good feature
4 Comments
Walter Roberson
on 5 Apr 2013
I have not heard of a "thorn" in this context. Do you have a link to an example image?
Image Analyst
on 5 Apr 2013
Edited: Image Analyst
on 5 Apr 2013
Another name for chopstick perhaps??? And screw = corkscrew?
mangood UK
on 5 Apr 2013
mangood UK
on 5 Apr 2013
Edited: mangood UK
on 5 Apr 2013
Answers (1)
Image Analyst
on 5 Apr 2013
0 votes
Features could be any of the things that regionprops() returns. Most likely each of the features (e.g. area, perimeter, solidity, majoraxis length, etc.) is in a certain range for each type of kitchen implement, as long as you don't have lots of different sizes (like a dozen different sizes and styles of knives). See my tutorial for how to extract features from objects in an image: http://www.mathworks.com/matlabcentral/fileexchange/?term=authorid%3A31862
8 Comments
mangood UK
on 5 Apr 2013
Walter Roberson
on 5 Apr 2013
It is not possible to find the length of an object without having some calibration information available; without that, the most you can do is find the distance in pixels. Any object can be made to occupy the same number of pixels distance as any other object, by changing the magnification.
Image Analyst
on 5 Apr 2013
See my image segmentation tutorial: http://www.mathworks.com/matlabcentral/fileexchange/?term=authorid%3A31862.
mangood UK
on 5 Apr 2013
Image Analyst
on 5 Apr 2013
OK, whatever works. Just be aware that your items are shiny and thus the number of edges in the image depends on what is being reflected by the surfaces, so a screw or spoon might have 9000 "edge" pixels at one location and then if you just move it to a new location it may have 3000 or 15000 edge pixels because it's reflecting different things around it. Things like area and perimeter length are more robust to things like illumination and clutter surrounding the objects.
mangood UK
on 5 Apr 2013
Image Analyst
on 5 Apr 2013
You can ask for 'Perimeter' in regionprops().
I don't have a book but Steve does: http://imageprocessingplace.com/DIPUM-2E/dipum2e_main_page.htm. My tutorial will work for more features than in my image segmentation tutorial. There are other things that regionprops() can measure that I didn't ask for. Look in the help. Of course you can also invent your own features. For example regionprops doesn't output the very useful metric "circularity" for some reason, but I can calculate it from the equation
circularities = perimeters.^2 / (4*pi*Areas).
I was just discussing with a development team from the Mathworks yesterday that I should package up my demos and upload them. I have well over 100 demos that I've developed into general purpose demos in response to questions here in Answers - I've just never found the right time to zip them all up and upload them, not to mention that I add or change files on an almost daily basis. Maybe someday...
mangood UK
on 5 Apr 2013
Categories
Find more on Get Started with Deep Learning Toolbox in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!
