Git Product home page Git Product logo

swiftocr-8.2's Introduction

SwiftOCR-8.2

The project helps to get started with swiftOCR in xcode 8.2, swift 3 from here https://github.com/garnele007/SwiftOCR

Steps to start

  1. Make a new project in Xcode 8.2
  2. Copy the frameworks folder from this repository, or from the original repo you find here https://github.com/garnele007/SwiftOCR.

Framework

  1. Paste it in your projct folder(right where you find the .xcodeproj file).

  2. Go inside the frameworks folder, you will find three files

1. SwiftOCR.xcodeproj 
2. SwiftOCR(folder)
3. SwiftOCRTests(folder)

Building the project with SwiftOCR

  1. Drag and drop the SwiftOCR.xcodeproj file into your project inside the project (Make sure you do not create the workspace, this happens if you drop the file outside the project)

pasteswiftocr

  1. Now go to frameworks->SwiftOCR->GPUImage-master->framework, you will find GPUImage.xcodeproj there.
  2. Drag and drop this file too into the project. gpuimagepaste

The tricky part, Adding frameworks

  1. Go to targets->General scroll down to Embedded Binaries
  2. Click +Add
  3. Type GPUImage.framework, select the one that is outside the scope of you project (having iOS)

selectgpuimage

  1. Click +Add again, and type Swiftocr.framework, and select again the one with iOS.

selectswiftocr

  1. import SwiftOCR in before using it, and use it on and image like this (i Have used it on the image imageTest)
 self.ocrInstance.recognize(UIImage.init(named: "imageTest")!) { [weak self] recognizedString in
            DispatchQueue.main.async {
                print(recognizedString)
                print(self?.ocrInstance.currentOCRRecognizedBlobs ?? "Recoginzed Blob is empty")
            }
        }

refer https://github.com/garnele007/SwiftOCR for more options.

swiftocr-8.2's People

Contributors

saurabh143 avatar

Stargazers

 avatar Ognjen Miletić avatar

Watchers

 avatar

swiftocr-8.2's Issues

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.