aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorIliyan Malchev <malchev@google.com>2008-09-24 11:06:14 -0700
committerIliyan Malchev <malchev@google.com>2008-09-24 11:06:14 -0700
commitef126b5bcc354cbafd5a79f5876eb312647eee11 (patch)
tree6d24ce287fabb6a86ce73ebf5c2d2f3118873bc5
parent49767402ccc6f1f40d42197e0976fe8269b8926b (diff)
downloadtesseract-ef126b5bcc354cbafd5a79f5876eb312647eee11.tar.gz
helium/text.cpp: fix the indentation
Signed-off-by: Iliyan Malchev <malchev@google.com>
-rw-r--r--helium/test.cpp44
1 files changed, 22 insertions, 22 deletions
diff --git a/helium/test.cpp b/helium/test.cpp
index 1d384aa..58f1ccf 100644
--- a/helium/test.cpp
+++ b/helium/test.cpp
@@ -64,34 +64,34 @@ int main(int argc, char** argv) {
printf("infile mmapped at %p\n", buffer);
printf("generating image object\n");
- GrayMap gray(x, y, (uint8 *)buffer);
- Image image = Image::FromGrayMap(gray);
- FAILIF(!image.Valid(), "error while loading image file!");
+ GrayMap gray(x, y, (uint8 *)buffer);
+ Image image = Image::FromGrayMap(gray);
+ FAILIF(!image.Valid(), "error while loading image file!");
- // Run text detector
- printf("running text detector\n");
- HeliumTextDetector detector;
- detector.SetDefaultParameters();
- detector.DetectText(image);
+ // Run text detector
+ printf("running text detector\n");
+ HeliumTextDetector detector;
+ detector.SetDefaultParameters();
+ detector.DetectText(image);
- // Setup binarizer
- printf("setting up binarizer...\n");
- HeliumBinarizer binarizer(image);
- binarizer.AddClusters(detector.GetClusters());
+ // Setup binarizer
+ printf("setting up binarizer...\n");
+ HeliumBinarizer binarizer(image);
+ binarizer.AddClusters(detector.GetClusters());
- // Run OCR
- printf("OCRing (language %s)...\n", lang);
- TextAreas text;
- TextRecognition::Init("/sdcard/",
+ // Run OCR
+ printf("OCRing (language %s)...\n", lang);
+ TextAreas text;
+ TextRecognition::Init("/sdcard/",
lang,
"/sdcard/tessdata/ratings");
- TextRecognition::RecognizeUsingBinarizer(&binarizer, text);
+ TextRecognition::RecognizeUsingBinarizer(&binarizer, text);
- // Output Text
- printf("writing to output file %s\n", outfile);
- text.WriteDatFile(outfile);
+ // Output Text
+ printf("writing to output file %s\n", outfile);
+ text.WriteDatFile(outfile);
- printf("done\n");
- return 0;
+ printf("done\n");
+ return 0;
};