marinofaggiana пре 6 година
родитељ
комит
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 {