From 1a2eec656ca41515d985a114053ffbc3cf9d1971 Mon Sep 17 00:00:00 2001 From: dianshi Date: Thu, 25 Mar 2021 09:34:27 +0000 Subject: Cleaned up from commented out code --- OCRImage/main.swift | 11 +---------- 1 file changed, 1 insertion(+), 10 deletions(-) (limited to 'OCRImage') diff --git a/OCRImage/main.swift b/OCRImage/main.swift index e103c38..4d0cc2d 100644 --- a/OCRImage/main.swift +++ b/OCRImage/main.swift @@ -2,7 +2,7 @@ // main.swift // OCRImage // -// Created by Jacky Jack on 04/03/2021. +// Created on 04/03/2021. // import Foundation @@ -55,13 +55,8 @@ class TextOCR { var pieces:[TextPiece] = [] var err:NSError? - //guard let cgImage = - - //let requestHandler = VNImageRequestHandler(url: url) var textRequest = VNRecognizeTextRequest(completionHandler: recognizeTextHandler(request:error:)) - - //let request = VNRecognizeTextRequest(completionHandler: recognizeTextHandler); var handler = VNImageRequestHandler(url: url) do { try handler.perform([textRequest]) @@ -127,10 +122,6 @@ if options.debug { print("OCR Input file: \(inputFile)") } - -//Try to open file from URL -//var runPath = Bundle.main.executablePath! - //return true if file excists func checkIfFileExists(_ fname: String) -> Bool { let fm = FileManager.default -- cgit v1.2.3