Image or Pattern recognition in Matlab
9 Ansichten (letzte 30 Tage)
Ältere Kommentare anzeigen
I am attempting to write a code to recognise silverware. I am hoping to be able to have something set up where I can tell Matlab where the reference images are, then simply open/import the image I want to be 'recognised' and Matlab will run a code and determine the type.
This is for a proof of concept project for a silverware identification system. It will only be receiving one item at once, so Matlab just needs to be able to identify if the image is of a knife, fork or spoon. The silverware in the reference folder will be the same as the silverware being identified, however I am struggling to go about writing the code. Below is a sample of the reference images (stitched into one at the moment), and the images Matlab will be given to recognise will be very similar to these images.
Can anyone help me or point me in the right direction as to how to go about this?
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/149462/image.jpeg)
Thanks
Matt
0 Kommentare
Antworten (1)
Harshit
am 1 Nov. 2012
Hi Matt, It is better to compute features once instead of creating it every time when you run your code. An easy idea is to use some shape descriptor (like seven moments) to capture the shape. Say knife - contains some value and racket contains some other. Save your workspace as .mat and load it next time whenever you want to compare. If the name is like 1.jpg , 2.jpg then use num2str to generate the names. Otherwise you can use this code to read all the images.
if true
tifFiles = dir('*.tif');
for k = 1:length(tifFiles)
filename = tifFiles(k).name;
I = imread(filename);
end
Use euclidean distance to find the nearest entry.
0 Kommentare
Siehe auch
Kategorien
Mehr zu Filter Banks finden Sie in Help Center und File Exchange
Produkte
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!