Hi, I'm not sure what the source of that problem is. Can you submit a bug report, please? I'll have to see whether I can reproduce this.
Tom On Saturday, August 25, 2012 9:11:10 PM UTC+2, 79yrsold wrote: > > Hi, > tested using only six fraktur - fontline.tif,box, txt and succeeded > without any error. > ocropus now supported the utf-8. > > tested - successfully generated kannada(utf-8) training but with *few > errors - incomplete training *- > seeking help how to overcome errors displayed - marked in blue color? > Where i made mistake. > extract of terminal is reproduced below: > > dell@ubuntu:~$ cd ocropus_6.0/ > dell@ubuntu:~/ocropus_6.0$ cd kannada-boxes/ > dell@ubuntu:~/ocropus_6.0/kannada-boxes$ ./run-box-training > ================================================================ > === This script illustrates training of a simple, initial > === character recognizer from the kind of boxdata training > === files used with Tesseract. > ================================================================ > > + for image in 'deu-f/*.tif' > + convert -depth 8 deu-f/alamandidoddavva.tif deu-f/alamandidoddavva.png > + for image in 'deu-f/*.tif' > + convert -depth 8 deu-f/test4.tif deu-f/test4.png > + ocropus-db tess2h5 deu-f/alamandidoddavva.png deu-f/test4.png -o > boxdata.h5 > ['deu-f/alamandidoddavva.png', 'deu-f/test4.png'] > === deu-f/alamandidoddavva.png > === deu-f/test4.png > + ocropus-tsplit --pca 0.95 --vq 80 -d boxdata.h5 -o boxdata.split > loading dataset > got 8263 samples out of 8263 > # classes 59 > most common ~ 4874 / ದ 288 / . 263 / ವ 256 / ರ 197 / ಂ 193 / ನ 178 / ಯ 177 > / ಗ 154 / ಕ 142 / ... > starting training > pcakmeans 8263 k 80 d 0.95 > predicting 8263 1024 > writing > + ocropus-tleaves -Q 4 -s boxdata.split -d boxdata.h5 -o boxdata.cmodel > loading splitter > got <ocrolib.patrec.HierarchicalSplitter instance at 0x3eb8488> > #splits 80 > excluding [ _\000-\037] > sizemode perchar > loading dataset > sizemode (data) perchar > splitting > 0 > cluster 0 len 41 ~ 41 > cluster 5 len 66 ಜ 66 > cluster 15 len 208 ~ 199 / ಈ 9 > cluster 10 len 236 ~ 155 / ಮ 81 > cluster 1 len 2 ~ 2 > Process PoolWorker-1: > *Traceback (most recent call last): > File "/usr/lib/python2.7/multiprocessing/process.py", line 258, in > _bootstrap > self.run() > File "/usr/lib/python2.7/multiprocessing/process.py", line 114, in run > self._target(*self._args, **self._kwargs) > File "/usr/lib/python2.7/multiprocessing/pool.py", line 99, in worker > put((job, i, result)) > File "/usr/lib/python2.7/multiprocessing/queues.py", line 390, in put > return send(obj) > PicklingError: Can't pickle <type 'function'>: attribute lookup > __builtin__.function failed* > cluster 20 len 58 ತ 58 > cluster 6 len 77 ಇ 77 > cluster 11 len 74 ~ 74 > cluster 16 len 20 ~ 20 > cluster 21 len 48 ತ 48 > cluster 7 len 21 ~ 21 > cluster 17 len 168 ~ 168 > cluster 12 len 184 ಯ 177 / ~ 7 > cluster 22 len 56 . 56 > cluster 8 len 258 ಬ 94 / ಲ 65 / ಣ 31 / ಒ 27 / ಟ 20 > cluster 13 len 162 ~ 151 / ಈ 11 > cluster 18 len 115 ಕ 58 / ~ 35 / ಶ 22 > cluster 23 len 121 . 121 > cluster 9 len 78 ~ 78 > cluster 14 len 50 ~ 50 > cluster 19 len 105 ~ 62 / ಹ 43 > cluster 24 len 86 . 86 > cluster 25 len 156 ಆ 135 / ಅ 21 > cluster 30 len 416 ಂ 193 / ರ 182 / ~ 40 / ೦ 1 > cluster 35 len 316 ವ 256 / ಪ 41 / ಷ 8 / ಧ 6 / ಥ 2 > cluster 26 len 179 ಅ 95 / ಕ 84 > cluster 40 len 53 ~ 53 > cluster 31 len 262 ನ 178 / ಸ 84 > cluster 36 len 76 ಡ 74 / ಢ 2 > cluster 27 len 93 ~ 93 > cluster 41 len 63 ~ 63 > cluster 32 len 239 ಗ 154 / ~ 85 > cluster 37 len 303 ದ 288 / ರ 15 > cluster 42 len 36 ~ 36 > cluster 28 len 222 ~ 222 > cluster 33 len 79 ~ 79 > cluster 38 len 246 ~ 246 > cluster 43 len 52 ~ 52 > cluster 29 len 113 ~ 70 / ಭ 24 / ಚ 18 / ೧ 1 > cluster 34 len 231 ~ 231 > cluster 39 len 28 ~ 28 > cluster 44 len 102 ~ 78 / ಉ 24 > cluster 45 len 148 ~ 148 > cluster 50 len 27 ~ 27 > cluster 55 len 35 ೕ 35 > cluster 60 len 92 ~ 92 > cluster 46 len 172 ~ 172 > cluster 61 len 1 ~ 1 > *Process PoolWorker-5: > Traceback (most recent call last): > File "/usr/lib/python2.7/multiprocessing/process.py", line 258, in > _bootstrap > self.run() > File "/usr/lib/python2.7/multiprocessing/process.py", line 114, in run > self._target(*self._args, **self._kwargs) > File "/usr/lib/python2.7/multiprocessing/pool.py", line 99, in worker > put((job, i, result)) > File "/usr/lib/python2.7/multiprocessing/queues.py", line 390, in put > return send(obj) > PicklingError: Can't pickle <type 'function'>: attribute lookup > __builtin__.function failed* > cluster 65 len 65 ~ 65 > cluster 56 len 123 ~ 76 / ೕ 13 / : 8 / ಃ 5 / ? 5 > cluster 51 len 23 ~ 23 > cluster 47 len 100 ~ 100 > cluster 66 len 15 ~ 15 > cluster 52 len 52 ~ 52 > cluster 57 len 136 ~ 136 > cluster 48 len 116 ~ 116 > cluster 67 len 74 ~ 74 > cluster 53 len 18 ~ 18 > cluster 49 len 78 ಎ 78 > cluster 58 len 85 ~ 85 > cluster 68 len 104 ~ 104 > cluster 70 len 49 , 49 > cluster 54 len 116 ಳ 99 / ~ 17 > cluster 59 len 58 ~ 58 > cluster 69 len 82 ~ 82 > cluster 75 len 34 ~ 34 > cluster 71 len 47 ~ 47 > cluster 76 len 12 ~ 12 > cluster 72 len 60 ~ 60 > cluster 77 len 138 ~ 138 > cluster 73 len 125 ~ 123 / ೯ 2 > cluster 78 len 44 ~ 44 > cluster 74 len 66 ~ 65 / ೕ 1 > cluster 79 len 43 ~ 43 > With regards, > -sriranga(79yrs) > > > On Sat, Aug 25, 2012 at 4:45 PM, Tom <[email protected] <javascript:>>wrote: > >> Yes, thanks. >> >> Note that "imagemagick" gets installed according to the install >> instructions on the web site. I've also updated the README file in the >> ocropy directory. >> >> Tom >> >> >> On Saturday, August 25, 2012 2:15:06 AM UTC+2, bradh wrote: >>> >>> On Saturday 25 August 2012 00:36:02 Sriranga(78yrsold) wrote: >>> > re-run script Fraktur-boxes. Error displayed as follow: >>> > >>> > + for image in 'deu-f/*.tif' >>> > + convert -depth 8 deu-f/fontfile_1.tif deu-f/fontfile_1.png >>> > ./run-box-training: line 23: convert:* command not found* >>> It looks like you don't have the "convert" executable, so when the >>> script >>> tries to run it, it doesn't work. "convert" comes from imagemagick >>> package (or >>> something similar, like graphicsmagick with compatibility wrappers). >>> >>> On ubuntu, I'd suggest installing: >>> graphicsmagick >>> and >>> graphicsmagick-imagemagick-**compat >>> packages >>> >>> Let us know if that helps at all. >>> >>> Brad >>> >>> -- >> You received this message because you are subscribed to the Google Groups >> "ocropus" group. >> To post to this group, send email to [email protected]<javascript:> >> . >> To unsubscribe from this group, send email to >> [email protected] <javascript:>. >> To view this discussion on the web visit >> https://groups.google.com/d/msg/ocropus/-/TNhqRJQ-7sMJ. >> >> For more options, visit https://groups.google.com/groups/opt_out. >> >> >> > > -- 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]. To view this discussion on the web visit https://groups.google.com/d/msg/ocropus/-/7f7ShaJYVr0J. For more options, visit https://groups.google.com/groups/opt_out.
