Skip to content

Instantly share code, notes, and snippets.

@jamesonthecrow
Last active June 10, 2019 21:22
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save jamesonthecrow/1495647f9752f107eb6c82944459ef9d to your computer and use it in GitHub Desktop.
Save jamesonthecrow/1495647f9752f107eb6c82944459ef9d to your computer and use it in GitHub Desktop.
Pet Segmentation on Android with Fritz (www.fritz.ai)
// Determine how to rotate the image from the camera used.
int imgRotation = FritzVisionOrientation.getImageRotationFromCamera(this, cameraId);
// Create a FritzVisionImage object from android.media.Image
FritzVisionImage visionImage = FritzVisionImage.fromMediaImage(image, imgRotation);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment