Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
ashutoshSharma12 opened this issue Mar 4, 2019 · 1 comment

Comments

@ashutoshSharma12
Copy link
Contributor

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)
            
        }
@Coder-ACJHP
Copy link

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

Using low GPU priority for background rendering.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants