def ocvTypes(self):
        """
        Returns the OpenCV type mapping supported.

        :return: a dictionary containing the OpenCV type mapping supported.

        .. versionadded:: 2.3.0
        """

        if self._ocvTypes is None:
            ctx = SparkContext._active_spark_context
            self._ocvTypes = dict(ctx._jvm.org.apache.spark.ml.image.ImageSchema.javaOcvTypes())
        return self._ocvTypes
def ocvTypes ( self ) : if self . _ocvTypes is None : ctx = SparkContext . _active_spark_context self . _ocvTypes = dict ( ctx . _jvm . org . apache . spark . ml . image . ImageSchema . javaOcvTypes ( ) ) return self . _ocvTypes
Returns the OpenCV type mapping supported.

        :return: a dictionary containing the OpenCV type mapping supported.

        .. versionadded:: 2.3.0