researchongoingScene text detection in Indian languages
B.Tech research on finding text in Indian street photos: auditing the TextBPN++ detector, fixing a preprocessing mismatch, and fine-tuning faster detectors on the Bharat Scene Text Dataset.
Problem
The Bharat Scene Text Dataset's 1,319 test images are high resolution. Once resized for a detector, small words shrink to a few pixels and get missed, and very large words break the detector too.
What I did
- Audit. Reproduced and audited the TextBPN++ detector on all 1,319 test images. Built a polygon-IoU evaluation harness with per-image error logs and text-size stratification, which exposed a recall collapse on small text (under 20 px: recall 0.35) and on very large text (over 320 px).
- Preprocessing fix. Traced a train/inference preprocessing mismatch: inference skipped the mean/std normalization the model was trained with. Fixing it raised detection recall from 0.621 to 0.670 and F1 from 0.656 to 0.675, without retraining.
- Small text. Scale-aware 1.5× upscaling lifted small-text F1 from 0.47 to 0.59. Tiled inference was tested and rejected: it added 67 false positives for 4 true positives.
- Fine-tuning. Fine-tuned YOLO11, docTR FAST and DPText-DETR on 4.7K training images, with polygon-to-box conversion, EXIF and coordinate correction, and a leak-free 90/10 split (test set held out). The fine-tuned YOLO raised end-to-end OCR word recall from 50.7% to 54.3% and F1 from 51.0% to 53.8%. It is now the toolkit fork's default detector (5.5 MB, release yolo11n-bstd-v1.0).
- Benchmark. Benchmarked 10 text detectors (EAST, CRAFT, DBNet++ and others) and IoU-based polygon-fusion ensembles to map the precision–recall trade-off. A 5-model ensemble reached recall 56.7% but precision only 40.3%.
Working on a YOLO training recipe built around small-word crops.
Results
| Setup | Recall | F1 |
|---|---|---|
| As shipped | 0.621 | 0.656 |
| Normalization fixed | 0.670 | 0.675 |
| Setup | Small-text F1 |
|---|---|
| Baseline | 0.47 |
| Scale-aware 1.5× upscaling | 0.59 |
- Tiled inference was rejected: +67 false positives for +4 true positives.
| Detector | Word recall | F1 |
|---|---|---|
| Before fine-tuning | 50.7% | 51.0% |
| Fine-tuned YOLO | 54.3% | 53.8% |
| Setup | Recall | Precision |
|---|---|---|
| 5-model ensemble | 56.7% | 40.3% |
- Ensembling buys recall at a steep cost in precision.
Try it: scan a photo with my model
Detection, script identification and recognition, with my fork of IndicPhotoOCR

40 words read from the sample photo. Turn on JavaScript to try your own photos.
Text found, line by line
- silver shop my সমিতি print out
- use er t house
- mone ആഘോഷി mukexports muk exports
- माहनमाई ouse
- মনন aman
- ଜଗରପାଠାରେ ନଠଠା internet
- റെഡ് and phone call
- ahd lash sh ലുവിനു
- ul 8s
- uest
- u5075 u50
- gagandeep
- tmxi
Sample photo: Main Bazaar, Paharganj, Delhi by Vyacheslav Argenberg, CC BY 4.0, resized. Photos you upload are processed and deleted straight away.
Why small text gets missed
At the model's input this word is 8.0 px tall: about 1.0 cells of the finest grid (stride 8), 0.5 of the next, 0.25 of the coarsest.
The square shows one 32 px cell of the coarsest grid, split into the 16 px and 8 px cells of the finer ones. The chartreuse bar is the word. Below about one fine cell, a detector has very little to see. In my audit, TextBPN++ found words under 20 px only 0.35 of the time, and upscaling small text raised its F1 from 0.47 to 0.59.
Credit
IndicPhotoOCR, its paper and the Bharat Scene Text Dataset belong to the Bhashini / VL2G lab at IIT Jodhpur. Only the work listed here is mine. The toolkit: Bhashini-IITJ/IndicPhotoOCR. Paper: De, Penamakuri, Yadav, Rathore, Shah, Sharma, Agarwal, Kumar, Mishra. Bharat Scene Text: A Novel Comprehensive Dataset and Benchmark for Indian Language Scene Text Understanding. IJDAR, 2026. doi.
Code
My fork with the fine-tuned YOLO detector
PyTorch · Ultralytics YOLO · Detectron2 · docTR · OpenCV · Shapely · CUDA (RTX A6000)


