Giter Club home page Giter Club logo

Comments (2)

Breta01 avatar Breta01 commented on May 23, 2024

I should probably create some documentation in GitHub Wikis.

Anyway, there are two options how to create a dataset for the CharClassifier. Both options uses loadCharsData() function. This function takes three parameters charloc, wordloc, lang (right now it works with 'cz' or 'en' language).

First Option

Is to create folder and in this folder create folder for each character (I use one additional empty character for wrongly separated letters, folder 0). In each of these folders are images corresponding to the label of folder. You can see this structure in folder data/charclas/en/. With data prepared like this, you can set the charloc parametr to location of the main folder, for example charloc=data/charclas/en/. If you don't want to use this option, set it to empty string charloc=''.

Second Option

You can see this structure in folder data/words2/. In this folder you have images of whole words named as label_timestamp.jpg and with each of these images comes another file named as labe_timestamp.txt. The file labe_timestamp.txt contains array of positions where should be the word split in order to get the letter. For example, a first value in the array is a start of a first letter in an image and a second value is an end of the first letter and a start of second letter. If you don't want to use this option, set it to empty string wordloc=''.

BTW, all functions loading datasets are located in datahelpers.py.

I hope this helps 😃.

from handwriting-ocr.

yasersakkaf avatar yasersakkaf commented on May 23, 2024

Yes. A wiki documentation would be very good.
I think in the second option you mean wordloc = ' ' instead of charloc = ' '.
Thanks anyways.

from handwriting-ocr.

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.