Shape Recognition with kNN
16 次查看(过去 30 天)
显示 更早的评论
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 个评论
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
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 个评论
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!