Shape Recognition with kNN

16 visualizzazioni (ultimi 30 giorni)
OZCAN
OZCAN il 7 Mag 2018
Commentato: Walter Roberson il 13 Mag 2018
I want to do a shape recognition program in Matlab with the KNN algorithm. But I couldn't. I searched everything about that, but i couldn't find anything. I have to make a program that classifies and recognizes square, circle and triangle with kNN algorithm. I need it urgently. I'm glad you helped me.
  3 Commenti
OZCAN
OZCAN il 13 Mag 2018
Yes you are right about that. But I I do not threaten anyone. I just wanted to state what was in a hurry. I did not force anyone.
Walter Roberson
Walter Roberson il 13 Mag 2018
Do you share accommodation with anyone?
Would you accept the other(s) regularly saying, "I can't cook or do any housework or go shopping for the things we ran out of, because a student needs me to do their research for them, they left it late and now it's urgent" ?
Because I live with university teaching staff, and they have an even larger supply of last-minute "it's urgent" students than I do.

Accedi per commentare.

Risposte (1)

Image Analyst
Image Analyst il 7 Mag 2018
I have a demo that counts vertices but it doesn't use KNN because it doesn't need to. I don't even know how you'd use KNN in this context. Why do you need code that specifically uses KNN? I've attached demos.
  10 Commenti
OZCAN
OZCAN il 9 Mag 2018
Actually I dont know :) my friend told me. I solved problem with {} :) but I didn't do that anyway:( I need to read 100 images about Square,triangle and circle. Then I must use kNn but I can't do it :(
Image Analyst
Image Analyst il 9 Mag 2018
Yes, but you don't need to store all the images in memory at the same time in a cell array. You can read one, analyze it, then re-use the same variable on the next loop iteration. That is much more memory efficient. No need to keep storing images that you're already done processing, right?
And if you can't tell me what features to cluster on, then I can't help you with KNN, because I can't think of what they would be. Please post a picture if you can of some of the images you plan on reading in.

Accedi per commentare.

Community Treasure Hunt

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

Start Hunting!

Translated by