Group Abstract Group Abstract

Message Boards Message Boards

Creating a dataset from images and names

Posted 3 years ago

Hello,

I have faces of persons and their respective names. ( In an Excel file on each line I have in a column the name of the picture/file and in another one the name of the person) and I'd like to create a dataset in order to use it to try the face classifying function afterward. Someone could explain me how to create a dataset please ( as in the picture below ).

Thank you!

enter image description here

POSTED BY: Meir Sebban
Posted 3 years ago

Hi Meir,

You can try something like this

data = Import["file.xlsx", {"Dataset", 1}, HeaderLines -> 1]

Assuming the column header for the name of the person is "Name" and the column header for the image file name is "Image File"

qdata = data[All, {Import[#"Image File"] -> #"Name"}&] // Normal // Flatten
POSTED BY: Rohit Namjoshi
Reply to this discussion
Community posts can be styled and formatted using the Markdown syntax.
Reply Preview
Attachments
Remove
or Discard