ovi054 commited on
Commit
b8cbda9
ยท
1 Parent(s): fb6247a

paper info added

Browse files
Files changed (1) hide show
  1. app.py +23 -22
app.py CHANGED
@@ -65,6 +65,28 @@ import cv2
65
  from PIL import ImageFont, ImageDraw, Image
66
  font = ImageFont.truetype("kalpurush.ttf", 60)
67
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
68
  #import more
69
  import tensorflow as tf
70
  from object_detection.utils import config_util
@@ -568,32 +590,11 @@ def model_predict(word):
568
  output = output + ' '
569
  return output
570
  '''
571
- citation_text = """<div>
572
- <br><p>This is a demo space for the paper: <i>Improving Character Recognition in Bangla Handwritten Words: A Two-Stage Single Shot Detector Approach</i>.</p>
573
- <p>Direct Link to the Paper:
574
- <a href='https://ieeexplore.ieee.org/document/10499463' style='text-decoration: none; color: blue;'>https://ieeexplore.ieee.org/document/10499463</a></p>
575
- <p>ResearchGate Link to the Paper:
576
- <a href='https://www.researchgate.net/publication/380009779_Improving_Character_Recognition_in_Bangla_Handwritten_Words_A_Two-Stage_Single_Shot_Detector_Approach' style='text-decoration: none; color: blue;'>https://bit.ly/ResearchGatePaperLink</a></p>
577
- <p>Please cite this paper with BibTeX as follows:</p>
578
- </div>
579
- <div style='background-color: #f0f0f0; padding: 10px; border-radius: 5px;'>
580
- @INPROCEEDINGS{10499463,<br>
581
- &nbsp;&nbsp;author={Pal, Avi and Hasan, Md. Sajid and Masudul Ahsan, Sk. Md.},<br>
582
- &nbsp;&nbsp;booktitle={2024 International Conference on Advances in Computing, Communication, Electrical, and Smart Systems (iCACCESS)}, <br>
583
- &nbsp;&nbsp;title={Improving Character Recognition in Bangla Handwritten Words: A Two-Stage Single Shot Detector Approach}, <br>
584
- &nbsp;&nbsp;year={2024},<br>
585
- &nbsp;&nbsp;volume={},<br>
586
- &nbsp;&nbsp;number={},<br>
587
- &nbsp;&nbsp;pages={1-6},<br>
588
- &nbsp;&nbsp;keywords={YOLO;Deep learning;Image segmentation;Handwriting recognition;Image recognition;Optical character recognition;Transfer learning;Machine learning;Image Processing and Computer Vision;Optical character recognition;Tensorflow;MobileNetV2;Convolutional Neural Network;Single Shot Detector},<br>
589
- &nbsp;&nbsp;doi={10.1109/iCACCESS61735.2024.10499463}}<br>
590
- </div>
591
- """
592
 
593
  import gradio as gr
594
  HF_TOKEN = os.getenv("SECRET_TOKEN")
595
  hf_writer = gr.HuggingFaceDatasetSaver(HF_TOKEN, "word-flag-data")
596
 
597
  demo = gr.Interface(fn=model_predict, inputs= "paint", outputs=["text","image"], caption = "Bangla Word OCR",
598
- description="Reduce pen ink size from Pen Icon(๐Ÿ–‹๏ธ) for better results!", article= citation_text,allow_flagging="auto",flagging_callback=hf_writer)
599
  demo.launch()
 
65
  from PIL import ImageFont, ImageDraw, Image
66
  font = ImageFont.truetype("kalpurush.ttf", 60)
67
 
68
+ citation_text = """<div>
69
+ <br><p>This is a demo space for the paper: <i>Improving Character Recognition in Bangla Handwritten Words: A Two-Stage Single Shot Detector Approach</i>.</p>
70
+ <p>Direct Link to the Paper:
71
+ <a href='https://ieeexplore.ieee.org/document/10499463' style='text-decoration: none; color: blue;'>https://ieeexplore.ieee.org/document/10499463</a></p>
72
+ <p>ResearchGate Link to the Paper:
73
+ <a href='https://www.researchgate.net/publication/380009779_Improving_Character_Recognition_in_Bangla_Handwritten_Words_A_Two-Stage_Single_Shot_Detector_Approach' style='text-decoration: none; color: blue;'>https://bit.ly/ResearchGatePaperLink</a></p>
74
+ <p>Please cite this paper with BibTeX as follows:</p>
75
+ </div>
76
+ <div style='background-color: #f0f0f0; padding: 10px; border-radius: 5px;'>
77
+ @INPROCEEDINGS{10499463,<br>
78
+ &nbsp;&nbsp;author={Pal, Avi and Hasan, Md. Sajid and Masudul Ahsan, Sk. Md.},<br>
79
+ &nbsp;&nbsp;booktitle={2024 International Conference on Advances in Computing, Communication, Electrical, and Smart Systems (iCACCESS)}, <br>
80
+ &nbsp;&nbsp;title={Improving Character Recognition in Bangla Handwritten Words: A Two-Stage Single Shot Detector Approach}, <br>
81
+ &nbsp;&nbsp;year={2024},<br>
82
+ &nbsp;&nbsp;volume={},<br>
83
+ &nbsp;&nbsp;number={},<br>
84
+ &nbsp;&nbsp;pages={1-6},<br>
85
+ &nbsp;&nbsp;keywords={YOLO;Deep learning;Image segmentation;Handwriting recognition;Image recognition;Optical character recognition;Transfer learning;Machine learning;Image Processing and Computer Vision;Optical character recognition;Tensorflow;MobileNetV2;Convolutional Neural Network;Single Shot Detector},<br>
86
+ &nbsp;&nbsp;doi={10.1109/iCACCESS61735.2024.10499463}}<br>
87
+ </div>
88
+ """
89
+
90
  #import more
91
  import tensorflow as tf
92
  from object_detection.utils import config_util
 
590
  output = output + ' '
591
  return output
592
  '''
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
593
 
594
  import gradio as gr
595
  HF_TOKEN = os.getenv("SECRET_TOKEN")
596
  hf_writer = gr.HuggingFaceDatasetSaver(HF_TOKEN, "word-flag-data")
597
 
598
  demo = gr.Interface(fn=model_predict, inputs= "paint", outputs=["text","image"], caption = "Bangla Word OCR",
599
+ description="Reduce pen ink size from Pen Icon(๐Ÿ–‹๏ธ) for better results!", allow_flagging="auto",flagging_callback=hf_writer)
600
  demo.launch()