Home

Awesome

CRAFT: Character-Region Awareness For Text detection

Burn implementation of CRAFT text detector | Paper | Pretrained Model | Supplementary

Youngmin Baek, Bado Lee, Dongyoon Han, Sangdoo Yun, Hwalsuk Lee.

Clova AI Research, NAVER Corp.

Adapted by Genna Wingert

Overview

Burn implementation for CRAFT text detector that effectively detect text area by exploring each character region and affinity between characters. The bounding box of texts are obtained by simply finding minimum bounding rectangles on binary map after thresholding character region and affinity scores.

Adapted from CRAFT-pytorch

Polygon processing is not yet implemented.

Getting started

Training

The code for training is not included in this repository, as the original authors cannot release the full training code for IP reason.

Test instruction using pretrained model

cargo run --example test-craft --release --trained_model=[weightfile] --test_image=[path to test image]

The result image and socre maps will be saved to ./result by default.

Arguments

Links