2010, Matt Bierner
4D OCR is a simple OCR (optical character recognition) application for the iPhone OSX that converts images of documents into unformatted text. The OCR process uses the objective-c gData framework with Google Docs for the conversion. The application also supports simple storage, editing, emailing, and copying of converted text.
4D OCR was created by me, Matt Bierner, for my Senior Project at New Trier High School. Senior Project is an optional program offered to all seniors during the last four weeks of school, and it allows students to explore almost any area of interest. Due to a few AP courses, I went on what is called "Abbreviated Project", which reduces the total number of hours required over the four weeks. I began the project with literally no previous experience with the tools and technology required to develop an iPhone application and had a great time producing an application that I feel could be released to the App Store. The whole process was a learning experience, my goal was never to make the next great, original iPhone application.
I have chosen not to submit this application to the App Store as the OCR results are unreliable and depend too much upon image quality. In real world conditions, Google Docs often will not convert images from the iPhone at all, returning a blank entry. Further refinement to the application may produce better, more consistent results, but I do not intend to continue the development on my own.
About the Source
As mentioned, I wrote this application starting with no experience in iPhone or Mac development so the code may not represent the best or cleanest solution. The code still may be useful as a reference or starting point for one's work.
<OWNER> = Matt Bierner
<ORGANIZATION> = Matt Bierner
<YEAR> = 2010
Copyright (c) 2010, Matt Bierner
All rights reserved.
Redistribution and use in source and binary forms, with or without
modification, are permitted provided that the following conditions are met:
* Redistributions of source code must retain the above copyright
notice, this list of conditions and the following disclaimer.
* Redistributions in binary form must reproduce the above copyright
notice, this list of conditions and the following disclaimer in the
documentation and/or other materials provided with the distribution.
* Neither the name of the <organization> nor the
names of its contributors may be used to endorse or promote products
derived from this software without specific prior written permission.
THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND
ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
DISCLAIMED. IN NO EVENT SHALL <COPYRIGHT HOLDER> BE LIABLE FOR ANY
DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
(INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND
ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
(INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
* Although not required, if you use code or assets directly, especially in anything that ends up production, I would appreciate being contacted. This has nothing to do with the license, I just would be interested in your work.
* The name and logo result from my use of Tesseract on the phone to convert images to text at the beginning of the project. After I changed to using an online solution, I kept the name and logo just because I liked them.