.task {
   let imageURL = Bundle.main.url(forResource: "letter", withExtension: "png")
   if let imageURL = imageURL {
      do {
         let request = RecognizeDocumentsRequest()
         let result = try await request.perform(on: imageURL)

         var text = ""
         if let document = result.first?.document {
            for paragraph in document.paragraphs {
               if let count = paragraph.words?.count, count > 10 {
                  text += "\(paragraph.transcript)\n\n"
               }
            }
            textFound = text
         }
      } catch {
         print("Error performing the request: \(error)")
      }
   }
}