This tutorial will show you how to read a folder of images from a Hadoop folder.
Just use the following command and update the path to your image folder in the Hadoop HDFS
We will be using Image Schema and it’s readImages function.
1 |
Dataset<Row> images = ImageSchema.readImages("hdfs://IP:port/path/to/image/folder", spark, false, 0, true, 1.0, 1); |
That’s it already!