Installed Files
Overview
The SDK is a single self-contained library (libotcsdk.so on Linux, otcsdk-34.dll on Windows) plus the headers you include, the examples that ship as source, and the data files it reads at run time. This chapter is what the package puts on your machine and where the SDK looks for each thing afterwards. Read the data-file locations before you deploy: Data Files.
On Windows the library's file name carries the SDK's API version, otcsdk-34.dll in this release (otcsdkd-34.dll for the debug version), the way the number after libotcsdk.so does on Linux. The import library you link keeps its name, otcsdk.lib, and records the versioned file name, so a program built against this SDK asks for exactly this library, and a program built against another version does not start against it.
Public Headers
Every header the package installs is listed below. One include, optrissdk.h, reaches the complete C++ API, the rec:: and view:: layers included. optris/sdk.h reaches the facade API, and sdk.h beside it is that same facade set amalgamated into a single file for a project that would rather copy one header than add an include directory. The individual headers are listed so you can include only what you use; the set is fixed and checked on every build, so a header that arrives without a decision is named rather than silently shipped.
include/ optrissdk.h The combined header: the complete C++ API in one include, rec:: and view:: included sdk.h The generated amalgamated header: the facade C++ API in one file, Release installs only optris/ sdk.h The umbrella header: one include for the facade C++ API sdk_c.h The flat C API (C ABI version 34), used by the .NET, Python and Rust bindings sdk/ imager.h Imager: opening a camera, callbacks, pull acquisition, and its sub-interfaces imager_config.h ImagerConfig, Palette, radiation and processing configuration types device_enumerator.h EnumerateDevices(), hotplug monitoring, async enumeration device_info.h DeviceInfo, DeviceType, ConnectionType, DeviceCapabilities simulated_config.h SimulatedConfig, TestPattern exception.h SdkException hierarchy region.h, region_engine.h, region_json.h Measurement regions, their statistics and serialization measurement.h Region geometry (point, rectangle, circle, line, ellipse, polygon) alarm.h Rule, Condition, SignalId, actions, AlarmEvent roi.h Roi (deprecated in favour of region.h) radiometry.h Radiometry(): emissivity, transmissivity, ambient and their sources processing.h Processing(): pipeline settings and PipelineInfo pipeline_info.h Which pipeline (CPU or GPU) a camera runs on, and why; GetGpuInfo() palette.h Palettes, custom palettes and the palette library calibration.h Calibration directory and servers calibration_status.h Whether a camera's temperatures can be believed recorder.h, player.h Recording and playback still_source.h StillSource: reopening a saved snapshot as a measurable frame source frame_source.h FrameSource, the base of Imager, Player and StillSource motion.h Motion(): temperature-band motion zones and their events buffers.h Buffers(): registering memory the SDK writes each frame into external_buffer.h ExternalBuffer for zero-copy frame output canvas.h, canvas_control.h Where the frame sits in view space, without disturbing a measurement version.h Product, API and C ABI version api.h OTC_SDK_API export macro ... and further headers for display, optics, telemetry, reconnection and configuration I/O frame/ ThermalFrame, BgraFrame, RgbFrame, RawFrame, EnergyFrame view/ Colorization, auto-scaling, blob detection and tracking rec/ Recording controller, recorder, player, ring buffer, snapshot, video export pif/ PifController and PIF channel definitions otcsdk/ The legacy v10/v11 API, installed beside optris/ IRImager.h Legacy API facade IRImagerClient.h Legacy observer callbacks (onFrame, onConnection, onAlarm, etc.) Sdk.h Legacy SDK initialization ... Full backward-compatible header set for v10/v11 code
The legacy include is #include "otcsdk/IRImager.h", with no legacy/. The repository keeps those headers under include/legacy/otcsdk/ and adds include/legacy as an include directory while building the SDK; the install copies the otcsdk directory itself, so the legacy/ level does not exist in the package and #include "legacy/otcsdk/IRImager.h" does not compile. This listing showed the repository's layout rather than the installed one. examples/legacy/v11consumer is the compiled proof; it builds against the installed package and says "otcsdk/IRImager.h".
Examples
examples/ manifest.txt The example set as data, so a list of them is never out of step with the directories cpp/ v12 C++ examples, one directory per API area (discovery, frames, radiometry, measurement, alarms, device_control, process_interface, configuration, recording, diagnostics), plus patterns/ c/ The same areas in C, plus the original numbered tour (minimal.c, 01_enumerate.c ...) csharp/ .NET examples against Optris.Sdk; legacy/ holds the SWIG Optris.OtcSdk examples python/ The same areas in Python against optris_sdk, measurement included rust/ The same areas in Rust, built as examples of the optris-sdk crate apps/ showcase, playground, simpleView and csharp_simple_view (the last behind BUILD_DOTNET_SIMPLEVIEW), plus the fonts they share v12demo/ The demo application legacy/ v11consumer, a conformance consumer against the legacy IRImager API python3/ Examples for the legacy SWIG Python module
See Example Applications.
Data Files
The SDK uses several data files at runtime. <user> is the user data directory, <sdk> the SDK's installed data directory, <library> the directory holding the loaded SDK library itself (libotcsdk.so or otcsdk-34.dll), and "working" the process's working directory.
| File | Purpose | Location |
|---|---|---|
<serial>.xml |
Legacy device configuration | Working dir, then <user>/Configs/ |
Cali*.xml + Cali*.dat |
Calibration data | <user>/Cali/ (GetCalibrationDir()); missing files are obtained from ImagerConfig::calibration_path, the camera, or the Optris calibration servers while the camera is opened |
Formats.def |
Video format definitions | Working dir as an override; then the highest Release among <library>/, <user>/ and <sdk>/, a tie going to the earlier of those three |
Norm.xml + Norm-*.prn |
Emissivity normalization | Norm/ in the working dir, then <library>/Norm/, then <user>/Cali/Norm/, then <sdk>/norm/ |
*.csv |
Color palette files | palettes/ in <sdk>/, <library>/, the working dir and <user>/, scanned in that order with later directories overriding earlier ones; GetPaletteDirectories() lists them |
DP-<serial>.dat |
Dynamic dead pixels | <user>/DynamicDeadPixels/; optional: a missing or damaged file is ignored with a warning and the camera still opens |
*.log |
Log files | <user>/Logs/ |
<library> is for a package that ships its data beside its library, which is what the NuGet package does. Nothing else finds those files: a .NET application started from a .desktop entry, over SSH or as a systemd service does not have its own directory as the working directory, and the files are in neither <user> nor <sdk>. In the RID-less .NET layout, where the native library stays in runtimes/<rid>/native while the data is copied to the application base directory, both directories are searched.
Formats.def is chosen by Release, not only by order. The file names its own Version and Release in its header, and among <library>, <user> and <sdk> the highest Release is loaded. This is what stops a copy left behind by an older SDK or PIX Connect install (the Windows installer writes one into APPDATA%\Imager\ and the uninstaller does not remove it) from hiding the newer table the library was built beside, which made cameras added since that copy was written report no supported video format. A deliberately newer copy in <user> is still used, and the working directory remains an unconditional override, so a deliberately older table can be pinned by putting it there.
The user data directory defaults to $HOME/.config/optris/ on Linux (HOME is honoured when set) and APPDATA%\Imager\ on Windows (the roaming application data folder). The legacy API can change it with Sdk::setCustomDataDirectory(), which on Windows reads its string in the ANSI code page as version 11 did, or with Sdk::setCustomDataDirectoryUtf8(), which reads UTF-8 and so reaches a folder whose name that code page cannot hold.
Licence
This SDK is governed by the Optris End User License Agreement, together with the General Terms and Conditions of Sale that it binds you to. Both documents are in every package, so you never have to go looking for them: on Linux under /usr/share/otcsdk/licenses/optris-eula/, on Windows under licenses\optris-eula\ in the installation directory, and in the licenses/optris-eula/ folder of the NuGet package. The Python wheel carries them in its dist-info/licenses/eula/ folder and each Rust crate in its eula/ folder.
Each document is there in four forms. eula.de.md and eula.en.md render as Markdown, eula.de.txt and eula.en.txt are plain text, eula.de.pdf and eula.en.pdf are the documents as they were issued, and eula.txt holds every language in one file. general-terms.* is the same set for the General Terms. That is fourteen files, and they are byte for byte the documents as issued: every build checks each one of them, in every package, against the release they came from.
eula.properties beside them is for a program that wants to show or record which terms it is operating under. It holds ten KEY=value lines and nothing else:
| Key | What it is |
|---|---|
ACCEPTANCE_KEY |
the one value to store with a recorded acceptance and compare against later; it changes whenever either document does |
EULA_VERSION, EULA_DATE |
which End User License Agreement this is |
EULA_ACCEPTANCE_VERSION |
the EULA's part of the acceptance key |
EULA_BINDING_LANGUAGE |
which language of the EULA legally binds. It is de: the German text governs, and the English one is a translation provided for convenience (section 12 of the EULA). Read this rather than assuming, and present or record the file it names |
GENERAL_TERMS_VERSION, GENERAL_TERMS_DATE |
the same for the General Terms; the version is empty, because the General Terms are identified by their date |
GENERAL_TERMS_ACCEPTANCE_VERSION |
the General Terms' part of the acceptance key |
GENERAL_TERMS_BINDING_LANGUAGE |
which language of the General Terms legally binds, on the same footing; also de |
PACKAGE_VERSION |
the version of the legal release as a whole |
Both *_BINDING_LANGUAGE keys name a language code that appears in the file names above, so eula.<lang>.pdf and general-terms.<lang>.pdf are the documents a compliance record should point at.
German is the legally binding version; English is a translation provided for convenience. Where this chapter lists a German file before an English one, that is why.
The licenses/ folder one level up is a different thing: it holds the licence texts of the third-party components the SDK redistributes, which are obligations owed to other projects rather than the agreement between you and Optris. THIRD-PARTY-NOTICES.md in the NuGet package and the wheel indexes those.