How subasad/handwritten-devanagari-recognition-system works
This repository contains experimental Devanagari image-processing code, with a primary workflow that segments an input image into word crops and recognizes their characters. A separate prediction script performs semantic image segmentation using a U-Net or FCN model and CRF post-processing; the sampled code does not connect that branch to the primary workflow. The graph focuses on the Minor_CMD implementation; similarly named files under “Devanagari in jupyter” are parallel copies. Relationships are limited to those shown in sampled source.
Main entry points: predict.py Mask prediction · main.py Recognition runner · utils.py Masks and CRF · copy_of_charactersegementation.py Character recognizer
Components 13
Recognition workflow
- Recognition runner
Minor_CMD/main.py - Line and word crops
Minor_CMD/line_word_segmentation.py - Word crop files
Minor_CMD/i
Character recognition
- Character recognizer
Minor_CMD/copy_of_charactersegementation.py - Character segmentation
Minor_CMD/SegmentationCharacter.py - Devanagari text
Semantic segmentation
- Mask prediction
Minor_CMD/Minor/predict.py - U-Net and FCN
Minor_CMD/Minor/models.py - Segmentation weights
Minor_CMD/Minor/models - Output mask
Segmentation support
- Model configuration
Minor_CMD/Minor/config.py - Masks and CRF
Minor_CMD/Minor/utils.py
Other components
- Image operator
Connections 16
- Image operator → Recognition runner: runs on image
- Recognition runner → Line and word crops: calls segmentation
Minor_CMD/main.py - Line and word crops → Word crop files: writes crops
Minor_CMD/line_word_segmentation.py - Recognition runner → Word crop files: reads crops
Minor_CMD/main.py - Recognition runner → Character recognizer: calls recognition
Minor_CMD/main.py - Character recognizer → Character segmentation: inherits segmentation
Minor_CMD/copy_of_charactersegementation.py - Character segmentation → Character recognizer: calls recognition method
Minor_CMD/SegmentationCharacter.py - Recognition runner → Devanagari text: prints strings
Minor_CMD/main.py - Mask prediction → U-Net and FCN: uses dice
Minor_CMD/Minor/predict.py - Mask prediction → Model configuration: reads settings
Minor_CMD/Minor/predict.py - Mask prediction → Masks and CRF: calls CRF
Minor_CMD/Minor/predict.py - U-Net and FCN → Model configuration: reads settings
Minor_CMD/Minor/models.py - Masks and CRF → Model configuration: reads settings
Minor_CMD/Minor/utils.py - Mask prediction → Segmentation weights: loads weights
Minor_CMD/Minor/predict.py - Mask prediction → Output mask: displays mask
Minor_CMD/Minor/predict.py - Masks and CRF → Output mask: builds CRF mask