mirror of https://github.com/tongzx/nt5src
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
41 lines
1.2 KiB
41 lines
1.2 KiB
// Panel.h
|
|
// James A. Pittman
|
|
// July 23, 1998
|
|
|
|
// Recognizes an entire panel at once by looping over lines, then looping over
|
|
// ink blobs that have large gaps between them, and finally looping over the strokes
|
|
// within a blob, using recognition scores to help decide what is a word and what is not.
|
|
|
|
// Eventually we should include a look at the gaps between the strokes, and include
|
|
// the mean and std dev from such breaks from labeled data.
|
|
|
|
#ifndef _PANEL_
|
|
#define _PANEL_
|
|
|
|
// These are already included by those who include this header file,
|
|
// and they are not protected from being included twice.
|
|
|
|
//#include "nfeature.h"
|
|
//#include "engine.h"
|
|
|
|
#include "common.h"
|
|
#include "bear.h"
|
|
|
|
// Number of alternates to generate in Word and pnel mode
|
|
#define MAX_ALT_WORD (32)
|
|
#define MAX_ALT_PHRASE (10)
|
|
|
|
extern int WordModeRecognize (XRC *pxrc);
|
|
|
|
extern int PanelModeRecognize (XRC *pxrc, DWORD dwRecoMode);
|
|
|
|
extern int RecognizeWord (XRC *pxrcInferno, BEARXRC *pxrcBear, WORDMAP *pWordMap,
|
|
BOOL bInfernoMap, int yDev, ALTERNATES *pAlt, int bAval);
|
|
|
|
extern GLYPH * GlyphFromWordMap (GLYPH *pMainGlyph, WORDMAP *pMap);
|
|
|
|
extern void ShiftFrame (FRAME *pFrame, int dx, int dy);
|
|
|
|
extern int initPhraseHRC(XRC *pMainXrc, GLYPH *pGlyph, HRC *phrc);
|
|
|
|
#endif
|