{"id":26771,"date":"2022-12-19T22:36:13","date_gmt":"2022-12-19T17:06:13","guid":{"rendered":"https:\/\/jassweb.com\/solved\/solved-ocr-how-to-recognize-numbers-inside-square-boxes-using-python\/"},"modified":"2022-12-19T22:36:13","modified_gmt":"2022-12-19T17:06:13","slug":"solved-ocr-how-to-recognize-numbers-inside-square-boxes-using-python","status":"publish","type":"post","link":"https:\/\/jassweb.com\/solved\/solved-ocr-how-to-recognize-numbers-inside-square-boxes-using-python\/","title":{"rendered":"[Solved] OCR &#8211; How to recognize numbers inside square boxes using python?"},"content":{"rendered":"<p> [ad_1]<br \/>\n<\/p>\n<div id=\"answer-69798788\" class=\"answer js-answer accepted-answer js-accepted-answer\" data-answerid=\"69798788\" data-parentid=\"69736363\" data-score=\"-1\" data-position-on-page=\"1\" data-highest-scored=\"1\" data-question-has-accepted-highest-score=\"1\" itemprop=\"acceptedAnswer\" itemscope itemtype=\"https:\/\/schema.org\/Answer\">\n<div class=\"post-layout\">\n<div class=\"votecell post-layout--left\"><\/div>\n<div class=\"answercell post-layout--right\">\n<div class=\"s-prose js-post-body\" itemprop=\"text\">\n<p>the code below for me is doing decent job but it&#8217;s hyper parameter sensitive :<\/p>\n<pre><code>import cv2\nimport imutils\nimport numpy as np\nimport matplotlib.pyplot as plt\nfrom matplotlib import pyplot as plt\n  \n\ndef square_number_box_denoiser(image_path=\"\/content\/9.png\",is_resize = False, resize_width = 768):\n    '''\n    ref : https:\/\/pretagteam.com\/question\/removing-horizontal-lines-in-image-opencv-python-matplotlib\n\n    Args : \n      image_path (str) : path of the image containing numbers\/digits inside square box\n      is_resize (int) : whether to resize the input image or not? default : False\n      resize_width (int) : resizable image width for resizing the image by maintaining aspect ratio. default : 768 \n\n    '''\n    img=cv2.imread(image_path)\n    if(is_resize):\n      print(\"resizing...\")\n      img = imutils.resize(img, width=resize_width)\n    image = cv2.rotate(img, cv2.ROTATE_90_CLOCKWISE)\n    gray = cv2.cvtColor(image,cv2.COLOR_BGR2GRAY)\n    thresh = cv2.threshold(gray, 0, 255, cv2.THRESH_BINARY_INV + cv2.THRESH_OTSU)[1]\n\n    # Remove horizontal\n    horizontal_kernel = cv2.getStructuringElement(cv2.MORPH_RECT, (25,1))\n    detected_lines = cv2.morphologyEx(thresh, cv2.MORPH_OPEN, horizontal_kernel, iterations=2)\n    cnts = cv2.findContours(detected_lines, cv2.RETR_EXTERNAL, cv2.CHAIN_APPROX_SIMPLE)\n    cnts = cnts[0] if len(cnts) == 2 else cnts[1]\n    for c in cnts:\n        cv2.drawContours(image, [c], -1, (255,255,255), 2)\n\n    # Repair image\n    repair_kernel = cv2.getStructuringElement(cv2.MORPH_RECT, (1,6))\n    result = 255 - cv2.morphologyEx(255 - image, cv2.MORPH_CLOSE, repair_kernel, iterations=2)\n\n    # create figure\n    fig = plt.figure(figsize=(20, 20))\n    # setting values to rows and column variables\n    rows = 3\n    columns = 3\n\n    fig.add_subplot(rows,  columns, 1)\n    plt.imshow(img)\n    fig.add_subplot(rows,  columns, 2)\n    plt.imshow(thresh)\n    fig.add_subplot(rows,  columns, 3)\n    plt.imshow(detected_lines)\n    fig.add_subplot(rows,  columns, 4)\n    plt.imshow(image)\n    fig.add_subplot(rows,  columns, 5)\n    plt.imshow(result)\n    result = cv2.rotate(result,cv2.ROTATE_90_COUNTERCLOCKWISE)\n    fig.add_subplot(rows,  columns, 6)\n    plt.imshow(result)\n    cv2.imwrite(\"result.jpg\", result)\n\n    plt.show()\n<\/code><\/pre>\n<p><strong>Outputs :<\/strong><br \/>\n<a rel=\"nofollow noopener\" target=\"_blank\" href=\"https:\/\/jassweb.com\/solved\/wp-content\/uploads\/2022\/12\/Solved-OCR-How-to-recognize-numbers-inside-square-boxes.png\"><img decoding=\"async\" src=\"https:\/\/jassweb.com\/solved\/wp-content\/uploads\/2022\/12\/Solved-OCR-How-to-recognize-numbers-inside-square-boxes.png\" alt=\"enter image description here\"><\/a><\/p>\n<p><strong>without resizing  :<\/strong><\/p>\n<p><a rel=\"nofollow noopener\" target=\"_blank\" href=\"https:\/\/jassweb.com\/solved\/wp-content\/uploads\/2022\/12\/Solved-OCR-How-to-recognize-numbers-inside-square-boxes.jpg\"><img decoding=\"async\" src=\"https:\/\/jassweb.com\/solved\/wp-content\/uploads\/2022\/12\/Solved-OCR-How-to-recognize-numbers-inside-square-boxes.jpg\" alt=\"enter image description here\"><\/a><\/p>\n<p><a rel=\"nofollow noopener\" target=\"_blank\" href=\"https:\/\/jassweb.com\/solved\/wp-content\/uploads\/2022\/12\/1671469571_333_Solved-OCR-How-to-recognize-numbers-inside-square-boxes.jpg\"><img decoding=\"async\" src=\"https:\/\/jassweb.com\/solved\/wp-content\/uploads\/2022\/12\/1671469571_333_Solved-OCR-How-to-recognize-numbers-inside-square-boxes.jpg\" alt=\"enter image description here\"><\/a><\/p>\n<p><a rel=\"nofollow noopener\" target=\"_blank\" href=\"https:\/\/jassweb.com\/solved\/wp-content\/uploads\/2022\/12\/1671469571_797_Solved-OCR-How-to-recognize-numbers-inside-square-boxes.jpg\"><img decoding=\"async\" src=\"https:\/\/jassweb.com\/solved\/wp-content\/uploads\/2022\/12\/1671469571_797_Solved-OCR-How-to-recognize-numbers-inside-square-boxes.jpg\" alt=\"enter image description here\"><\/a><\/p>\n<p><a rel=\"nofollow noopener\" target=\"_blank\" href=\"https:\/\/jassweb.com\/solved\/wp-content\/uploads\/2022\/12\/1671469572_295_Solved-OCR-How-to-recognize-numbers-inside-square-boxes.jpg\"><img decoding=\"async\" src=\"https:\/\/jassweb.com\/solved\/wp-content\/uploads\/2022\/12\/1671469572_295_Solved-OCR-How-to-recognize-numbers-inside-square-boxes.jpg\" alt=\"enter image description here\"><\/a><\/p>\n<p><strong>with 768 resizing  :<\/strong><\/p>\n<p><a rel=\"nofollow noopener\" target=\"_blank\" href=\"https:\/\/jassweb.com\/solved\/wp-content\/uploads\/2022\/12\/1671469572_227_Solved-OCR-How-to-recognize-numbers-inside-square-boxes.jpg\"><img decoding=\"async\" src=\"https:\/\/jassweb.com\/solved\/wp-content\/uploads\/2022\/12\/1671469572_227_Solved-OCR-How-to-recognize-numbers-inside-square-boxes.jpg\" alt=\"enter image description here\"><\/a><\/p>\n<p><a rel=\"nofollow noopener\" target=\"_blank\" href=\"https:\/\/jassweb.com\/solved\/wp-content\/uploads\/2022\/12\/1671469572_267_Solved-OCR-How-to-recognize-numbers-inside-square-boxes.jpg\"><img decoding=\"async\" src=\"https:\/\/jassweb.com\/solved\/wp-content\/uploads\/2022\/12\/1671469572_267_Solved-OCR-How-to-recognize-numbers-inside-square-boxes.jpg\" alt=\"enter image description here\"><\/a><\/p>\n<p><a rel=\"nofollow noopener\" target=\"_blank\" href=\"https:\/\/jassweb.com\/solved\/wp-content\/uploads\/2022\/12\/1671469572_613_Solved-OCR-How-to-recognize-numbers-inside-square-boxes.jpg\"><img decoding=\"async\" src=\"https:\/\/jassweb.com\/solved\/wp-content\/uploads\/2022\/12\/1671469572_613_Solved-OCR-How-to-recognize-numbers-inside-square-boxes.jpg\" alt=\"enter image description here\"><\/a><\/p>\n<p><a rel=\"nofollow noopener\" target=\"_blank\" href=\"https:\/\/jassweb.com\/solved\/wp-content\/uploads\/2022\/12\/1671469573_803_Solved-OCR-How-to-recognize-numbers-inside-square-boxes.jpg\"><img decoding=\"async\" src=\"https:\/\/jassweb.com\/solved\/wp-content\/uploads\/2022\/12\/1671469573_803_Solved-OCR-How-to-recognize-numbers-inside-square-boxes.jpg\" alt=\"enter image description here\"><\/a><\/p>\n<\/p><\/div>\n<div class=\"mt24\"><\/div>\n<\/div>\n<p>            <span class=\"d-none\" itemprop=\"commentCount\">0<\/span> <\/p><\/div>\n<\/div>\n<p>[ad_2]<\/p>\n<p>solved OCR &#8211; How to recognize numbers inside square boxes using python? <\/p>\n","protected":false},"excerpt":{"rendered":"<p>[ad_1] the code below for me is doing decent job but it&#8217;s hyper parameter sensitive : import cv2 import imutils import numpy as np import matplotlib.pyplot as plt from matplotlib import pyplot as plt def square_number_box_denoiser(image_path=&#8221;\/content\/9.png&#8221;,is_resize = False, resize_width = 768): &#8221;&#8217; ref : https:\/\/pretagteam.com\/question\/removing-horizontal-lines-in-image-opencv-python-matplotlib Args : image_path (str) : path of the image containing &#8230; <a title=\"[Solved] OCR &#8211; How to recognize numbers inside square boxes using python?\" class=\"read-more\" href=\"https:\/\/jassweb.com\/solved\/solved-ocr-how-to-recognize-numbers-inside-square-boxes-using-python\/\" aria-label=\"More on [Solved] OCR &#8211; How to recognize numbers inside square boxes using python?\">Read more<\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[320],"tags":[881,1830,1087,349],"class_list":["post-26771","post","type-post","status-publish","format-standard","hentry","category-solved","tag-image-processing","tag-ocr","tag-opencv","tag-python"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v26.5 - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>[Solved] OCR - How to recognize numbers inside square boxes using python? - JassWeb<\/title>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/jassweb.com\/solved\/solved-ocr-how-to-recognize-numbers-inside-square-boxes-using-python\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"[Solved] OCR - How to recognize numbers inside square boxes using python? - JassWeb\" \/>\n<meta property=\"og:description\" content=\"[ad_1] the code below for me is doing decent job but it&#8217;s hyper parameter sensitive : import cv2 import imutils import numpy as np import matplotlib.pyplot as plt from matplotlib import pyplot as plt def square_number_box_denoiser(image_path=&quot;\/content\/9.png&quot;,is_resize = False, resize_width = 768): &#039;&#039;&#039; ref : https:\/\/pretagteam.com\/question\/removing-horizontal-lines-in-image-opencv-python-matplotlib Args : image_path (str) : path of the image containing ... Read more\" \/>\n<meta property=\"og:url\" content=\"https:\/\/jassweb.com\/solved\/solved-ocr-how-to-recognize-numbers-inside-square-boxes-using-python\/\" \/>\n<meta property=\"og:site_name\" content=\"JassWeb\" \/>\n<meta property=\"article:published_time\" content=\"2022-12-19T17:06:13+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/jassweb.com\/solved\/wp-content\/uploads\/2022\/12\/Solved-OCR-How-to-recognize-numbers-inside-square-boxes.png\" \/>\n<meta name=\"author\" content=\"Kirat\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"Kirat\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"2 minutes\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\/\/jassweb.com\/solved\/solved-ocr-how-to-recognize-numbers-inside-square-boxes-using-python\/#article\",\"isPartOf\":{\"@id\":\"https:\/\/jassweb.com\/solved\/solved-ocr-how-to-recognize-numbers-inside-square-boxes-using-python\/\"},\"author\":{\"name\":\"Kirat\",\"@id\":\"https:\/\/jassweb.com\/solved\/#\/schema\/person\/65c9c7b7958150c0dc8371fa35dd7c31\"},\"headline\":\"[Solved] OCR &#8211; How to recognize numbers inside square boxes using python?\",\"datePublished\":\"2022-12-19T17:06:13+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\/\/jassweb.com\/solved\/solved-ocr-how-to-recognize-numbers-inside-square-boxes-using-python\/\"},\"wordCount\":46,\"publisher\":{\"@id\":\"https:\/\/jassweb.com\/solved\/#organization\"},\"image\":{\"@id\":\"https:\/\/jassweb.com\/solved\/solved-ocr-how-to-recognize-numbers-inside-square-boxes-using-python\/#primaryimage\"},\"thumbnailUrl\":\"https:\/\/jassweb.com\/solved\/wp-content\/uploads\/2022\/12\/Solved-OCR-How-to-recognize-numbers-inside-square-boxes.png\",\"keywords\":[\"image-processing\",\"ocr\",\"opencv\",\"python\"],\"articleSection\":[\"Solved\"],\"inLanguage\":\"en-US\"},{\"@type\":\"WebPage\",\"@id\":\"https:\/\/jassweb.com\/solved\/solved-ocr-how-to-recognize-numbers-inside-square-boxes-using-python\/\",\"url\":\"https:\/\/jassweb.com\/solved\/solved-ocr-how-to-recognize-numbers-inside-square-boxes-using-python\/\",\"name\":\"[Solved] OCR - How to recognize numbers inside square boxes using python? - JassWeb\",\"isPartOf\":{\"@id\":\"https:\/\/jassweb.com\/solved\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\/\/jassweb.com\/solved\/solved-ocr-how-to-recognize-numbers-inside-square-boxes-using-python\/#primaryimage\"},\"image\":{\"@id\":\"https:\/\/jassweb.com\/solved\/solved-ocr-how-to-recognize-numbers-inside-square-boxes-using-python\/#primaryimage\"},\"thumbnailUrl\":\"https:\/\/jassweb.com\/solved\/wp-content\/uploads\/2022\/12\/Solved-OCR-How-to-recognize-numbers-inside-square-boxes.png\",\"datePublished\":\"2022-12-19T17:06:13+00:00\",\"breadcrumb\":{\"@id\":\"https:\/\/jassweb.com\/solved\/solved-ocr-how-to-recognize-numbers-inside-square-boxes-using-python\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/jassweb.com\/solved\/solved-ocr-how-to-recognize-numbers-inside-square-boxes-using-python\/\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/jassweb.com\/solved\/solved-ocr-how-to-recognize-numbers-inside-square-boxes-using-python\/#primaryimage\",\"url\":\"https:\/\/jassweb.com\/solved\/wp-content\/uploads\/2022\/12\/Solved-OCR-How-to-recognize-numbers-inside-square-boxes.png\",\"contentUrl\":\"https:\/\/jassweb.com\/solved\/wp-content\/uploads\/2022\/12\/Solved-OCR-How-to-recognize-numbers-inside-square-boxes.png\"},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/jassweb.com\/solved\/solved-ocr-how-to-recognize-numbers-inside-square-boxes-using-python\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\/\/jassweb.com\/solved\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"[Solved] OCR &#8211; How to recognize numbers inside square boxes using python?\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/jassweb.com\/solved\/#website\",\"url\":\"https:\/\/jassweb.com\/solved\/\",\"name\":\"JassWeb\",\"description\":\"Build High-quality Websites\",\"publisher\":{\"@id\":\"https:\/\/jassweb.com\/solved\/#organization\"},\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/jassweb.com\/solved\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-US\"},{\"@type\":\"Organization\",\"@id\":\"https:\/\/jassweb.com\/solved\/#organization\",\"name\":\"Jass Web\",\"url\":\"https:\/\/jassweb.com\/solved\/\",\"logo\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/jassweb.com\/solved\/#\/schema\/logo\/image\/\",\"url\":\"https:\/\/jassweb.com\/wp-content\/uploads\/2021\/02\/jass-website-logo-1.png\",\"contentUrl\":\"https:\/\/jassweb.com\/wp-content\/uploads\/2021\/02\/jass-website-logo-1.png\",\"width\":693,\"height\":132,\"caption\":\"Jass Web\"},\"image\":{\"@id\":\"https:\/\/jassweb.com\/solved\/#\/schema\/logo\/image\/\"}},{\"@type\":\"Person\",\"@id\":\"https:\/\/jassweb.com\/solved\/#\/schema\/person\/65c9c7b7958150c0dc8371fa35dd7c31\",\"name\":\"Kirat\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/jassweb.com\/solved\/#\/schema\/person\/image\/\",\"url\":\"https:\/\/jassweb.com\/solved\/wp-content\/litespeed\/avatar\/1261af3c9451399fa1336d28b98ea3bb.jpg?ver=1776403586\",\"contentUrl\":\"https:\/\/jassweb.com\/solved\/wp-content\/litespeed\/avatar\/1261af3c9451399fa1336d28b98ea3bb.jpg?ver=1776403586\",\"caption\":\"Kirat\"},\"sameAs\":[\"http:\/\/jassweb.com\"],\"url\":\"https:\/\/jassweb.com\/solved\/author\/jaspritsinghghumangmail-com\/\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"[Solved] OCR - How to recognize numbers inside square boxes using python? - JassWeb","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/jassweb.com\/solved\/solved-ocr-how-to-recognize-numbers-inside-square-boxes-using-python\/","og_locale":"en_US","og_type":"article","og_title":"[Solved] OCR - How to recognize numbers inside square boxes using python? - JassWeb","og_description":"[ad_1] the code below for me is doing decent job but it&#8217;s hyper parameter sensitive : import cv2 import imutils import numpy as np import matplotlib.pyplot as plt from matplotlib import pyplot as plt def square_number_box_denoiser(image_path=\"\/content\/9.png\",is_resize = False, resize_width = 768): ''' ref : https:\/\/pretagteam.com\/question\/removing-horizontal-lines-in-image-opencv-python-matplotlib Args : image_path (str) : path of the image containing ... Read more","og_url":"https:\/\/jassweb.com\/solved\/solved-ocr-how-to-recognize-numbers-inside-square-boxes-using-python\/","og_site_name":"JassWeb","article_published_time":"2022-12-19T17:06:13+00:00","og_image":[{"url":"https:\/\/jassweb.com\/solved\/wp-content\/uploads\/2022\/12\/Solved-OCR-How-to-recognize-numbers-inside-square-boxes.png","type":"","width":"","height":""}],"author":"Kirat","twitter_card":"summary_large_image","twitter_misc":{"Written by":"Kirat","Est. reading time":"2 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/jassweb.com\/solved\/solved-ocr-how-to-recognize-numbers-inside-square-boxes-using-python\/#article","isPartOf":{"@id":"https:\/\/jassweb.com\/solved\/solved-ocr-how-to-recognize-numbers-inside-square-boxes-using-python\/"},"author":{"name":"Kirat","@id":"https:\/\/jassweb.com\/solved\/#\/schema\/person\/65c9c7b7958150c0dc8371fa35dd7c31"},"headline":"[Solved] OCR &#8211; How to recognize numbers inside square boxes using python?","datePublished":"2022-12-19T17:06:13+00:00","mainEntityOfPage":{"@id":"https:\/\/jassweb.com\/solved\/solved-ocr-how-to-recognize-numbers-inside-square-boxes-using-python\/"},"wordCount":46,"publisher":{"@id":"https:\/\/jassweb.com\/solved\/#organization"},"image":{"@id":"https:\/\/jassweb.com\/solved\/solved-ocr-how-to-recognize-numbers-inside-square-boxes-using-python\/#primaryimage"},"thumbnailUrl":"https:\/\/jassweb.com\/solved\/wp-content\/uploads\/2022\/12\/Solved-OCR-How-to-recognize-numbers-inside-square-boxes.png","keywords":["image-processing","ocr","opencv","python"],"articleSection":["Solved"],"inLanguage":"en-US"},{"@type":"WebPage","@id":"https:\/\/jassweb.com\/solved\/solved-ocr-how-to-recognize-numbers-inside-square-boxes-using-python\/","url":"https:\/\/jassweb.com\/solved\/solved-ocr-how-to-recognize-numbers-inside-square-boxes-using-python\/","name":"[Solved] OCR - How to recognize numbers inside square boxes using python? - JassWeb","isPartOf":{"@id":"https:\/\/jassweb.com\/solved\/#website"},"primaryImageOfPage":{"@id":"https:\/\/jassweb.com\/solved\/solved-ocr-how-to-recognize-numbers-inside-square-boxes-using-python\/#primaryimage"},"image":{"@id":"https:\/\/jassweb.com\/solved\/solved-ocr-how-to-recognize-numbers-inside-square-boxes-using-python\/#primaryimage"},"thumbnailUrl":"https:\/\/jassweb.com\/solved\/wp-content\/uploads\/2022\/12\/Solved-OCR-How-to-recognize-numbers-inside-square-boxes.png","datePublished":"2022-12-19T17:06:13+00:00","breadcrumb":{"@id":"https:\/\/jassweb.com\/solved\/solved-ocr-how-to-recognize-numbers-inside-square-boxes-using-python\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/jassweb.com\/solved\/solved-ocr-how-to-recognize-numbers-inside-square-boxes-using-python\/"]}]},{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/jassweb.com\/solved\/solved-ocr-how-to-recognize-numbers-inside-square-boxes-using-python\/#primaryimage","url":"https:\/\/jassweb.com\/solved\/wp-content\/uploads\/2022\/12\/Solved-OCR-How-to-recognize-numbers-inside-square-boxes.png","contentUrl":"https:\/\/jassweb.com\/solved\/wp-content\/uploads\/2022\/12\/Solved-OCR-How-to-recognize-numbers-inside-square-boxes.png"},{"@type":"BreadcrumbList","@id":"https:\/\/jassweb.com\/solved\/solved-ocr-how-to-recognize-numbers-inside-square-boxes-using-python\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/jassweb.com\/solved\/"},{"@type":"ListItem","position":2,"name":"[Solved] OCR &#8211; How to recognize numbers inside square boxes using python?"}]},{"@type":"WebSite","@id":"https:\/\/jassweb.com\/solved\/#website","url":"https:\/\/jassweb.com\/solved\/","name":"JassWeb","description":"Build High-quality Websites","publisher":{"@id":"https:\/\/jassweb.com\/solved\/#organization"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/jassweb.com\/solved\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"},{"@type":"Organization","@id":"https:\/\/jassweb.com\/solved\/#organization","name":"Jass Web","url":"https:\/\/jassweb.com\/solved\/","logo":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/jassweb.com\/solved\/#\/schema\/logo\/image\/","url":"https:\/\/jassweb.com\/wp-content\/uploads\/2021\/02\/jass-website-logo-1.png","contentUrl":"https:\/\/jassweb.com\/wp-content\/uploads\/2021\/02\/jass-website-logo-1.png","width":693,"height":132,"caption":"Jass Web"},"image":{"@id":"https:\/\/jassweb.com\/solved\/#\/schema\/logo\/image\/"}},{"@type":"Person","@id":"https:\/\/jassweb.com\/solved\/#\/schema\/person\/65c9c7b7958150c0dc8371fa35dd7c31","name":"Kirat","image":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/jassweb.com\/solved\/#\/schema\/person\/image\/","url":"https:\/\/jassweb.com\/solved\/wp-content\/litespeed\/avatar\/1261af3c9451399fa1336d28b98ea3bb.jpg?ver=1776403586","contentUrl":"https:\/\/jassweb.com\/solved\/wp-content\/litespeed\/avatar\/1261af3c9451399fa1336d28b98ea3bb.jpg?ver=1776403586","caption":"Kirat"},"sameAs":["http:\/\/jassweb.com"],"url":"https:\/\/jassweb.com\/solved\/author\/jaspritsinghghumangmail-com\/"}]}},"_links":{"self":[{"href":"https:\/\/jassweb.com\/solved\/wp-json\/wp\/v2\/posts\/26771","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/jassweb.com\/solved\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/jassweb.com\/solved\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/jassweb.com\/solved\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/jassweb.com\/solved\/wp-json\/wp\/v2\/comments?post=26771"}],"version-history":[{"count":0,"href":"https:\/\/jassweb.com\/solved\/wp-json\/wp\/v2\/posts\/26771\/revisions"}],"wp:attachment":[{"href":"https:\/\/jassweb.com\/solved\/wp-json\/wp\/v2\/media?parent=26771"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/jassweb.com\/solved\/wp-json\/wp\/v2\/categories?post=26771"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/jassweb.com\/solved\/wp-json\/wp\/v2\/tags?post=26771"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}