Giter Site home page Giter Site logo

Comments (8)

wrznr avatar wrznr commented on August 23, 2024 1

As I suspected, incorrect invocation. Should have a look at test-ocr.sh first: The argument to clstmocr has to be a text file containing image paths rather than an image file:

kmw@lal:~/projects/dta/ocropus/baz$ echo "test_bin/facs_1_tl_21.bin.png" > test_single.lst
kmw@lal:~/projects/dta/ocropus/baz$ load=baz-4000.clstm ~/built/clstm/clstmocr test_single.lst
#: load = baz-4000.clstm
#: conf = 0
#: output = text
#: save_text = 1
test_bin/facs_1_tl_21.bin.png	behalten wird, müißte alsn spätestenm Aniamg Dirz mit den krcben von Solisten

from clstm.

wrznr avatar wrznr commented on August 23, 2024 1

@Christophered Okay, figured it out. You invoked clstmocr with the env variable conf=1, i.e.:

load=baz-4000.clstm conf=1 ~/built/clstm/clstmocr test_single.lst

The numbers give you 1. Position in output text, 2. starting pixel (that's a wild guess, @kba Could you pls confirm?), 3. Recognized char (i.e. decimal unicode point), 4. char confidence (i.e. how sure was the system at this point).
If you set conf=0 (or leave it out), the numbers disappear and only the recognized text is printed.

I guess the issue could be closed now, right?

from clstm.

wrznr avatar wrznr commented on August 23, 2024

No idea yet but a confirmation of your report:

kmw@lal:~/projects/dta/ocropus/baz$ load=baz.clstm conf=1 ~/built/clstm/clstmocr test_bin/facs_1_tl_21.bin.png
#: load = baz.clstm
#: conf = 1
#: output = text
#: save_text = 1
FATAL: error on open

from clstm.

wrznr avatar wrznr commented on August 23, 2024

Using the absolute path does not help either. @kba Could you please have a look at this? I am pretty sure that this caused by incorrect invocation of clstmocr.

from clstm.

kba avatar kba commented on August 23, 2024

I don't have a machine to test ATM, hopefully in over the weekend I'll get it back @zuphilip Can you try?

from clstm.

wrznr avatar wrznr commented on August 23, 2024

@lomograb Can you try and confirm in order to resolve this issue?

from clstm.

 avatar commented on August 23, 2024

@wrznr you are right. now clstmocr produces values, what do they mean?

0	7	32	0.999997
1	19	32	0.999999
2	32	32	0.999993
3	36	32	0.986836
4	41	32	0.997986
5	56	1585	0.998276
6	60	32	0.404907
7	72	1585	0.957227
8	78	1585	0.958865
9	85	1585	0.847094
10	89	1585	0.966943
11	97	32	0.783419

from clstm.

wrznr avatar wrznr commented on August 23, 2024

@Christophered I am sorry, but for me it does not produce numbers but rather output text (cf. console output from my post above). If you provide your invocation command, I will try to interpret those numbers.

from clstm.

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.