Generates annotations for the detected objects in an image at the given URL.
SDKs
- macOS 10.14+
- Xcode 11.0+
Framework
- Create ML
Declaration
func prediction(from image: URL) throws -> MLObject Detector.Detected Objects
Parameters
image
The file URL for the image containing objects you want to detect.
Return Value
An array of annotations for the detected objects in the image.