I removed the functions fst_insert, etc..from pfst.cc and after that I could compile.
then I adjusted in ocroscript/segment-line.lua: < require "getopt" > require 'lib.util' > import_all(ocr) > import_all(iulib) > options,arg = util.getopt(arg) < narray.copy(image,gimage) < binarize_by_range(image,0.5) > binarizer = ocr.make_BinarizeByRange() > binarizer:binarize(image,gimage) < write_png_rgb(arg[2],segmentation) > write_image_packed(arg[2],segmentation) now I could call ocropus trainseg ... the next problems are to exactly match the transcripts and segs, unicode... On Jun 9, 12:41 am, tmb <[email protected]> wrote: > The FST support in OCRopus has changed (we've removed some > functionality and added others) and ocroscript hasn't been modified to > deal with the new code yet. > > There's nothing conceptually hard about it, someone just needs to go > through and delete functions that don't exist anymore and add > functions for the new A* and beam search. If you could do it and > supply patches... that would be very helpful. > > Tom > > On Jun 8, 4:06 pm, GM Kall <[email protected]> wrote: > > > I ´ve the same problem. May be some implementation is missing or not > > checked in? > > > On Jun 8, 12:01 pm, Marcello Nuccio <[email protected]> wrote: > > > > On 8 Giu, 11:36, Marcello Nuccio <[email protected]> wrote: > > > > > Adding > > > > #include "ocrolangmod/ocrolangmod.h" > > > > to pfst.cc I get: > > > > pfst.cc: In function 'int tolua_pfst_pfst_fst_union00(lua_State*)': > > > > pfst.cc:351: error: 'fst_union' was not declared in this scope > > > > > I have found fst_union() in pfst.pkg, but I don't know how to build > > > > it... can someone help me? > > > > Ok, I got it: pfst.cc is compiled from pfst.pkg. > > > So I have added > > > $#include "ocrolangmod/ocrolangmod.h" > > > to pfst.pkg and now I'm stuck to: > > > pfst.cc: In function 'int tolua_pfst_pfst_fst_union00(lua_State*)': > > > pfst.cc:351: error: 'fst_union' was not declared in this scope > > > > Another thing I forgot in previous post: I needed the following > > > package > > > sudo apt-get install liblua5.1-0-dev --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "ocropus" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/ocropus?hl=en -~----------~----~----~----~------~----~------~--~---
