marinofaggiana 6 лет назад
Родитель
Сommit
ee5392b969
1 измененных файлов с 1 добавлено и 1 удалено
  1. 1 1
      iOSClient/Main/Create cloud/NCCreateFormUploadScanDocument.swift

+ 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 {