mmlspark.opencv package¶
Submodules¶
mmlspark.opencv.ImageSetAugmenter module¶
- class mmlspark.opencv.ImageSetAugmenter.ImageSetAugmenter(java_obj=None, flipLeftRight=True, flipUpDown=False, inputCol='image', outputCol='ImageSetAugmenter_aea500e47fd0_output')[source]¶
Bases:
mmlspark.core.schema.Utils.ComplexParamsMixin
,pyspark.ml.util.JavaMLReadable
,pyspark.ml.util.JavaMLWritable
,pyspark.ml.wrapper.JavaTransformer
- Parameters
- flipLeftRight = Param(parent='undefined', name='flipLeftRight', doc='Symmetric Left-Right')¶
- flipUpDown = Param(parent='undefined', name='flipUpDown', doc='Symmetric Up-Down')¶
- inputCol = Param(parent='undefined', name='inputCol', doc='The name of the input column')¶
- outputCol = Param(parent='undefined', name='outputCol', doc='The name of the output column')¶
mmlspark.opencv.ImageTransformer module¶
- class mmlspark.opencv.ImageTransformer.ImageTransformer(java_obj=None, inputCol='image', outputCol='ImageTransformer_e4c7d0112202_output', stages=None)[source]¶
Bases:
mmlspark.opencv._ImageTransformer._ImageTransformer
Resizes the image to the given width and height
- blur(height, width)[source]¶
Blurs the image using a normalized box filter
- Parameters
height (double) – The height of the box filter (>= 0)
width (double) – The width of the box filter (>= 0)
- colorFormat(format)[source]¶
Formats the image to the given image format
- Parameters
format (int) – The format to convert to, please see OpenCV cvtColor function documentation for all formats
- crop(x, y, height, width)[source]¶
Crops the image given the starting x,y coordinates and the width and height
- gaussianKernel(appertureSize, sigma)[source]¶
Blurs the image by applying a gaussian kernel
- Parameters
appertureSize (double) – The aperture size, which should be odd and positive
sigma (double) – The standard deviation of the gaussian
- threshold(threshold, maxVal, thresholdType)[source]¶
Thresholds the image, please see OpenCV threshold function documentation for more information
- Parameters
threshold – (double) The threshold value
maxVal (double) – The maximum value to use
thresholdType (double) – The type of threshold, can be binary, binary_inv, trunc, zero, zero_inv
Module contents¶
MMLSpark is an ecosystem of tools aimed towards expanding the distributed computing framework Apache Spark in several new directions. MMLSpark adds many deep learning and data science tools to the Spark ecosystem, including seamless integration of Spark Machine Learning pipelines with Microsoft Cognitive Toolkit (CNTK), LightGBM and OpenCV. These tools enable powerful and highly-scalable predictive and analytical models for a variety of datasources.
MMLSpark also brings new networking capabilities to the Spark Ecosystem. With the HTTP on Spark project, users can embed any web service into their SparkML models. In this vein, MMLSpark provides easy to use SparkML transformers for a wide variety of Microsoft Cognitive Services. For production grade deployment, the Spark Serving project enables high throughput, sub-millisecond latency web services, backed by your Spark cluster.
MMLSpark requires Scala 2.11, Spark 2.4+, and Python 3.5+.