Important
This project is experimental. It is not intended for production use.
let image = UIImage(resource: .baseball)
let request = try ImageCaptioningRequest()
let handler = ImageCaptioningRequestHandler(cgImage: image.cgImage!)
try handler.perform(request)
request.result