Skip to content

Commit

Permalink
Organized the example usage section
Browse files Browse the repository at this point in the history
  • Loading branch information
zachberger committed Nov 17, 2014
1 parent 218c224 commit cb2f79d
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -44,9 +44,11 @@ WARNING: Check the "Create folder references for any added folders" option and t
Now you can use Tesseract class like explained into the "How to use" section:

<br/>
How to use (objective c)
Usage
=================

### Objective-C

**MyViewController.h**

```Objective-C
Expand Down Expand Up @@ -101,9 +103,8 @@ Set Tesseract variable key to value. See http://www.sk-spell.sk.cx/tesseract-ocr

For instance, use tessedit_char_whitelist to restrict characters to a specific set.

How to use (swift)
=================
Make sure that you have used an Objective-c bridging header to include the &lt;TesseractOCR/TesseractOCR.h&gt; library. (instructions can be found at https://developer.apple.com/library/ios/documentation/swift/conceptual/buildingcocoaapps/MixandMatch.html#//apple_ref/doc/uid/TP40014216-CH10-XID_77)
###Swift
Make sure that you have used an Objective-c bridging header to include the library. Instructions on configuring a bridging header file can be found in the [Apple Developer Library](https://developer.apple.com/library/ios/documentation/swift/conceptual/buildingcocoaapps/MixandMatch.html#//apple_ref/doc/uid/TP40014216-CH10-XID_77).

**ViewController.swift**

Expand Down

0 comments on commit cb2f79d

Please sign in to comment.