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