Optris SDK for Python
The Python binding for the Optris thermal camera SDK: live temperature frames, measurement regions, alarms, recording and playback, for the Optris Xi and PI camera lines.
The wheel is self-contained. It carries the native SDK library, the FFmpeg libraries it uses for video, the SDK's camera format table, palettes and norm tables, and on Windows the Microsoft Visual C++ runtime. No separate SDK installation is needed.
pip install optris-sdk
import optris_sdk
with optris_sdk.Camera.simulated() as camera:
camera.start()
spot = optris_sdk.Region.spot(camera.from_pixels(80, 60))
spot.set_name("inlet")
region_id = camera.regions.add(spot)
for frame in camera.frames(30):
stats = camera.regions.stats(region_id)
if stats.valid:
print(f"{stats.mean_c:.1f} C over {stats.pixel_count} px")
That runs with no hardware. Replace Camera.simulated() with Camera.open() for the first camera attached, or Camera.open(serial="21074191") for a particular one.
Platforms
| Wheel | Runs on |
|---|---|
win_amd64 |
64-bit Windows 10 and 11 |
manylinux_2_35_x86_64 |
64-bit Intel and AMD Linux with glibc 2.35 or later: Debian 12 and 13, Ubuntu 22.04 and 24.04 |
manylinux_2_35_aarch64 |
64-bit Arm Linux with glibc 2.35 or later, the same distributions |
Python 3.9 or later. The binding is pure Python over ctypes, so one wheel serves every Python version on its platform.
On Windows there is nothing else to install.
On Linux, four libraries come from your distribution rather than from the wheel: libusb-1.0, libudev, zlib and OpenSSL 3. They stay system libraries on purpose, so that OpenSSL receives your distribution's security updates and libusb and libudev match your kernel and udev. libudev, zlib and OpenSSL are present on every supported distribution; libusb is missing from minimal systems and containers:
sudo apt-get install libusb-1.0-0
Without it, import optris_sdk stops with an error that names the missing library.
For a USB camera on Linux, install the udev rules once. The simulated camera and recordings need nothing more, but without the rules a real camera enumerates read-only and the SDK cannot open it. pip cannot install them, so they are in the package:
python3 -c "import optris_sdk, os; print(os.path.join(os.path.dirname(optris_sdk.__file__), 'udev'))"
sudo cp <that folder>/*.rules /etc/udev/rules.d/
sudo udevadm control --reload && sudo udevadm trigger
NumPy
Optional. Frame.to_numpy() needs it and Frame.samples() does not: it returns a ctypes array viewing the SDK's own memory. pip install optris-sdk[numpy] installs both.
Which library is loaded
The wheel's own library, from optris_sdk/lib/, unless OPTRIS_SDK_LIBRARY names a different file. optris_sdk.library_path says which file was loaded. If an SDK is also installed on the machine, the wheel still uses its own copy, so a program does not change behaviour when the SDK is installed or removed beside it.
The package checks at import that the library implements the C ABI version it was generated against, and refuses an older one with a message saying which file it found.
Examples and documentation
The SDK's 22 Python examples, from discovering cameras to recording and replaying, ship with the SDK installation and the documentation archive at the download page below. Each one runs against the simulated camera when started with no arguments.
- Product page: https://optris.com/software/otc-sdk/
- SDK downloads, including the documentation: https://github.com/Optris/otcsdk_downloads
Licence
Proprietary. The Optris End User License Agreement and the General Terms and Conditions of Sale it refers to are installed with the package, in German (the binding version) and English, in the licenses/eula folder of the package's .dist-info directory. The third-party notices for the libraries the wheel carries, including the LGPL v3 notice for FFmpeg, are in optris_sdk/licenses/, and the FFmpeg notice also beside the libraries in optris_sdk/lib/.
Metadata
Release files for optris-sdk 12.0.8
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Built distributions (wheels)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| optris_sdk-12.0.8-py3-none-win_amd64.whl | Python 3 | none | Windows x86-64 | Details for optris_sdk-12.0.8-py3-none-win_amd64.whl |
| optris_sdk-12.0.8-py3-none-manylinux_2_35_x86_64.whl | Python 3 | none | Linux glibc 2.35+ x86-64 | Details for optris_sdk-12.0.8-py3-none-manylinux_2_35_x86_64.whl |
| optris_sdk-12.0.8-py3-none-manylinux_2_35_aarch64.whl | Python 3 | none | Linux glibc 2.35+ ARM64 | Details for optris_sdk-12.0.8-py3-none-manylinux_2_35_aarch64.whl |
Total release size: 49.6 MB
Release files / optris_sdk-12.0.8-py3-none-win_amd64.whl
| Download URL | optris_sdk-12.0.8-py3-none-win_amd64.whl |
|---|---|
| Size | 16.2 MB |
| Tags | Python 3 Windows x86-64 |
|
SHA-256 checksum How to use checksums |
ddbb8041abc3e3b6b2d8499a78455cac875e5b59ec60952e54bcc1d31c0d279a
|
|
BLAKE2b-256 checksum How to use checksums |
628553ceafe55b5317f21bd053c21c0ec2cb84ab30136c3918e089eb1f5f3357
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/7.0.0 CPython/3.13.5
|
Release files / optris_sdk-12.0.8-py3-none-manylinux_2_35_x86_64.whl
| Download URL | optris_sdk-12.0.8-py3-none-manylinux_2_35_x86_64.whl |
|---|---|
| Size | 17.5 MB |
| Tags | Linux glibc 2.35+ x86-64 Python 3 |
|
SHA-256 checksum How to use checksums |
79ca838e6f8995ee1dc87fffba6250348a4b317a0f0974940b5de505a898a81d
|
|
BLAKE2b-256 checksum How to use checksums |
302a5759d499ca7b5eff3262762127d36be6a4d2a0ef82df2435785833cf220d
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/7.0.0 CPython/3.13.5
|
Release files / optris_sdk-12.0.8-py3-none-manylinux_2_35_aarch64.whl
| Download URL | optris_sdk-12.0.8-py3-none-manylinux_2_35_aarch64.whl |
|---|---|
| Size | 15.9 MB |
| Tags | Linux glibc 2.35+ ARM64 Python 3 |
|
SHA-256 checksum How to use checksums |
b6569cd8ced245f14e4dc947c4b3cdad994449370b42f188582a9e993820411a
|
|
BLAKE2b-256 checksum How to use checksums |
f2a79e39025f7b81e65a8dab9e2d001655fb091835aaafbbe812d56babd42720
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/7.0.0 CPython/3.13.5
|
Security for optris-sdk 12.0.8
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.