Shape Recognition with kNN

16 次查看(过去 30 天)
OZCAN
OZCAN 2018-5-7
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 个评论
OZCAN
OZCAN 2018-5-13
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 2018-5-13
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.

请先登录,再进行评论。

回答(1 个)

Image Analyst
Image Analyst 2018-5-7
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 个评论
OZCAN
OZCAN 2018-5-9
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 2018-5-9
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.

请先登录,再进行评论。

Community Treasure Hunt

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

Start Hunting!

Translated by