1000 color jpg images classification with labels

3 visualizaciones (últimos 30 días)
Jerone
Jerone el 7 de Abr. de 2014
Editada: Image Analyst el 8 de Abr. de 2014
I have 1000 color jpg images called train_image_#.jpg where # = 1:1000
I want to load them then with labels '1' for my training set (which consists of only one class: labelled 1)
can anyone help me with this. thanks!

Respuestas (1)

Image Analyst
Image Analyst el 7 de Abr. de 2014
  8 comentarios
Jerone
Jerone el 8 de Abr. de 2014
(Note: I haven't tried what you just suggested, but I will do a bit later.)
However, just to further clarify using a similar example- See this Kaggle competition http://www.kaggle.com/c/cifar-10 (CIFAR-10 - Object Recognition in Images):
There are thousands of images in the training set, and you are also given a .csv file with two columns: the first column is the name of the image, and the second column is the class that the image belongs to.
So, if i created a .csv file with the name of my images (first column) and the class of the images (second column), how do I go about loading this in matlab?
Image Analyst
Image Analyst el 8 de Abr. de 2014
Editada: Image Analyst el 8 de Abr. de 2014
You can use readtable() (if you have R2014a version). You can't use csvread() - it won't work since both columns aren't numbers, so you should use readtable() which can handle columns of different types. If you have an old version of MATLAB, use textscan() or fgetl() along with sscanf().

Iniciar sesión para comentar.

Categorías

Más información sobre Deep Learning Toolbox en Help Center y File Exchange.

Community Treasure Hunt

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

Start Hunting!

Translated by