Search code examples
iosswiftnumbersbarcode-scanner

Number Scanner by camera in swift


Is there any way to scan numbers by the camera in swift? I just found a bunch of barcode scanner libraries but they are not what I need. Please guide me


Solution

  • You can use the Vision framework to detect where text is, and the use an OCR framework to determine what the numbers are.

    Ray Wenderlich has a tutorial on how to do this using the tesseract framework here: https://www.raywenderlich.com/163445/tesseract-ocr-tutorial-ios

    There might also be some CoreML models trained for OCR that you could use if you search around.