Giter VIP home page Giter VIP logo

orcode's Introduction

参考

https://blog.csdn.net/qq_37674858/article/details/80340914

step:

1: 将图片转成.tif 格式

generate_tif

2: 生成.box文件(确保out_put_file 参数与 *** 一致,方便jTessBoxEditorFX识别)

cmd: tesseract [***.tif] [out_put_file] -l [exists_training_data] batch.nochop makebox

eg: tesseract 111.tif my.font.exp0 -l chi_sim batch.nochop makebox

3: Box Editor 页面

box editor

4: 创建自定义字体(0 0 0 0 0 表示字体加粗倾斜等属性为0)

echo font 0 0 0 0 0 >font_properties

5:开始训练.box文件,生成 .tr 文件, box_file不需要.box后缀

cmd: tesseract [***.tif] [box_file] nobatch box.train

eg: tesseract my.font.exp0.tif my.font.exp0 nobatch box.train

6: 生成字符文件集, 生成unicharset 文件

cmd: unicharset_extractor [box_file]

eg: unicharset_extractor my.font.exp0.box

7: 生成字典数据 生成[***.unicharset] 文件

cmd: mftraining -F [font_properties] -U [unicharset] -O [.tr]
cntraining [
.tr]

eg: mftraining -F font_properties -U unicharset -O my.unicharset my.font.exp0.tr
cntraining my.font.exp0.tr

8: 重命名生成的(inttemp、pffmtable、normproto、shapetable) 文件,前缀一致,并合并数据集, 生成[***.traineddata]

cmd: combine_tessdata [prefix]

eg: combine_tessdata my.

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.