{"id":24642,"date":"2020-09-07T11:51:52","date_gmt":"2020-09-07T11:51:52","guid":{"rendered":"https:\/\/www.inogic.com\/blog\/?p=24642"},"modified":"2020-09-11T11:40:21","modified_gmt":"2020-09-11T11:40:21","slug":"how-to-use-text-recognizer-in-canvas-app","status":"publish","type":"post","link":"https:\/\/www.inogic.com\/blog\/2020\/09\/how-to-use-text-recognizer-in-canvas-app\/","title":{"rendered":"How to use Text Recognizer in Canvas App"},"content":{"rendered":"<h2><strong>Introduction:<\/strong><\/h2>\n<p style=\"text-align: justify;\">Microsoft <strong>AI builder<\/strong> comes with many amazing features and can be integrated with Power Platforms. We have seen in our <a href=\"https:\/\/www.inogic.com\/blog\/2019\/11\/how-to-add-business-card-scan-control-in-powerapps\/\" target=\"_blank\" rel=\"noopener noreferrer\">previous blog<\/a> how to use barcode scanner control in Power Apps. In today\u2019s blog, we will explore how to integrate Microsoft AI builder <strong>Text Recognizer<\/strong> in Canvas App. Here, we must have AI Builder License enabled to use <strong>Text Recognizer<\/strong> in Canvas App.<\/p>\n<p style=\"text-align: justify;\">Let\u2019s consider a scenario where a person wants to send daily notes to all the students according to the class. Now the person will open the Canvas App, upload the images in text recognizer control, select the class from the drop down and hit the \u2018Send Email\u2019 button to send the notes to all the students of the class selected from the drop down. For this, first you have to create a custom entity \u2018Student\u2019 in Dynamics 365 CRM which contains Name, Email and Class of the student as shown in the below screenshot:<\/p>\n<p><a href=\"https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2020\/09\/How-to-use-Text-Recognizer-in-Canvas-App-1.png\" target=\"_blank\" rel=\"noopener noreferrer\"><img decoding=\"async\" class=\"aligncenter wp-image-24652 size-full\" style=\"border: 1px solid #0a0a0a; padding: 1px; margin: 1px;\" src=\"https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2020\/09\/How-to-use-Text-Recognizer-in-Canvas-App-1.png\" alt=\"Text recognizer in canvas app\" width=\"467\" height=\"309\" srcset=\"https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2020\/09\/How-to-use-Text-Recognizer-in-Canvas-App-1.png 467w, https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2020\/09\/How-to-use-Text-Recognizer-in-Canvas-App-1-300x199.png 300w\" sizes=\"(max-width: 467px) 100vw, 467px\" \/><\/a><\/p>\n<p style=\"text-align: justify;\">Now to send daily notes to all the students, follow the steps given below:<\/p>\n<p style=\"text-align: justify;\">1. Create a Canvas App and click on <strong>AI Builder<\/strong> to add a <strong>Text Recognizer<\/strong> Control as shown in the below screenshot:<\/p>\n<p><a href=\"https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2020\/09\/How-to-use-Text-Recognizer-in-Canvas-App-2.png\" target=\"_blank\" rel=\"noopener noreferrer\"><img decoding=\"async\" class=\"aligncenter wp-image-24651 size-full\" style=\"border: 1px solid #0a0a0a; padding: 1px; margin: 1px;\" src=\"https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2020\/09\/How-to-use-Text-Recognizer-in-Canvas-App-2.png\" alt=\"Text recognizer in canvas app\" width=\"1346\" height=\"489\" srcset=\"https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2020\/09\/How-to-use-Text-Recognizer-in-Canvas-App-2.png 1346w, https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2020\/09\/How-to-use-Text-Recognizer-in-Canvas-App-2-300x109.png 300w, https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2020\/09\/How-to-use-Text-Recognizer-in-Canvas-App-2-768x279.png 768w, https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2020\/09\/How-to-use-Text-Recognizer-in-Canvas-App-2-1024x372.png 1024w, https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2020\/09\/How-to-use-Text-Recognizer-in-Canvas-App-2-660x240.png 660w\" sizes=\"(max-width: 1346px) 100vw, 1346px\" \/><\/a><\/p>\n<p style=\"text-align: justify;\">2. Now add a <strong>Drop Down Input <\/strong>and add the below formula in <strong>Item<\/strong> property of drop down so that the drop down will show a list of classes:<\/p>\n<p><a href=\"https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2020\/09\/How-to-use-Text-Recognizer-in-Canvas-App-3.png\" target=\"_blank\" rel=\"noopener noreferrer\"><img decoding=\"async\" class=\"aligncenter wp-image-24650 size-full\" style=\"border: 1px solid #0a0a0a; padding: 1px; margin: 1px;\" src=\"https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2020\/09\/How-to-use-Text-Recognizer-in-Canvas-App-3.png\" alt=\"Text recognizer in canvas app\" width=\"996\" height=\"404\" srcset=\"https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2020\/09\/How-to-use-Text-Recognizer-in-Canvas-App-3.png 996w, https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2020\/09\/How-to-use-Text-Recognizer-in-Canvas-App-3-300x122.png 300w, https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2020\/09\/How-to-use-Text-Recognizer-in-Canvas-App-3-768x312.png 768w, https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2020\/09\/How-to-use-Text-Recognizer-in-Canvas-App-3-660x268.png 660w\" sizes=\"(max-width: 996px) 100vw, 996px\" \/><\/a><a href=\"https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2020\/09\/How-to-use-Text-Recognizer-in-Canvas-App-4.png\" target=\"_blank\" rel=\"noopener noreferrer\"><img decoding=\"async\" class=\"aligncenter wp-image-24649 size-full\" style=\"border: 1px solid #0a0a0a; padding: 1px; margin: 1px;\" src=\"https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2020\/09\/How-to-use-Text-Recognizer-in-Canvas-App-4.png\" alt=\"Text recognizer in canvas app\" width=\"1229\" height=\"436\" srcset=\"https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2020\/09\/How-to-use-Text-Recognizer-in-Canvas-App-4.png 1229w, https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2020\/09\/How-to-use-Text-Recognizer-in-Canvas-App-4-300x106.png 300w, https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2020\/09\/How-to-use-Text-Recognizer-in-Canvas-App-4-768x272.png 768w, https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2020\/09\/How-to-use-Text-Recognizer-in-Canvas-App-4-1024x363.png 1024w, https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2020\/09\/How-to-use-Text-Recognizer-in-Canvas-App-4-660x234.png 660w\" sizes=\"(max-width: 1229px) 100vw, 1229px\" \/><\/a><\/p>\n<p style=\"text-align: justify;\">3. Now add <strong>HTML Text <\/strong>to show the text obtained from Text Recognizer so that the user can verify the text and send the email<strong>.<\/strong><\/p>\n<p><a href=\"https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2020\/09\/How-to-use-Text-Recognizer-in-Canvas-App-5.png\" target=\"_blank\" rel=\"noopener noreferrer\"><img decoding=\"async\" class=\"aligncenter wp-image-24648 size-full\" style=\"border: 1px solid #0a0a0a; padding: 1px; margin: 1px;\" src=\"https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2020\/09\/How-to-use-Text-Recognizer-in-Canvas-App-5.png\" alt=\"Text recognizer in canvas app\" width=\"743\" height=\"277\" srcset=\"https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2020\/09\/How-to-use-Text-Recognizer-in-Canvas-App-5.png 743w, https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2020\/09\/How-to-use-Text-Recognizer-in-Canvas-App-5-300x112.png 300w, https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2020\/09\/How-to-use-Text-Recognizer-in-Canvas-App-5-660x246.png 660w\" sizes=\"(max-width: 743px) 100vw, 743px\" \/><\/a><\/p>\n<p style=\"text-align: justify;\">To see the text<strong>, <\/strong>set the <strong>HTMLText <\/strong>property as shown in the below screenshot:<\/p>\n<p><strong>Formula on HTMLText Property<\/strong>: Concat(TextRecognizer.Results,Text &amp; &#8220;&lt;br&gt;&#8221;)<\/p>\n<p style=\"text-align: justify;\">In the above formula, the Concat function concatenates strings obtained from the Text Recognizer result and prints each text in the next line using the &lt;br&gt; tag of HTML.<\/p>\n<p><a href=\"https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2020\/09\/How-to-use-Text-Recognizer-in-Canvas-App-6.png\" target=\"_blank\" rel=\"noopener noreferrer\"><img decoding=\"async\" class=\"aligncenter wp-image-24647 size-full\" style=\"border: 1px solid #0a0a0a; padding: 1px; margin: 1px;\" src=\"https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2020\/09\/How-to-use-Text-Recognizer-in-Canvas-App-6.png\" alt=\"Text recognizer in canvas app\" width=\"964\" height=\"437\" srcset=\"https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2020\/09\/How-to-use-Text-Recognizer-in-Canvas-App-6.png 964w, https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2020\/09\/How-to-use-Text-Recognizer-in-Canvas-App-6-300x136.png 300w, https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2020\/09\/How-to-use-Text-Recognizer-in-Canvas-App-6-768x348.png 768w, https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2020\/09\/How-to-use-Text-Recognizer-in-Canvas-App-6-660x299.png 660w\" sizes=\"(max-width: 964px) 100vw, 964px\" \/><\/a><\/p>\n<p style=\"text-align: justify;\">4. You can add \u2018<strong>Office365Outlook<\/strong>\u2019 connector to send the email message which will contain text extracted from <strong>Text Recognizer<\/strong> control as shown in the below screenshot:<\/p>\n<p><a href=\"https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2020\/09\/How-to-use-Text-Recognizer-in-Canvas-App-7.png\" target=\"_blank\" rel=\"noopener noreferrer\"><img decoding=\"async\" class=\"aligncenter wp-image-24646 size-full\" style=\"border: 1px solid #0a0a0a; padding: 1px; margin: 1px;\" src=\"https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2020\/09\/How-to-use-Text-Recognizer-in-Canvas-App-7.png\" alt=\"Text recognizer in canvas app\" width=\"289\" height=\"200\" \/><\/a><\/p>\n<p style=\"text-align: justify;\">5. Add <strong>Student<\/strong> data source from Common Data Service in the Canvas App to send an email from the Student Data as shown in the below screenshot:<\/p>\n<p><a href=\"https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2020\/09\/How-to-use-Text-Recognizer-in-Canvas-App-8.png\" target=\"_blank\" rel=\"noopener noreferrer\"><img decoding=\"async\" class=\"aligncenter wp-image-24645 size-full\" style=\"border: 1px solid #0a0a0a; padding: 1px; margin: 1px;\" src=\"https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2020\/09\/How-to-use-Text-Recognizer-in-Canvas-App-8.png\" alt=\"Text recognizer in canvas app\" width=\"335\" height=\"290\" srcset=\"https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2020\/09\/How-to-use-Text-Recognizer-in-Canvas-App-8.png 335w, https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2020\/09\/How-to-use-Text-Recognizer-in-Canvas-App-8-300x260.png 300w\" sizes=\"(max-width: 335px) 100vw, 335px\" \/><\/a><\/p>\n<p style=\"text-align: justify;\">6. Add a \u2018<strong>Send Email<\/strong>\u2019 button and for the <strong>onSelect<\/strong> property of the button, add the below formula to filter student records depending on the class and send emails to them.<\/p>\n<p><strong>ForAll(<\/strong><\/p>\n<p><strong>\u00a0\u00a0\u00a0 Filter(<\/strong><\/p>\n<p><strong>\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 Students,<\/strong><\/p>\n<p><strong>\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 ClassDropdown.Selected.Text exactin Class<\/strong><\/p>\n<p><strong>\u00a0\u00a0\u00a0 ),<\/strong><\/p>\n<p><strong>\u00a0\u00a0\u00a0 Office365Outlook.SendEmail(<\/strong><\/p>\n<p><strong>\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 Email,<\/strong><\/p>\n<p><strong>\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 &#8220;Notes &#8211; &#8221; &amp; Today(),<\/strong><\/p>\n<p><strong>\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 TextHtmlText.HtmlText<\/strong><\/p>\n<p><strong>\u00a0\u00a0\u00a0 )<\/strong><\/p>\n<p><strong>)<\/strong><\/p>\n<p style=\"text-align: justify;\">The above formula will filter the <strong>Student<\/strong> records depending upon the <strong>Class<\/strong> selected in the dropdown and for each student record, an email is sent containing the text obtained from Text Recognizer.<\/p>\n<p><a href=\"https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2020\/09\/How-to-use-Text-Recognizer-in-Canvas-App-9.png\" target=\"_blank\" rel=\"noopener noreferrer\"><img decoding=\"async\" class=\"aligncenter wp-image-24644 size-full\" style=\"border: 1px solid #0a0a0a; padding: 1px; margin: 1px;\" src=\"https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2020\/09\/How-to-use-Text-Recognizer-in-Canvas-App-9.png\" alt=\"Text recognizer in canvas app\" width=\"768\" height=\"320\" srcset=\"https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2020\/09\/How-to-use-Text-Recognizer-in-Canvas-App-9.png 768w, https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2020\/09\/How-to-use-Text-Recognizer-in-Canvas-App-9-300x125.png 300w, https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2020\/09\/How-to-use-Text-Recognizer-in-Canvas-App-9-660x275.png 660w\" sizes=\"(max-width: 768px) 100vw, 768px\" \/><\/a><\/p>\n<p style=\"text-align: justify;\">7. Now let\u2019s run the app, upload an image in the <strong>Text Recognizer<\/strong> control and send an email to the student as shown in the below screenshot:<\/p>\n<p><a href=\"https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2020\/09\/How-to-use-Text-Recognizer-in-Canvas-App-10.png\" target=\"_blank\" rel=\"noopener noreferrer\"><img decoding=\"async\" class=\"aligncenter wp-image-24643 size-full\" style=\"border: 1px solid #0a0a0a; padding: 1px; margin: 1px;\" src=\"https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2020\/09\/How-to-use-Text-Recognizer-in-Canvas-App-10.png\" alt=\"Text recognizer in canvas app\" width=\"1030\" height=\"594\" srcset=\"https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2020\/09\/How-to-use-Text-Recognizer-in-Canvas-App-10.png 1030w, https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2020\/09\/How-to-use-Text-Recognizer-in-Canvas-App-10-300x173.png 300w, https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2020\/09\/How-to-use-Text-Recognizer-in-Canvas-App-10-768x443.png 768w, https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2020\/09\/How-to-use-Text-Recognizer-in-Canvas-App-10-1024x591.png 1024w, https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2020\/09\/How-to-use-Text-Recognizer-in-Canvas-App-10-660x381.png 660w\" sizes=\"(max-width: 1030px) 100vw, 1030px\" \/><\/a><\/p>\n<h2><strong>Conclusion: <\/strong><\/h2>\n<p style=\"text-align: justify;\">In this way, we can add\u00a0<strong>Text Recognizer<\/strong> in Canvas App to get text from images by using<strong>\u00a0Text Recognizer<\/strong> control.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Introduction: Microsoft AI builder comes with many amazing features and can be integrated with Power Platforms. We have seen in our previous blog how to use barcode scanner control in Power Apps. In today\u2019s blog, we will explore how to integrate Microsoft AI builder Text Recognizer in Canvas App. Here, we must have AI Builder\u2026 <span class=\"read-more\"><a href=\"https:\/\/www.inogic.com\/blog\/2020\/09\/how-to-use-text-recognizer-in-canvas-app\/\">Read More &raquo;<\/a><\/span><\/p>\n","protected":false},"author":13,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"om_disable_all_campaigns":false,"_monsterinsights_skip_tracking":false,"_monsterinsights_sitenote_active":false,"_monsterinsights_sitenote_note":"","_monsterinsights_sitenote_category":0,"footnotes":""},"categories":[1954],"tags":[1867,245,545],"class_list":["post-24642","post","type-post","status-publish","format-standard","hentry","category-canvas-apps","tag-canvas-app","tag-canvas-app-in-dynamics365-crm","tag-dynamics-365-crm"],"aioseo_notices":[],"_links":{"self":[{"href":"https:\/\/www.inogic.com\/blog\/wp-json\/wp\/v2\/posts\/24642","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.inogic.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.inogic.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.inogic.com\/blog\/wp-json\/wp\/v2\/users\/13"}],"replies":[{"embeddable":true,"href":"https:\/\/www.inogic.com\/blog\/wp-json\/wp\/v2\/comments?post=24642"}],"version-history":[{"count":0,"href":"https:\/\/www.inogic.com\/blog\/wp-json\/wp\/v2\/posts\/24642\/revisions"}],"wp:attachment":[{"href":"https:\/\/www.inogic.com\/blog\/wp-json\/wp\/v2\/media?parent=24642"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.inogic.com\/blog\/wp-json\/wp\/v2\/categories?post=24642"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.inogic.com\/blog\/wp-json\/wp\/v2\/tags?post=24642"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}