Package ai.djl.opencv
Class OpenCVImageFactory
- java.lang.Object
-
- ai.djl.modality.cv.ImageFactory
-
- ai.djl.opencv.OpenCVImageFactory
-
public class OpenCVImageFactory extends ai.djl.modality.cv.ImageFactoryOpenCVImageFactoryis a high performance implementation ofImageFactory.
-
-
Constructor Summary
Constructors Constructor Description OpenCVImageFactory()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ai.djl.modality.cv.ImagefromFile(java.nio.file.Path path)ai.djl.modality.cv.ImagefromImage(java.lang.Object image)ai.djl.modality.cv.ImagefromInputStream(java.io.InputStream is)ai.djl.modality.cv.ImagefromNDArray(ai.djl.ndarray.NDArray array)
-
-
-
Method Detail
-
fromFile
public ai.djl.modality.cv.Image fromFile(java.nio.file.Path path) throws java.io.IOException- Specified by:
fromFilein classai.djl.modality.cv.ImageFactory- Throws:
java.io.IOException
-
fromInputStream
public ai.djl.modality.cv.Image fromInputStream(java.io.InputStream is) throws java.io.IOException- Specified by:
fromInputStreamin classai.djl.modality.cv.ImageFactory- Throws:
java.io.IOException
-
fromImage
public ai.djl.modality.cv.Image fromImage(java.lang.Object image)
- Specified by:
fromImagein classai.djl.modality.cv.ImageFactory
-
fromNDArray
public ai.djl.modality.cv.Image fromNDArray(ai.djl.ndarray.NDArray array)
- Specified by:
fromNDArrayin classai.djl.modality.cv.ImageFactory
-
-