ClothBiz Manager: An Offline GST-Ready Inventory and Billing Automation System Using Rule-Based Domain-Specific OCR
Main Article Content
Abstract
Smaller cloth wholesalers in India continue to use manual methods and paper-based systems, leading to discrepancies in inventory and delayed billing, among other issues. This paper describes ClothBiz Manager, an offline inventory management and billing automation solution tailored for Indian wholesale textile businesses. The solution combines a rule-based, domain-specific optical character recognition (OCR) process chain with a normalized PostgreSQL database, implemented using Java Servlets, Java Server Pages (JSP), and the Tess4J library. Our custom-developed Domain-specific Invoice Parser (DIP) processes invoices by applying domain-specific contextual rules and extracts the relevant information, including structured fields such as bale number, LR code, HSN code, and taxes. We evaluated our solution on 150 invoices obtained from Indian textile markets in Tiruppur and Surat. Our method scored 89% on exact matching for structured fields and 78% for multi-line product description fields. Running exclusively on a local server, our application provides absolute data sovereignty and guarantees GST compliance at the database level. Our results clearly show that our system can significantly minimize manual data entry.
Article Details

This work is licensed under a Creative Commons Attribution-NonCommercial-NoDerivatives 4.0 International License.
References
Anakpluek, N.; Pasanta, W.; Chantharasukha, L.; Chokratansombat, P.; Kanjanakaew, P.; Siriborvornratanakul, T. Improved Tesseract Optical Character Recognition Performance on Thai Document Datasets. Big Data Research 2025, 39, 100508. https://doi.org/10.1016/j.bdr.2025.100508
Balaji, T.; Hari, V.; Lathifunnisa, S.; Ganesh, P.; Arupya, P. Optimizing Web-Based Inventory Management System Using QR Code Technology. In Proc. ICCPCT 2024; IEEE, 2024; pp 751–756. https://doi.org/10.1109/ICCPCT61902.2024.10673103
Diva, N.; Tarigan, T. M.; Annisa, Y.; Nurdini, A. Optimizing Inventory Management in MSME Using Material Requirement Planning (MRP). In Proc. IEOM Conference; 2023. https://api.semanticscholar.org/CorpusID:258211687
Dome, S.; Sathe, A. P. Optical Character Recognition Using Tesseract and Classification. In Proc. ESCI 2021; IEEE, 2021; pp 153–158. https://doi.org/10.1109/ESCI50559.2021.9397008
Hazra, T. K.; Singh, D. P.; Daga, N. Optical Character Recognition Using KNN on Custom Image Dataset. In Proc. IEMECON 2017; IEEE, 2017; pp 110–114. https://doi.org/10.1109/IEMECON.2017.8079572
Joshi, K.; Arolkar, H. A. Comparative Analysis of Outcomes of Tesseract OCR for Different Languages. In Proc. ICICV 2024; 2024; pp 95–100. https://api.semanticscholar.org/CorpusID:269629504
Kumar, R. P.; Keya, D. S.; Kumar, C. Optical Character Recognition Systems for Accurate Interpretation of Handwritten Telugu Scripts. In Proc. IC2PCT 2024; IEEE, 2024; pp 1652–1656. https://api.semanticscholar.org/CorpusID:269011558
Kumar, V.; Kaware, P.; Singh, P.; Sonkusare, R.; Kumar, S. Extraction of Information from Bill Receipts Using Optical Character Recognition. In Proc. ICOSEC 2020; IEEE, 2020; pp 72–77. https://doi.org/10.1109/ICOSEC49089.2020.9215246
Madeka, D.; Torkkola, K.; Eisenach, C.; Luo, A.; Foster, D. P.; Kakade, S. M. Deep Inventory Management. arXiv 2022. https://arxiv.org/abs/2210.03137
Margate, A. M. N.; Ravina, M. C. F.; Pido, J. J. G.; Young, M. N. Seiton: A Mobile Inventory Management System Application for MSMEs. In Proc. ICETAS 2020; IEEE, 2020; pp 1–5. https://doi.org/10.1109/ICETAS51660.2020.9484183
N, J. P.; Prashanth, S.; D, A.; J, M. Design and Evaluation of a Real-Time Stock Inventory Management System. In Proc. ICCCMLA 2023; IEEE, 2023; pp 180–185. https://doi.org/10.1109/ICCCMLA58983.2023.10346665
Pattanayak, B. K.; Biswal, A. K.; Laha, S. R.; Pattnaik, S.; Dash, B. B.; Patra, S. S. A Novel Technique for Handwritten Text Recognition Using Easy OCR. In Proc. ICSSAS 2023; IEEE, 2023; pp 1115–1119. https://doi.org/10.1109/ICSSAS57918.2023.10331704
Pawar, A. V.; Patil, N. V. Inventory and Bill Management System. Int. J. Adv. Res. Sci. Commun. Technol. 2024. https://api.semanticscholar.org/CorpusID:269179238
Pradhan, S. K.; Thirupathi, J.; Rao, K.; Aluru, J.; Suraparaju, K.; Ranith, P. Manual Character Recognition with OCR. 2021. https://api.semanticscholar.org/CorpusID:235432199
Rajmod, V.; Derkar, G.; Nagrale, P.; Awari, N.; Lokhande, P. Text Extraction from Image Using OCR. In Proc. ICMCSI 2025; 2025; pp 113–116. https://api.semanticscholar.org/CorpusID:276509660
Sri Lakshmana Kumar, D.; Nallusamy, S.; Ramakrishnan, V. Proposed Inventory Management Model to Improve the Supply Chain Efficiency and Surplus in Textile Industry. Int. J. Mech. Eng. Technol. 2018, 9(5), 675–686.
Su, H.; Kang, R.; Fan, Y. Research on a Web System Data-Filling Method Based on Optical Character Recognition and Multi-Text Similarity. Applied Sciences 2024. https://api.semanticscholar.org/CorpusID:267293918
Subharathna, N.; Mariaamutha, R.; Sandhiyadevi, P. Decoding Handwritten Characters Using Convolutional Neural Networks. In Proc. ICSCSS 2024; IEEE, 2024; pp 1252–1255. https://doi.org/10.1109/ICSCSS60660.2024.10625226
Tanaman, M. T.; Lloyd, J.; Baylosis, A.; Abiles, B. J. A.; Lester, M.; Catungal, P.; Encarnacion, P. C. Web-Based Inventory Management System. Int. J. Sci. Appl. Inf. Technol. 2023. https://api.semanticscholar.org/CorpusID:264060577
Tarigan, T. Optimizing Inventory Management in MSME Using Material Requirement Planning (MRP). In Proc. European Int. Conf. Ind. Eng. Oper. Manage.; 2022. https://doi.org/10.46254/EU05.20220242