It seems that you did not follow closely the instructions given in the Training 
wiki <http://code.google.com/p/tesseract-ocr/wiki/TrainingTesseract3>.

If possible, use a training tool, such as 
jTessBoxEditor<http://vietocr.sourceforge.net/training.html>
.

On Wednesday, April 23, 2014 1:20:20 PM UTC-5, umcode wrote:
>
> :) ,thank you Quan Nguyen!
>  i troubled with this program almost in every step .
>  please help me go on !!!!
>  what about this  error ! 
>
> C:\Program Files\Tesseract-OCR>mftraining -F unicharset -O eng.unicharset 
> eng.ar
> ial.exp0.tr eng.arial.exp1.tr
> Warning: No shape table file present: shapetable
> Reading eng.arial.exp0.tr ...
> Reading eng.arial.exp1.tr ...
> Font id = -1/0, class id = 1/58 on sample 0
> font_id >= 0 && font_id < font_id_map_.SparseSize():Error:Assert failed:in 
> file
> ..\..\classify\trainingsampleset.cpp, line 622
>
>  i try to debug in program on the windows xp +vs2008 express.
>  but in shapeclustering project (i try to build it lonely) launched above 
> msg:
>
> ------ Build started: Project: shapeclustering, Configuration: LIB_Debug 
> Win32 ------
> Linking...
> shapeclustering.obj : error LNK2019: unresolved external symbol "void 
> __cdecl tesseract::WriteShapeTable(class STRING const &,class 
> tesseract::ShapeTable const &)" 
> (?WriteShapeTable@tesseract@@YAXABVSTRING@@ABVShapeTable@1@@Z) referenced 
> in function _main
> shapeclustering.obj : error LNK2019: unresolved external symbol "public: 
> void __thiscall tesseract::MasterTrainer::SetupMasterShapes(void)" 
> (?SetupMasterShapes@MasterTrainer@tesseract@@QAEXXZ) referenced in function 
> _main
> shapeclustering.obj : error LNK2019: unresolved external symbol "public: 
> void __thiscall tesseract::MasterTrainer::DebugCanonical(char const *,char 
> const *)" (?DebugCanonical@MasterTrainer@tesseract@@QAEXPBD0@Z) referenced 
> in function _main
> shapeclustering.obj : error LNK2019: unresolved external symbol "public: 
> void __thiscall tesseract::MasterTrainer::DisplaySamples(char const 
> *,int,char const *,int)" 
> (?DisplaySamples@MasterTrainer@tesseract@@QAEXPBDH0H@Z) referenced in 
> function _main
> shapeclustering.obj : error LNK2019: unresolved external symbol "public: 
> __thiscall STRING::~STRING(void)" (??1STRING@@QAE@XZ) referenced in 
> function _main
> shapeclustering.obj : error LNK2019: unresolved external symbol "class 
> tesseract::MasterTrainer * __cdecl tesseract::LoadTrainingData(int,char 
> const * const *,bool,class tesseract::ShapeTable * *,class STRING *)" 
> (?LoadTrainingData@tesseract@@YAPAVMasterTrainer@1@HPBQBD_NPAPAVShapeTable@1@PAVSTRING@@@Z)
>  
> referenced in function _main
> shapeclustering.obj : error LNK2019: unresolved external symbol "public: 
> __thiscall STRING::STRING(void)" (??0STRING@@QAE@XZ) referenced in function 
> _main
> shapeclustering.obj : error LNK2019: unresolved external symbol "void 
> __cdecl ParseArguments(int *,char * * *)" 
> (?ParseArguments@@YAXPAHPAPAPAD@Z) referenced in function _main
> shapeclustering.obj : error LNK2019: unresolved external symbol "public: 
> char const * __thiscall STRING::string(void)const " 
> (?string@STRING@@QBEPBDXZ) referenced in function "public: char const * 
> __thiscall tesseract::StringParam::string(void)const " 
> (?string@StringParam@tesseract@@QBEPBDXZ)
> shapeclustering.obj : error LNK2019: unresolved external symbol "public: 
> int __thiscall STRING::length(void)const " (?length@STRING@@QBEHXZ) 
> referenced in function "public: bool __thiscall 
> tesseract::StringParam::empty(void)" (?empty@StringParam@tesseract@@QAE_NXZ)
> shapeclustering.obj : error LNK2019: unresolved external symbol "public: 
> __thiscall tesseract::MasterTrainer::~MasterTrainer(void)" 
> (??1MasterTrainer@tesseract@@QAE@XZ) referenced in function "public: void * 
> __thiscall tesseract::MasterTrainer::`scalar deleting destructor'(unsigned 
> int)" (??_GMasterTrainer@tesseract@@QAEPAXI@Z)
> shapeclustering.obj : error LNK2019: unresolved external symbol "public: 
> void __cdecl ERRCODE::error(char const *,enum TessErrorLogCode,char const 
> *,...)const " (?error@ERRCODE@@QBAXPBDW4TessErrorLogCode@@0ZZ) referenced 
> in function "public: virtual void __thiscall 
> GenericVector<int>::remove(int)" (?remove@?$GenericVector@H@@UAEXH@Z)
> shapeclustering.obj : error LNK2019: unresolved external symbol "struct 
> tesseract::ParamsVectors * __cdecl GlobalParams(void)" 
> (?GlobalParams@@YAPAUParamsVectors@tesseract@@XZ) referenced in function 
> "void __cdecl `dynamic initializer for 'FLAGS_display_cloud_font''(void)" 
> (??__EFLAGS_display_cloud_font@@YAXXZ)
> shapeclustering.obj : error LNK2019: unresolved external symbol "public: 
> class STRING & __thiscall STRING::operator=(char const *)" 
> (??4STRING@@QAEAAV0@PBD@Z) referenced in function "public: __thiscall 
> tesseract::StringParam::StringParam(char const *,char const *,char const 
> *,bool,struct tesseract::ParamsVectors *)" 
> (??0StringParam@tesseract@@QAE@PBD00_NPAUParamsVectors@1@@Z)
> ..\LIB_Debug\shapeclusteringd.exe : fatal error LNK1120: 14 unresolved 
> externals
> Build log was saved at "file://c:\Copy of 
> BuildFolder1\tesseract-3.02\vs2008\shapeclustering\LIB_Debug\BuildLog.htm"
> shapeclustering - 15 error(s), 0 warning(s)
> ========== Build: 0 succeeded, 1 failed, 0 up-to-date, 0 skipped ==========
>
>
>  please help me again! thank you!
>
> 23 Nisan 2014 Çarşamba 05:01:38 UTC+3 tarihinde Quan Nguyen yazdı:
>>
>> Create and supply a font_properties file.
>>
>> On Tuesday, April 22, 2014 4:26:43 AM UTC-5, umcode wrote:
>>
>>> thank you for you answer .
>>>   but this command launch the anather error : failed to loadfont_properties 
>>> from 
>>> font_properties
>>>  what must i do? 
>>>  thanks again !
>>> 22 Nisan 2014 Salı 03:41:05 UTC+3 tarihinde Quan Nguyen yazdı:
>>>>
>>>> Because the command is incorrect. It should be:
>>>>
>>>> shapeclustering -F font_properties -U unicharset eng.timesitalic.exp0.tr
>>>>
>>>>
>>>>
>>>> On Monday, April 21, 2014 10:23:37 AM UTC-5, umcode wrote:
>>>>>
>>>>> i have read the 
>>>>> trainingtesseract3<https://code.google.com/p/tesseract-ocr/wiki/TrainingTesseract3>and
>>>>>  install the tesseract 
>>>>> 3.02<http://code.google.com/p/tesseract-ocr/downloads/detail?name=tesseract-ocr-setup-3.02.02.exe&can=2&q=>to
>>>>>  my windows xp. 
>>>>>  1. prepare the images as 
>>>>> eng.arial.exp0.tif,eng.arial.exp1.tif,eng.arial.exp1.tif,eng.arial.exp2.tif
>>>>>  2.in cmd console
>>>>>
>>>>> tesseract eng.arial.exp0.tif eng.arial.exp0 batch.nochop makebox
>>>>>
>>>>> tesseract eng.arial.exp1.tif eng.arial.exp1 batch.nochop makebox
>>>>>
>>>>> tesseract eng.arial.exp2.tif eng.arial.exp2 batch.nochop makebox
>>>>>
>>>>>  program produce the 
>>>>> eng.arial.exp0.box,eng.arial.exp1.box,eng.arial.exp2.box files
>>>>>
>>>>> 3. in cmd console
>>>>> tesseract eng.arial.exp0.tif eng.arial.exp0.box nobatch box.train
>>>>>
>>>>> tesseract eng.arial.exp1.tif eng.arial.exp1.box nobatch box.train
>>>>>
>>>>> tesseract eng.arial.exp2.tif eng.arial.exp2.box nobatch box.train
>>>>>
>>>>> program produces 
>>>>> eng.arial.exp0.tr,eng.arial.exp1.tr,eng.arial.exp2.trfiles
>>>>>
>>>>>  4.in cmd console
>>>>>  unicharset_extractor eng.arial.exp0.box eng.arial.exp1.box 
>>>>> eng.arial.exp2.box
>>>>>  program produces unicharset file
>>>>>
>>>>> 5.in cmd console
>>>>>  shapeclustering -F unicharset eng.arial.exp0.tr eng.arial.exp1.tr 
>>>>> eng.arial.exp2.tr 
>>>>> program launch the error :
>>>>>  Unable to open eng.arial.exp0.tr!
>>>>> signal-termination-handler: error:signal-termination-handler 
>>>>> called:code3000
>>>>>
>>>>> why it is ! what is my wrong step?
>>>>>  thank you !
>>>>>
>>>>

-- 
You received this message because you are subscribed to the Google Groups 
"tesseract-ocr" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/tesseract-ocr.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/tesseract-ocr/a210a298-bf2f-4d03-b5d2-2082f1e54d81%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to