Coder Social home page Coder Social logo

OCR numbers about calamari HOT 16 CLOSED

calamari-ocr avatar calamari-ocr commented on August 16, 2024
OCR numbers

from calamari.

Comments (16)

ChWick avatar ChWick commented on August 16, 2024

Which model did you use?

from calamari.

hsl20130659 avatar hsl20130659 commented on August 16, 2024

fraktur_19th_century

from calamari.

ChWick avatar ChWick commented on August 16, 2024

This model is trained to predict both characters and numbers. Could you please provide a line of your data where it fails?

from calamari.

hsl20130659 avatar hsl20130659 commented on August 16, 2024

it writes nothing in the result.txt

from calamari.

hsl20130659 avatar hsl20130659 commented on August 16, 2024

I use a picture that has numbers and chinese characters

from calamari.

ChWick avatar ChWick commented on August 16, 2024

The fraktur 19th century model can only be used for Fraktur fonts: The characters must be similar to https://en.wikipedia.org/wiki/Fraktur.
It might be possible that the model could possibly detect Arabic digits embedded in Chinese fonts, however I can not guarantee that. Do you input a full image or only a single horizontal text line? The latter is required.

from calamari.

hsl20130659 avatar hsl20130659 commented on August 16, 2024

I put a full image into the network ,my goal is just recognizing the
numbers and I dont care if there are chinese characters or not.

from calamari.

ChWick avatar ChWick commented on August 16, 2024

Calamari can only process single lines, not a full image. You need a separate tool to handle the line segmentation. You can use e. g. https://github.com/tmbdev/ocropy/wiki/Page-Segmentation for the page and line segmentation.

from calamari.

hsl20130659 avatar hsl20130659 commented on August 16, 2024

my pictures are cropped from ID cards ,the row of birthdays

from calamari.

ChWick avatar ChWick commented on August 16, 2024

Solely the row of birthdays? Can you attach a single image file. Maybe you need https://github.com/Calamari-OCR/calamari_models/tree/master/antiqua_modern as model (Modern typographic fonts).

from calamari.

hsl20130659 avatar hsl20130659 commented on August 16, 2024

``

from calamari.

hsl20130659 avatar hsl20130659 commented on August 16, 2024

you can test the pictures,and show me the results

from calamari.

ChWick avatar ChWick commented on August 16, 2024

This might work, but additional steps are required:

  • Crop the bottom area to the content with approximately 3px margin around the text.
  • Binarize the image

I manually did those steps and got (. 1986t 1 t 8 fH as result for 001.png.

from calamari.

ChWick avatar ChWick commented on August 16, 2024

My manually processed input line:
0001

from calamari.

hsl20130659 avatar hsl20130659 commented on August 16, 2024

do you mind I make a friend with you ? My qq is 913452977, I think I have something more to ask you ,hehe

from calamari.

ChWick avatar ChWick commented on August 16, 2024

You can E-Mail me via [email protected].

from calamari.

Related Issues (20)

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.