<?xml version="1.0" encoding="utf-8" standalone="yes"?><rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:content="http://purl.org/rss/1.0/modules/content/"><channel><title>Ocr on ZBrad's Blog</title><link>https://zbrad.github.io/tags/ocr/</link><description>Recent content in Ocr on ZBrad's Blog</description><generator>Hugo</generator><language>en-us</language><lastBuildDate>Mon, 29 Jun 2015 00:00:00 -0700</lastBuildDate><atom:link href="https://zbrad.github.io/tags/ocr/feed.xml" rel="self" type="application/rss+xml"/><item><title>How to use the Oxford OCR API with Powershell</title><link>https://zbrad.github.io/tools/how-to-use-oxford-ocr-api-with-powershell/</link><pubDate>Mon, 29 Jun 2015 00:00:00 -0700</pubDate><guid>https://zbrad.github.io/tools/how-to-use-oxford-ocr-api-with-powershell/</guid><description>&lt;p&gt;I recently had a need to use OCR on an existing image, and a teamate suggested using
the new &lt;a href="https://www.projectoxford.ai/doc/general/overview"&gt;Oxford APIs&lt;/a&gt;. This was a result of my afternoon
quick hack, but rolled up into a Powershell cmdlet that could be reused by others.&lt;/p&gt;
&lt;h2 id="setting-up-the-oxford-apis-for-use"&gt;Setting up the Oxford APIs for use&lt;/h2&gt;
&lt;p&gt;To quickly get up to speed, I followed the descriptions &lt;a href="https://www.projectoxford.ai/doc/general/subscription-key-mgmt"&gt;here&lt;/a&gt; which outline the steps as:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;
&lt;p&gt;Select the API you wish to use&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;I navigated to &lt;a href="https://www.projectoxford.ai/vision"&gt;Computer Vision APIs&lt;/a&gt; and selected the &amp;ldquo;Sign Up&amp;rdquo; button.&lt;/li&gt;
&lt;/ul&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;This will bring up the Azure portal, select the marketplace
&lt;img loading="lazy" src="https://zbrad.github.io/images/psoxford/select-from-marketplace.png"&gt;
you will have to option of naming your service, I chose &lt;em&gt;VisionApi&lt;/em&gt;
&lt;img loading="lazy" src="https://zbrad.github.io/images/psoxford/portal.png"&gt;
The &amp;ldquo;purchase&amp;rdquo; is free, and shows up as an Azure Marketplace offering. (Note that you may need to scroll down the listing of services in the Azure portal.&lt;/p&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;When you are presented with the &amp;ldquo;dashboard&amp;rdquo; for the marketplace, select the &amp;ldquo;Manage&amp;rdquo; option
&lt;img loading="lazy" src="https://zbrad.github.io/images/psoxford/visionapi_dashboard.png"&gt;&lt;/p&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;You will now see your subscriptions with key information hidden. Select &lt;em&gt;Show&lt;/em&gt; and copy your new &lt;strong&gt;OxfordKey&lt;/strong&gt;.
&lt;img loading="lazy" src="https://zbrad.github.io/images/psoxford/show-key.png"&gt;&lt;/p&gt;
&lt;p&gt;Now that we have the service side setup, we will use the &lt;strong&gt;Oxford.ps1&lt;/strong&gt; script from &lt;a href="https://github.com/zbrad/psoxford"&gt;psoxford&lt;/a&gt;. Easiest way to get this is to clone the repo, which will also get you our test images.&lt;/p&gt;
&lt;/li&gt;
&lt;/ul&gt;</description></item></channel></rss>