Skip to content

Instantly share code, notes, and snippets.

@iosdevie
Created May 26, 2021 05:46
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 iosdevie/8799814ab0fd13e30e71727e5b39b130 to your computer and use it in GitHub Desktop.
Save iosdevie/8799814ab0fd13e30e71727e5b39b130 to your computer and use it in GitHub Desktop.
Create an MLFeatureValue instance from an image.
let featureValue = try MLFeatureValue(cgImage: image.cgImage!, constraint: imageConstraint, options: nil)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment