CRAFT pytorch
1.0.0
Pytorch官方的手工艺文本检测器实施|纸|预验证的模型|补充
Youngmin Baek,Bado Lee,Dongyoon Han,Sangdoo Yun,Hwalsuk Lee。
Naver Corp. Clova AI研究
Pytorch实现工艺文本检测器,该实现通过探索每个字符区域和字符之间的亲和力来有效地检测文本区域。通过简单地在阈值字符区域和亲和力分数之后简单地在二进制图上找到最小边界矩形来获得文本的边界框。

2019年6月13日: 2019年7月20日最初更新:添加了Polygon结果的后处理,2019年9月28日:添加了IC15上的训练有素的型号和链接炼油厂
pip install -r requirements.txt
该存储库中未包含培训代码,我们不能出于IP原因发布完整的培训代码。
| 模型名称 | 使用的数据集 | 语言 | 目的 | 模型链接 |
|---|---|---|---|---|
| 一般的 | Synthtext,IC13,IC17 | ENG + MLT | 出于一般目的 | 点击 |
| IC15 | Synthtext,IC15 | 工程 | 仅适用于IC15 | 点击 |
| LinkRefiner | CTW1500 | - | 与通用模型一起使用 | 点击 |
python test.py --trained_model=[weightfile] --test_folder=[folder path to test images]
默认情况下,结果图像和SOCRE地图将保存到./result 。
--trained_model :验证的模型--text_threshold :文本置信度门槛--low_text :文本低结合分数--link_threshold :链接置信度阈值--cuda :使用CUDA进行推理(默认:true)--canvas_size :推理的最大图像大小--mag_ratio :图像放大率--poly :启用多边形类型结果--show_time :显示处理时间--test_folder :输入图像的文件夹路径--refine :使用链接炼油厂作为Sentense级数据集--refiner_model :预处理的炼油厂模型 @inproceedings{baek2019character,
title={Character Region Awareness for Text Detection},
author={Baek, Youngmin and Lee, Bado and Han, Dongyoon and Yun, Sangdoo and Lee, Hwalsuk},
booktitle={Proceedings of the IEEE Conference on Computer Vision and Pattern Recognition},
pages={9365--9374},
year={2019}
}
Copyright (c) 2019-present NAVER Corp.
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in
all copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
THE SOFTWARE.