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