Schema for the image column: Row(String, Int, Int, Int, Int, Array[Byte])
Gets the image data
Gets the image data
The image data
Gets the height of the image
Gets the height of the image
The height of the image
Gets the OpenCV representation as an int
Gets the OpenCV representation as an int
The OpenCV representation as an int
Gets the number of channels in the image
Gets the number of channels in the image
The number of channels in the image
Gets the origin of the image
Gets the origin of the image
The origin of the image
Gets the width of the image
Gets the width of the image
The width of the image
DataFrame with a single column of images named "image" (nullable)
(Java-specific) OpenCV type mapping supported
(Scala-specific) OpenCV type mapping supported
Read the directory of images from the local or remote source
Read the directory of images from the local or remote source
Path to the image directory
Spark Session, if omitted gets or creates the session
Recursive path search flag
Number of the DataFrame partitions, if omitted uses defaultParallelism instead
Drop the files that are not valid images from the result
Fraction of the files loaded
DataFrame with a single column "image" of images; see ImageSchema for the details
(Since version 2.4.0)
If sample ratio is less than 1, sampling uses a PathFilter that is efficient but potentially non-deterministic.
,If multiple jobs are run in parallel with different sampleRatio or recursive flag, there may be a race condition where one job overwrites the hadoop configs of another.
Read the directory of images from the local or remote source
Read the directory of images from the local or remote source
Path to the image directory
DataFrame with a single column "image" of images; see ImageSchema for the details
(Since version 2.4.0)
If sample ratio is less than 1, sampling uses a PathFilter that is efficient but potentially non-deterministic.
,If multiple jobs are run in parallel with different sampleRatio or recursive flag, there may be a race condition where one job overwrites the hadoop configs of another.
:: Experimental :: Defines the image schema and methods to read and manipulate images.