{"id":1517,"date":"2019-03-28T11:46:12","date_gmt":"2019-03-28T06:16:12","guid":{"rendered":"https:\/\/www.rangakrish.com\/?p=1517"},"modified":"2019-03-28T13:43:12","modified_gmt":"2019-03-28T08:13:12","slug":"ocr-using-azure-computer-vision-api","status":"publish","type":"post","link":"https:\/\/www.rangakrish.com\/index.php\/2019\/03\/28\/ocr-using-azure-computer-vision-api\/","title":{"rendered":"OCR Using Azure Computer Vision API"},"content":{"rendered":"<p>I have been getting some good feedback on <em><strong>Azure\u2019s Computer Vision API<\/strong><\/em>, in particular, the <em><strong>OCR<\/strong><\/em> functionality. Although I am not working on any project that requires this functionality at the moment, I thought it would be a good idea to check out the service &#8211; just to be <strong><em>\u201cfuture ready\u201d<\/em><\/strong>!<\/p>\n<p>This article is not meant to be a detailed review of the <em><strong>OCR<\/strong><\/em> service, but merely to share my first experience with it, that is all.<span class=\"Apple-converted-space\">\u00a0<\/span><\/p>\n<p>Go to <a href=\"http:\/\/portal.azure.com\" target=\"_blank\" rel=\"noopener\"><em><strong>Azure Portal<\/strong><\/em><\/a>\u00a0 and sign in.<\/p>\n<p>Click <em><strong>\u201cAll services\u201d<\/strong><\/em> in the menu bar and select <em><strong>\u201cCognitive Services\u201d<\/strong><\/em> under the group <em><strong>\u201cAI + Machine Learning\u201d<\/strong><\/em>.<span class=\"Apple-converted-space\">\u00a0<\/span><\/p>\n<figure id=\"attachment_1518\" aria-describedby=\"caption-attachment-1518\" style=\"width: 650px\" class=\"wp-caption aligncenter\"><a href=\"https:\/\/i0.wp.com\/www.rangakrish.com\/wp-content\/uploads\/2019\/03\/Cognitive-Services.png?ssl=1\"><img data-recalc-dims=\"1\" fetchpriority=\"high\" decoding=\"async\" data-attachment-id=\"1518\" data-permalink=\"https:\/\/www.rangakrish.com\/index.php\/2019\/03\/28\/ocr-using-azure-computer-vision-api\/cognitive-services\/\" data-orig-file=\"https:\/\/www.rangakrish.com\/wp-content\/uploads\/2019\/03\/Cognitive-Services.png\" data-orig-size=\"855,876\" data-comments-opened=\"1\" data-image-meta=\"{&quot;aperture&quot;:&quot;0&quot;,&quot;credit&quot;:&quot;&quot;,&quot;camera&quot;:&quot;&quot;,&quot;caption&quot;:&quot;&quot;,&quot;created_timestamp&quot;:&quot;0&quot;,&quot;copyright&quot;:&quot;&quot;,&quot;focal_length&quot;:&quot;0&quot;,&quot;iso&quot;:&quot;0&quot;,&quot;shutter_speed&quot;:&quot;0&quot;,&quot;title&quot;:&quot;&quot;,&quot;orientation&quot;:&quot;0&quot;}\" data-image-title=\"Cognitive Services\" data-image-description=\"&lt;p&gt;Cognitive Services&lt;\/p&gt;\n\" data-image-caption=\"&lt;p&gt;Cognitive Services&lt;\/p&gt;\n\" data-large-file=\"https:\/\/www.rangakrish.com\/wp-content\/uploads\/2019\/03\/Cognitive-Services.png\" class=\"wp-image-1518\" src=\"https:\/\/i0.wp.com\/www.rangakrish.com\/wp-content\/uploads\/2019\/03\/Cognitive-Services.png?resize=650%2C666&#038;ssl=1\" alt=\"Cognitive Services\" width=\"650\" height=\"666\" srcset=\"https:\/\/i0.wp.com\/www.rangakrish.com\/wp-content\/uploads\/2019\/03\/Cognitive-Services.png?w=855&amp;ssl=1 855w, https:\/\/i0.wp.com\/www.rangakrish.com\/wp-content\/uploads\/2019\/03\/Cognitive-Services.png?resize=293%2C300&amp;ssl=1 293w, https:\/\/i0.wp.com\/www.rangakrish.com\/wp-content\/uploads\/2019\/03\/Cognitive-Services.png?resize=768%2C787&amp;ssl=1 768w\" sizes=\"(max-width: 650px) 100vw, 650px\" \/><\/a><figcaption id=\"caption-attachment-1518\" class=\"wp-caption-text\"><strong>Cognitive Services<\/strong><\/figcaption><\/figure>\n<p>Now select <em><strong>\u201cComputer Vision\u201d<\/strong><\/em><\/p>\n<figure id=\"attachment_1519\" aria-describedby=\"caption-attachment-1519\" style=\"width: 650px\" class=\"wp-caption aligncenter\"><a href=\"https:\/\/i0.wp.com\/www.rangakrish.com\/wp-content\/uploads\/2019\/03\/Computer-Vision.png?ssl=1\"><img data-recalc-dims=\"1\" decoding=\"async\" data-attachment-id=\"1519\" data-permalink=\"https:\/\/www.rangakrish.com\/index.php\/2019\/03\/28\/ocr-using-azure-computer-vision-api\/computer-vision\/\" data-orig-file=\"https:\/\/www.rangakrish.com\/wp-content\/uploads\/2019\/03\/Computer-Vision.png\" data-orig-size=\"833,857\" data-comments-opened=\"1\" data-image-meta=\"{&quot;aperture&quot;:&quot;0&quot;,&quot;credit&quot;:&quot;&quot;,&quot;camera&quot;:&quot;&quot;,&quot;caption&quot;:&quot;&quot;,&quot;created_timestamp&quot;:&quot;0&quot;,&quot;copyright&quot;:&quot;&quot;,&quot;focal_length&quot;:&quot;0&quot;,&quot;iso&quot;:&quot;0&quot;,&quot;shutter_speed&quot;:&quot;0&quot;,&quot;title&quot;:&quot;&quot;,&quot;orientation&quot;:&quot;0&quot;}\" data-image-title=\"Computer Vision\" data-image-description=\"&lt;p&gt;Computer Vision&lt;\/p&gt;\n\" data-image-caption=\"&lt;p&gt;Computer Vision&lt;\/p&gt;\n\" data-large-file=\"https:\/\/www.rangakrish.com\/wp-content\/uploads\/2019\/03\/Computer-Vision.png\" class=\"wp-image-1519\" src=\"https:\/\/i0.wp.com\/www.rangakrish.com\/wp-content\/uploads\/2019\/03\/Computer-Vision.png?resize=650%2C669&#038;ssl=1\" alt=\"Computer Vision\" width=\"650\" height=\"669\" srcset=\"https:\/\/i0.wp.com\/www.rangakrish.com\/wp-content\/uploads\/2019\/03\/Computer-Vision.png?w=833&amp;ssl=1 833w, https:\/\/i0.wp.com\/www.rangakrish.com\/wp-content\/uploads\/2019\/03\/Computer-Vision.png?resize=292%2C300&amp;ssl=1 292w, https:\/\/i0.wp.com\/www.rangakrish.com\/wp-content\/uploads\/2019\/03\/Computer-Vision.png?resize=768%2C790&amp;ssl=1 768w\" sizes=\"(max-width: 650px) 100vw, 650px\" \/><\/a><figcaption id=\"caption-attachment-1519\" class=\"wp-caption-text\"><strong>Computer Vision<\/strong><\/figcaption><\/figure>\n<p>Click <em><strong>\u201cCreate\u201d<\/strong><\/em>. The following screen requires you to configure the resource:<\/p>\n<figure id=\"attachment_1520\" aria-describedby=\"caption-attachment-1520\" style=\"width: 650px\" class=\"wp-caption aligncenter\"><a href=\"https:\/\/i0.wp.com\/www.rangakrish.com\/wp-content\/uploads\/2019\/03\/Create-Computer-Vision.png?ssl=1\"><img data-recalc-dims=\"1\" decoding=\"async\" data-attachment-id=\"1520\" data-permalink=\"https:\/\/www.rangakrish.com\/index.php\/2019\/03\/28\/ocr-using-azure-computer-vision-api\/create-computer-vision\/\" data-orig-file=\"https:\/\/www.rangakrish.com\/wp-content\/uploads\/2019\/03\/Create-Computer-Vision.png\" data-orig-size=\"831,858\" data-comments-opened=\"1\" data-image-meta=\"{&quot;aperture&quot;:&quot;0&quot;,&quot;credit&quot;:&quot;&quot;,&quot;camera&quot;:&quot;&quot;,&quot;caption&quot;:&quot;&quot;,&quot;created_timestamp&quot;:&quot;0&quot;,&quot;copyright&quot;:&quot;&quot;,&quot;focal_length&quot;:&quot;0&quot;,&quot;iso&quot;:&quot;0&quot;,&quot;shutter_speed&quot;:&quot;0&quot;,&quot;title&quot;:&quot;&quot;,&quot;orientation&quot;:&quot;0&quot;}\" data-image-title=\"Configuring Computer Vision\" data-image-description=\"&lt;p&gt;Configuring Computer Vision&lt;\/p&gt;\n\" data-image-caption=\"&lt;p&gt;Configuring Computer Vision&lt;\/p&gt;\n\" data-large-file=\"https:\/\/www.rangakrish.com\/wp-content\/uploads\/2019\/03\/Create-Computer-Vision.png\" class=\"wp-image-1520\" src=\"https:\/\/i0.wp.com\/www.rangakrish.com\/wp-content\/uploads\/2019\/03\/Create-Computer-Vision.png?resize=650%2C671&#038;ssl=1\" alt=\"Configuring Computer Vision\" width=\"650\" height=\"671\" srcset=\"https:\/\/i0.wp.com\/www.rangakrish.com\/wp-content\/uploads\/2019\/03\/Create-Computer-Vision.png?w=831&amp;ssl=1 831w, https:\/\/i0.wp.com\/www.rangakrish.com\/wp-content\/uploads\/2019\/03\/Create-Computer-Vision.png?resize=291%2C300&amp;ssl=1 291w, https:\/\/i0.wp.com\/www.rangakrish.com\/wp-content\/uploads\/2019\/03\/Create-Computer-Vision.png?resize=768%2C793&amp;ssl=1 768w\" sizes=\"(max-width: 650px) 100vw, 650px\" \/><\/a><figcaption id=\"caption-attachment-1520\" class=\"wp-caption-text\"><strong>Configuring Computer Vision<\/strong><\/figcaption><\/figure>\n<p>Fill in the various fields and click <em><strong>\u201cCreate\u201d<\/strong><\/em>.<\/p>\n<p>It will take a a minute or two to deploy the service.<\/p>\n<p>Go to the <em><strong>Dashboard<\/strong><\/em> and click on the newly created resource <em><strong>\u201cOCR-Test\u201d<\/strong><\/em>. Click on the item <em><strong>\u201cKeys\u201d<\/strong><\/em> under <em><strong>\u201cResource Management\u201d<\/strong><\/em> group. You will see two keys:<\/p>\n<figure id=\"attachment_1521\" aria-describedby=\"caption-attachment-1521\" style=\"width: 650px\" class=\"wp-caption aligncenter\"><a href=\"https:\/\/i0.wp.com\/www.rangakrish.com\/wp-content\/uploads\/2019\/03\/Keys.png?ssl=1\"><img data-recalc-dims=\"1\" loading=\"lazy\" decoding=\"async\" data-attachment-id=\"1521\" data-permalink=\"https:\/\/www.rangakrish.com\/index.php\/2019\/03\/28\/ocr-using-azure-computer-vision-api\/keys\/\" data-orig-file=\"https:\/\/www.rangakrish.com\/wp-content\/uploads\/2019\/03\/Keys.png\" data-orig-size=\"830,842\" data-comments-opened=\"1\" data-image-meta=\"{&quot;aperture&quot;:&quot;0&quot;,&quot;credit&quot;:&quot;&quot;,&quot;camera&quot;:&quot;&quot;,&quot;caption&quot;:&quot;&quot;,&quot;created_timestamp&quot;:&quot;0&quot;,&quot;copyright&quot;:&quot;&quot;,&quot;focal_length&quot;:&quot;0&quot;,&quot;iso&quot;:&quot;0&quot;,&quot;shutter_speed&quot;:&quot;0&quot;,&quot;title&quot;:&quot;&quot;,&quot;orientation&quot;:&quot;0&quot;}\" data-image-title=\"Keys\" data-image-description=\"&lt;p&gt;Keys&lt;\/p&gt;\n\" data-image-caption=\"&lt;p&gt;Keys&lt;\/p&gt;\n\" data-large-file=\"https:\/\/www.rangakrish.com\/wp-content\/uploads\/2019\/03\/Keys.png\" class=\"wp-image-1521\" src=\"https:\/\/i0.wp.com\/www.rangakrish.com\/wp-content\/uploads\/2019\/03\/Keys.png?resize=650%2C659&#038;ssl=1\" alt=\"Keys\" width=\"650\" height=\"659\" srcset=\"https:\/\/i0.wp.com\/www.rangakrish.com\/wp-content\/uploads\/2019\/03\/Keys.png?w=830&amp;ssl=1 830w, https:\/\/i0.wp.com\/www.rangakrish.com\/wp-content\/uploads\/2019\/03\/Keys.png?resize=296%2C300&amp;ssl=1 296w, https:\/\/i0.wp.com\/www.rangakrish.com\/wp-content\/uploads\/2019\/03\/Keys.png?resize=768%2C779&amp;ssl=1 768w\" sizes=\"(max-width: 650px) 100vw, 650px\" \/><\/a><figcaption id=\"caption-attachment-1521\" class=\"wp-caption-text\"><strong>Keys<\/strong><\/figcaption><\/figure>\n<p>Copy the value of <em><strong>\u201cKEY 1\u201d<\/strong><\/em> field (you can use <em><strong>&#8220;KEY 2&#8221;<\/strong><\/em> as well). You will need this to make the <em><strong>REST API<\/strong><\/em> call.<\/p>\n<p>I wrote a <a href=\"http:\/\/www.rangakrish.com\/downloads\/Azure-ocr.py\" target=\"_blank\" rel=\"noopener\"><em><strong>Python<\/strong> <strong>program<\/strong><\/em><\/a>\u00a0to send a <em><strong>JPG<\/strong><\/em> file to the\u00a0<em><strong>OCR<\/strong><\/em> end point and save the returned data in a text file:<\/p>\n<figure id=\"attachment_1522\" aria-describedby=\"caption-attachment-1522\" style=\"width: 650px\" class=\"wp-caption aligncenter\"><a href=\"https:\/\/i0.wp.com\/www.rangakrish.com\/wp-content\/uploads\/2019\/03\/The-Code-2.png?ssl=1\"><img data-recalc-dims=\"1\" loading=\"lazy\" decoding=\"async\" data-attachment-id=\"1522\" data-permalink=\"https:\/\/www.rangakrish.com\/index.php\/2019\/03\/28\/ocr-using-azure-computer-vision-api\/the-code-2\/\" data-orig-file=\"https:\/\/www.rangakrish.com\/wp-content\/uploads\/2019\/03\/The-Code-2.png\" data-orig-size=\"670,624\" data-comments-opened=\"1\" data-image-meta=\"{&quot;aperture&quot;:&quot;0&quot;,&quot;credit&quot;:&quot;&quot;,&quot;camera&quot;:&quot;&quot;,&quot;caption&quot;:&quot;&quot;,&quot;created_timestamp&quot;:&quot;0&quot;,&quot;copyright&quot;:&quot;&quot;,&quot;focal_length&quot;:&quot;0&quot;,&quot;iso&quot;:&quot;0&quot;,&quot;shutter_speed&quot;:&quot;0&quot;,&quot;title&quot;:&quot;&quot;,&quot;orientation&quot;:&quot;0&quot;}\" data-image-title=\"Python Program\" data-image-description=\"&lt;p&gt;Python Program&lt;\/p&gt;\n\" data-image-caption=\"&lt;p&gt;Python Program&lt;\/p&gt;\n\" data-large-file=\"https:\/\/www.rangakrish.com\/wp-content\/uploads\/2019\/03\/The-Code-2.png\" class=\"wp-image-1522\" src=\"https:\/\/i0.wp.com\/www.rangakrish.com\/wp-content\/uploads\/2019\/03\/The-Code-2.png?resize=650%2C605&#038;ssl=1\" alt=\"Python Program\" width=\"650\" height=\"605\" srcset=\"https:\/\/i0.wp.com\/www.rangakrish.com\/wp-content\/uploads\/2019\/03\/The-Code-2.png?w=670&amp;ssl=1 670w, https:\/\/i0.wp.com\/www.rangakrish.com\/wp-content\/uploads\/2019\/03\/The-Code-2.png?resize=300%2C279&amp;ssl=1 300w\" sizes=\"(max-width: 650px) 100vw, 650px\" \/><\/a><figcaption id=\"caption-attachment-1522\" class=\"wp-caption-text\"><strong>Python Program<\/strong><\/figcaption><\/figure>\n<p>To check the service, I used my<em><strong> iPhone X<\/strong><\/em> camera to capture one page of a homeopathy book that I have. Here is the image:<\/p>\n<figure id=\"attachment_1523\" aria-describedby=\"caption-attachment-1523\" style=\"width: 651px\" class=\"wp-caption aligncenter\"><a href=\"https:\/\/i0.wp.com\/www.rangakrish.com\/wp-content\/uploads\/2019\/03\/IMG_0644.jpg?ssl=1\"><img data-recalc-dims=\"1\" loading=\"lazy\" decoding=\"async\" data-attachment-id=\"1523\" data-permalink=\"https:\/\/www.rangakrish.com\/index.php\/2019\/03\/28\/ocr-using-azure-computer-vision-api\/img_0644\/\" data-orig-file=\"https:\/\/www.rangakrish.com\/wp-content\/uploads\/2019\/03\/IMG_0644.jpg\" data-orig-size=\"4032,3024\" data-comments-opened=\"1\" data-image-meta=\"{&quot;aperture&quot;:&quot;1.8&quot;,&quot;credit&quot;:&quot;&quot;,&quot;camera&quot;:&quot;iPhone X&quot;,&quot;caption&quot;:&quot;&quot;,&quot;created_timestamp&quot;:&quot;1553762811&quot;,&quot;copyright&quot;:&quot;&quot;,&quot;focal_length&quot;:&quot;4&quot;,&quot;iso&quot;:&quot;32&quot;,&quot;shutter_speed&quot;:&quot;0.03030303030303&quot;,&quot;title&quot;:&quot;&quot;,&quot;orientation&quot;:&quot;6&quot;}\" data-image-title=\"The Image to be Converted\" data-image-description=\"&lt;p&gt;The Image to be Converted&lt;\/p&gt;\n\" data-image-caption=\"&lt;p&gt;The Image to be Converted&lt;\/p&gt;\n\" data-large-file=\"https:\/\/www.rangakrish.com\/wp-content\/uploads\/2019\/03\/IMG_0644-1024x768.jpg\" class=\"wp-image-1523\" src=\"https:\/\/i0.wp.com\/www.rangakrish.com\/wp-content\/uploads\/2019\/03\/IMG_0644.jpg?resize=651%2C488&#038;ssl=1\" alt=\"The Image to be Converted\" width=\"651\" height=\"488\" srcset=\"https:\/\/i0.wp.com\/www.rangakrish.com\/wp-content\/uploads\/2019\/03\/IMG_0644.jpg?resize=1024%2C768&amp;ssl=1 1024w, https:\/\/i0.wp.com\/www.rangakrish.com\/wp-content\/uploads\/2019\/03\/IMG_0644.jpg?resize=300%2C225&amp;ssl=1 300w, https:\/\/i0.wp.com\/www.rangakrish.com\/wp-content\/uploads\/2019\/03\/IMG_0644.jpg?resize=768%2C576&amp;ssl=1 768w, https:\/\/i0.wp.com\/www.rangakrish.com\/wp-content\/uploads\/2019\/03\/IMG_0644.jpg?w=1560&amp;ssl=1 1560w, https:\/\/i0.wp.com\/www.rangakrish.com\/wp-content\/uploads\/2019\/03\/IMG_0644.jpg?w=2340&amp;ssl=1 2340w\" sizes=\"(max-width: 651px) 100vw, 651px\" \/><\/a><figcaption id=\"caption-attachment-1523\" class=\"wp-caption-text\"><strong>The Image to be Converted<\/strong><\/figcaption><\/figure>\n<p>I then ran my <em><strong>Python<\/strong><\/em> program to send this image to <em><strong>Azure<\/strong><\/em> and got the converted text.<span class=\"Apple-converted-space\">\u00a0 <\/span>Here it is:<\/p>\n<figure id=\"attachment_1524\" aria-describedby=\"caption-attachment-1524\" style=\"width: 562px\" class=\"wp-caption aligncenter\"><a href=\"https:\/\/i0.wp.com\/www.rangakrish.com\/wp-content\/uploads\/2019\/03\/Converted-1.png?ssl=1\"><img data-recalc-dims=\"1\" loading=\"lazy\" decoding=\"async\" data-attachment-id=\"1524\" data-permalink=\"https:\/\/www.rangakrish.com\/index.php\/2019\/03\/28\/ocr-using-azure-computer-vision-api\/converted-1\/\" data-orig-file=\"https:\/\/www.rangakrish.com\/wp-content\/uploads\/2019\/03\/Converted-1.png\" data-orig-size=\"562,566\" data-comments-opened=\"1\" data-image-meta=\"{&quot;aperture&quot;:&quot;0&quot;,&quot;credit&quot;:&quot;&quot;,&quot;camera&quot;:&quot;&quot;,&quot;caption&quot;:&quot;&quot;,&quot;created_timestamp&quot;:&quot;0&quot;,&quot;copyright&quot;:&quot;&quot;,&quot;focal_length&quot;:&quot;0&quot;,&quot;iso&quot;:&quot;0&quot;,&quot;shutter_speed&quot;:&quot;0&quot;,&quot;title&quot;:&quot;&quot;,&quot;orientation&quot;:&quot;0&quot;}\" data-image-title=\"Converted Text\" data-image-description=\"&lt;p&gt;Converted Text&lt;\/p&gt;\n\" data-image-caption=\"&lt;p&gt;Converted Text&lt;\/p&gt;\n\" data-large-file=\"https:\/\/www.rangakrish.com\/wp-content\/uploads\/2019\/03\/Converted-1.png\" class=\"size-full wp-image-1524\" src=\"https:\/\/i0.wp.com\/www.rangakrish.com\/wp-content\/uploads\/2019\/03\/Converted-1.png?resize=562%2C566&#038;ssl=1\" alt=\"Converted Text\" width=\"562\" height=\"566\" srcset=\"https:\/\/i0.wp.com\/www.rangakrish.com\/wp-content\/uploads\/2019\/03\/Converted-1.png?w=562&amp;ssl=1 562w, https:\/\/i0.wp.com\/www.rangakrish.com\/wp-content\/uploads\/2019\/03\/Converted-1.png?resize=150%2C150&amp;ssl=1 150w, https:\/\/i0.wp.com\/www.rangakrish.com\/wp-content\/uploads\/2019\/03\/Converted-1.png?resize=298%2C300&amp;ssl=1 298w\" sizes=\"(max-width: 562px) 100vw, 562px\" \/><\/a><figcaption id=\"caption-attachment-1524\" class=\"wp-caption-text\"><strong>Converted Text<\/strong><\/figcaption><\/figure>\n<p>You can see that the conversion is nearly perfect, except for the marked area, where there is an extra character <strong>\u201ct\u201d<\/strong>. If you look carefully at the captured image, you will notice that there is some <em><strong>\u201cnoise\u201d<\/strong><\/em> due to the text on the reverse side of this page. My guess is that the extra <strong>\u201ct\u201d<\/strong> comes from the text on the reverse side. But other than that, it is perfect. I am quite pleased!<\/p>\n<p>I used the <em><strong>\u201cfree\u201d<\/strong><\/em> tier, so I am eligible for 5000 pages of <em><strong>OCR<\/strong><\/em> in a month. Pretty generous I would say!<\/p>\n<p>There is also a separate end point for handling handwritten images, but I did not explore that feature. Will try that one of these days.<\/p>\n<p>You can download my <a href=\"http:\/\/www.rangakrish.com\/downloads\/Azure-ocr.py\" target=\"_blank\" rel=\"noopener\"><em><strong>Python<\/strong> <strong>program<\/strong><\/em><\/a>\u00a0here.<\/p>\n<p>Have a nice day!<\/p>\n","protected":false},"excerpt":{"rendered":"<p>I have been getting some good feedback on Azure\u2019s Computer Vision API, in particular, the OCR functionality. Although I am not working on any project that requires this functionality at the moment, I thought it would be a good idea to check out the service &#8211; just to be \u201cfuture ready\u201d! This article is not [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"advanced_seo_description":"","jetpack_seo_html_title":"","jetpack_seo_noindex":false,"jetpack_post_was_ever_published":false,"_jetpack_newsletter_access":"","_jetpack_dont_email_post_to_subs":false,"_jetpack_newsletter_tier_id":0,"_jetpack_memberships_contains_paywalled_content":false,"_jetpack_memberships_contains_paid_content":false,"footnotes":"","jetpack_publicize_message":"","jetpack_publicize_feature_enabled":true,"jetpack_social_post_already_shared":true,"jetpack_social_options":{"image_generator_settings":{"template":"highway","default_image_id":0,"font":"","enabled":false},"version":2}},"categories":[85,17,103],"tags":[200,201,202],"class_list":["post-1517","post","type-post","status-publish","format-standard","hentry","category-image-processing","category-programming","category-python","tag-azure-computer-vision","tag-ocr","tag-optical-character-recognition"],"jetpack_publicize_connections":[],"jetpack_featured_media_url":"","jetpack_sharing_enabled":true,"jetpack_shortlink":"https:\/\/wp.me\/p9OLnF-ot","jetpack-related-posts":[{"id":495,"url":"https:\/\/www.rangakrish.com\/index.php\/2017\/04\/08\/accessing-azure-blobs-in-lisp\/","url_meta":{"origin":1517,"position":0},"title":"Accessing Azure BLOBs in Lisp","author":"admin","date":"April 8, 2017","format":false,"excerpt":"Recently I was looking for a Common Lisp library for accessing Azure services. Azure has official SDKs in many languages, but Lisp is not one of them. Quite understandable and I have no complaints. Because the services are all exposed via REST interfaces, it should not be difficult to implement\u2026","rel":"","context":"In &quot;LISP&quot;","block_context":{"text":"LISP","link":"https:\/\/www.rangakrish.com\/index.php\/category\/lisp\/"},"img":{"alt_text":"Fig.1","src":"https:\/\/i0.wp.com\/www.rangakrish.com\/wp-content\/uploads\/2017\/04\/Fig.1.png?resize=350%2C200","width":350,"height":200,"srcset":"https:\/\/i0.wp.com\/www.rangakrish.com\/wp-content\/uploads\/2017\/04\/Fig.1.png?resize=350%2C200 1x, https:\/\/i0.wp.com\/www.rangakrish.com\/wp-content\/uploads\/2017\/04\/Fig.1.png?resize=525%2C300 1.5x"},"classes":[]},{"id":506,"url":"https:\/\/www.rangakrish.com\/index.php\/2017\/04\/23\/accessing-azure-tables-in-lisp\/","url_meta":{"origin":1517,"position":1},"title":"Accessing Azure Tables in Lisp","author":"admin","date":"April 23, 2017","format":false,"excerpt":"In the previous post, we saw how to use cl-azure\u00a0to access Azure storage, in particular, BLOBs. Today we will experiment with Tables. The following operations are currently supported by the library: - Create a new table - List all the tables available - Add rows to a table - List\u2026","rel":"","context":"In &quot;LISP&quot;","block_context":{"text":"LISP","link":"https:\/\/www.rangakrish.com\/index.php\/category\/lisp\/"},"img":{"alt_text":"Create Table","src":"https:\/\/i0.wp.com\/www.rangakrish.com\/wp-content\/uploads\/2017\/04\/Fig.1-1-1024x501.png?resize=350%2C200","width":350,"height":200,"srcset":"https:\/\/i0.wp.com\/www.rangakrish.com\/wp-content\/uploads\/2017\/04\/Fig.1-1-1024x501.png?resize=350%2C200 1x, https:\/\/i0.wp.com\/www.rangakrish.com\/wp-content\/uploads\/2017\/04\/Fig.1-1-1024x501.png?resize=525%2C300 1.5x"},"classes":[]},{"id":348,"url":"https:\/\/www.rangakrish.com\/index.php\/2016\/09\/26\/computer-vision-with-mathematica\/","url_meta":{"origin":1517,"position":2},"title":"Computer Vision with Mathematica","author":"admin","date":"September 26, 2016","format":false,"excerpt":"Over the past several weeks, I have been discussing many interesting features of Mathematica. As a continuation, today, I would like to show some cool functionality in the domain of computer vision and machine learning. The function ImageIdentify[] tries to identify the object in the given image. According to the\u2026","rel":"","context":"In &quot;Machine Learning&quot;","block_context":{"text":"Machine Learning","link":"https:\/\/www.rangakrish.com\/index.php\/category\/machine-learning\/"},"img":{"alt_text":"A Truck","src":"https:\/\/i0.wp.com\/www.rangakrish.com\/wp-content\/uploads\/2016\/09\/truck-fig.png?resize=350%2C200","width":350,"height":200},"classes":[]},{"id":599,"url":"https:\/\/www.rangakrish.com\/index.php\/2017\/08\/30\/kp-astrology-rest-api\/","url_meta":{"origin":1517,"position":3},"title":"KP Astrology REST API","author":"admin","date":"August 30, 2017","format":false,"excerpt":"In today's post I want to share my experience in implementing a set of REST API calls for Astrology. The series on iLangGen will resume after this. As readers of this column probably know, I am the author of an Astrology software called KPAstro. You can read about it here.\u2026","rel":"","context":"In &quot;Astrology&quot;","block_context":{"text":"Astrology","link":"https:\/\/www.rangakrish.com\/index.php\/category\/astrology\/"},"img":{"alt_text":"Project Step 1","src":"https:\/\/i0.wp.com\/www.rangakrish.com\/wp-content\/uploads\/2017\/08\/Project-image1.png?resize=350%2C200","width":350,"height":200,"srcset":"https:\/\/i0.wp.com\/www.rangakrish.com\/wp-content\/uploads\/2017\/08\/Project-image1.png?resize=350%2C200 1x, https:\/\/i0.wp.com\/www.rangakrish.com\/wp-content\/uploads\/2017\/08\/Project-image1.png?resize=525%2C300 1.5x"},"classes":[]},{"id":3050,"url":"https:\/\/www.rangakrish.com\/index.php\/2023\/03\/16\/building-a-xojo-app-to-interact-with-openai-api\/","url_meta":{"origin":1517,"position":4},"title":"Building a Xojo App to Interact with OpenAI API","author":"admin","date":"March 16, 2023","format":false,"excerpt":"A few weeks ago I registered with OpenAI to access its services through API and created a secret Key for my use. I then decided to build a simple application to try out the \u201cChat\u201d and \u201cCompletion\u201d models. Since I have several tools at my disposal (RAD Studio, LispWorks, Allegro\u2026","rel":"","context":"In &quot;OpenAI&quot;","block_context":{"text":"OpenAI","link":"https:\/\/www.rangakrish.com\/index.php\/category\/openai\/"},"img":{"alt_text":"Initial Screen","src":"https:\/\/i0.wp.com\/www.rangakrish.com\/wp-content\/uploads\/2023\/03\/Initial-Screen-300x232.png?resize=350%2C200&ssl=1","width":350,"height":200},"classes":[]},{"id":806,"url":"https:\/\/www.rangakrish.com\/index.php\/2018\/01\/27\/rhyming-words-and-other-interesting-stuff\/","url_meta":{"origin":1517,"position":5},"title":"Rhyming Words and Other Interesting Stuff","author":"admin","date":"January 27, 2018","format":false,"excerpt":"If you are into writing poems, stories or essays, or you just have a fascination for words, I encourage you to take a look at Datamuse. Recently I was studying about the structure of various poetic forms, and in the process of browing different sites, I stumbled upon Datamuse. I\u2026","rel":"","context":"In &quot;LISP&quot;","block_context":{"text":"LISP","link":"https:\/\/www.rangakrish.com\/index.php\/category\/lisp\/"},"img":{"alt_text":"Topic Words","src":"https:\/\/i0.wp.com\/www.rangakrish.com\/wp-content\/uploads\/2018\/01\/Image1.png?resize=350%2C200","width":350,"height":200,"srcset":"https:\/\/i0.wp.com\/www.rangakrish.com\/wp-content\/uploads\/2018\/01\/Image1.png?resize=350%2C200 1x, https:\/\/i0.wp.com\/www.rangakrish.com\/wp-content\/uploads\/2018\/01\/Image1.png?resize=525%2C300 1.5x"},"classes":[]}],"_links":{"self":[{"href":"https:\/\/www.rangakrish.com\/index.php\/wp-json\/wp\/v2\/posts\/1517","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.rangakrish.com\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.rangakrish.com\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.rangakrish.com\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.rangakrish.com\/index.php\/wp-json\/wp\/v2\/comments?post=1517"}],"version-history":[{"count":0,"href":"https:\/\/www.rangakrish.com\/index.php\/wp-json\/wp\/v2\/posts\/1517\/revisions"}],"wp:attachment":[{"href":"https:\/\/www.rangakrish.com\/index.php\/wp-json\/wp\/v2\/media?parent=1517"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.rangakrish.com\/index.php\/wp-json\/wp\/v2\/categories?post=1517"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.rangakrish.com\/index.php\/wp-json\/wp\/v2\/tags?post=1517"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}