Chapter 13   Introducing HALCON/Python

This chapter introduces you to HALCON/Python. Chapter “Creating Applications With HALCON/Python” shows how to use it to create Python applications, chapter “HALCON/Python Interface” contains detailed information.

What is HALCON/Python?

HALCON/Python is a set of native Python language bindings for HALCON. This includes interfaces for operators, HDevEngine and interoperability for third-party libraries like NumPy.

The major design goals for HALCON/Python are simplicity and rapid prototyping.

Platform Independence

HALCON/Python is officially supported for CPython, the reference implementation of the Python programming language. We test the interface on x64-win64, x64-linux, and x64-macosx. In addition, successful experiments were performed on ARM with CPython.

Other Python implementations should work as long as they are appropriate implementations of the Python standard.

What's more, not only can you use it on all these platforms, but you can run an application created on one of them on the other ones without having to recompile it. This is possible because applications written in Python are interpreted at runtime, instead of being compiled ahead of time.

HDevEngine/Python

By using the HDevEngine/Python language bindings, you can execute HDevelop programs and procedures from a Python application. For more information, please refer to part “Using HDevEngine”.