marinofaggiana 5 rokov pred
rodič
commit
ee5392b969

+ 1 - 1
iOSClient/Main/Create cloud/NCCreateFormUploadScanDocument.swift

@@ -472,7 +472,7 @@ class NCCreateFormUploadScanDocument: XLFormViewController, NCSelectDelegate {
                     let rowTextRecognition: XLFormRowDescriptor = self.form.formRow(withTag: "textRecognition")!
                     
                     if rowTextRecognition.value as! Int == 1 {
-                        if let features = self.textDetector?.features(in: image, options: nil) as? [GMVTextBlockFeature] {
+                        if let features = self.textDetector?.features(in: imageCompress, options: nil) as? [GMVTextBlockFeature] {
                             for textBlock in features {
                                 for textLine in textBlock.lines {