How can I label images with numbers for the purposes of machine learning?

1 次查看(过去 30 天)
I am new to MATLAB.
For example, if i have a series of images of jars with m&ms,
and i have the true number of visible m&ms per jar.
How do i label these so as to train a network
capable of taking an image as input
and yielding number of m&ms as output?

回答(1 个)

Peng Li
Peng Li 2020-3-29
One solution is to save images with the same number of mms in one folder and name that folder with the number of mms. You can load these folders as an imagedatastore. It has property to specify classes as folder names.
I have a set of deep learning scrips with matlab that you may be interested in.
Check
https://github.com/pliphd/neural-network-and-deep-learning-with-MATLAB
  4 个评论
MATMania
MATMania 2020-3-29
thanks Peng. regression would be great i think. could you refer me to documentation thats good for regressing images to a integer value?

请先登录,再进行评论。

类别

Help CenterFile Exchange 中查找有关 Image Data Workflows 的更多信息

Community Treasure Hunt

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

Start Hunting!

Translated by