Package org.apache.camel.component.djl
Class DJLConverter
java.lang.Object
org.apache.camel.component.djl.DJLConverter
Converter methods to convert from / to DJL types.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic ai.djl.modality.audio.AudiotoAudio(byte[] bytes) static ai.djl.modality.audio.Audiostatic ai.djl.modality.audio.AudiotoAudio(InputStream inputStream) static ai.djl.modality.audio.Audiostatic byte[]toBytes(ai.djl.modality.cv.Image image, org.apache.camel.Exchange exchange) static ai.djl.modality.cv.ImagetoImage(byte[] bytes) static ai.djl.modality.cv.ImagetoImage(ai.djl.modality.cv.output.DetectedObjects.DetectedObject detectedObject, org.apache.camel.Exchange exchange) static ai.djl.modality.cv.Imagestatic ai.djl.modality.cv.ImagetoImage(InputStream inputStream) static ai.djl.modality.cv.Imagestatic ai.djl.modality.cv.Image[]toImages(ai.djl.modality.cv.output.DetectedObjects detectedObjects, org.apache.camel.Exchange exchange)
-
Constructor Details
-
DJLConverter
public DJLConverter()
-
-
Method Details
-
toImage
- Throws:
IOException
-
toImage
- Throws:
IOException
-
toImage
- Throws:
IOException
-
toImage
@Converter public static ai.djl.modality.cv.Image toImage(InputStream inputStream) throws IOException - Throws:
IOException
-
toImage
@Converter public static ai.djl.modality.cv.Image toImage(ai.djl.modality.cv.output.DetectedObjects.DetectedObject detectedObject, org.apache.camel.Exchange exchange) -
toImages
@Converter public static ai.djl.modality.cv.Image[] toImages(ai.djl.modality.cv.output.DetectedObjects detectedObjects, org.apache.camel.Exchange exchange) -
toBytes
@Converter public static byte[] toBytes(ai.djl.modality.cv.Image image, org.apache.camel.Exchange exchange) throws IOException - Throws:
IOException
-
toAudio
- Throws:
IOException
-
toAudio
- Throws:
IOException
-
toAudio
- Throws:
IOException
-
toAudio
@Converter public static ai.djl.modality.audio.Audio toAudio(InputStream inputStream) throws IOException - Throws:
IOException
-