SwiftOCR icon indicating copy to clipboard operation
SwiftOCR copied to clipboard

Can't Invoke NSimage image in method SwiftOCRInstance.recognize!

Open ashutoshSharma12 opened this issue 6 years ago • 1 comments

AS I am trying to make a server side SwiftOCR when I convert the image data into image it returns the Exact image but When I'm trying to parse the Image in SwiftOCRInstace.recognize method it does not Convert the Image and Return null string my code is as below:

let newImage = NSImage(data: user.image)

     let newImage1 = OCRImage(newImage)
        let swiftOCRInstance = SwiftOCR()
        
        swiftOCRInstance.recognize((newImage)!){ recogniseString in        
        print(recogniseString)
            
        }

ashutoshSharma12 avatar Mar 04 '19 08:03 ashutoshSharma12

I'm facing same problem, it doesn't work, only prints

Using low GPU priority for background rendering.

Coder-ACJHP avatar Jul 16 '19 07:07 Coder-ACJHP