code: 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
docs: Returns the OpenCV type mapping supported.
  
          :return: a dictionary containing the OpenCV type mapping supported.
  
          .. versionadded:: 2.3.0