2 ms·
Yeah I understand that, it seems that it tries to classify activity in order to help finding relevant stuff seeing let configuration = ImageAnalyzer.Configur
by lnxg33k1 3y ago
Yeah I understand that, it seems that it tries to classify activity in order to help finding relevant stuff seeing
let configuration = ImageAnalyzer.Configuration([.text])
let nsImage = NSImage(cgImage: image, size: NSSize(width: image.width, height: image.height))
let analysis = try await ImageAnalyzer().analyze(nsImage, orientation: CGImagePropertyOrientation.up, configuration: configuration)
let textToAssociate = analysis.transcript
let newClipboardText = ClipboardManager.shared.getClipboardIfChanged() ?? ""