Microsoft Machine Learning for Apache Spark
0.13.dev18
Pyspark Library
AssembleFeatures
BinaryFileReader
CNTKLearner
CNTKModel
Cacher
CheckpointData
ClassBalancer
CleanMissingData
ComputeModelStatistics
ComputePerInstanceStatistics
CustomInputParser
CustomOutputParser
DataConversion
DropColumns
DynamicMiniBatchTransformer
EnsembleByKey
Explode
FastVectorAssembler
Featurize
FindBestModel
FixedMiniBatchTransformer
FlattenBatch
HTTPTransformer
HyperparamBuilder
ImageFeaturizer
ImageReader
ImageSetAugmenter
ImageTransformer
ImageWriter
IndexToValue
JSONInputParser
JSONOutputParser
Lambda
LightGBMClassifier
LightGBMRegressor
ModelDownloader
MultiColumnAdapter
MultiNGram
PartitionConsolidator
PartitionSample
PowerBIWriter
RenameColumn
Repartition
SelectColumns
ServingImplicits
SimpleHTTPTransformer
SummarizeData
TextFeaturizer
TextPreprocessor
TimeIntervalMiniBatchTransformer
Timer
TrainClassifier
TrainRegressor
TuneHyperparameters
TypeConversionUtils
UDFTransformer
UnrollImage
Utils
ValueIndexer
ValueIndexerModel
Scala Library
Microsoft Machine Learning for Apache Spark
Docs
»
Pyspark Library
»
ImageWriter
View page source
ImageWriter
¶
ImageWriter.
write
(
df
,
basePath
,
pathCol='filenames'
,
imageCol='image'
,
encoding='.png'
)
[source]
¶
Reads images from a column of filenames
Parameters:
df
(
DataFrame
) – The DataFrame to be processed
basePath
– (str): Where to save the images
pathCol
(
str
) – The name of the column containing filenames
imageCol
(
str
) – The name of the added column of images
encoding
(
str
) – what openCV encoding to use when saving images