00001 # ifndef Conjecture_GocrModule_h
00002 # define Conjecture_GocrModule_h Conjecture_GocrModule_h
00003
00004
00005
00006
00007
00008
00009 # include "OCRModule.h"
00010
00011
00012 # include "gocr.h"
00013
00014 namespace Conjecture {
00015
00028 class GocrModule : public OCRModule {
00029 public:
00030 GocrModule();
00031
00032 virtual ProcessComponent * createProcessComponent() const;
00033 virtual SegmentComponent * createSegmentComponent() const;
00034 virtual IdentifyComponent* createIdentifyComponent() const;
00035 virtual FormatComponent * createFormatComponent() const;
00036
00037 virtual void processArgs(int argc, const char** argv, Env* env = NULL);
00038
00039
00040
00041
00042
00043
00044 inline Job* job() const { return this->_job; }
00045 inline Job* & jobRef() { return this->_job; }
00046 inline void jobIs(Job* job) { this->_job = job; }
00047
00048 protected:
00049
00050 private:
00051 Job* _job;
00052 };
00053 }
00054
00055 # endif // Conjecture_GocrModule_h