fix-bounding-box: Use relative rect for bounding box in G8RecognizedBlock
fix-bounding-box: Add cache clearing method. Update Template project
fix-bounding-box: Add conditions to test new bounding boxes
fix-bounding-box: Fix rect setter. Add tests
fix-bounding-box: Add sourceResolution property. Fix tests.
fix-bounding-box: Rename delegate method for preprocessing image
fix-bounding-box: Refactor custom preprocessing in tests
Merge pull request #116 from BamX/fix-bounding-box

Several fixes and additions related to performance and preprocessing.

Normalized boundingBox property. Added cache clearing method and source resolution property. Renamed delegate method from custom thresholder to custom preprocessor, with considerations for resizing the image.
Fixed misspelling.
Squashed commits:
[7dab0a3] 1. dataPath is now readonly public.
2. designated initializer changed to - (id)initWithLanguage:(NSString *)language configDictionary:(NSDictionary *)configDictionary configFileNames:(NSArray *)configFileNames dataPath:(NSString *)dataPath engineMode:(G8OCREngineMode)engineMode NS_DESIGNATED_INITIALIZER;
where configDictionary is a dictioanry of the config variables and configFileNames is an array of file names containing key-value config pairs. All the config variables can be init only and debug time both. Furthermore they could be specified at the same time, in such case tesseract will get variables from every file and dictionary all together.
3. To avoid ambiguity with Apple Naming Conventions the following functions were renamed:
- setUpTesseractToSearchTrainedDataInTrainedDataFolderOfTheApplicatinBundle (only setters should start with set)
- initEngine (only initializer should start with init. in such case the function should return id)
- copyDataToDocumentsDirectory (if function starts from copy, the special rules are implemented by ARC to the function)
4. if the dataPath is specified, the whole content of the tessdata from the application bundle is copied to the Documents/dataPath/tessdata and tesseract is initialized with that path.
5. _dataPath is replaced with self.dataPath everywhere besides init method.

2. some unit tests

print a message if the result of copyItemAtPath == NO

Small changes

Symlinking tessdata files from app bundle to the Documents folder.

updated lib

Check that destination file doesn't exist before symlinking

updated lib.