"SfR Fresh" - the SfR Freeware/Shareware Archive

Member "xocr/ocr.h" of archive xocr_5.german.tar.gz:


As a special service "SfR Fresh" has tried to format the requested source page into HTML format using (guessed) C and C++ source code syntax highlighting with prefixed line numbers. Alternatively you can here view or download the uninterpreted source code file. That can be also achieved for any archive member file by clicking within an archive contents listing on the first character of the file(path) respectively on the according byte size field.
    1 struct LearndDaten
    2 {
    3  unsigned char Zeichen[4];   /* max. 3 gelernte Zeichen */
    4  unsigned char WsaAchsenWerte[128];
    5  unsigned char Klasse;     /* Abstandsklasse zum UrSprung */
    6  unsigned char Elemente;   /* Elementeanzahl*/
    7  unsigned char Flag;       /*
    8                              Bit 0  : x-Spiegel
    9                              Bit 1  : y-Spiegel
   10                              Bit 2  : untergrosses Zeichen
   11                              Bit 3  : obergrosses Zeichen
   12                              Bit 4-7: =0
   13                            */
   14 };
   15 
   16 struct  LearndListe
   17 {
   18  struct LearndDaten Daten;
   19  struct LearndListe *NextPtr;
   20  struct LearndListe *JumpPtr;
   21  long Wert;
   22 };
   23 
   24 struct BitBlockListe
   25 {
   26  long xx,yy,x,y,Bytes_pro_Zeile,dx,dy,ddx;
   27  long Startx,Starty;
   28  short int Bild,Geloescht;
   29  long SpaltenNummer;
   30  long SegmentNummer;
   31  short int Elemente,Klasse;
   32  short int XSpiegel,YSpiegel;
   33  long Untere_Zeile,Obere_Zeile;
   34  char Text[4];
   35  unsigned char BildDaten[32];
   36  short int WsaAchsenWerte[128];
   37  struct BitBlockListe *NextPtr,*NextSegmentBlockPtr,*NextPtrInSegment;
   38  struct BitBlockListe *NextZeileInSegment,*NextPtrInZeile;
   39 };
   40 
   41 struct LearndListe  *AnalysiereAlleWerteEinesSegments();
   42 void WoerterbuchUndSemantikCheck();
   43 void SpeichereGelerntesZeichen();
   44 void Bloecke_in_Segmente();
   45 void FindeZeilen();
   46 void VerschmelzeBitBloeckeInZeile();
   47 void VergleicheAufSymetrieUndWsa();
   48 void Finde_SegmentBloecke();
   49 unsigned long leselong();
   50 void Finde_Bloecke();
   51 void OcrInit();
   52 void MemoryError();