Created
March 21, 2022 13:53
-
-
Save filipsedivy/77c6921743836b2bd43e72b72f8bee08 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import java.nio.file.*; | |
import ai.djl.modality.cv.ImageFactory; | |
Path imagePath = Paths.get("/Users/xyz/Image.jpg"); | |
Image image = ImageFactory.getInstance().fromFile(imagePath); | |
Classifications classifications = predictor.predict(image); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment