<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">
  <channel>
    <title>Documentation – Getting started</title>
    <link>https://docs.aspose.com/ocr/python-net/getting-started/</link>
    <description>Recent content in Getting started on Documentation</description>
    <generator>Hugo -- gohugo.io</generator>
    <lastBuildDate>Wed, 19 Apr 2023 00:00:00 +0000</lastBuildDate>
    
	  <atom:link href="https://docs.aspose.com/ocr/python-net/getting-started/index.xml" rel="self" type="application/rss+xml" />
    
    
      
        
      
    
    
    <item>
      <title>Python: System requirements</title>
      <link>https://docs.aspose.com/ocr/python-net/system-requirements/</link>
      <pubDate>Wed, 13 Dec 2023 00:00:00 +0000</pubDate>
      
      <guid>https://docs.aspose.com/ocr/python-net/system-requirements/</guid>
      <description>
        
        
        &lt;p&gt;Aspose.OCR for Python via .NET works under Python version &lt;strong&gt;3.6&lt;/strong&gt; or later. The library is cross-platform - you can run your code unchanged on any of the following &lt;strong&gt;64-bit&lt;/strong&gt; operating systems:&lt;/p&gt;


&lt;div class=&#34;alert alert-info&#34; role=&#34;alert&#34;&gt;

Despite of &lt;em&gt;&amp;ldquo;via .NET&amp;rdquo;&lt;/em&gt; in the name, the library does not require .NET Runtime to be installed on the target host. All required dependencies are already built into the &lt;a href=&#34;https://docs.aspose.com/ocr/ocr/python-net/installation/&#34;&gt;distributive package&lt;/a&gt;.
&lt;/div&gt;

&lt;h2 id=&#34;microsoft-windows&#34;&gt;Microsoft Windows&lt;/h2&gt;
&lt;h3 id=&#34;desktop&#34;&gt;Desktop&lt;/h3&gt;
&lt;ul&gt;
&lt;li&gt;Microsoft Windows 11: Home, Pro, Pro Education, Pro for Workstations, Enterprise, and Education&lt;/li&gt;
&lt;li&gt;Microsoft Windows 10 version 1703: Home, Professional, Education, and Enterprise&lt;/li&gt;
&lt;li&gt;Microsoft Windows 8: Core, Professional, and Enterprise&lt;/li&gt;
&lt;li&gt;Microsoft Windows 7: Home Premium, Professional, Enterprise, Ultimate&lt;/li&gt;
&lt;/ul&gt;
&lt;h3 id=&#34;server&#34;&gt;Server&lt;/h3&gt;
&lt;ul&gt;
&lt;li&gt;Microsoft Windows Server 2022&lt;/li&gt;
&lt;li&gt;Microsoft Windows Server 2019&lt;/li&gt;
&lt;li&gt;Microsoft Windows Server 2016&lt;/li&gt;
&lt;li&gt;Microsoft Windows Server 2012&lt;/li&gt;
&lt;li&gt;Microsoft Windows Server 2008 R2 SP1&lt;/li&gt;
&lt;/ul&gt;
&lt;h2 id=&#34;macos&#34;&gt;macOS&lt;/h2&gt;
&lt;p&gt;macOS Mojave version 10.14 or later, x64&lt;/p&gt;
&lt;p&gt;MacOS ARM (Apple Silicon) platform is fully supported.&lt;/p&gt;
&lt;h2 id=&#34;linux&#34;&gt;Linux&lt;/h2&gt;
&lt;p&gt;Any Linux x64, including:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;Ubuntu&lt;/li&gt;
&lt;li&gt;OpenSUSE&lt;/li&gt;
&lt;li&gt;CentOS&lt;/li&gt;
&lt;/ul&gt;

      </description>
    </item>
    
    <item>
      <title>Python: External dependencies</title>
      <link>https://docs.aspose.com/ocr/python-net/dependencies/</link>
      <pubDate>Sat, 26 Aug 2023 00:00:00 +0000</pubDate>
      
      <guid>https://docs.aspose.com/ocr/python-net/dependencies/</guid>
      <description>
        
        
        &lt;p&gt;Aspose.OCR for Python via .NET requires the following third-party components to be installed:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;&lt;a href=&#34;https://gcc.gnu.org/&#34;&gt;&lt;strong&gt;GNU Compiler Collection (GCC)&lt;/strong&gt;&lt;/a&gt; runtime, version 6 or later.&lt;/li&gt;
&lt;li&gt;&lt;strong&gt;PyMalloc&lt;/strong&gt; memory allocator (for Python 3.6 and 3.7).&lt;/li&gt;
&lt;li&gt;&lt;strong&gt;libpython&lt;/strong&gt; shared library.&lt;/li&gt;
&lt;/ul&gt;

      </description>
    </item>
    
    <item>
      <title>Python: Installation</title>
      <link>https://docs.aspose.com/ocr/python-net/installation/</link>
      <pubDate>Thu, 30 May 2024 00:00:00 +0000</pubDate>
      
      <guid>https://docs.aspose.com/ocr/python-net/installation/</guid>
      <description>
        
        
        &lt;p&gt;Aspose.OCR for Python via .NET is distributed as a Python Wheel (whl). The package contains all the files necessary for installing and running the library.&lt;/p&gt;
&lt;h2 id=&#34;preparing-for-installation&#34;&gt;Preparing for installation&lt;/h2&gt;
&lt;ol&gt;
&lt;li&gt;
&lt;p&gt;Before you go any further, make sure you have the &lt;a href=&#34;https://docs.aspose.com/ocr/ocr/python-net/system-requirements/&#34;&gt;supported version of Python&lt;/a&gt; and that it is available from the command line. You can check this by running:





&lt;nav&gt;
  &lt;div class=&#34;book-tabs nav nav-tabs&#34; id=&#34;nav-tab&#34; role=&#34;tablist&#34;&gt;
      &lt;input type=&#34;radio&#34; class=&#34;toggle&#34; name=&#34;tabs-1&#34; id=&#34;tabs-1-1&#34; checked=&#34;checked&#34; /&gt;
      &lt;label for=&#34;tabs-1-1&#34;&gt;Windows&lt;/label&gt;
      &lt;div class=&#34;book-tabs-content markdown-inner&#34;&gt;&lt;div class=&#34;highlight&#34;&gt;&lt;pre tabindex=&#34;0&#34; class=&#34;chroma&#34;&gt;&lt;code class=&#34;language-bash&#34; data-lang=&#34;bash&#34;&gt;&lt;span class=&#34;line&#34;&gt;&lt;span class=&#34;cl&#34;&gt;py --version
&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;/div&gt;
      &lt;input type=&#34;radio&#34; class=&#34;toggle&#34; name=&#34;tabs-1&#34; id=&#34;tabs-1-2&#34;  /&gt;
      &lt;label for=&#34;tabs-1-2&#34;&gt;Unix/macOS&lt;/label&gt;
      &lt;div class=&#34;book-tabs-content markdown-inner&#34;&gt;&lt;div class=&#34;highlight&#34;&gt;&lt;pre tabindex=&#34;0&#34; class=&#34;chroma&#34;&gt;&lt;code class=&#34;language-bash&#34; data-lang=&#34;bash&#34;&gt;&lt;span class=&#34;line&#34;&gt;&lt;span class=&#34;cl&#34;&gt;python3 --version
&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;/div&gt;&lt;/div&gt;
&lt;/nav&gt;
&lt;/p&gt;
&lt;p&gt;You should get the response like &lt;code&gt;Python &amp;lt;version number&amp;gt;&lt;/code&gt;. If you do not have Python, or have an unsupported version, install the latest 3.x version from &lt;a href=&#34;https://www.python.org/&#34;&gt;python.org&lt;/a&gt;.&lt;/p&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;Check that the package installer for Python (pip) is available:&lt;/p&gt;





&lt;nav&gt;
  &lt;div class=&#34;book-tabs nav nav-tabs&#34; id=&#34;nav-tab&#34; role=&#34;tablist&#34;&gt;
      &lt;input type=&#34;radio&#34; class=&#34;toggle&#34; name=&#34;tabs-2&#34; id=&#34;tabs-2-1&#34; checked=&#34;checked&#34; /&gt;
      &lt;label for=&#34;tabs-2-1&#34;&gt;Windows&lt;/label&gt;
      &lt;div class=&#34;book-tabs-content markdown-inner&#34;&gt;&lt;div class=&#34;highlight&#34;&gt;&lt;pre tabindex=&#34;0&#34; class=&#34;chroma&#34;&gt;&lt;code class=&#34;language-bash&#34; data-lang=&#34;bash&#34;&gt;&lt;span class=&#34;line&#34;&gt;&lt;span class=&#34;cl&#34;&gt;py -m pip --version
&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;/div&gt;
      &lt;input type=&#34;radio&#34; class=&#34;toggle&#34; name=&#34;tabs-2&#34; id=&#34;tabs-2-2&#34;  /&gt;
      &lt;label for=&#34;tabs-2-2&#34;&gt;Unix/macOS&lt;/label&gt;
      &lt;div class=&#34;book-tabs-content markdown-inner&#34;&gt;&lt;div class=&#34;highlight&#34;&gt;&lt;pre tabindex=&#34;0&#34; class=&#34;chroma&#34;&gt;&lt;code class=&#34;language-bash&#34; data-lang=&#34;bash&#34;&gt;&lt;span class=&#34;line&#34;&gt;&lt;span class=&#34;cl&#34;&gt;python3 -m pip --version
&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;/div&gt;&lt;/div&gt;
&lt;/nav&gt;

&lt;p&gt;If you installed Python with an installer from &lt;a href=&#34;https://www.python.org/&#34;&gt;python.org&lt;/a&gt; or via &lt;a href=&#34;https://brew.sh/&#34;&gt;Homebrew&lt;/a&gt;, you should already have pip. If you installed Python using your OS package manager, you may have to &lt;a href=&#34;https://packaging.python.org/en/latest/guides/installing-using-linux-tools/&#34;&gt;install pip separately&lt;/a&gt;.&lt;/p&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;Update &lt;strong&gt;pip&lt;/strong&gt;, &lt;strong&gt;setuptools&lt;/strong&gt;, and &lt;strong&gt;wheel&lt;/strong&gt; to the latest versions:&lt;/p&gt;
&lt;div class=&#34;highlight&#34;&gt;&lt;pre tabindex=&#34;0&#34; class=&#34;chroma&#34;&gt;&lt;code class=&#34;language-bash&#34; data-lang=&#34;bash&#34;&gt;&lt;span class=&#34;line&#34;&gt;&lt;span class=&#34;cl&#34;&gt;pip install --upgrade pip setuptools wheel
&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;/li&gt;
&lt;/ol&gt;
&lt;h2 id=&#34;installing-the-package&#34;&gt;Installing the package&lt;/h2&gt;
&lt;p&gt;The Aspose.OCR for Python via .NET package can either be installed from &lt;a href=&#34;https://pypi.org/project/aspose-ocr-python-net/&#34;&gt;PyPi&lt;/a&gt; or downloaded from &lt;a href=&#34;https://releases.aspose.com/ocr/python-net/&#34;&gt;releases.aspose.com&lt;/a&gt;.&lt;/p&gt;
&lt;h3 id=&#34;installing-from-pypi&#34;&gt;Installing from PyPi&lt;/h3&gt;
&lt;p&gt;&lt;a href=&#34;https://packaging.python.org/en/latest/key_projects/#pip&#34;&gt;pip&lt;/a&gt; is the recommended installer. To install the package, run the following command:&lt;/p&gt;
&lt;div class=&#34;highlight&#34;&gt;&lt;pre tabindex=&#34;0&#34; class=&#34;chroma&#34;&gt;&lt;code class=&#34;language-bash&#34; data-lang=&#34;bash&#34;&gt;&lt;span class=&#34;line&#34;&gt;&lt;span class=&#34;cl&#34;&gt;pip install aspose-ocr-python-net
&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;h2 id=&#34;updating&#34;&gt;Updating&lt;/h2&gt;
&lt;p&gt;The update procedure depends on how you originally installed the Aspose.OCR for Python via .NET package.&lt;/p&gt;


&lt;div class=&#34;alert alert-primary&#34; role=&#34;alert&#34;&gt;

Refer to &lt;a href=&#34;https://docs.aspose.com/ocr/ocr/python-net/release-notes/&#34;&gt;Aspose.OCR for Python via .NET Release Notes&lt;/a&gt; to check if the update might alter the application behavior or require changes to existing code.
&lt;/div&gt;

&lt;h3 id=&#34;getting-an-update-from-pypi&#34;&gt;Getting an update from PyPi&lt;/h3&gt;
&lt;p&gt;To update the main package, run the following command:&lt;/p&gt;
&lt;div class=&#34;highlight&#34;&gt;&lt;pre tabindex=&#34;0&#34; class=&#34;chroma&#34;&gt;&lt;code class=&#34;language-bash&#34; data-lang=&#34;bash&#34;&gt;&lt;span class=&#34;line&#34;&gt;&lt;span class=&#34;cl&#34;&gt;pip install --upgrade aspose-ocr-python-net
&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;h3 id=&#34;updating-with-downloaded-file&#34;&gt;Updating with downloaded file&lt;/h3&gt;
&lt;ol&gt;
&lt;li&gt;
&lt;p&gt;Download the new version of Aspose.OCR for Python via .NET package for your platform from &lt;a href=&#34;https://releases.aspose.com/ocr/python-net/&#34;&gt;releases.aspose.com&lt;/a&gt;.&lt;/p&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;Extract the downloaded archive.&lt;/p&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;Update the downloaded package by running &lt;strong&gt;update.sh&lt;/strong&gt; or &lt;strong&gt;update.cmd&lt;/strong&gt; depending on your platform, or using pip:&lt;/p&gt;
&lt;div class=&#34;highlight&#34;&gt;&lt;pre tabindex=&#34;0&#34; class=&#34;chroma&#34;&gt;&lt;code class=&#34;language-bash&#34; data-lang=&#34;bash&#34;&gt;&lt;span class=&#34;line&#34;&gt;&lt;span class=&#34;cl&#34;&gt;pip install --upgrade aspose_ocr_python_net-&lt;span class=&#34;o&#34;&gt;{&lt;/span&gt;version and platform&lt;span class=&#34;o&#34;&gt;}&lt;/span&gt;.whl
&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;/li&gt;
&lt;/ol&gt;

      </description>
    </item>
    
    <item>
      <title>Python: Licensing</title>
      <link>https://docs.aspose.com/ocr/python-net/licensing/</link>
      <pubDate>Wed, 05 Jul 2023 00:00:00 +0000</pubDate>
      
      <guid>https://docs.aspose.com/ocr/python-net/licensing/</guid>
      <description>
        
        
        &lt;p&gt;Aspose.OCR for Python via .NET is a commercially licensed product that can be used in trial (evaluation) mode.&lt;/p&gt;
&lt;h2 id=&#34;free-trial&#34;&gt;Free trial&lt;/h2&gt;
&lt;p&gt;You can start using Aspose.OCR for Python via .NET right after the &lt;a href=&#34;https://docs.aspose.com/ocr/ocr/python-net/installation/&#34;&gt;installation&lt;/a&gt;. In trial mode (without providing a license) you can recognize texts in any supported &lt;a href=&#34;https://docs.aspose.com/ocr/ocr/python-net/recognition-languages/&#34;&gt;languages&lt;/a&gt; and save recognition results in any of the supported &lt;a href=&#34;https://docs.aspose.com/ocr/ocr/python-net/supported-file-formats/&#34;&gt;formats&lt;/a&gt;.&lt;/p&gt;
&lt;p&gt;However, the following restrictions apply:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;If the number of characters in a recognized image exceeds 300, only the first &lt;strong&gt;300&lt;/strong&gt; characters are recognized.&lt;/li&gt;
&lt;li&gt;If the number of characters in a recognized image is less than 300, the first &lt;strong&gt;60%&lt;/strong&gt; of characters are recognized.&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;Apply a license to remove the restriction.&lt;/p&gt;
&lt;h2 id=&#34;getting-a-temporary-license&#34;&gt;Getting a temporary license&lt;/h2&gt;
&lt;p&gt;A temporary license removes a limitation of the trial version for &lt;strong&gt;30 days&lt;/strong&gt;. Use it to start building a fully functional OCR application and make the final decision to &lt;a href=&#34;https://purchase.aspose.com/admin/pricing/ocr/family&#34;&gt;purchase&lt;/a&gt; Aspose.OCR for Python via .NET later.&lt;/p&gt;
&lt;p&gt;To request a temporary license, visit &lt;a href=&#34;https://purchase.aspose.com/temporary-license&#34;&gt;&amp;ldquo;Get a Temporary License&amp;rdquo;&lt;/a&gt; page.&lt;/p&gt;
&lt;h2 id=&#34;purchasing-a-license&#34;&gt;Purchasing a license&lt;/h2&gt;
&lt;p&gt;Aspose.OCR for Python via .NET is licensed either by the number of developers and locations (sites) where the products will be used (&lt;em&gt;Developer&lt;/em&gt; and &lt;em&gt;Site&lt;/em&gt; licenses).&lt;/p&gt;
&lt;p&gt;Read &lt;a href=&#34;https://purchase.aspose.com/policies/license-types&#34;&gt;License Types&lt;/a&gt; for details and &lt;a href=&#34;https://purchase.aspose.com/admin/pricing/ocr/family&#34;&gt;purchase a license&lt;/a&gt; that best suits your needs.&lt;/p&gt;
&lt;h2 id=&#34;applying-a-developer-or-site-license&#34;&gt;Applying a developer or site license&lt;/h2&gt;
&lt;p&gt;After purchasing a license or obtaining a temporary license, you will receive a file with &lt;em&gt;.lic&lt;/em&gt; extension. If needed, you can rename this file and change its extension.&lt;/p&gt;


&lt;div class=&#34;alert alert-primary&#34; role=&#34;alert&#34;&gt;

Do not modify the contents of the license file. Even an extra line break or space will invalidate the license.
&lt;/div&gt;

&lt;p&gt;The license must be applied once per application or process lifecycle before recognition starts.&lt;/p&gt;
&lt;div class=&#34;highlight&#34;&gt;&lt;pre tabindex=&#34;0&#34; class=&#34;chroma&#34;&gt;&lt;code class=&#34;language-python&#34; data-lang=&#34;python&#34;&gt;&lt;span class=&#34;line&#34;&gt;&lt;span class=&#34;cl&#34;&gt;&lt;span class=&#34;c1&#34;&gt;# Instantiate the licensing engine&lt;/span&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span class=&#34;line&#34;&gt;&lt;span class=&#34;cl&#34;&gt;&lt;span class=&#34;n&#34;&gt;license&lt;/span&gt; &lt;span class=&#34;o&#34;&gt;=&lt;/span&gt; &lt;span class=&#34;n&#34;&gt;ocr&lt;/span&gt;&lt;span class=&#34;o&#34;&gt;.&lt;/span&gt;&lt;span class=&#34;n&#34;&gt;License&lt;/span&gt;&lt;span class=&#34;p&#34;&gt;()&lt;/span&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span class=&#34;line&#34;&gt;&lt;span class=&#34;cl&#34;&gt;&lt;span class=&#34;c1&#34;&gt;# Load the license from file&lt;/span&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span class=&#34;line&#34;&gt;&lt;span class=&#34;cl&#34;&gt;&lt;span class=&#34;n&#34;&gt;license&lt;/span&gt;&lt;span class=&#34;o&#34;&gt;.&lt;/span&gt;&lt;span class=&#34;n&#34;&gt;set_license&lt;/span&gt;&lt;span class=&#34;p&#34;&gt;(&lt;/span&gt;&lt;span class=&#34;s2&#34;&gt;&amp;#34;Aspose-OCR-Python-via-NET.lic&amp;#34;&lt;/span&gt;&lt;span class=&#34;p&#34;&gt;)&lt;/span&gt;
&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;p&gt;If only the name of the license file (without path) is specified, &lt;code&gt;set_license&lt;/code&gt; method will look for the license file in the application&amp;rsquo;s working directory.&lt;/p&gt;
&lt;p&gt;Alternatively, you can store the license file in any directory on your computer and specify an absolute path in &lt;code&gt;set_license&lt;/code&gt; method.&lt;/p&gt;
&lt;h2 id=&#34;licensing-multiple-aspose-products&#34;&gt;Licensing multiple Aspose products&lt;/h2&gt;
&lt;p&gt;Even if you have a single license for all Aspose products, you still need to apply the license separately to each Aspose module you are using in your application.&lt;/p&gt;

      </description>
    </item>
    
    <item>
      <title>Python: Hello, world!</title>
      <link>https://docs.aspose.com/ocr/python-net/hello-world/</link>
      <pubDate>Wed, 19 Apr 2023 00:00:00 +0000</pubDate>
      
      <guid>https://docs.aspose.com/ocr/python-net/hello-world/</guid>
      <description>
        
        
        &lt;p&gt;In this article, you will learn how to build a bare minimum Python console application for extracting text from an image with Aspose.OCR for Python via .NET.&lt;/p&gt;


&lt;div class=&#34;alert alert-primary&#34; role=&#34;alert&#34;&gt;

We assume that you already have a basic knowledge of how to write and run Python scripts.
&lt;/div&gt;

&lt;h2 id=&#34;you-will-need&#34;&gt;You will need&lt;/h2&gt;
&lt;ul&gt;
&lt;li&gt;A &lt;a href=&#34;https://docs.aspose.com/ocr/ocr/python-net/system-requirements/&#34;&gt;compatible&lt;/a&gt; system with Python 3.6 or later installed. It is recommended to use the latest version of Python.&lt;/li&gt;
&lt;li&gt;Pip package installer.&lt;/li&gt;
&lt;li&gt;Any plain text editor.&lt;/li&gt;
&lt;li&gt;Some image containing a text. You can simply download the one from the article.&lt;/li&gt;
&lt;li&gt;&lt;strong&gt;5 minutes&lt;/strong&gt; of spare time.&lt;/li&gt;
&lt;/ul&gt;
&lt;h2 id=&#34;preparing-the-environment&#34;&gt;Preparing the environment&lt;/h2&gt;
&lt;ol&gt;
&lt;li&gt;&lt;a href=&#34;https://docs.aspose.com/ocr/ocr/python-net/installation/&#34;&gt;Install&lt;/a&gt; &lt;strong&gt;Aspose.OCR for Python via .NET&lt;/strong&gt; package using pip.&lt;/li&gt;
&lt;li&gt;Create a text file called &lt;code&gt;ocr.py&lt;/code&gt;.&lt;/li&gt;
&lt;li&gt;Save this image file to the same directory as &lt;strong&gt;ocr.py&lt;/strong&gt; under the name &lt;strong&gt;source.png&lt;/strong&gt;:&lt;br&gt;
&lt;img src=&#34;source.png&#34; alt=&#34;Source image&#34; style=&#34;box-shadow: 1px 1px 4px 2px rgba(0,0,0,0.2);margin-top:8px;&#34; /&gt;&lt;/li&gt;
&lt;/ol&gt;
&lt;h2 id=&#34;coding&#34;&gt;Coding&lt;/h2&gt;
&lt;p&gt;Open &lt;strong&gt;ocr.py&lt;/strong&gt; in whatever code or plain text editor you prefer.&lt;/p&gt;
&lt;ol&gt;
&lt;li&gt;Import &lt;strong&gt;aspose.ocr&lt;/strong&gt; module:
&lt;div class=&#34;highlight&#34;&gt;&lt;pre tabindex=&#34;0&#34; class=&#34;chroma&#34;&gt;&lt;code class=&#34;language-python&#34; data-lang=&#34;python&#34;&gt;&lt;span class=&#34;line&#34;&gt;&lt;span class=&#34;cl&#34;&gt;&lt;span class=&#34;kn&#34;&gt;import&lt;/span&gt; &lt;span class=&#34;nn&#34;&gt;aspose.ocr&lt;/span&gt; &lt;span class=&#34;k&#34;&gt;as&lt;/span&gt; &lt;span class=&#34;nn&#34;&gt;ocr&lt;/span&gt;
&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;/li&gt;
&lt;li&gt;Create an instance of Aspose.OCR API:
&lt;div class=&#34;highlight&#34;&gt;&lt;pre tabindex=&#34;0&#34; class=&#34;chroma&#34;&gt;&lt;code class=&#34;language-python&#34; data-lang=&#34;python&#34;&gt;&lt;span class=&#34;line&#34;&gt;&lt;span class=&#34;cl&#34;&gt;&lt;span class=&#34;n&#34;&gt;api&lt;/span&gt; &lt;span class=&#34;o&#34;&gt;=&lt;/span&gt; &lt;span class=&#34;n&#34;&gt;AsposeOcr&lt;/span&gt;&lt;span class=&#34;p&#34;&gt;()&lt;/span&gt;
&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;/li&gt;
&lt;li&gt;Add the image to the recognition batch:
&lt;div class=&#34;highlight&#34;&gt;&lt;pre tabindex=&#34;0&#34; class=&#34;chroma&#34;&gt;&lt;code class=&#34;language-python&#34; data-lang=&#34;python&#34;&gt;&lt;span class=&#34;line&#34;&gt;&lt;span class=&#34;cl&#34;&gt;&lt;span class=&#34;nb&#34;&gt;input&lt;/span&gt; &lt;span class=&#34;o&#34;&gt;=&lt;/span&gt; &lt;span class=&#34;n&#34;&gt;OcrInput&lt;/span&gt;&lt;span class=&#34;p&#34;&gt;(&lt;/span&gt;&lt;span class=&#34;n&#34;&gt;InputType&lt;/span&gt;&lt;span class=&#34;o&#34;&gt;.&lt;/span&gt;&lt;span class=&#34;n&#34;&gt;SINGLE_IMAGE&lt;/span&gt;&lt;span class=&#34;p&#34;&gt;)&lt;/span&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span class=&#34;line&#34;&gt;&lt;span class=&#34;cl&#34;&gt;&lt;span class=&#34;nb&#34;&gt;input&lt;/span&gt;&lt;span class=&#34;o&#34;&gt;.&lt;/span&gt;&lt;span class=&#34;n&#34;&gt;add&lt;/span&gt;&lt;span class=&#34;p&#34;&gt;(&lt;/span&gt;&lt;span class=&#34;s2&#34;&gt;&amp;#34;source.png&amp;#34;&lt;/span&gt;&lt;span class=&#34;p&#34;&gt;)&lt;/span&gt;
&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;/li&gt;
&lt;li&gt;Extract text from the image:
&lt;div class=&#34;highlight&#34;&gt;&lt;pre tabindex=&#34;0&#34; class=&#34;chroma&#34;&gt;&lt;code class=&#34;language-python&#34; data-lang=&#34;python&#34;&gt;&lt;span class=&#34;line&#34;&gt;&lt;span class=&#34;cl&#34;&gt;&lt;span class=&#34;n&#34;&gt;result&lt;/span&gt; &lt;span class=&#34;o&#34;&gt;=&lt;/span&gt; &lt;span class=&#34;n&#34;&gt;api&lt;/span&gt;&lt;span class=&#34;o&#34;&gt;.&lt;/span&gt;&lt;span class=&#34;n&#34;&gt;recognize&lt;/span&gt;&lt;span class=&#34;p&#34;&gt;(&lt;/span&gt;&lt;span class=&#34;nb&#34;&gt;input&lt;/span&gt;&lt;span class=&#34;p&#34;&gt;)&lt;/span&gt;
&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;/li&gt;
&lt;li&gt;Output the recognized text:
&lt;div class=&#34;highlight&#34;&gt;&lt;pre tabindex=&#34;0&#34; class=&#34;chroma&#34;&gt;&lt;code class=&#34;language-python&#34; data-lang=&#34;python&#34;&gt;&lt;span class=&#34;line&#34;&gt;&lt;span class=&#34;cl&#34;&gt;&lt;span class=&#34;nb&#34;&gt;print&lt;/span&gt;&lt;span class=&#34;p&#34;&gt;(&lt;/span&gt;&lt;span class=&#34;n&#34;&gt;result&lt;/span&gt;&lt;span class=&#34;p&#34;&gt;[&lt;/span&gt;&lt;span class=&#34;mi&#34;&gt;0&lt;/span&gt;&lt;span class=&#34;p&#34;&gt;]&lt;/span&gt;&lt;span class=&#34;o&#34;&gt;.&lt;/span&gt;&lt;span class=&#34;n&#34;&gt;recognition_text&lt;/span&gt;&lt;span class=&#34;p&#34;&gt;)&lt;/span&gt;
&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;/li&gt;
&lt;/ol&gt;
&lt;p&gt;Full code:&lt;/p&gt;
&lt;div class=&#34;highlight&#34;&gt;&lt;pre tabindex=&#34;0&#34; class=&#34;chroma&#34;&gt;&lt;code class=&#34;language-python&#34; data-lang=&#34;python&#34;&gt;&lt;span class=&#34;line&#34;&gt;&lt;span class=&#34;cl&#34;&gt;&lt;span class=&#34;kn&#34;&gt;import&lt;/span&gt; &lt;span class=&#34;nn&#34;&gt;aspose.ocr&lt;/span&gt; &lt;span class=&#34;k&#34;&gt;as&lt;/span&gt; &lt;span class=&#34;nn&#34;&gt;ocr&lt;/span&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span class=&#34;line&#34;&gt;&lt;span class=&#34;cl&#34;&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span class=&#34;line&#34;&gt;&lt;span class=&#34;cl&#34;&gt;&lt;span class=&#34;c1&#34;&gt;# Instantiate Aspose.OCR API&lt;/span&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span class=&#34;line&#34;&gt;&lt;span class=&#34;cl&#34;&gt;&lt;span class=&#34;n&#34;&gt;api&lt;/span&gt; &lt;span class=&#34;o&#34;&gt;=&lt;/span&gt; &lt;span class=&#34;n&#34;&gt;AsposeOcr&lt;/span&gt;&lt;span class=&#34;p&#34;&gt;()&lt;/span&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span class=&#34;line&#34;&gt;&lt;span class=&#34;cl&#34;&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span class=&#34;line&#34;&gt;&lt;span class=&#34;cl&#34;&gt;&lt;span class=&#34;c1&#34;&gt;# Add image to the recognition batch&lt;/span&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span class=&#34;line&#34;&gt;&lt;span class=&#34;cl&#34;&gt;&lt;span class=&#34;nb&#34;&gt;input&lt;/span&gt; &lt;span class=&#34;o&#34;&gt;=&lt;/span&gt; &lt;span class=&#34;n&#34;&gt;OcrInput&lt;/span&gt;&lt;span class=&#34;p&#34;&gt;(&lt;/span&gt;&lt;span class=&#34;n&#34;&gt;InputType&lt;/span&gt;&lt;span class=&#34;o&#34;&gt;.&lt;/span&gt;&lt;span class=&#34;n&#34;&gt;SINGLE_IMAGE&lt;/span&gt;&lt;span class=&#34;p&#34;&gt;)&lt;/span&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span class=&#34;line&#34;&gt;&lt;span class=&#34;cl&#34;&gt;&lt;span class=&#34;nb&#34;&gt;input&lt;/span&gt;&lt;span class=&#34;o&#34;&gt;.&lt;/span&gt;&lt;span class=&#34;n&#34;&gt;add&lt;/span&gt;&lt;span class=&#34;p&#34;&gt;(&lt;/span&gt;&lt;span class=&#34;s2&#34;&gt;&amp;#34;source.png&amp;#34;&lt;/span&gt;&lt;span class=&#34;p&#34;&gt;)&lt;/span&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span class=&#34;line&#34;&gt;&lt;span class=&#34;cl&#34;&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span class=&#34;line&#34;&gt;&lt;span class=&#34;cl&#34;&gt;&lt;span class=&#34;c1&#34;&gt;# Recognize the image&lt;/span&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span class=&#34;line&#34;&gt;&lt;span class=&#34;cl&#34;&gt;&lt;span class=&#34;n&#34;&gt;result&lt;/span&gt; &lt;span class=&#34;o&#34;&gt;=&lt;/span&gt; &lt;span class=&#34;n&#34;&gt;api&lt;/span&gt;&lt;span class=&#34;o&#34;&gt;.&lt;/span&gt;&lt;span class=&#34;n&#34;&gt;recognize&lt;/span&gt;&lt;span class=&#34;p&#34;&gt;(&lt;/span&gt;&lt;span class=&#34;nb&#34;&gt;input&lt;/span&gt;&lt;span class=&#34;p&#34;&gt;)&lt;/span&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span class=&#34;line&#34;&gt;&lt;span class=&#34;cl&#34;&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span class=&#34;line&#34;&gt;&lt;span class=&#34;cl&#34;&gt;&lt;span class=&#34;c1&#34;&gt;# Print recognition result&lt;/span&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span class=&#34;line&#34;&gt;&lt;span class=&#34;cl&#34;&gt;&lt;span class=&#34;nb&#34;&gt;print&lt;/span&gt;&lt;span class=&#34;p&#34;&gt;(&lt;/span&gt;&lt;span class=&#34;n&#34;&gt;result&lt;/span&gt;&lt;span class=&#34;p&#34;&gt;[&lt;/span&gt;&lt;span class=&#34;mi&#34;&gt;0&lt;/span&gt;&lt;span class=&#34;p&#34;&gt;]&lt;/span&gt;&lt;span class=&#34;o&#34;&gt;.&lt;/span&gt;&lt;span class=&#34;n&#34;&gt;recognition_text&lt;/span&gt;&lt;span class=&#34;p&#34;&gt;)&lt;/span&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span class=&#34;line&#34;&gt;&lt;span class=&#34;cl&#34;&gt;&lt;span class=&#34;nb&#34;&gt;input&lt;/span&gt;&lt;span class=&#34;p&#34;&gt;(&lt;/span&gt;&lt;span class=&#34;s2&#34;&gt;&amp;#34;Press Enter to continue...&amp;#34;&lt;/span&gt;&lt;span class=&#34;p&#34;&gt;)&lt;/span&gt;
&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;h2 id=&#34;running&#34;&gt;Running&lt;/h2&gt;
&lt;p&gt;Run &lt;strong&gt;ocr.py&lt;/strong&gt;. You will see extracted text in the console output:&lt;/p&gt;
&lt;pre tabindex=&#34;0&#34;&gt;&lt;code&gt;Hello, World! I can read this text.
Press Enter to continue...
&lt;/code&gt;&lt;/pre&gt;

&lt;div class=&#34;alert alert-primary&#34; role=&#34;alert&#34;&gt;

If you use your own image, consider the &lt;a href=&#34;https://docs.aspose.com/ocr/ocr/net/licensing/&#34;&gt;trial restrictions&lt;/a&gt;.
&lt;/div&gt;


      </description>
    </item>
    
    <item>
      <title>Python: Get help</title>
      <link>https://docs.aspose.com/ocr/python-net/support/</link>
      <pubDate>Sat, 19 Aug 2023 00:00:00 +0000</pubDate>
      
      <guid>https://docs.aspose.com/ocr/python-net/support/</guid>
      <description>
        
        
        &lt;p&gt;Have you encountered a technical issue when implementing the OCR functionality with Aspose.OCR for Python via .NET? Do you want to ask for advice, look for examples, report a problem, or request a new feature?&lt;/p&gt;
&lt;p&gt;Aspose team is here to help:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;&lt;a href=&#34;https://blog.aspose.com/category/ocr/&#34;&gt;Blog&lt;/a&gt;&lt;br&gt;
Learn about new features in Aspose.OCR for Python via .NET, find code examples, read about advanced technical features.&lt;/li&gt;
&lt;li&gt;&lt;a href=&#34;https://forum.aspose.com/c/ocr/16&#34;&gt;Free Support Forum&lt;/a&gt;&lt;br&gt;
Ask for advice, leave feedback, and get help from Aspose professionals and the community.&lt;/li&gt;
&lt;li&gt;&lt;a href=&#34;https://helpdesk.aspose.com/&#34;&gt;Paid Support Helpdesk&lt;/a&gt;&lt;br&gt;
Do you want your problem solved with the highest priority or need a specific feature to fine-tune the API for your business needs? Reach out our Paid Support Helpdesk.&lt;/li&gt;
&lt;/ul&gt;

      </description>
    </item>
    
  </channel>
</rss>
