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)
}
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)