GithubHelp home page GithubHelp logo

Comments (4)

monniert avatar monniert commented on May 25, 2024

Hi, thanks for the interest! Unfortunately, there is no support for word level extraction but I think you can do a good baseline with tools in this repo with the following 2 leads:

  • generate full synthetic documents with word-level label + illustration label and retrain the network from scratch
  • generate a synthetic line dataset and train a new network to segment words from textlines (assuming the line extraction is working rather well)

Otherwise, you can try Tesseract in the case the document images are not too noisy, here is a good tutorial: https://nanonets.com/blog/ocr-with-tesseract/

from docextractor.

SB2020-eye avatar SB2020-eye commented on May 25, 2024

Thanks so much, @monniert!

I've never trained my own network. (I'm barely out of the gate with Python or coding at all!) I would like to learn some day, as I at least know enough to know it could be useful for the kinds of hobby projects I'm pursuing.

Line extraction on the current document I'm working with is working very well. (Thanks!!!)

a. What is the "word-level label," if you don't mind? I searched the repository and saw all kinds of code with "word" in it. But I couldn't figure out what it is.

b. In some of your image examples, I see the teal blue lines highlighted, but in addition, I see some royal blue lines sometimes on shorter segments? What is this darker blue line? Does this have any relevance to my question?

c. If all else fails, I had a rather simplistic notion, especially given my learning curve and time available at the present. I have no idea if it has any merit whatsoever. I wondered if perhaps turning my extracted lines vertically and re-running those line images through line extraction would work, more or less. (lol.)

from docextractor.

monniert avatar monniert commented on May 25, 2024

a. it is a label that will define a region for each word rather than each line. Yes you coulndt because it is not implemented at all :)

b. I think the royal blue lines you are mentioning correspond to the final baselines detected after the post processing, so it is only relevant when you evaluate the model with baseline detections.

c. haha no I think it wont work, extracted lines would be resized to 1280x1280 and I expect very weird results...

from docextractor.

monniert avatar monniert commented on May 25, 2024

I close the issue for now, please reopen if needed

from docextractor.

Related Issues (18)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.