text_renderer:生成用于训练深度学习ocr模型的文本图像-源码

上传者: 42118423 | 上传时间: 2021-08-15 11:13:28 | 文件大小: 12.33MB | 文件类型: ZIP
新版本发布: : 文字渲染器 生成用于训练深度学习OCR模型(例如 )的文本图像。 同时支持拉丁文和非拉丁文。 设置 Ubuntu 16.04 python 3.5+ 安装依赖项: pip3 install -r requirements.txt 演示版 默认情况下,只需运行python3 main.py将在output/default/生成20个文本图像和一个labels.txt文件。 使用您自己的数据生成图像 请运行python3 main.py --help来查看所有可选参数及其含义。 并将您自己的数据放在相应的文件夹中。 在configs/default.yaml文件中配置文本效果和分数(或创建一个新的配置文件,并通过--config_file选项使用它),以下是一些示例: 效果名称 图像 原产地(字体大小25) 透视变换 随机作物 曲线 浅边框 深色边框

文件下载

资源详情

[{"title":"( 72 个子文件 12.33MB ) text_renderer:生成用于训练深度学习ocr模型的文本图像-源码","children":[{"title":"text_renderer-master","children":[{"title":".gitignore <span style='color:#111;'> 337B </span>","children":null,"spread":false},{"title":"help_runner.py <span style='color:#111;'> 732B </span>","children":null,"spread":false},{"title":"requirements.txt <span style='color:#111;'> 85B </span>","children":null,"spread":false},{"title":"parse_args.py <span style='color:#111;'> 3.45KB </span>","children":null,"spread":false},{"title":"data","children":[{"title":"fonts","children":[{"title":"eng","children":[{"title":"Hack-Regular.ttf <span style='color:#111;'> 390.36KB </span>","children":null,"spread":false}],"spread":true},{"title":"chn","children":[{"title":"msyh.ttc <span style='color:#111;'> 18.74MB </span>","children":null,"spread":false}],"spread":true}],"spread":true},{"title":"chars","children":[{"title":"chn.txt <span style='color:#111;'> 19.62KB </span>","children":null,"spread":false},{"title":"eng.txt <span style='color:#111;'> 186B </span>","children":null,"spread":false}],"spread":true},{"title":"fonts_list","children":[{"title":"chn.txt <span style='color:#111;'> 26B </span>","children":null,"spread":false},{"title":"eng.txt <span style='color:#111;'> 33B </span>","children":null,"spread":false}],"spread":true},{"title":"corpus","children":[{"title":"The Hitchhiker's Guide to the Galaxy.txt <span style='color:#111;'> 2.31KB </span>","children":null,"spread":false}],"spread":true},{"title":"bg","children":[{"title":"背景.png <span style='color:#111;'> 82.91KB </span>","children":null,"spread":false}],"spread":true},{"title":"list_corpus","children":[{"title":"books.txt <span style='color:#111;'> 213B </span>","children":null,"spread":false}],"spread":true}],"spread":true},{"title":"LICENSE <span style='color:#111;'> 1.04KB </span>","children":null,"spread":false},{"title":"tools","children":[{"title":"check_tfrecord.py <span style='color:#111;'> 2.64KB </span>","children":null,"spread":false},{"title":"char_frequency_check.py <span style='color:#111;'> 3.09KB </span>","children":null,"spread":false},{"title":"check_font.py <span style='color:#111;'> 1.34KB </span>","children":null,"spread":false},{"title":"balancer.py <span style='color:#111;'> 5.42KB </span>","children":null,"spread":false},{"title":"make_tfrecord.py <span style='color:#111;'> 3.07KB </span>","children":null,"spread":false}],"spread":true},{"title":"textrenderer","children":[{"title":"corpus","children":[{"title":"random_corpus.py <span style='color:#111;'> 366B </span>","children":null,"spread":false},{"title":"eng_corpus.py <span style='color:#111;'> 1020B </span>","children":null,"spread":false},{"title":"corpus.py <span style='color:#111;'> 985B </span>","children":null,"spread":false},{"title":"corpus_utils.py <span style='color:#111;'> 782B </span>","children":null,"spread":false},{"title":"list_corpus.py <span style='color:#111;'> 637B </span>","children":null,"spread":false},{"title":"chn_corpus.py <span style='color:#111;'> 1.72KB </span>","children":null,"spread":false}],"spread":true},{"title":"remaper.py <span style='color:#111;'> 1.77KB </span>","children":null,"spread":false},{"title":"liner.py <span style='color:#111;'> 6.11KB </span>","children":null,"spread":false},{"title":"noiser.py <span style='color:#111;'> 2.62KB </span>","children":null,"spread":false},{"title":"renderer.py <span style='color:#111;'> 23.24KB </span>","children":null,"spread":false}],"spread":true},{"title":"libs","children":[{"title":"__init__.py <span style='color:#111;'> 0B </span>","children":null,"spread":false},{"title":"gpu","children":[{"title":"setup.py <span style='color:#111;'> 1.13KB </span>","children":null,"spread":false},{"title":"GpuWrapper.pyx <span style='color:#111;'> 1.14KB </span>","children":null,"spread":false},{"title":"pyopencv_converter.cpp <span style='color:#111;'> 10.27KB </span>","children":null,"spread":false},{"title":"GpuWrapper.pxd <span style='color:#111;'> 1.72KB </span>","children":null,"spread":false}],"spread":true},{"title":"math_utils.py <span style='color:#111;'> 4.89KB </span>","children":null,"spread":false},{"title":"timer.py <span style='color:#111;'> 1.06KB </span>","children":null,"spread":false},{"title":"utils.py <span style='color:#111;'> 3.40KB </span>","children":null,"spread":false},{"title":"font_utils.py <span style='color:#111;'> 4.46KB </span>","children":null,"spread":false},{"title":"config.py <span style='color:#111;'> 818B </span>","children":null,"spread":false}],"spread":true},{"title":"README.md <span style='color:#111;'> 3.80KB </span>","children":null,"spread":false},{"title":"configs","children":[{"title":"test.yaml <span style='color:#111;'> 3.02KB </span>","children":null,"spread":false},{"title":"default.yaml <span style='color:#111;'> 3.03KB </span>","children":null,"spread":false}],"spread":true},{"title":"imgs","children":[{"title":"example1.jpg <span style='color:#111;'> 4.47KB </span>","children":null,"spread":false},{"title":"debug_demo.jpg <span style='color:#111;'> 90.20KB </span>","children":null,"spread":false},{"title":"example2.jpg <span style='color:#111;'> 3.92KB </span>","children":null,"spread":false},{"title":"bad_example1.jpg <span style='color:#111;'> 3.73KB </span>","children":null,"spread":false},{"title":"bad_example2.jpg <span style='color:#111;'> 3.77KB </span>","children":null,"spread":false},{"title":"example3.jpg <span style='color:#111;'> 3.62KB </span>","children":null,"spread":false},{"title":"bad_example3.jpg <span style='color:#111;'> 3.43KB </span>","children":null,"spread":false},{"title":"effects","children":[{"title":"reverse.jpg <span style='color:#111;'> 5.45KB </span>","children":null,"spread":false},{"title":"dark_border.jpg <span style='color:#111;'> 5.76KB </span>","children":null,"spread":false},{"title":"extra.jpg <span style='color:#111;'> 5.76KB </span>","children":null,"spread":false},{"title":"random_space_small.jpg <span style='color:#111;'> 4.11KB </span>","children":null,"spread":false},{"title":"perspective_transform.jpg <span style='color:#111;'> 3.64KB </span>","children":null,"spread":false},{"title":"line_middle.jpg <span style='color:#111;'> 4.22KB </span>","children":null,"spread":false},{"title":"table.jpg <span style='color:#111;'> 3.55KB </span>","children":null,"spread":false},{"title":"blur.jpg <span style='color:#111;'> 3.36KB </span>","children":null,"spread":false},{"title":"random_crop.jpg <span style='color:#111;'> 4.29KB </span>","children":null,"spread":false},{"title":"light_border.jpg <span style='color:#111;'> 5.34KB </span>","children":null,"spread":false},{"title":"curve.jpg <span style='color:#111;'> 4.37KB </span>","children":null,"spread":false},{"title":"line_table.jpg <span style='color:#111;'> 5.07KB </span>","children":null,"spread":false},{"title":"colored.jpg <span style='color:#111;'> 6.82KB </span>","children":null,"spread":false},{"title":"origin.jpg <span style='color:#111;'> 3.83KB </span>","children":null,"spread":false},{"title":"line_under.jpg <span style='color:#111;'> 5.47KB </span>","children":null,"spread":false},{"title":"emboss.jpg <span style='color:#111;'> 6.62KB </span>","children":null,"spread":false},{"title":"random_space_big.jpg <span style='color:#111;'> 4.65KB </span>","children":null,"spread":false}],"spread":false},{"title":"example4.jpg <span style='color:#111;'> 4.19KB </span>","children":null,"spread":false}],"spread":true},{"title":"gists","children":[{"title":"seamlessClone.py <span style='color:#111;'> 2.36KB </span>","children":null,"spread":false},{"title":"outline.py <span style='color:#111;'> 1.28KB </span>","children":null,"spread":false},{"title":"draw_transparent_text.py <span style='color:#111;'> 865B </span>","children":null,"spread":false},{"title":"cv2_remap.py <span style='color:#111;'> 3.75KB </span>","children":null,"spread":false}],"spread":true},{"title":"main.py <span style='color:#111;'> 4.80KB </span>","children":null,"spread":false}],"spread":false}],"spread":true}]

评论信息

免责申明

【只为小站】的资源来自网友分享,仅供学习研究,请务必在下载后24小时内给予删除,不得用于其他任何用途,否则后果自负。基于互联网的特殊性,【只为小站】 无法对用户传输的作品、信息、内容的权属或合法性、合规性、真实性、科学性、完整权、有效性等进行实质审查;无论 【只为小站】 经营者是否已进行审查,用户均应自行承担因其传输的作品、信息、内容而可能或已经产生的侵权或权属纠纷等法律责任。
本站所有资源不代表本站的观点或立场,基于网友分享,根据中国法律《信息网络传播权保护条例》第二十二条之规定,若资源存在侵权或相关问题请联系本站客服人员,zhiweidada#qq.com,请把#换成@,本站将给予最大的支持与配合,做到及时反馈和处理。关于更多版权及免责申明参见 版权及免责申明