All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Modules Pages
svpaint.cpp File Reference
#include "scrollview.h"
#include "svmnode.h"
#include <stdlib.h>
#include <iostream>

Go to the source code of this file.

Classes

class  SVPaint
 

Functions

int main (int argc, char **argv)
 

Variables

int rgb [3] = { 255, 255, 255 }
 

Function Documentation

int main ( int  argc,
char **  argv 
)

This program reads in a text file consisting of feature samples from a training page in the following format:

   FontName UTF8-char-str xmin ymin xmax ymax page-number
    NumberOfFeatureTypes(N)
      FeatureTypeName1 NumberOfFeatures(M)
         Feature1
         ...
         FeatureM
      FeatureTypeName2 NumberOfFeatures(M)
         Feature1
         ...
         FeatureM
      ...
      FeatureTypeNameN NumberOfFeatures(M)
         Feature1
         ...
         FeatureM
   FontName CharName ...

The result of this program is a binary inttemp file used by the OCR engine.

Parameters
argcnumber of command line arguments
argvarray of command line arguments
Returns
none
Note
Exceptions: none
History: Fri Aug 18 08:56:17 1989, DSJ, Created.
History: Mon May 18 1998, Christy Russson, Revistion started.

Definition at line 221 of file svpaint.cpp.

221  {
222  const char* server_name;
223  if (argc > 1) { server_name = argv[1]; } else { server_name = "localhost"; }
224  SVPaint svp(server_name);
225 }

Variable Documentation

int rgb[3] = { 255, 255, 255 }

Definition at line 26 of file svpaint.cpp.