简体   繁体   中英

Can keras directly read images from a directory?

I am working on a project of self driving car, using Raspberry Pi. I have collected the frames and I have the path to each image in a log, which is in csv format. Can I give this path (which is in string form) to keras, so that it can look at those images, while training. My data format looks like this -

data example

Does keras have this feature that it can read files/images directly from the path(which is in string form). Or we have to process these paths so that it can be fed to keras. Thanks in advance for kind support.

Sure, take a look on flow_from_dataframe.

Tutorial

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM