Yes, dgraphics=1 is the intended way to use it. The optional third argument to dinit() is there so that you can also use dgraphics for programs that really must display something (e.g., a simple image viewer).
The dgraphics library is a quick and dirty way to display things and helps quite a bit if you want to figure out what's going on in some loop. The nice thing about using the environment variable is that you can leave the graphics code in the code and re-enable it when you want to figure out what's going on. There is also a new graphical logging facility; it lets you log text, data, and images into an HTML file and is helpful for looking at the performance of algorithms on larger data sets. You can see an example of that kind of logging output here: http://www.iupr.org/~ocropus/ Tom On Mon, Feb 2, 2009 at 12:32, inkbottle <[email protected]> wrote: > > Of course because I'm such a newbie I didn't see the right way > to deal with that. The right way is not to force debugging with > adding 'true', but to set the environment variable dgraphics, > like this: > export dgraphics=1 #for anything to show > (see http://ocrocourse.iupr.com/Debugging-Graphics) > > (I apologize for the noise but there is not yet many places > where one can speak and read about ocropus) > > > On 29 jan, 17:15, inkbottle <[email protected]> wrote: > > From the experiments I've done, and from reading the code > > of show.lua, it semms in order to actually have a displayed > > window, one must call dinit () like this: > > dinit (800,800,true) instead of simply dinit (800,800). > > > > Also, when doing dshow(image), the content seems to be dis- > > played only when calling wait() (the window remain blank > > before). > > > > (beside one must not forget to make the imports as said here: > http://groups.google.com/group/ocropus/browse_thread/thread/ac5f112fe... > > nov 16th 2008) > > > > On 28 jan, 01:16, inkbottle <[email protected]> wrote: > > > > > Hi, > > > I have installed ocropus on debian lenny from ocropus-0.3.1.tar.gz. > > > I followed the tutorial: install 0.5.* on unbuntu (0.5 might be a > > > mistake). > > > The only library I did not installed is openFst. > > > I used this command line: > > > ./configure --prefix=~/usr/local/ --without-fst --with-iulib=~/usr/ > > > local/ --with-tesseract=/usr/ > > > make, make check and make install > > > Then everyting works fine, I've allready tested many of the > > > ocroscripts, > > > even some I've retrieved from the svn version. > > > I've modified the deskew.lua putting 'iulib.' in front of > > > read_image_gray, > > > for it to work as I read somewhere... > > > > > But I can't make dshow, dinit work. > > > It does not complain but it doesn't do anything neither. > > > > > It would be nice if any suggestion. > > > Thanks > > > --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
