After rewatching the video a second time, it appears that i"m trying to do is easy, with few lines of code (something like that) :
var uiImage: UIImage?
let analyser = ImageAnalyzer()
let interaction = ImageAnalysisInteraction()
let configuration = ImageAnalyzer.Configuration([.text, .visualLookUp, .machineReadableCode])
let analysis = try? await analyser.analyze(image, configuration: configuration)
interaction.analysis = analysis
uiImage = try? await interaction.image(for: interaction.subjects)
Topic:
Machine Learning & AI
SubTopic:
General
Tags: