

![]() | Start a set with this search |
![]() | Include this search in one of my sets |
![]() | Exclude this search from one of my sets |
![]() | Permalink to these results Paste this link in email or IM: |
| Atom feed for tracking future search results Paste this URL into your reader: |
6 messages in com.googlegroups.ocropusRe: Viewing hOCR?| From | Sent On | Attachments |
|---|---|---|
| kenberland | Nov 13, 2008 10:47 pm | |
| Thomas Breuel | Nov 14, 2008 6:19 am | |
| kenberland | Nov 14, 2008 8:13 am | |
| kenberland | Nov 14, 2008 9:16 am | |
| kenberland | Nov 15, 2008 8:39 am | |
| kenberland | Nov 15, 2008 8:41 am |

![]() | Permalink for this message Paste this link in email or IM: |
![]() | Permalink for this thread Paste this link in email or IM: |
| Atom feed for this thread Paste this URL into your reader: |
| Subject: | Re: Viewing hOCR? | Actions... |
|---|---|---|
| From: | kenberland (ken....@gmail.com) | |
| Date: | Nov 15, 2008 8:41:16 am | |
| List: | com.googlegroups.ocropus | |
patch was backwards.
--- /usr/local/share/ocropus/scripts/deskew.lua~ 2008-11-15 08:31:31.000000000 -0800 +++ /usr/local/share/ocropus/scripts/deskew.lua 2008-11-14 15:08:47.000000000 -0800 @@ -6,10 +6,10 @@ os.exit(1) end
-proc = make_DeskewPageByRAST() +proc = ocr.make_DeskewPageByRAST()
input = bytearray:new() output = bytearray:new() -read_image_gray(input,arg[1]) +iulib.read_image_gray(input,arg[1]) proc:cleanup(output,input) -write_png(arg[2],output) +iulib.write_image_gray(arg[2],output)
On Nov 15, 8:39 am, kenberland <ken....@gmail.com> wrote:
In the meantime, I worked with Florian Hackenberger's HocrToPdf.java to convert multi-page hocr to pdf for viewing and searching.
http://hero.com/public/HocrToPdf.java (needs to be compiled with javac -deprecation)
I also had to patch /usr/local/share/ocropus/scripts/deskew.lua to make it work
--- /usr/local/share/ocropus/scripts/deskew.lua 2008-11-14 15:08:47.000000000 -0800 +++ /usr/local/share/ocropus/scripts/deskew.lua~ 2008-11-15 08:31:31.000000000 -0800 @@ -6,10 +6,10 @@ os.exit(1) end
-proc = ocr.make_DeskewPageByRAST() +proc = make_DeskewPageByRAST()
input = bytearray:new() output = bytearray:new() -iulib.read_image_gray(input,arg[1]) +read_image_gray(input,arg[1]) proc:cleanup(output,input) -iulib.write_image_gray(arg[2],output) +write_png(arg[2],output)
-KB
On Nov 14, 9:16 am, kenberland <ken....@gmail.com> wrote:
This is Issue 119: no hocr browser rendering code (.js or .css) in project.
-KB
On Nov 14, 8:13 am, kenberland <ken....@gmail.com> wrote:
It would be great to work with your code, no matter what state, instead of starting from scratch. I have some resources right now that I can bring to bare on the task.
-KB
On Nov 14, 6:19 am, "Thomas Breuel" <tmb...@gmail.com> wrote:
Yes, we have such JavaScript code; it actually lets you switch between physical and logical views on the fly. It's not checked into the Ocropus or hOCR projects yet, though.
Can you submit a bug report/feature request in the issue tracker so that we don't lose track of this, please? I hope Christian can then get the code out quickly.
Tom
On Fri, Nov 14, 2008 at 07:47, kenberland <ken....@gmail.com> wrote:
Is there .css or javascript available within this project to render the hocr output from "ocroscript recognize" in a browser?
Is this something I need to write?







