Skip to main content

Powered by patented artificial intelligence and machine learning algorithms, LEADTOOLS is a collection of comprehensive toolkits to integrate recognition, document, medical, imaging, and multimedia technologies into desktop, server, tablet, web and mobile solutions.

Project description



Python - Version Powered by LEADTOOLS Twitter Follow YouTube Channel Subscribers

Build Better Apps with LEADTOOLS

Powered by patented artificial intelligence and machine learning algorithms, LEADTOOLS SDKs have helped developers Build Better Apps for over 30 years. LEADTOOLS comprehensive collection of toolkits offer low-code, reliable controls for developers to integrate powerful recognition, document, medical, imaging and multimedia technologies into their applications.

Where to get LEADTOOLS

LEADTOOLS requires a license file for evaluation as well as production. The recommended way to receive a license file is to download the Full Evaluation, which includes all LEADTOOLS Recognition, Document, Medical, Vector, Multimedia, and Imaging technologies for all development and target platforms. The license file included with the Full Evaluation Download unlocks all LEADTOOLS features for evaluation.

LEADTOOLS also offers a package available at the Python Package Index (PyPI).

The LEADTOOLS pip package can be installed through the command line:

pip install leadtools

Note that the LEADTOOLS SDK will still need to be downloaded from the Full Evaluation Download

Starting off with LEADTOOLS

LEADTOOLS has a multitude of tutorials available to make utilizing the SDK that much easier.

Go to the LEADTOOLS Tutorials page to find the tutorial that best fits your development needs.

Included with the Full Evaluation Download are a multitude of demos with respective source code to aid in your evaluation of the SDK. These can be found at this filepath: <INSTALL DIR>\Leadtools22\Examples

LEADTOOLS hosts a multitude of web demos which can be found at the LEADTOOLS Web Demo Applications page

Getting a LEADTOOLS SDK License

  1. Register for a LEADTOOLS Portal account by downloading the evaluation SDK.
  2. Once you've downloaded, your evaluation license will be emailed to you. Your evaluation license can also be found within the LEADTOOLS Portal

For additional details, refer to the Obtaining a License documentation.

Setting the LEADTOOLS SDK License in Python

Setting your runtime license is required to use the LEADTOOLS SDK.

  1. Place your LEADTOOLS.LIC and LEADTOOLS.LIC.KEY files at this filepath: <INSTALL DIR>\Leadtools22\Support\Common\License.
  2. Add the following to the top of your Python file:
import os
import sys

# Import LEADTOOLS Demo common modules
sys.path.append("<INSTALL DIR>/Leadtools22/Examples/Common/Python")

from DemosTools import *
from UnlockSupport import Support

# Add reference to LEADTOOLS
from leadtools import LibraryLoader
LibraryLoader.add_reference("Leadtools")
from Leadtools import RasterSupport
  1. In the DemosTools.py file found at <INSTALL DIR>/Leadtools22/Examples/Common/Python replace the get_bin() method with the following:
@staticmethod
    def get_bin():
        # try with version number first
        bin_folder = os.path.abspath(
            os.path.join(
                DemosTools.get_root(), "<INSTALL DIR>/Leadtools22/Bin{}".format(DemosTools.get_version())
            )
        )
        # then try without version number
        if not os.path.exists(bin_folder):
            bin_folder = os.path.abspath(os.path.join(DemosTools.get_root(), "INSTALL DIR/Leadtools22/Bin"))
        return DemosTools.to_unix_path(bin_folder)

Note: If the leadtools Wheel package is installed step 3 can be skipped

This can be done with the following in the command line:

pip install leadtools
  1. To set your LEADTOOLS SDK license in your python application, place the following line before calling anything else from the SDK, such as the beginning of the main() method:
Support.set_license("<INSTALL DIR>/Leadtools22/Support/Common/License")

For a more detailed guide refer to our Add Reference and Set a License - Python tutorial.

LEADTOOLS Software License Agreement (EULA)

All LEADTOOLS Python Packages are Copyright (c) 1991-2023 LEAD Technologies, Inc., ALL RIGHTS RESERVED and are subject to the LEADTOOLS Software License Agreement.

Free Technical Support

LEADTOOLS offers free live chat support to evaluating users and customers. Chat is available Monday - Friday between 8:30am-6:00pm (Eastern Time).

LEADTOOLS support can also be reached at support@leadtools.com

For any licensing related questions, please contact sales@leadtools.com

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distributions

No source distribution files available for this release.See tutorial on generating distribution archives.

Built Distributions

leadtools-22.0.0.8-py3-none-win_amd64.whl (83.5 MB view hashes)

Uploaded Python 3 Windows x86-64

leadtools-22.0.0.8-py3-none-manylinux1_x86_64.whl (56.2 MB view hashes)

Uploaded Python 3

leadtools-22.0.0.8-py3-none-macosx_11_0_arm64.whl (61.7 MB view hashes)

Uploaded Python 3 macOS 11.0+ ARM64

leadtools-22.0.0.8-py3-none-macosx_10_9_x86_64.whl (61.7 MB view hashes)

Uploaded Python 3 macOS 10.9+ x86-64

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page