Also, I noticed that the method 'textImageProbabilities' returns an
'intarray', this can't be saved using 'write_png', what is the best
way to visulise the results? And in addition, remove image regions? Is
there a sister method? More generally, I've got a binary image region
on my documents which I'm trying to remove. I assume this is the
correct approach. Cheers Nathan
Command:
scons lept=1
Produces:
g++ -o ocr-layout/ocr-layout-rast.os -c
-DDATADIR='"/usr/local/share/ocropus"'
-DDEFAULT_DATA_DIR='"/usr/local/share/ocropus/models"'
-DDEFAULT_EXT_DIR='"/usr/local/share/ocropus/extensions"' -g -fPIC -O2
-Wall -Wno-sign-compare -Wno-write-strings -Wno-unknown-pragmas
-D__warn_unused_result__=__far__ -D_BACKWARD_BACKWARD_WARNING_H=1
-fopenmp -fPIC -DHAVE_LEPTONICA -DHAVE_SQLITE3 -Iocr-lineseg
-Iocr-commands -Iocr-leptonica -Iocr-binarize -Iocr-pfst -Iocr-utils
-Iocr-line -Iocr-layout -Iocr-voronoi -I/usr/local/include
-I/usr/local/include -I/usr/include/leptonica
-I/usr/local/include/leptonica -I/usr/local/include/leptonica
ocr-layout/ocr-layout-rast.cc
In file included from ocr-layout/ocr-layout-internal.h:60,
from ocr-layout/ocr-layout-rast.cc:28:
ocr-layout/ocr-text-image-seg.h:77: error: no unique final overrider
for 'virtual const char* iulib::IComponent::interface()' in
'ocropus::RemoveImageRegions'
scons: *** [ocr-layout/ocr-layout-rast.os] Error 1
scons: building terminated because of errors.
--
Email: nathank [at] noshly.com (professional)
Email: its [at] madteckhead.com (personal)
Website: http://www.madteckhead.com
--------------------------------------------
Q: Why is this email five sentences or less?
A: http://five.sentenc.es
This email (including any attachments) is confidential and may be
privileged. If you have received it in error, please notify the sender
by return email and delete this message from your system. Any
unauthorised use or dissemination of this message in whole or in part
is strictly prohibited. Please note that emails are susceptible to
change and we will not be liable for the improper or incomplete
transmission of the information contained in this communication nor
for any delay in its receipt or damage to your system. We do not
guarantee that the integrity of this communication has been maintained
nor that this communication is free of viruses, interceptions or
interference.
--
You received this message because you are subscribed to the Google Groups "ocropus" group.
To post to this group, send email to ocr...@googlegroups.com.
To unsubscribe from this group, send email to ocropus+u...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/ocropus?hl=en.
Because I'm using images from cameras, id really like to have FST
language model support and thus am only using tesseract for generating
draft ground truth. And on that note, I've been unable to understand
if I can call tesseract from ocropus to generate ground truth drafts.
I'd find that a useful feature, and at the moment just plan on doing
it in a python script. Perhaps after the StandardPreProcessing, an
option could be to generate ground truth from tesseract. Probably not
an original idea, but it would be neat.
Cheers,
Nathan