<?xml version="1.0"?>
<article xlink="http://www.w3.org/1999/xlink" mml="http://www.w3.org/1998/Math/MathML" xsi="http://www.w3.org/2001/XMLSchema-instance" ali="http://www.niso.org/schemas/ali/1.0/" noNamespaceSchemaLocation="http://jats.nlm.nih.gov/publishing/1.1/xsd/JATS-journalpublishing1-mathml3.xsd" article-type="research-article" dtd-version="1.1" lang="en"><front><journal-meta><journal-id journal-id-type="publisher-id">isrdo-SRJSET</journal-id><journal-id journal-id-type="pmc">isrdo-SRJSET</journal-id><journal-id journal-id-type="nlm-ta">isrdo-SRJSET</journal-id><journal-title-group><journal-title>Scientific Research Journal of Science, Engineering and Technology</journal-title><abbrev-journal-title abbrev-type="publisher" pub-type="epub">SRJSET</abbrev-journal-title></journal-title-group><issn>2584-0584</issn><publisher><publisher-name>ISRDO</publisher-name><publisher-loc>Gujarat,India</publisher-loc></publisher></journal-meta><article-meta><article-id pub-id-type="publisher-id">M-10336</article-id><article-id pub-id-type="doi"/><article-categories><subj-group subj-group-type="categories"><subject>Computer Science and Engineering</subject></subj-group></article-categories><title-group><article-title>Enhanced Vision-Based Surface Value Roughness Detection for Industry 4.0 Quality Assurance</article-title></title-group><contrib-group content-type="authors"><contrib id="580" contrib-type="author" corresp="yes"><name><given-names>Aditya Agarwal</given-names></name><xref ref-type="aff" rid="aff-1">1</xref><aff id="aff-1"><label>0</label><institution>Thapar Institute of Engineering &amp; Technology</institution><country>India</country></aff></contrib><contrib id="581" contrib-type="author" corresp="yes"><name><given-names>Vineet Srivastava</given-names></name><xref ref-type="aff" rid="aff-2">2</xref><aff id="aff-2"><label>1</label><institution>Thapar Institute of Engineering &amp; Technology</institution><country>India</country></aff></contrib><contrib id="582" contrib-type="author" corresp="yes"><name><given-names>Raunak Ujawane</given-names></name><xref ref-type="aff" rid="aff-3">3</xref><aff id="aff-3"><label>2</label><institution>DAIPL</institution><country>India</country></aff></contrib><contrib id="583" contrib-type="author" corresp="yes"><name><given-names>Balaji Mali</given-names></name><xref ref-type="aff" rid="aff-4">4</xref><aff id="aff-4"><label>3</label><institution>DAIPL</institution><country>India</country></aff></contrib></contrib-group><contrib-group content-type="editors"><contrib contrib-type="editor"/></contrib-group><pub-date pub-type="epub" data-type="pub" iso-8601-date="2025-09-21"><day>21</day><month>09</month><year iso-8601-date="2">2025</year></pub-date><volume>3</volume><elocation-id>V3-I1-2025</elocation-id><history><date date-type="received" iso-8601-date="2025-07-08"><day>08</day><month>07</month><year iso-8601-date="2025">2025</year></date><date date-type="revised" iso-8601-date="2025-07-24"><day>24</day><month>07</month><year iso-8601-date="2025"/></date><date date-type="accepted" iso-8601-date="2025-07-24"><day>24</day><month>07</month><year iso-8601-date="2025"/></date></history><permissions><copyright-statement>&#xA9;2025 Raunak Ujawane Year Corresponding Author</copyright-statement><copyright-year>2025</copyright-year><copyright-holder>Raunak Ujawane</copyright-holder><license href="https://creativecommons.org/licenses/by/4.0/"><license-p>This is an open access article distributed under the terms of the, which permits unrestricted use, distribution, reproduction and adaptation in any medium and for any purpose provided that it is properly attributed. For attribution, the original author(s), title, publication source (ISRDO) and either DOI or URL of the article must be cited.<ext-link ext-link-type="uri" href="https://creativecommons.org/licenses/by/4.0/">Creative Commons Attribution License</ext-link></license-p></license></permissions><self-uri href="https://isrdo.org/journal/SRJSET/currentissue/enhanced-vision-based-surface-value-roughness-detection-for-industry-40-quality-assurance"/><abstract><p>Surface roughness is a critical factor affecting friction, wear, and corrosion resistance of machined components. Traditional contact-based roughness testers provide reliable measurements (e.g., Roughness Average Ra), but manual reading and recording of results can be slow, error-prone, and lack traceability. This paper presents an enhanced automated surface roughness detection system built upon a prior vision-based pipeline that used YOLOv5 object detection and EasyOCR for reading Ra values. The new system extends the capability to five surface texture parameters &#x2013; Ra, Rz, Rsk, Rpc, and Rpm &#x2013; delivering a comprehensive roughness profile in real time. A Python-based user interface (UI) integrates the detection pipeline with real-time statistical process control charts (Six Sigma), process capability indices (Cp, Cpk), and data logging for Industry 4.0 traceability. The implementation includes a refined image preprocessing stage (resolution-specific letterboxing, dynamic padding to capture negative value signs), improved bounding box scaling and text region extraction, metric-specific text cleaning rules, and validation of readings against expected limits. Multithreading and caching optimizations reduce processing latency, enabling near-instant measurement updates. Over 2,000 test samples, the system achieved ~98.5% accuracy in correctly identifying all five metrics per sample, outperforming earlier OCR-only approaches (e.g., Tesseract) in speed and robustness. The paper provides a detailed literature review of vision-based OCR in industrial metrology and surface roughness evaluation, discusses the limitations of previous methods, and explains the architectural choices that enable high accuracy and industrial reliability. The proposed solution demonstrates significant improvements in quality monitoring, historical data capture, and process automation, illustrating a practical step toward smart manufacturing and Quality 4.0.</p></abstract><kwd-group kwd-group-type="author"><kwd>OCR</kwd><kwd> Text detection</kwd><kwd> Surface Roughness</kwd><kwd> YOLO v5</kwd></kwd-group><funding-group><funding-statement>No funding needed</funding-statement></funding-group></article-meta></front><back><sec sec-type="data-availability"><title>Data Availability</title><p>No necessary data sharing</p></sec><sec sec-type="COI-statement"><title>Conflicts of Interest</title><p>No conflict of interest</p></sec><sec sec-type="author-contributions"><title>Authors&#x2019; Contributions</title><p>Aditya Agarwal devised the novel approach, built a dataset, performed testing, and deployed the solutions under the guidance of Dr. Vineet Srivastava, and guidance of Mr. Raunak Ujawane and Mr. Balaji Mali</p></sec><sec sec-type="funding-statement"><title>Funding Statement</title><p>No funding needed</p></sec><sec sec-type="software-information"><title>software-information</title><p>Python 3.8</p></sec><ack><title>Acknowledgments</title><p>We acknowledge the resources and tools provided by Thapar Institute of Engineering &amp; Technology that helped us effectively train and optimise the model</p></ack><ref-list content-type="authoryear"><ref id="1"><label>1</label><element-citation publication-type="journal"><p>[1] N. Karimova, U. Ochilov, O. Tuyboyov, S. Yakhshiev, and I. Egamberdiev, &#x201C;Advanced surface roughness characterization using 3D scanning technologies and YOLOv4,&#x201D; E3S Web of Conferences, vol. 525, Art. 05014, pp. 1&#x2013;9, 2024.e3s-conferences.org&#xD;
[2] U. Kulkarni, S. Agasimani, P. P. Kulkarni, S. Kabadi, P. S. Aditya, and R. Ujawane, &#x201C;Vision based Roughness Average Value Detection using YOLOv5 and EasyOCR,&#x201D; in Proc. 8th IEEE Int. Conf. for Convergence in Technology (I2CT), Apr. 2023, pp. 979&#x2013;984.ieeexplore.ieee.org&#xD;
[3] X. Lv, H. Yi, R. Fang, S. Ai, and E. Lu, &#x201C;Visual detection of milling surface roughness based on improved YOLOv5,&#x201D; Metrology and Measurement Systems, vol. 30, no. 2, pp. 317&#x2013;331, 2023.journals.pan.pl&#xD;
[4] P. Imura, A. Wongkamhang, P. Chotikunnan, and A. Nirapai, &#x201C;Development of OCR Technology Application System for Health Data Recording,&#x201D; Int. J. Online and Biomedical Engineering, vol. 21, no. 4, pp. 4&#x2013;17, 2025.researchgate.net&#xD;
[5] R. G. Lins, R. E. dos Santos, and R. Gaspar, &#x201C;Vision-Based Measurement for Quality Control Inspection Integrated into a Die-Casting Process in Industry 4.0 Era,&#x201D; IEEE Access, vol. 13, pp. 1&#x2013;14, 2025.researchgate.netresearchgate.net&#xD;
[6] M. Bell, &#x201C;Comparing Surface Roughness Parameters,&#x201D; Gear Solutions Magazine, pp. 32&#x2013;35, Dec. 2016.gearsolutions.comgearsolutions.com</p></element-citation></ref></ref-list></back></article>
