What Changed in Version 12
Who This Page Is For
This page is version 12 compared with version 11, for anyone deciding whether and how to move an application from version 11. The changelog that comes with the SDK lists what each release changed since the one before it; this page is the whole story of version 12 in one place, arranged by subject rather than by release.
Version 11 applications are unaffected by almost all of it. The classic IRImager interface is still there and still supported, and the few places where it was itself repaired are marked. Everything else describes the new interface.
If you are upgrading, read Breaking Changes first, then Removed: those two are where code stops compiling. Changed and Fixed can move a number your application already shows, and every entry that does says so in its first line. Known Limitations and Known Issues, at the end, are what is still wrong or still unproven; read them before you commit to a measurement. The Migration Guide maps the old API onto the new one call by call.
Changes that only affect how the SDK is built, tested or documented are not listed here.
Breaking Changes
These are the changes most likely to need work on your side: they change the shape of the API, or change a value your application already reports. "Removed" lists names that are gone, and "Changed" and "Fixed" hold changes of behaviour, so do not stop here. Every entry opens by saying who should read it.
Rebuilding and the library file
- On Windows, the SDK library is now called
otcsdk-34.dllinstead ofotcsdk.dll, and its debug versionotcsdkd-34.dllinstead ofotcsdkd.dll. Rebuild your programs, and copy the new file wherever you copy the library yourself. Read this if you build C or C++ programs on Windows, or if your own installer or deployment copies the SDK library. The number is the version of the connection between your program and the library, the same number that ends the library's name on Linux (libotcsdk.so.34), and it changes only in a release where programs must be rebuilt. A program built against an older release now looks forotcsdk.dll, does not find it, and does not start, instead of starting with a library it was not built for. You still linkotcsdk.lib(orotcsdkd.lib), so your Visual Studio project or CMake script does not change. The C#, Python and Rust packages and the SDK installer already use the new name. - If you write C, or you maintain your own binding over
optris/sdk_c.h, everyoptris_sdk_..._init()call now needs a second argument: the size of the struct you are initialising. Rebuild, and add it. Where you wroteoptris_sdk_camera_options_init(&options);, writec optris_sdk_camera_options options; optris_sdk_camera_options_init(&options, sizeof(options));All 83 of these functions changed the same way, and your compiler points at every one. The C#, Python and Rust packages do this for you. Each_initnow writes exactly as far as the size you pass and no further, and refuses, touching nothing, if the size cannot be honoured; before, it filled in the installed SDK's size, which could write past the end of your own struct. Rebuild everything and do not mix. A program that was not rebuilt does not start, on Linux or on Windows; if the library is copied or renamed to the old name, some_initcalls refuse with an error saying the program needs rebuilding, and others report success with the settings near the end of the struct left unset and silently ignored. The raw detector settings inside the simulated camera configuration now carry their own size too: rebuild, no code change. - If you write C++ and you record, play back or save snapshots, those calls now report a failure by throwing instead of by handing you a value to check. Rebuild everything you build against the SDK. The calls under
optris::sdk::rec(starting a recording, writing a frame, saving a snapshot, opening a recording, cutting a clip) now throwoptris::sdk::SdkExceptionlike the rest of the C++ interface, with a named exception for each kind of failure. Where you checked the returned value, writecpp try { auto recorder = rec::Recorder::Create(global); // ... } catch (const optris::sdk::SdkException &e) { std::println(stderr, "{}", e.what()); }The compiler finds every call site. You must rebuild even if you change no line: a program built against an older release does not start (on Windows it reports the missingotcsdk.dll); under the old library name it would have run and corrupted its own memory. The C, C#, Python and Rust interfaces are unaffected by this change. - If you write C++ and you use the process interface (PIF), those calls now report a failure by throwing too. Rebuild everything you build against the SDK. All fifteen fallible calls on
optris::sdk::pif::PifControllernow return their value directly and throwoptris::sdk::pif::PifException, whosecode()is the samePifErroryou used to read. Your polling loop does not need atryblock: reading an input before the first picture has brought one still answers "unknown" (digital) or "not a number" (analog), and a loop over a working interface never throws. What throws is a request that cannot be honoured: a channel the interface does not have, a value the channel cannot drive, or no interface attached. Check by hand any call whose result you discarded on purpose, such as(void)pif->WriteAnalogOutput(...): the compiler will not point at it, it now throws where it was silent, and an exception leaving a picture callback ends the process. The C, C#, Python and Rust interfaces report exactly what they did before. - The C# package
Optris.Sdkis on nuget.org (since 12.0.6).dotnet add package Optris.Sdkinstalls it from the default source, with the SDK library for 64-bit Windows and for 64-bit Linux on Intel, AMD and Arm computers inside, so a project that uses it needs no SDK installation. The copy that comes with the SDK, beside the C# examples, is still there for computers without internet access. Up to 12.0.7 the installation guide said the package was not published yet. - If you write C++, you no longer need a C++23 compiler to use the SDK. C++17 is enough for the new interface, and C++20 if you use the classic
EnumerationManager. The one interface type that needed a newer standard is now the SDK's ownoptris::sdk::Span, which accepts astd::vector,std::arrayorstd::string_viewas before. Rebuild, and almost certainly change nothing. - If you write version 11 C++ and you use
EnumerationManagerto find cameras, your project has to be built as C++20 or later. This is the one place where version 11 code stops compiling. Addtarget_compile_features(your_target PRIVATE cxx_std_20)or-std=c++20; no source change. If you cannot leave C++17, the new interface covers the same ground:optris::sdk::EnumerateDevices()andoptris::sdk::StartDeviceMonitor(). - If your application is built against
libirimager(also known asirDirectSDK), there is no version 12 of it, and there will not be one. Use the flat C interface,optris/sdk_c.h: one C99 header, the base the C#, Python and Rust packages are built on, and it reaches considerably more of the camera. It is a port, not a recompile. The migration guide has a section on this under "What Was Removed". - Everything .NET now needs .NET 10. The SDK ships one NuGet package,
Optris.Sdk, with two interfaces in it: the new hand-written one (using Optris.Sdk;) and the older one that works like version 11 (using Optris.OtcSdk;). Both can be used in one application, so a large application can be moved one file at a time. Up to 12.0.6 the older interface came in a separate package,Optris.OtcSdk; see "Changed" under "Installation and packaging". - No header the SDK ships needs a third-party library any more. Read this if you use the view helpers (colour mapping, regions of interest, the statistics export or the visualization presets) from C++.
The version 12 interface was reshaped
- The version 12 camera interface has been broken up.
Imagerhad grown to 186 virtual methods doing four unrelated jobs; it is now a camera with 40, and the other jobs are reached through their own handles:
| Handle | What it holds |
|---|---|
imager->Regions() |
the measuring areas on the image |
imager->Alarms() |
the rules that watch signals, and the alarms they raise |
imager->Optics() |
the lens: operating mode, range, focus, detector heating |
imager->Radiometry() |
emissivity, where those values come from, calibration against a reference |
imager->Detector() |
how the detector is held at temperature, and when the shutter closes |
imager->Processing() |
what happens to a frame between the sensor and you, as one record |
imager->Canvas() |
where the camera's frame sits in view space |
imager->Device() |
network settings and the plant-side fail-safe |
imager->Display() |
colour bands, region overlays, direct GPU rendering |
imager->Motion() |
temperature-band motion detectors |
imager->Buffers() |
memory the SDK writes each frame into |
imager->Recorder() |
recording, pre-roll, snapshots and attachment providers |
imager->Pif() |
the process interface, unchanged |
A recording is no longer a camera: Player::Open() gives you a Player, which seeks, sets speed and loops; what a camera and a recording share is FrameSource. Configuration is a record, not a wall of setters: radiation settings (including whether a per-area emissivity affects the picture), automatic shutter calibration, frame processing, and the camera's identity and live readings are each set and read as one value. The temperature range and the operation mode stay on the camera itself, as records. The version 11 IRImager interface gained methods and lost none (85 virtual methods before, 106 now); version 11 applications are unaffected.
- Breaking, version 12 interface only: the older measuring-area model
Roiis gone from the camera, leavingRegion, the unified model that holds its own alarms.Imager::AddAlarmChannel()and itsAlarmChannelConfig,AlarmChannelStatus,AlarmInput,AlarmStateandAlarmRangeRelationtypes are gone too, along with the ROI alarm field and the recording trigger configuration. - Breaking, source-level: the new API has been renamed from
otctosdk, and its header folder renamed to match. Anyone building against the version 12 preview adjusts includes and type names once. - Breaking, source-level: the attachment callback's argument is now
rec::AttachmentRequestwith ascopefield, replacingrec::AttachmentContextand itstarget. - Breaking, C++ and version 12 only: a recording's lost-frame count is now called
GetDroppedFrameCount(), the same name a camera uses. Asking a recording or a reopened snapshot for it now answers instead of failing; to tell a recording from a camera, askIsPlayback. - If you handle recording notifications in C, your handler gains one argument and has to be rebuilt. The two functions that report what happened to a recording now also pass who ended it (see "A stopped recording now says who stopped it" under Added).
- Reading the measurements of every area at once now needs your application rebuilt against this release. The rows have grown, and the call that fills an array of them refuses rows of the older shape. Reading one area on its own is unchanged.
- The false-colour picture type is now called
BgraFrame, because that is what it has always contained. Read this if you write C++ or C and use the colorized picture. - Applying a camera's network settings now tells you which of four things happened, instead of two. This will stop your code compiling, on purpose.
- The reconnect handlers now say when it is safe to free what you gave them. Read this if you pass your own pointer to
optris_sdk_imager_set_reconnect_callbackoroptris_sdk_imager_set_reconnect_attempt_callback: getting it wrong corrupts your heap, and on Windows kills your process without a word. - Three places where the SDK could quietly overwrite your program's memory have been closed, and four functions have been renamed so you can see when you are responsible for freeing something. Read this if you call the SDK from C, or from any language that talks to it directly rather than through our .NET package. Some code will need editing to compile, deliberately.
- The "measurement trust" signal is gone.
MeasurementTrustandMeasurementTrustReason(C#),GetMeasurementTrust()andGetMeasurementTrustReason()(C++), the two matching C calls and theMeasurementTrusttype are removed; code that names them no longer builds. Use the flag every picture already carries,IsThermalDataReliablein C# andthermal_data_reliablein C and C++: it is false for the whole recalibration a range or mode change starts (about 30 seconds) and true when the readings are right. The signal existed because a range change used to leave every reading about 18 degrees low until the camera was reopened; that is fixed. - The ready-made FAT32 recording size has been removed. Set your own size instead.
kFat32SegmentBytes,Fat32SegmentBytes,FAT32_SEGMENT_BYTESandOPTRIS_SDK_FAT32_SEGMENT_BYTESare gone. Pass any size tomax_segment_bytes(MaxSegmentBytesin C#):4290772992is the old value, but the largest file your storage can hold is better. Leave a little room if you attach files to a finished recording afterwards.
Recordings and files
- Every part of a split recording is now named
_part000,_part001,_part002, and nothing is written under the name you passed. Ask for a split recording atrun.mkvand you getrun_part000.mkvonwards, with norun.mkv. A recording that is one whole file is unchanged. This can break a working application silently: take the path from the recording notification, which carries the real name of each part, or open the recording as a series. Each part'sotc-meta.jsonhas aseriesblock naming the recording and the part. One exception: on removable media that cannot hold a file above 4 GB the SDK rolls over unasked, and those parts are namedrun.mkv,run_part001.mkvonwards with noseriesblock. - A recording now records whether the camera actually measured its shutter and housing temperatures, and alarms on those two no longer fire on a camera that never reported them. Cameras that cannot report these used to report 0 °C on every frame. A rule watching them now reports that it has no reading, and if you display them, check the "is this a reading" flag beside each one. Older recordings read as before.
- A recording now opens to a readable picture in any player. Its tracks are in a new order, and one command that used to be safe now needs an extra word. Read this if you open recordings outside our software, or repackage them with a tool of your own.
- Saved snapshots are a new format and older tools will not understand them. The pixel values follow the new absolute-zero scale, so anything that hardcoded the old conversion reads a new file as wildly wrong temperatures instead of failing visibly.
These change a number, or the meaning of one
Read these even if your code compiles unchanged.
- "High precision" now reads back as on, where it used to read as off. Read this if your program shows or stores that switch. It is on by default, as in version 11 and as the SDK has in fact always done; it simply could not be read before. A settings file saved before this upgrade and loaded after it switches high precision off, because it recorded the old answer.
- A measuring area's average temperature is no longer rounded down. Read this if your program shows or logs an area's average. Averages read up to 0.09 °C higher than before, and only on cameras processed by the processor rather than the graphics card. Minimum and maximum were never affected.
- The noise filter now means the same thing on every camera, and the number you pass has changed. Read this if your program sets a noise filter; it affects measured temperatures. - There is one published list, and one number means one filter on every camera:
NoiseFilterModein .NET,optris_sdk_filter_modein C,NoiseFilterin C++. - The numbers are not the old numbers. If your program passes a number rather than a name, it selects a different filter after this upgrade; use the named values. In .NET and C++ the compiler now stops you passing a bare number. - Detail enhancement is no longer in the filter list; use the detail-enhancement setting. - A filter your camera cannot run is refused, not swapped for another; all seventeen now work on every camera. - The strength now works on every camera and means the same on both engines: 1.0 is normal, 2.0 twice as aggressive, 0.5 half; the default is now 1.0, where 0 previously ran a filter at no strength. Temporal smoothing can now be switched on on larger cameras. - Detail enhancement no longer changes the temperatures the SDK reports. If you have used it, your readings from earlier versions were affected. In every earlier version it was applied to the temperature data before the temperature was worked out, so scene statistics, measuring areas, buffers, snapshots and recordings all came from the enhanced picture, with the largest errors at edges and small hot spots. Anything measured with it off, the default, is unaffected; recordings made with it on hold the affected values permanently, so re-measure where you can. It now runs during colorization, after everything that reports a number, on both pipelines.
- Breaking: measuring-area coordinates changed meaning on the vertical axis. Region coordinates are still relative to the image, but both axes are now divided by the image width, where the old ROI type divided the vertical axis by the height.
- The guided filter and the edge detector produce a different picture on cameras that use the graphics card. If you select either, the image and the numbers taken through it change: the guided filter did nothing before and now smooths; the edge detector now reports kelvin, identical to the processor engine pixel for pixel.
- These also change measured values: - a measurement area's own emissivity now reaches the temperatures it reports (the old values were wrong); - cameras in a partial-height "flex" mode now measure the right temperatures; - a line measurement now measures the pixels it crosses on every camera, which on smaller cameras changes it from nothing to something; - a spot measurement that did not get enough pixels now reports no temperature at all, instead of a plausible one; - a hot or cold spot with a size now tracks the hottest area of that size, not the hottest single pixel in it (worth knowing if you come from PIX Connect); - point measurements with a sampling window read differently from a single-pixel point, by design; a one-pixel point is unchanged.
- Timing is now set in time, not in pictures. - The damping is now measured in seconds, so the same setting means the same thing on every camera and in a saved layout. - Alarm delays are now set in time, not in frames. This changes the timing of alarm rules you already have. - Every frame now tells you when it was taken; the timestamp used to be always zero. - A short duration no longer means the opposite of a short duration in .NET and Python: a recording of half a millisecond used to record forever, and a short timeout used whatever the machine had saved instead. Read this if you calculate a duration rather than typing it in.
Removed
- Six older ways of asking for something now have one way each. Each had a replacement already; nothing became unavailable and no reading changed. None of these names was ever in a released package, so no shipped application is affected.
| if you call | call this instead |
|---|---|
C: optris_sdk_imager_enable_pre_roll(camera, seconds) |
optris_sdk_imager_enable_pre_roll_ms(camera, milliseconds) |
C: optris_sdk_imager_get_pre_roll(camera, ...) |
optris_sdk_pre_roll_state_init() then optris_sdk_imager_get_pre_roll_state() |
C: optris_sdk_imager_set_connection_callback() |
optris_sdk_imager_set_connection_status_callback() |
C: optris_sdk_imager_set_emissivity_affects_image() |
the emissivity_affects_image field of the radiation settings |
C: optris_sdk_imager_perform_nuc(), C++: Detector().PerformNuc() |
optris_sdk_imager_trigger_shutter(), Detector().TriggerShutter() |
Python: enable_pre_roll_whole_seconds, pre_roll_scalars, on_connection, set_emissivity_affects_image, detector.perform_nuc |
enable_pre_roll, pre_roll, on_connection_status, the radiometry record, detector.trigger_shutter |
C#: ThermalCamera.EmissivityAffectsImage, ThermalCamera.PerformNuc() |
the Radiation record's EmissivityAffectsImage, TriggerShutter() |
Rust: enable_pre_roll_for(duration), pre_roll(), on_connection_change, set_emissivity_affects_image, perform_nuc |
enable_pre_roll(duration), pre_roll_state(), on_connection_status, the radiation record, trigger_shutter |
Rust callers of pre-roll have one change to make: enable_pre_roll(2) becomes enable_pre_roll(Duration::from_secs(2)). A sub-second pre-roll, which the old call rounded down to zero and refused, now works.
- Removed because they never did anything (version 12 interface only). Each accepted what you gave it, reported success and was connected to nothing, or returned a fixed value: - the distance and humidity settings; - the NUC quality report; - four performance calls, among them
GetDroppedFrameCount()andGetProcessingLatency(), which returned zeros. - Four "where did this setting come from" questions are gone from the version 11 interface (C++ and the C# binding):
FieldStatus.getEmissivitySource(),getTransmissivitySource(),getAmbientTemperatureSource()and the frame-wide transmissivity source. Each could only ever give one answer. A C# program that calls one stops compiling; the value it read was a constant. Ask instead the frame's own emissivity and ambient-temperature sources, which are real and change when a process-interface signal takes over (measuring areas use the frame's values). On the version 12 interface, useRadiometry().Sources(). - One frame-rate reason code is gone:
ClampedToPipelineLimit. Nothing ever reported it. The 9 frames-per-second ceiling is reported asExportRestricted. The number 4 will not be reused. EnumerateDevicesAsync()has been removed. It never worked; list cameras on a thread of your own.- C++ only: -
ColorScaleFilter::HasValue()is gone;Value()now answers "there is no range" itself. -PifController::GetConfiguration()returns a copy instead of a reference (source-compatible). -view::AutoScaler, which was unused, is deleted. -view::FrameProcessor::IsGpuEnabled()is gone. It always answered "no"; ask the graphics-card pipeline about itself instead. - An emptyProfileDatatype is removed from the headers. - The graphics-card pipeline is always included. You still do not need a graphics card: a camera with no usable adapter runs on the processor pipeline and reports the same temperatures.
GpuInfo.CompiledWithGpunow always answers true; askAvailableinstead. - The
legacySimpleViewexample has been removed. Useexamples/apps/simpleView, which does the same job and ships with a project file. The.debno longer asks forfreeglut3-devandlibglew-dev.examples/legacy/v11consumerremains. - The showcase example no longer offers a "SBNUC" switch. It made no call into the SDK.
Added
Measurement and temperature accuracy
- The whole SDK can work in degrees Fahrenheit, with one setting (since 12.0.27):
SetTemperatureUnit()(C++),optris_sdk_set_temperature_unit()(C),Sdk.TemperatureUnit(C#),optris_sdk.set_temperature_unit()(Python) andoptris_sdk::set_temperature_unit()(Rust). From then on every temperature the SDK hands out or takes is in that unit: a frame's pixels and its coldest and hottest point, the statistics of a measuring area, alarm limits and the alarms they raise, the colour range, the camera's temperature ranges and operation modes, the ambient, shutter and housing temperatures, and the process interface channels that carry a temperature. A temperature difference, such as a hysteresis or a standard deviation, converts as a difference. A percentile a measuring area was not asked to compute is "not a number" in Fahrenheit, not a zero that would read as 32 degrees. Celsius stays the default, and files stay in Celsius whatever the unit, so a recording, a snapshot or a saved configuration is byte for byte the same. Set the unit once, before you open a camera; the version 11 interface keeps degrees Celsius. - The text the SDK draws or writes for a person can be shown in degrees Fahrenheit, with one setting per camera, recording or still (since 12.0.24):
SetDisplayTemperatureUnit()andGetDisplayTemperatureUnit()onImager,PlayerandStillSource(C++),optris_sdk_imager_set_display_temperature_unit()andoptris_sdk_imager_get_display_temperature_unit()(C),ThermalCamera.DisplayTemperatureUnit(C#),Camera.display_temperature_unit(Python) andCamera::set_display_temperature_unit()andCamera::display_temperature_unit()(Rust). It sets the unit of the reading in a measuring area's label drawn into the picture and of the sentence a JPEG snapshot starts with, so a label reads "INLET 70.3F" where it read "INLET 21.3C", converted and rounded asTemperaturesdoes. Display only: every number the SDK takes and returns is in the SDK's own unit (degrees Celsius unless the setting above switches it, since 12.0.27), recordings, PNG and TIFF snapshots and the information stored in every snapshot stay in degrees Celsius, and a CSV snapshot keeps its own unit. Until a handle's unit is set, its text follows the SDK's own unit. Left at Celsius, the default, every picture and file is what it was before. - Temperatures can be shown in degrees Fahrenheit, converted and rounded the same way by every program (since 12.0.22):
TemperatureUnitandTemperatures(C++, C#, Rust),optris_sdk_temperature_from_celsius(),optris_sdk_temperature_format()and their siblings (C), andoptris_sdk.temperatures(Python). A temperature and a temperature difference convert differently, so each has its own pair of functions, and turning a value into text rounds once, half away from zero. The SDK itself works in degrees Celsius unless it is switched with the setting above (since 12.0.27). - Reading a temperature back at a different emissivity now works on every camera, and says so when it cannot. On the processor engine it handed your number back unchanged. It now answers the same on both engines, on a recording and on a reopened still, refuses where it genuinely cannot (a PI 1M, a calibration still loading, a damaged curve), and a query says whether the camera can do it.
- You can now ask whether the temperatures you are handed already include each area's own emissivity. Getting this wrong either way is silent: correct an already corrected number and it moves twice; leave one uncorrected and you show the scene's temperature instead of the area's. The question existed only in C++; it is now in C and .NET too. It reports what happened, not the setting you asked for.
- A measuring area can carry its own emissivity, and it now changes the temperature measured inside it. A metal patch and a painted patch in the same scene report correct, different temperatures, the picture shows it too, and high-precision cameras no longer report one fixed number. Areas without their own emissivity are unaffected.
- The extended temperature range can be switched on again, as in version 11. Off by default. It shows a scene outside the calibrated range with poor precision, for aiming (a camera set to 150..900 °C otherwise shows a room-temperature scene as nothing); switch it off to measure. A range that cannot be extended now keeps its limits exactly, including the 25-degree margin at each end. Nothing marks a reading as outside the calibrated range; compare against the mode's own limits.
- High-precision temperatures can be switched on again, on by default as in version 11. The setting selects the finer of two temperature tables, which only the -20..100 °C range offers, and trades reach (it reads only to +300 °C) for fineness, not frame rate. It does not currently change the step: version 12 reports every temperature in tenths of a degree, where version 11 delivered hundredths. The finer table is offered on 4 of 76 ranges, and the finest step you can rely on in such a range is 0.027 °C (0.077 °C on the least fine of the four), not 0.01 °C.
- You can now ask whether high precision is actually giving you finer readings (
HighPrecisionStatein C#,high_precision_statein Python and Rust,GetHighPrecisionState()in C++,optris_sdk_imager_get_high_precision_state()in C): cannot tell, not offered on this range, switched off, or selected but rounded away, which is today's answer on every camera that offers the finer table. Show this reading rather than labelling the setting "finer readings". - The SDK now reports what each automatic shutter calibration measured, as it happens and as "the last one": whether a new reference was taken, thrown away or never attempted, how long the shutter was held, and how many pictures were expected, arrived, kept and turned away. A calibration starved of pictures, or one whose timing slipped and gave a flat, washed-out image, used to reach only the log. Read the share of the camera's pictures that reached your computer first: it separates a slow camera from a computer that is not keeping up.
- Size-of-source correction now works, on both pipelines, and can be switched on. A small hot object measures too cold, because radiation scatters into a halo around it; this corrects for that.
- Shutter and drift settings. Two settings stop a camera recalibrating every twelve seconds when nothing has changed; the reported shutter interval can be written back; the drift threshold can be read, and an unusable value is refused; the shutter-blade probe can be ignored when deciding a correction is due (off by default, not yet proven); a camera can leave its shutter alone during a recording, which the recording notes; and an application is told when the shutter opens and closes.
- A frame now tells you whether it is a new picture of the scene, the picture no longer stops during a shutter calibration, and you can ask what the real frame rate is.
- The SDK can now notice a pixel that fails after the camera left the factory, and repair it. Off by default.
- Ambient temperature and smoothing. You can read the ambient temperature the camera is actually measuring with, tell the camera to work it out for itself again, and ask how much temporal smoothing it is applying.
- Calibration without the internet. Calibration files can be supplied locally, so a machine that is not allowed online can open a camera, and a company-internal calibration mirror on the LAN can be named to the SDK again. You can also ask whether a camera is calibrated.
- To check for a camera with missing calibration files, read
CalibrationStatusandCalibrationDiagnosisafter opening. Such a camera opens, streams and reports wrong temperatures;CalibrationExceptioncomes only when the open fails outright. - You can ask what a distortion or size-of-source correction status means, in words, not only what it is.
Export-restricted cameras
- You can now ask whether a camera is export-restricted, and get the same answer whatever is limiting the frame rate. The restriction was named only while it held the rate back, so below 9 frames per second by your own limit the camera looked unrestricted. A yes-or-no answer is now true whenever the camera is restricted, stays true across mode changes and reconnects, and is true when the restriction could not be established. The "what is limiting the rate now" reason is unchanged.
Cameras, connections and discovery
- The focus of a motorized lens as a share of its travel, read and set in every language (since 12.0.27):
Optics().SetFocus()andOptics().GetFocus()(C++), and the reading beside the existing setter in the other languages:optris_sdk_imager_get_focus()(C),GetFocus()(C#),focus_fraction(Python) andfocus()(Rust). 0.0 is the near end of the travel and 1.0 the far end, on every lens. The calls in the motor's own units are unchanged. - An Ethernet camera you cannot reach can be given a new address by its MAC address, and network cameras in another subnet are found (since 12.0.16). Read this if you install cameras whose address does not fit the computer's network, for example one still on its factory address. A search now also finds such a camera, as long as it is on the same network segment and supports it, as the Xi 640 ETH with its current firmware does, and you can send it a new address, subnet mask and gateway without knowing the address it has. The camera answers whether it took them (now or at its next start), found them not plausible, or refuses settings sent this way, and stores nothing unless it took them:
ConfigureNetworkByBroadcast()in C++,optris_sdk_configure_network_by_broadcast()in C,Sdk.ConfigureNetworkByBroadcast()in .NET,optris_sdk.configure_network_by_broadcast()in Python andoptris_sdk::configure_network_by_broadcast()in Rust. Each language has the exampleset_address_by_broadcast. - More of what a network camera says about itself when it is found (since 12.0.16): its MAC address, whether it can be given an address by broadcast and whether it accepts that, and the address it streams to.
GetNetworkDiscoveryInfo()in C++,optris_sdk_get_network_discovery_info()in C,Sdk.GetNetworkDiscoveryInfo()in .NET,optris_sdk.get_network_discovery_info()in Python andoptris_sdk::get_network_discovery_info()in Rust. - You can ask a camera to take new network settings and hear back when it refuses them, with the reason (since 12.0.16). The same write as the existing call, answered the same way when the camera takes the settings. When it says no, you learn why (the subnet mask, the address, a stored gateway that does not fit, the stream destination and port not set together, or port 9999, which the camera keeps for itself) and which settings it kept. The Xi 640 ETH connected by USB gives these answers today.
DeviceControl::RequestNetworkConfig()in C++,optris_sdk_imager_request_network_config()in C,ThermalCamera.RequestNetworkConfiguration()in .NET,Camera.request_network_config()in Python andCamera::request_network_config()in Rust; each language has the examplenetwork_config. - The camera's own frame counter is in the C++ camera telemetry (since 12.0.16):
Telemetry::frame_counterfromGetTelemetry(), which was always zero. It counts the frames the camera produced, so a gap shows frames that did not arrive. - A live frame rate that does not fall to 0 while the shutter is closed or a recording is paused (since 12.0.10). Read this if your application shows a frame rate to a user. It counts frames only over the time the camera was looking at the scene, so it stays at the camera's rate through a shutter calibration and keeps its value while a recording is paused. It still falls when a camera stops delivering or frames are lost. The measured frame rate is unchanged beside it:
Processing().GetLiveFrameRate()andPlayer::GetLiveFrameRate()in C++,optris_sdk_imager_get_live_frame_rate()in C,ThermalCamera.LiveFrameRatein .NET,Camera.live_frame_ratein Python andCamera::live_frame_rate()in Rust. - A camera that will not open now says which of three things is wrong: another program has it (named when the system can), your own application already has it, or nothing has it and the stream would not start (seen on some USB cameras while a previous stream shuts down). Every language has a
Reasonon the failure;Unknownmeans none was recorded, not that the camera is free. Stop matching on the message text; it has already changed. - A failed stream restart during an operating-mode change is now reported as "busy, try again", with the serial number, instead of as an invalid request. If you catch a configuration error around a mode switch to mean "no such mode", handle the busy case too. Not yet confirmed on hardware.
- A camera that was opened but has never sent a picture is no longer re-opened over and over by automatic recovery (a network camera held back by a firewall prompt used to exhaust the retries). Recovery starts once a camera has delivered one picture.
- You can make a simulated camera pretend its link was lost, stalled or failed, to test your application's recovery and reconnect handling (
FaultInjectioninOptris.Sdk.Testingin C#,optris_sdk_testing_fake_connection_event()in C). It refuses a real device. - Network cameras can now be opened, also by typing an address (.NET) for one behind a router; the device watcher reports them; enumeration says where they are and searches the network only when asked; their Ethernet settings can be read and changed from C and .NET.
- Device lists say which cameras are in use, and by whom: "in use by me" is told apart from "in use by someone else".
- Opening a camera: you can name the operating mode to open in; an open can report progress to the operator (the first open fetches calibration) and be abandoned; and the stall timeout can be read and changed.
- The temperature-range picker can say what "extendable" is worth: the SDK states the extended range itself, not just that a mode is extendable.
- The fast video formats that read only part of the detector can now be aimed, for example a PI 640 at 125 Hz.
- Every camera can be given a name, and it is still there tomorrow.
- Listing connected cameras now tells you what you actually have, and hotplug detection now works. The hotplug functions were empty placeholders: nothing was ever reported.
- Two different camera models can run on one computer at the same time, including a PI and an Xi that present the same USB identity.
- Cameras that pack several images into one USB transfer are handled. A PI 1M at 1000 frames per second sends four images per transfer; they arrive as four frames with consecutive numbers.
- On Windows, cameras now stream through Media Foundation by default, and DirectShow can be asked for by name.
- The Xi 640 ETH is its own camera, on either cable, and is no longer mistaken for an Xi 640. It is found on the network, its lens can be focused from software, and the software says plainly what it cannot yet do with it.
- You can ask the SDK what it decided for a camera, and why, for a settings page, an About box or a support report.
Measuring areas and alarms
- In Python, a rule that compares its input with a second signal can be given that reference when it is built (since 12.0.28):
Rule(name, input, condition, reference=...)sets it in the same call, asset_reference()does afterwards. Leaving it out builds a rule with a fixed limit, as before. - An alarm rule can compare its input with a second value instead of with a fixed limit (since 12.0.10). Read this if you want an alarm such as "more than 15 K hotter than the housing beside it". Give the rule a reference signal and its limits become offsets from it: the rule sees the input minus the reference, and its warning level, dead band, delays, latching, suppression and actions work on that difference as before. If either value is missing the rule reports that it is orphaned, and it recovers by itself when both are back. It works on a live camera and on a recording:
RuleEngine::SetReference()in C++,optris_sdk_rule_set_reference()in C,AlarmRule.Referencein .NET,Rule.set_reference()in Python andRule::set_reference()in Rust. Existing rules are unchanged. - Measuring areas and alarms are now one system. Three unrelated ways of saying "watch this area, warn me above this temperature", and a fourth for starting recordings, are replaced by one model: a region is a measuring area (rectangle, circle, ellipse, line, polygon, curve, or any combination) and its alarms belong to it. Every alarm has a warning band, hysteresis, separate delays before arming and before dropping, and latching. Acknowledging an alarm that is still ringing does not silence it.
- An alarm can watch any value the SDK sees: a region's minimum, maximum, mean or median; the chip, housing or shutter temperature; the focus position; a PIF digital or analogue channel; or a number your application publishes.
- Alarms can suppress each other (a rule is held clear while a named inhibit source, typically a PIF input, is asserted) and can act: write a PIF output, call your code, save a still, or start and stop a recording.
- An alarm's still image and recording now take the same settings your own calls do (format, compression, temperature step, size and length limits), so an alarm recording can be split into parts; on a FAT32 stick it used to die when the file grew too large. Untouched rules write the same files as before.
- An alarm that saves a picture now says so, and names the file. Previously only a failure was reported. A picture skipped by the snapshot action's minimum spacing, or dropped because the alarm-action queue was full, is reported too, so your application can say why an activation has no picture.
- A failed alarm picture now says which alarm event it was for, and lost reports are counted. Reports are best-effort: if alarms go off faster than you take them, some are let go, which used to leave no trace. The SDK now counts pictures never taken and reports let go. C#:
ActionError.Sequence,ThermalCamera.GetActionDropCounts(); C:optris_sdk_action_error.sequence,optris_sdk_imager_get_action_drop_counts(); Python:ActionError.sequence,camera.alarms.action_drop_counts(); Rust:ActionError::sequence,Camera::action_drop_counts(). - A new alarm signal, delivery share, reports the share of the camera's frames reaching the SDK, from 0 to 1, so a computer quietly losing pictures can raise an alarm instead of looking like a slow camera. It does not alarm because you asked for fewer frames, and reports "no reading" (never 0) where it cannot measure: cameras without a frame count, just after opening, across a reconnect or range change, and on playback. The old "dropped frames" signal was never published; use this one.
- Every measuring area's statistics now say which picture they were measured on, and when it was taken; read straight after a picture arrives they could belong to the previous one. A flag tells "nothing measured yet" from picture number zero.
- A measurement area can be given its own colour, line width, marker (crosshair or circle) and label from every language, and the label is now actually drawn: the area's name and reading in live views, snapshots and exported videos. Only C++ could style areas before, and the label switch drew nothing. If your C++ application drew its own labels as a workaround, you will see both until you remove it.
- Measuring areas can be combined: union, intersection and subtraction, nested. A ring is a circle with a smaller one subtracted (
Region::Ring()). - Point measurements can average a 3x3 or 5x5 square or a small circle instead of one noisy pixel.
- Measuring areas and their alarms are saved and loaded by
Imager::SaveConfig()andLoadConfig();LoadConfig()previously did nothing at all. - More from regions and spots. A region can be a curve. A hot or cold spot can have a sampling area from any language, report which pixels it used, be confined to a temperature band, and follow the warmest point inside an area. A region can say how much of it has crossed a limit; a line's temperatures can be read one by one; percentiles can be read and can trigger an alarm or drive an output, and a spot reports a median. A ringing alarm says whether acknowledging will clear it; rules and regions read back say what they watch and do; region measurements can be created by your own code for testing; alarms and shutter changes carry the time of day.
- Motion detection within a temperature band:
SetMotionZone(id, {temp_range, sensitivity, min_area})deliversMotionEventcallbacks with blob count, velocity and area, andSetMotionAlarm(zone_id, mode, threshold)fires when blob count or total area exceeds a threshold, for example to start a recording.
Recording, playback and still images
- A video export says whether it keeps the temperatures (since 12.0.28):
VideoExporter::KeepsTemperatures(),optris_sdk_video_export_keeps_temperatures(),VideoExport.KeepsTemperatures(.NET),VideoExport.keeps_temperatures(Python) andVideoExport::keeps_temperatures()(Rust). Yes for FFV1 and for any radiometric export into a Matroska file; no for a radiometric export through a lossy codec into MP4, MOV or WebM, and for a colorized export. - Every recording states the time zone it was made in, beside its start in UTC (since 12.0.27):
Player::GetStartTimeZone()(C++),optris_sdk_imager_get_playback_time_zone()(C),ThermalCamera.PlaybackTimeZone(C#),Camera.playback_time_zone(Python) andCamera::playback_time_zone()(Rust) give the zone's name, such asEurope/Berlin, and its offset from UTC at the start. A recording made with an earlier version says its zone is not known. - A PIX Connect recording is converted in the time zone its PC was in, and the zone can be corrected afterwards (since 12.0.27): give a zone name or a fixed offset when you inspect or convert a
.ravi(InspectRaviInZone()andImportRaviInZone()in C++, the matching functions in C,RaviImportOptions.TimeZonein C#, atime_zoneargument in Python andImportOptions::time_zone()in Rust), and the converted recording has the true UTC start and states the zone.InspectRaviStartTime()and its counterparts give the start as the PC's clock showed it, andCorrectRaviStartTime()andCorrectRaviStartTimeUtc()give a converted recording the right zone or start later, also one converted with an earlier version. Zone names come from the computer's own time zone data; nothing is fetched from the internet. - A CSV snapshot can be written the way your spreadsheet reads it, and in degrees Fahrenheit (since 12.0.22):
SaveCsvSnapshot()(C++, C#),optris_sdk_imager_save_csv_snapshot()(C) andsave_csv_snapshot()(Python, Rust) takeCsvOptions: a semicolon or a tab between values, a decimal comma, an empty cell for a pixel that was not measured, with or without the lines starting with#, and the temperature unit. An interval capture takes the same options when it is started. Left at their defaults they write the file as before, apart from the unit line below. - You can ask a PIX Connect recording how many frames it says it holds, and which of its headers says so (since 12.0.19):
InspectRaviFrameCounts()(C++),optris_sdk_ravi_inspect_frame_counts()(C),Ravi.InspectFrameCounts()(.NET),ravi.inspect_frame_counts()(Python) andravi::inspect_frame_counts()(Rust) give all three counts a.ravistates, name the one the SDK uses, and count the parts a long recording is written in.otc_ravi info --jsonshows the same. - The message that a recording has stopped carries that recording's own frame counts, and every recording message a number that ties a stop to its start (since 12.0.15). Read this if your application handles recording messages on a thread of its own. When the next recording started before you read the statistics, for example because an alarm rule started one right after the last ended, they already belonged to the new recording, and a complete file was reported as holding no frames. In .NET read
RecordingEvent.StatisticsandRecordingEvent.RecordingId, in PythonRecordingEvent.statisticsandRecordingEvent.recording_id; in C++ registerRecorder::OnRecordingDetail(), in Coptris_sdk_imager_set_recording_event_callback()and in RustCamera::on_recording_event_detail(). The section "Reading a recording's figures after the next one has started" of the recording page shows each language. - PIX Connect recordings (
.ravi) can be converted into SDK recordings from your own program (since 12.0.12). Read this if your application opens recordings made with PIX Connect 3. Until now only theotc_ravicommand line program could convert them. Check a file first to see whether it will convert, then convert it, with progress and a way to cancel:rec::InspectRavi()andrec::ImportRavi()in C++,optris_sdk_ravi_inspect()andoptris_sdk_ravi_import()in C,Ravi.Inspect()andRavi.ImportAsync()in .NET,optris_sdk.ravi.inspect()andoptris_sdk.ravi.import_ravi()in Python,optris_sdk::ravi::inspect()andoptris_sdk::ravi::import()in Rust. Temperatures are worked out with PIX Connect's own method, its measuring areas become regions, and a file without temperature information or from a short-wave camera is reported as declined, separately from a real failure. A cancelled or failed conversion leaves nothing behind. Converting PIX Connect recordings shows each language. - A recording can say when it was really recorded, and a player can tell you (since 12.0.12). A recorder can be given the time the recording started (
Recorder::SetStartTime()in C++) instead of the moment the file is written, and a recording you play back says when it started:Player::GetStartTimeUs()in C++,optris_sdk_imager_get_playback_start_time_us()in C,ThermalCamera.PlaybackStartedAtin .NET,Camera.playback_started_atin Python andCamera::playback_start_time_us()in Rust. Recordings made from a camera are written as before. - A recording split into several files plays back as one recording (since 12.0.10). Read this if you record with a size or time limit for each file. Open any one of the files with
ThermalCamera.OpenRecordingSeriesin .NET,Player::OpenSeriesin C++,optris_sdk_imager_create_from_seriesin C,Camera.open_recording_seriesin Python orCamera::from_seriesin Rust, and the whole recording plays: its length, its playback time, seeking and its measuring areas and alarms run across all of its files. A missing file in the middle is refused by name. Opening a single file works as before. - A recording that reaches its limit for one file can end there and start a new recording at once (since 12.0.10). Read this if you record with a limit for each file. By default a full file still continues in the next file of the same recording. Choose the new behaviour before you start recording (
SegmentLimitActionin .NET,Recorder().SetSegmentLimitActionin C++,optris_sdk_imager_set_segment_limit_actionin C,segment_limit_actionin Python,set_segment_limit_actionin Rust), and each recording that ends this way reports the limit as the reason it stopped, a value of the stop reason that earlier versions never report. - A recording can end by itself at its size or time limit (since 12.0.28). Read this if a recording must not grow past a size or run past a time. Choose
kStopRecordingbefore you start recording (Recorder().SetSegmentLimitAction()in C++,ThermalCamera.SegmentLimitActionin .NET,optris_sdk_imager_set_segment_limit_actionin C,segment_limit_actionin Python,set_segment_limit_actionin Rust), and the recording ends at the limit you set for each file: one finished file under the name you gave, and a stop reported withkSegmentLimit. See Ending the recording at the limit. - Always-on recording: "a recording" can be a piece you cut out of the last few hours, rather than something you had to start before the interesting part.
- Several cameras can be recorded into one file, on one clock, and played back as one session, from C++, C and C#. A visual-light camera (a webcam, a borescope, a plugin) can be recorded losslessly in the same file. A camera that drops out comes back into the recording, and the recording marks that it was missing.
- When a recording ends, the SDK tells your application which of five things ended it: the application asked, it reached its duration, an alarm rule stopped it, the camera was re-opened, or a write failed. Branch on the value, not the message text, which may change.
- If a camera drops out and is re-opened, you can hold the recording open across the outage. Off by default: the recording stops, as it always has. Held open, one file holds both sides; it can look live for hours and contain minutes, and a fixed-length recording keeps counting through the outage.
- A recording that spans an outage now marks the first frame after it, readable during playback; no mark means the join there is sound.
- A recording can insist on a minimum of free disk space, alarm recordings included: below it, checked only at the start, it refuses before writing anything, saying how much was free and needed.
- Length, size and timing. A recording can have a length and stop itself, and be split by length or size; a picture can be taken every so often for a time-lapse; pre-roll can be set in fractions of a second, capped and read back; recording can be lossy if you ask, and the file says so; a frame's time can come from the camera rather than from your software; a recording's size comes with when it was measured, it counts its frames, and your program can be told when it starts, stops or fails.
- C# can use always-on recording and lossy recording, and ask whether a recording's readings are exact. All three had been announced for C# and did not work. Two missing recording notifications are named now.
- Playback. A replay can say whether it has finished, read any single frame for certain, and save a frame. The player reports frames it threw away, and
DroppedFrameCountanswers on a recording and a reopened snapshot too: if you export withAcquireFrameorTryAcquireFrame, do not report success while it is above zero, or seek to each frame instead. A paused recording updates at once when you change the emissivity, dragging its position bar no longer starts it, and a program can ask what a jump will cost and what the last one cost. - What a recording tells you about itself: its emissivity (or that it never recorded one), temperature range, lens and ambient temperature, including one that moved; whether a measuring area belongs to the recording or was drawn during review; what the areas did, and which palette and colour scale were used, frame by frame.
- A recording now says whether it recorded its measurement range. Where
HasTemperatureRange(or its equivalent) answers no, show nothing rather than the -20 to 100 °C fallback the SDK reports. - Recordings carry a preview picture and describe their format, so a file manager or media player can show them and other software can read them.
- Changing emissivity after the fact. You can change a measuring area's emissivity on a saved image or recording and get the number the camera would have given, and a still taken on the graphics card can have its emissivity changed afterwards.
- Your own files inside images and recordings. A process dump, a configuration file or another system's reading can travel inside the file. A registered provider is asked what to attach as each file opens, including files an alarm writes. Files can be added to a finished recording and read back from C, C#, Python and Rust without a camera; this rewrites the whole file (minutes on a USB stick), cannot be cancelled, should get every file in one call, and replaces the original only after the rewrite has been checked.
- Snapshots. - A saved still states which camera took it, at what settings, and how to turn a pixel into a temperature: the pixel is the temperature above absolute zero divided by a step the file states, exact at every range. - A new 32-bit floating-point TIFF opens directly as a temperature image in ImageJ/Fiji, MATLAB, GDAL and Python's
tifffile. - PNG and TIFF snapshots can be read back, reopened and measured from every language (ReadInfo,LoadThermal,LoadRawin C++). -imager->Recorder().SaveSnapshot()saves PNG, TIFF or CSV and fills in the camera's details; anything you set yourself wins. - Raw detector data can be saved unchanged, with its dark frame and calibration inside the file. - JPEG snapshots, in every language, are pictures, not measurements: the SDK refuses to read temperatures back from one. Use PNG if the file must stay measurable. - A recording can be exported as an ordinary colour video, in every language. Ask in advance which formats the system can produce at your picture size; the video can carry a picture your program composed, and per-frame times so pauses are kept.
- Python can record and replay.
- File-name placeholders mean the same thing everywhere. Read this if you use
{timestamp}or{sequence}in time-lapse or alarm file names.
The process interface
- The process interface (PIF) now works: the connector through which a camera reads set-points, drives relays and holds a watchdog line for a plant. PIF alarms now fire, and a relay shared by two alarms behaves.
- You can tell the SDK which process interface is attached, since on several cameras the firmware cannot, and put it back to "whatever the camera sees". Identity and capabilities are reported separately.
- A PIF configuration can be saved and loaded, through the same files as measuring areas, and read back from Python: the channel table, fail-safe, analog calibration and channel descriptions. Python also gained the capability questions (which interfaces this camera accepts, which analog output ranges exist), re-detecting an interface plugged in after the open, reading what an output is being driven to, and the fail-safe line's real state with time since its last edge. Rust gained the two capability questions and fail-safe health.
- More from the process interface. An analog input's raw level can be read; the external probe reports a temperature; a simulated camera can have a process interface; you can watch the shutter move under PIF control, see whether each closure produced a correction, and ask whether the shutter is under PIF control to disable your own buttons; an output remembers its statistic; an input handler can be replaced while running; each analog channel's calibration can be read per direction with its source; and an application can ask whether the emissivity or ambient temperature it shows is supplied by a PIF input, to lock that field.
Image, colour and corrections
- Your program can be told when a camera moves to the other processing pipeline (since 12.0.19). The SDK moves a camera from the graphics card to the processor by itself when the graphics card fails or does not answer in time, for example at a mode switch or a reconnect. A handler registered with
Processing().SetPipelineChangeCallback()(C++),optris_sdk_imager_set_pipeline_change_callback()(C),ThermalCamera.OnPipelineChanged()(.NET) orcamera.on_pipeline_change()(Python, Rust) is called once for each move, before the first picture from the new pipeline, with the pipeline before, the pipeline after and the reason. - This one changes the picture: the guided filter and the edge detector now do the same thing on the graphics-card engine as on the processor engine. The guided filter did nothing on the graphics card; it now smooths at the detector's own noise level and keeps edges of half a kelvin or more (its setting is not the same number on the two engines). The edge detector read tens of degrees on a flat wall; it now reports edge strength in kelvin, pixel for pixel as the processor engine.
- All seventeen noise filters run on every camera; ten used to need a graphics card. The two engines do not give identical readings for one filter (well under a millikelvin on detector noise, more at sharp edges), and strength means kelvin on one and detector counts on the other: if a filter looks too gentle on a high range, raise it. The edge detector is not a noise filter: selecting it makes everything downstream measure edges.
- Palettes: your own palette, or CSV palette files in a folder as with PIX Connect and SDK 11; palette colours readable for your own legend; palettes selectable from Python and Rust; "Arctic", inverted grayscale, Hot Metal and Medical on the graphics card (several used to fall back silently to Iron); the Sigma1 and Sigma3 slider modes, with the range in use readable.
- Selective colorization: grayscale with chosen temperature bands in colour, via
SetColorWindow(id, {min_c, max_c, palette, opacity}), several at once, optionally colouring only moving pixels (ColorWindow::motion_only). - Placing the picture. The image can be rotated and mirrored for cameras mounted upside down, and turned, zoomed and moved on a canvas without changing a measured temperature, from every language (
Canvas,Placement,CanvasMap). A measuring area says how much of itself had data. - The two picture corrections are back on by default and can be switched from your program, and the SDK says whether a correction is really applied, not only whether you asked. The damping can be set and read.
- Overlays. Region outlines, markers and blob contours are now drawn into colorized frames delivered by the frame callback on the graphics card, drawn smoothly at any magnification, and whether overlays are being drawn can be read back in every language.
- A colour image can be switched off when you do not need one, and 32-bit colour images are available again.
C, .NET, Python and Rust
- A visual camera in a recording session can be recorded with JPEG compression from C, .NET, Python and Rust (since 12.0.27), not only from C++:
optris_sdk_session_recorder_add_source_ex(),SessionSource.VisualJpegQuality,SessionSource(visual_jpeg_quality=...)andSessionSource::visual_jpeg_quality(), 2 (best) to 31 (smallest), 0 for no loss. Without it a session source is recorded without loss, as before. - In .NET, five things the other languages could already do (since 12.0.17):
PictureCorrection.Explain()for a distortion or size-of-source correction status,ThermalCamera.Open(NetworkTarget, CameraOptions)to open an Ethernet camera with options,ThermalCamera.RegisterAlarmCallback()for a rule action that calls your code,ThermalCamera.OnVideoFormatChange(), andAlarmRule.InhibitCount. - In Python,
optris_sdk.pixel_is_measured()(since 12.0.17) tells you whether a raw sample, or each sample of a NumPy array, is a measurement, so a program no longer compares samples with-32768itself. - New language surfaces. A hand-written .NET package; a plain C interface,
optris/sdk_c.h, for LabVIEW, MATLAB, Go, Delphi and others; a Python package for the version 12 SDK; and a Rust crate. Alarms, operating modes and the rest of the camera are usable from C and .NET. - Python and Rust now reach nearly everything the SDK offers, both ahead of C#, bar four temperature-conversion helpers compiled into C programs, which Python reimplements. Newly reachable include multi-camera sessions, rolling history and clips, interval stills, pre-roll, reconnection, isotherms, the colour scale, noise filter and detail enhancement, the shutter, publishing your own alarm values, buffers, overlays, build and GPU information, sensor size without a camera, SDK log capture, simulated cameras, network watching, busy reasons and fault injection.
- Rust: a motion zone's minimum blob size changed from 16 to 10, like every other language, and its overlay transparency now matches the SDK. If you relied on 16, set it explicitly.
- A frame's temperatures can be read as degrees Celsius in one call, in every language, and unmeasured pixels come back as "not a number". Wide-angle distortion correction leaves up to a sixth of the picture unmeasured, and converting such a pixel by hand gives -3376.8 °C, which drags any average. If you read whole frames in Python, Rust or .NET, a number your program shows may change:
to_numpy(),temperatures()and the .NET equivalent now give "not a number" there instead of -3376.8 (in Python,numpy.nanmean()skips them). Raw pixels are unchanged. - Python can read the camera's own temperatures:
frame.flag_temp_c,frame.box_temp_c,frame.chip_temp_c(which isNonewhen the detector could not be read, so testis not None), plusframe.min_indexandframe.max_index. - .NET can be told when the SDK fails on one of its own threads:
ThermalCamera.OnError. Useful if you notice a stopped camera by waiting for a frame. The handler runs on an SDK thread: keep it short, marshal to your UI, do not dispose the camera in it, and catch inside, since exceptions are swallowed. Registering again replaces it,OnError(null)stops it. Such an error also movesConnectionStatustoFailed. - One include gives a C++ program the whole SDK:
#include <optrissdk.h>. The older includes keep working. It costs about a tenth of a second of compile time per source file. - Frame types and pairing. C, C#, Python and Rust can choose which kinds of frame the camera produces, and colour, raw and energy frames carry the number and time of the frame they came from.
- Configuration and versions. A camera's whole configuration can be saved and restored without a file; importing says what changed and can refuse one from another camera; an application can ask the SDK's version, API version and exact build for a support ticket.
- An application can capture the SDK's log output: calibration fetches, shutter cycles, USB drops, reconnects.
- The manual now covers every language, with a chapter per package and every example in all five languages. If you bookmarked one of the fourteen
csharp-*.htmlpages, usecsharp-api.html.
Installation and packaging
- The SDK packages on PyPI, NuGet and crates.io link to the SDK documentation (since 12.0.15), https://docs.optris.com/sdks/otc-sdk/: as "Documentation" on PyPI and crates.io, as the project website on NuGet, and at the top of each package's description.
- The licence you receive the SDK under is now in every package: the End User License Agreement and the General Terms and Conditions of Sale, in German and English, as text, Markdown and PDF. German is legally binding; English is a convenience translation.
| You installed | They are in |
|---|---|
| the Debian package or the tarball | /usr/share/otcsdk/licenses/optris-eula/ |
| the Windows installer or the ZIP | licenses\optris-eula\ under the installation directory |
Optris.Sdk from NuGet |
licenses/optris-eula/ in the package |
| the Python wheel | dist-info/licenses/eula/ beside the installed package |
the optris-sdk or optris-sdk-sys Rust crate |
eula/ in the crate, and eula.txt at its root |
Beside them, eula.properties holds ten KEY=value lines (versions, dates, acceptance key, and EULA_BINDING_LANGUAGE and GENERAL_TERMS_BINDING_LANGUAGE, both de) for software that must record which terms apply.
OTC_SDK_NO_HARDWAREmakes the SDK leave every real camera alone. Searching reads no USB bus and sends nothing onto the network, opening a real camera fails saying so, and simulated cameras keep working. For build machines, automated tests and demonstration laptops on shared networks.- The Python binding can be installed with
pip install optris-sdk(since 12.0.6). There are packages for 64-bit Windows and for 64-bit Linux on Intel, AMD and Arm computers, and each one carries the SDK library, so it works in a virtual environment and on a computer where the SDK is not installed. On Linux, installlibusb-1.0-0from your distribution, and for a USB camera the udev rules once; Python with pip says how. - download.optris.com shows a SHA-256 checksum for every SDK file (since 12.0.7). Each Debian package and Windows installer of 12.0.7 and later has its checksum beside it, so you can check a download before you install it. The checksums are published only after the files on the server have been read back and found identical to what was built.
Examples and tools
- Every example that shows a temperature takes
--fahrenheit, in all five languages (since 12.0.27). It switches the SDK's unit once, before it opens a camera, and prints every reading in Fahrenheit with no conversion of its own. - The showcase has a camera dialog and a menu in sections, and simpleView focuses a motorized lens (since 12.0.27). The dialog lists the cameras on USB, searches the network in the background with N, and opens nothing until you choose a camera; Disconnect (D) returns to the list. The menu folds into sections and scrolls, also in a 640x480 window. In simpleView, PageUp and PageDown move the focus by 5 % of the travel, 1 % with Shift.
- The example viewers and two command line tools can show degrees Fahrenheit (since 12.0.24). simpleView, showcase and the C# SimpleView take
--fahrenheitand switch between Celsius and Fahrenheit with the U key; the playground switches with the U key.otc_streamandotc_snapshottake--fahrenheitfor their CSV and JSON output and name their columnsmin_f,max_fandmean_fthen; asking for Fahrenheit with raw, PNG or TIFF output is refused with a message. - Three example programs for the canvas (since 12.0.17), in C++, C, C#, Python and Rust:
rotate_and_zoomturns and zooms the picture and shows which sensor pixel a reading came from,pan_livedrags the picture while the camera streams, with one measuring spot fixed on the canvas and one that moves with the picture, andcompositeplaces the colour picture into a larger canvas yourself with aCanvasMap. Each runs against the simulated camera and stops with an error if a reading did not come from the pixel it should have. - The same twenty-two examples in C++, C, C#, Python and Rust, in the same order. Each opens a simulated camera with no arguments and takes a serial number for a real one. The
optris-sdkRust crate now contains all 26 of its examples, not 4, socargo run --example frames_minimalworks on the packaged crate. The C examples also serve LabVIEW, MATLAB, Go and Delphi, and there is a C#SimpleViewlive viewer for Windows and Linux. otc_benchmarkis back for version 12, measuring with virtual cameras: the largest picture one camera processes in real time, how many cameras, areas and alarms keep up, and the graphics pipeline. Scores differ from the version 11 tool in both directions, so compare the separate results as well.otc_raviconverts recordings made with PIX Connect (the older.raviformat) so this SDK can open them.otc_netcan set the network settings that matter.- New tools:
otc_virtualruns a non-existent camera through the real processing, andotc_rdcchecks lens distortion correction against a calibration directory without a camera, reporting in pixels how straight a synthetic target comes back. - Viewers and demonstrations: the Showcase (
examples/showcase/, with its own installerOptrisShowcase-Setup.exe) records and plays back, plots distributions, animates areas and focuses motorised lenses; OTC Studio reviews, measures and exports recordings;examples/v12demois built for visitors. - The simulated camera can be registered so it appears in the device list, have its scene and hot spot changed while running, show five realistic scenes, and show a torn, dropped or repeated frame at a glance with its frame-cycle pattern.
Changed
Measurement and temperature accuracy
- A PI 400 or PI 450 with a long time between shutter calibrations is marked as giving measurements sooner after it is switched on (since 12.0.18). The change the detector may show between two calibrations before it counts as still warming up now grows with the time between them, at the same rate as before and never more than 1 degree; it used to be a fixed 0.3 degrees, made for calibrations about 30 seconds apart. With the default settings nothing changes.
- A camera measures its drift from after an operation-mode switch, not from before it.
Export-restricted cameras
- The SDK no longer limits the Xi 640 ETH's frame rate (since 12.0.16). The camera decides its own rate, over Ethernet and over USB, and the SDK passes on every picture it sends: over Ethernet 50 a second, where the SDK used to pass on about 8, because it could not read the camera's export marking and limited it to be safe. Every other camera is decided exactly as before.
- Diagnostics from a camera restricted to 9 frames per second no longer hand out the pixels of a frame that was not allowed out, and say so rather than going quiet. C++ only; no other language can reach this call.
Cameras, connections and discovery
- Opening a camera without a serial number passes over a camera your program cannot open (since 12.0.20): one whose device file is not there, as in a container given a different camera, one this user may not open, or one another program is using. The SDK says in its log which camera it passed over and why, and opens the next one, where it used to try that camera about 8.5 seconds first. Opening by serial number works as before. This is Linux; on Windows a camera in use was already passed over.
- Closing a camera, or stopping its picture, right after a shutter cycle takes up to about two seconds longer (since 12.0.19), the time the camera needs to finish the cycle, and never more than four seconds. At any other moment it takes as long as before. This is what keeps a PI 400 or PI 450 from opening next time with a shutter that stays shut.
- A PI 400 or PI 450 is called "PI 4x0", a PI 400i or PI 450i "PI 4x0i", and a PI 200 or PI 230 "PI 2x0" (since 12.0.17), also after it is opened and in recordings. The camera cannot tell the SDK which of the two models it is, and the SDK no longer guesses. Read this if your program shows or compares the model name.
- New network settings that an Xi 640 ETH connected by USB refuses are reported as an error (since 12.0.16). Read this if you change a camera's network settings from your program. With the firmware that reports revision 4200 the camera answers every change, and the existing call (
SetNetworkConfig()in C++,optris_sdk_imager_apply_network_config()in C and its counterpart in each language) now fails with the camera's reason when it refuses, where it used to report the change as applied without reading the answer. Nothing is stored when the camera refuses. - Stopping an Xi 640 ETH connected by Ethernet takes about 4.6 seconds (since 12.0.16; about 8.3 seconds before 12.0.18). The SDK lets the camera recalibrate itself before handing it back, and checks that the camera took its measuring settings, so the next program finds it measuring.
- After a call that switches a running camera to another temperature range or operation mode returns, the frames still waiting from before the switch are thrown away (since 12.0.13). Read this if your application waits after a switch for the first frame marked as reliable (
thermal_data_reliable,IsThermalDataReliablein .NET). The newest of those waiting frames were still marked as reliable, so the wait could end on a reading from the range just left. The SDK's own frame queue and the .NET frame stream now drop them when the switch returns, so every frame marked as reliable that you receive afterwards was taken with the new settings. One frame per switch, whose capture began just before the switch, can still arrive after it has returned; its readings are not meaningful and it is never marked as reliable (this page and the 12.0.13 notes said "every frame" until 12.0.15). The same applies to the range extension, high precision and a clipped window. Setting a value already in force drops nothing, and the dropped frames are not counted as lost frames. - On Windows, an older PI 400, PI 450 or PI 1M opened in a mode Windows cannot stream is refused with the modes of that camera that do work (since 12.0.9). Read this if you use one of these cameras with an older firmware on Windows. The message names the mode you asked for and the modes that stream instead, and that
OTC_STREAMING_BACKEND=directshowis an environment variable. A newer firmware removes the problem. - A camera whose format table does not describe it now fails to open in about a second instead of twelve, and no longer blames the camera. If you catch exceptions by type, note the change: it is now
ConfigException, notDeviceException, and the message names the format table file that was read. It no longer delays other cameras' opening. A camera that is simply not ready yet is still retried. - Two or more Ethernet cameras on one PC now simply work: the SDK gives each one a receive port of its own instead of refusing the second. The new port is a lasting change written into the camera, and a firewall rule written by port number has to allow it (rules written by program are unaffected). A camera already on a free port is left alone, and
SetNetworkConfig()refuses a port already in use. The Xi 640 ETH is excluded; there the clash is still refused with an explanation. - A camera that was delivering 22 images a second with the graphics card doing the work now delivers its full 28. The arithmetic is unchanged.
- More is said in the log when a camera on Windows opens but never sends a picture.
Measuring areas and alarms
- An alarm on a region's median no longer fires against a reading nobody measured.
Recording, playback and still images
- A video export without a bitrate aims at one quality, the same on every encoder (since 12.0.23). H.264, H.265, VP9 and AV1 left at a bitrate of 0, the default, run each encoder in its own constant-quality mode at a setting measured to give the quality of x264's default, so an export looks the same and has a comparable size on any computer. Files from graphics-card encoders are much smaller than before (H.264 from NVIDIA cards about eleven times); files from Windows' own H.264 encoder are of better quality, and larger or smaller depending on what is in the pictures. The preset no longer changes the quality, only how hard the encoder works: a slower preset gives a smaller file. Set a bitrate above 0 for a file of a known size, as before. The video export section of the playback page has the measurements.
- FFmpeg's messages go through the SDK's log, at the SDK's log level, instead of straight to the console (since 12.0.23). Each is a line starting with
[FFmpeg; what the SDK learns while trying encoders is a debug line, an FFmpeg error while exporting, recording or playing back a warning. A program that uses the same FFmpeg itself and installs its own FFmpeg log callback should install it after its first SDK video call; the logging page says why. - Every CSV snapshot with header lines names its unit on the second line,
# Unit: degCor# Unit: degF(since 12.0.22). A program that reads the#lines by their position rather than by their name finds the rest one line further down. The ambient temperature in the header is now rounded the way a person rounds it, so 2.675 is written 2.68 where it was 2.67. StopRecording()waits for aSegmentCompletedhandler that is still running, for at most 5 seconds (since 12.0.19). Read this if your handler for recording events waits for another thread, for example withDispatcher.InvokeorControl.Invoketo a user interface thread: if that thread is the one callingStopRecording(), the stop waits the 5 seconds and says so in the log. Hand the event over without waiting instead, withBeginInvokeorInvokeAsync.- During playback, a measuring area that came with a recording works out the statistics you ask for, and keeps your choice (since 12.0.18). Each frame restores the area's position, shape, name, look and emissivity, and its recorded minimum, maximum and mean; the median, percentiles, standard deviation and share above a threshold are worked out from the recorded temperatures, for whatever you switched on, also after you jump back to before the area was drawn and forward again. For an area with its own emissivity, a value the recorded temperatures cannot give at that emissivity shows as not available.
- A reduced frame rate is kept by time (since 12.0.17). The rate you ask for with
subsampled_framerate(C++, Python),SubsampledFramerate(.NET) oroptris_sdk_imager_set_subsampled_framerate()(C) is now what arrives, also from a camera that runs faster or slower than its stated rate. The SDK used to keep a fixed share of the frames. - Finishing a video export reports an encoder that fails while it hands over its last pictures (since 12.0.17). Such an export used to finish as a success with its last pictures missing. Read this if you check whether an export succeeded.
- A snapshot saved right after a switch of a running camera's temperature range or operation mode waits for the first frame that is a measurement again (since 12.0.15). Read this if your program switches and then saves a snapshot straight away. Up to 12.0.13 the snapshot was written from the last frame taken before the switch, while the file named the new range. 12.0.14 refused it until the first frame with the new settings arrived, but that frame is never a measurement: the camera has to recalibrate first, and on Linux the first frame after a range switch could even show the old range's readings converted with the new range's calibration. A snapshot is now refused, with the same error as when no frame has arrived yet, until the first frame marked as a measurement has arrived: after a range switch until the camera has cycled its shutter, after an operation mode switch about thirty seconds. Timed snapshots and snapshots taken by an alarm skip that time. The same applies to the range extension, high precision and a clipped window. A snapshot taken while a camera is still warming up after it was opened is written as before, and its file says that it is not a measurement.
- A PNG snapshot is now the picture you were looking at, with the measurement carried inside it. Read this if you save PNG snapshots, or if anything you have written opens them.
The process interface
- The external probe temperature is reported only while the process interface is set to "temperature probe" (since 12.0.21), in every language, and so is the probe signal for alarm rules. No camera can detect a probe, and on cameras without one the same telemetry carries other values, which the SDK reported as a probe temperature: 10.1 °C on a PI 640 with an Industrial (mA) process interface, and 34.1 °C on a PI 400i or PI 450i with nothing connected. If you use a probe, declare the process interface as a temperature probe.
- On a Stackable PIF, two settings are refused with a message saying why (since 12.0.21): Frame Sync on an analog output, which the box was measured not to pulse, and Region of Interest or Internal Temperature on an analog output while the fail-safe uses the dedicated fail-safe terminals, which on this box moved the heartbeat onto the analog output and released the fail-safe relay.
- An analog input of a Stackable PIF reads as unknown until the camera has sent a reading for it (since 12.0.21), instead of 0 V, and is not used as an emissivity or ambient temperature until then.
- A fail-safe heartbeat now swings across the whole output range by default, so a programmable controller can see it. It used to alternate between 1 and 0: a tenth of a 0-10 V output, and nothing at all on 4-20 mA. This is a changed default: a line you never configured now swings between the top and bottom of its range, also when loaded from a configuration saved by an earlier version 12. Levels you set yourself are unchanged; a switch restores the old behaviour except on 4-20 mA. Not yet confirmed with an oscilloscope on a real 4-20 mA output.
- A simulated camera's process interface now drives the measurement, and delivers while the camera streams. Inputs driving emissivity or ambient temperature now move the measurement, and notifications arrive without polling, as on a real camera. It still does not apply the factory calibration trim or the camera timestamp, and a new emissivity changes the reported parameters, not the pixels.
Image, colour and corrections
- The automatically scaled live image no longer jumps and flickers on a still scene, still re-colours quickly when the scene really changes, and opens at the colours of the scene in front of it. It used to start at a fixed -20 °C to +20 °C band and slide out of it over the first second. No measured temperature changes; the colour scale decides colours only. To compare captures frame by frame against version 11, ask for the old behaviour by name:
FirstFrameSeed.Onin .NET,seed_first_framein C++ and C, orUnadaptedColorScaleDynamics(). - The simulated camera's Optris-symbol scene now looks like metal being heated, and the face-and-hand scene has been withdrawn.
C, .NET, Python and Rust
- In Python,
Camera.open()with nothing named opens the first camera your program can open (since 12.0.20), asCamera.open_first()does and as an open without a serial number does in every other language. It took the first camera in the device list, and failed when that one could not be opened. Withon_progressit still takes the first camera in the list. - In Python,
Camera.open(serial=...)also looks on the network (since 12.0.18), as the C++ open does, so it finds an Ethernet camera by its serial number. That costs the three seconds of a network search only when the camera is not on USB. - In .NET,
ThermalCamera.Open(null, options)written with a barenullno longer compiles (since 12.0.17), because a secondOpen()now takes options. Such a call always failed when it ran, because a camera has to be named; a compiled program is not affected. - The SDK writes its warnings to the console, on standard error, however your program starts using it, not only when it opens a real camera (since 12.0.14). Read this if your program uses the simulated camera, plays back recordings or converts PIX Connect recordings and has not installed a log handler: it now sees the SDK's warnings and progress lines on standard error, as it already did with a real camera. Install a log handler if you do not want them there; it receives every line instead of the console. Nothing is written to standard output. A version 11 log callback set with
Sdk::setLogCallback()before the first camera is opened now receives the SDK's lines from the start. - A 12.0 update may now add new functions, types and values at the end of a list of choices, and it still never changes what your programs already use (since 12.0.10). Read this if you build programs against the SDK. Every existing function, structure, class and value stays as it was, and the library keeps its name,
otcsdk-34.dllon Windows andlibotcsdk.so.34on Linux, so a program built against 12.0.2 or later keeps working without being rebuilt. A program that uses a new function needs the release that added it, or a later one; the changelog names it, and the SDK reports the release it is running on (optris_sdk_version()in C,GetProductVersion()in C++,Sdk.Versionin .NET,optris_sdk.sdk_version()in Python,optris_sdk::version()in Rust). - Every release is checked against the published releases before it ships (since 12.0.9). The check covers the C and C++ headers, both .NET libraries, the Python package and both Rust crates. A 12.0.x update cannot change any of them, so a program built against 12.0.2 or later keeps working with every 12.0 update without being rebuilt or changed.
- The "processing latency" reading refuses to answer, and it always did. Read this if your program reads a processing latency; it will not stop compiling, and it may well already be throwing at you.
- A wrong .NET version now says so immediately, and says which one it found.
- The open-progress callback can no longer be cut off halfway.
Installation and packaging
- The C# examples installed with the SDK ask for exactly the installed version of
Optris.Sdk(since 12.0.20), for example[12.0.20], and take it from the copy installed beside them, also without internet access. They used to ask for the newest 12.0 release, and restored that from nuget.org as soon as one newer than the installation was published. To follow the newest release, write12.0.*in the project instead. - The manual and the package pages say first where each language gets the SDK from (since 12.0.18):
pip install optris-sdkfrom PyPI,dotnet add package Optris.Sdkfrom nuget.org, and bothoptris-sdkandoptris-sdk-sysin[dependencies]from crates.io, with the platform package the Rust crates need. - The build date that the Linux library in the NuGet package reports is the time of the source change it was built from (since 12.0.14). Read this if your .NET application shows or logs
SdkBuildInfo.BuildDateon Linux. It used to be the moment the package was made. Every copy of one version is now the same file, byte for byte. - An SDK program reads the palettes, norm tables and camera list that ship with the SDK library it loaded, before anything
OTC_SDK_DIRnames (since 12.0.13). Read this if Optris Relay or another product with its own copy of the SDK is installed on the same Windows computer: such a product can setOTC_SDK_DIRfor the whole computer, and SDK programs used to read its files instead of their own. This holds for the installation, the Python package and the NuGet package.OTC_SDK_DIRis still read by a library that has no files of its own, for example one linked into a program. - On Ubuntu, the examples and the ready-made example programs arrive with the Linux package, in new folders (since 12.0.11). Read this if you install the
.debor use apt on Ubuntu, above all in a container or on a minimal or cloud image, which leave out everything under/usr/share/docand so left out the examples without a word. The example sources are now in/usr/share/otcsdk/examples/and the ready-made programs, simpleView and the playground in/usr/lib/otcsdk/examples/bin/; in the Linux archive,share/otcsdk/examples/andlib/otcsdk/examples/bin/. A script that copies the examples from/usr/share/doc/otcsdk/examples/needs the new folder. Debian and Windows were not affected. - On Windows, the ready-made example programs use the installed
otcsdk-34.dll, and the installation is about 500 MB smaller (since 12.0.9). Read this if you run the programs inexamples\binor copy them to another computer. Up to 12.0.8 each of them carried its own copy of the SDK. They now loadotcsdk-34.dll, which is inexamples\binbeside them with the four Microsoft Visual C++ runtime files, so copy the.dllfiles of that folder with a program you move. simpleView, the showcase, the playground,otc_snapshotandotc_raviwork the same way. - On Windows, the copy of the examples in your Documents folder is about 11 MB instead of about 106 MB (since 12.0.9). From 12.0.2 to 12.0.8 the installer also copied the 92 MB
Optris.Sdkpackage there for every user. The copy now holds the example sources and project files, and itsNuGet.confignames the package folder of the installation, so the C# examples still build from Documents without internet access. Installing 12.0.9 removes a package an earlier version left there. - One NuGet package,
Optris.Sdk, now carries both .NET interfaces (since 12.0.7). Read this if your project uses theOptris.OtcSdkpackage. That package is no longer published: referenceOptris.Sdkinstead. Your code does not change:using Optris.OtcSdk;and its names stay the same, and both interfaces can be used in one program, so you can move to the new one (using Optris.Sdk;) one file at a time. On Linux the package also carries the script that sets up USB access for the cameras, undertools/udev. - On Linux the SDK library now carries a version in its file name, and a program paired with the wrong one is told plainly. The install contains a real library named like
libotcsdk.so.34(the number is the SDK's interface version) andlibotcsdk.sobeside it as a shortcut. You build and link as before; a program built against one version refuses to start against another and names the library it wanted. If anything of your own copieslibotcsdk.soas a file, copy the versioned file as well. Windows has the same protection since 12.0.2 (otcsdk-34.dll, see "Breaking changes"). - The SDK now uses your
HOMEsetting to find its data folder on Linux and macOS. WhereHOMEpoints somewhere other than the account's own home folder, the SDK's data folder moves. Read this before you upgrade if you run the SDK as a service, in a container, or anywhereHOMEis set deliberately. - On Linux the SDK now brings its own video library instead of using your distribution's, as a licensing correction.
Fixed
Measurement and temperature accuracy
- A simulated camera registered in Fahrenheit opens on the scene it was registered with (since 12.0.28). Opened from the device entry
RegisterSimulatedDevice()returned, or from the device list, its scene was converted twice: registered at 68 °F, it opened at about 20 °F. It now opens at the temperatures it was registered with, whichever unit is chosen when it is opened. - An Xi 1M or PI 1M holds its detector at the temperature it was calibrated at again, as with SDK 11 (since 12.0.27). With automatic chip heating the SDK cut the calibration's 64 °C down to 55 °C, so the detector ran about 9 °C cooler than its calibration is meant for (measured on an Xi 1M: 54.9 °C, now 63.8 °C). A fixed chip heating temperature you set yourself is still limited to 20 to 55 °C.
- The radiometric simulated camera measures with the emissivity, transmissivity and ambient temperature you set, and applies a measuring area's own emissivity (since 12.0.27). Settings changed after it was opened reached nothing: a 50 C scene read 49.95 C at emissivity 0.95 and 0.75 alike. Each picture is now measured with the settings in force (0.95 reads 51.3 C, 0.75 reads 58.5 C), and converting a temperature to another emissivity works on this camera too.
- Frames from a camera whose calibration files are missing are no longer marked as measurements (since 12.0.23). Such a camera, for example on a computer without internet access, still opens and streams with every pixel at -100 °C.
GetCalibrationStatus()saidkMissing, yet once the start-up calibration had finished every frame was marked reliable (thermal_data_reliable). The frames are now marked as not reliable for as long as the calibration is missing, in every language, and are measurements again once the files are there and the camera is opened again. - A program that uses a German number format no longer reads the camera's calibration wrongly (since 12.0.22), for example a Python program that called
locale.setlocale(locale.LC_ALL, "")on a German computer. A factor of -0.1181 read as 0 and a temperature curve lost its decimals, so the camera reported wrong temperatures or did not open. The saved settings, the size-of-source correction, the format definitions, the lens distortion values and the measuring areas of an imported PIX Connect recording were affected the same way, and messages and the temperature beside a measuring area used a decimal comma. All of them now read and write numbers the same way whatever number format the program uses. - Pictures of a shutter that did not open again are no longer reported as reliable measurements (since 12.0.19). They are reported as not reliable until a picture shows the shutter open again, as version 11 did; they used to become "reliable" 20 to 40 seconds after the camera was opened and showed temperatures like 40 C on a scene of 28 C.
- The drift compensation between shutter calibrations no longer overcorrects after the camera is switched on (since 12.0.18). It learned how fast the camera drifts from the first calibrations after switching on, while the camera was still settling, so a still scene could drift by a few tenths of a degree, or on some cameras by several degrees after a manual calibration. It now learns only once the camera has settled, and switching it off and on again, or on while the shutter is closed, no longer disturbs it.
- Four dead pixels of an Xi 640 ETH connected by Ethernet no longer show as a white spot (since 12.0.18). The camera sends its dead pixels as 0 and leaves replacing them to the computer; the SDK now fills them in every picture from the nearest pixels that are not dead themselves, on the graphics card and on the processor. A hot object beyond the range stays beyond the range.
- The first open of an Xi 80, Xi 320 MT or Xi 410 reads its calibration out of the camera even when the camera's picture takes a few seconds to start (since 12.0.17). The SDK used to give up after about a second and a half and try the internet instead, so a computer without internet could open such a camera uncalibrated. It now waits up to the camera's connection timeout, ten seconds unless you choose another.
- An Xi 640 ETH with its current firmware reports its internal temperatures over USB again (since 12.0.16). With the firmware that reports revision 4200 the SDK read them in the earlier firmware's format, found them out of range and left them out, so the measurement ran without the housing, shutter and detector temperatures. They are now read the way the camera team specifies.
- A PI 640i in its fast 640x120 mode at 125 Hz measures correctly (since 12.0.15). After a switch to this mode the readings could sit 2 to 7 K too low, change by about 2 K at every shutter cycle, and on some computers fall to -17 C, -21 C or -45 C for a wall at 23 C, all marked as measurements. The shutter correction now gets the same settling time as at 32 Hz, the automatic working point adjustment ignores a handful of pixels that saturate only in this mode, and a reference that could not be completed is no longer marked as a measurement. The PI 640i now reads within 2.5 K of its full frame mode at 125 Hz, on Linux and on Windows.
- The picture shown while the shutter is closed is the picture from just before it closed (since 12.0.15). The repeated picture could be a frame in which the shutter was already moving into view, because the camera goes on reporting its shutter as open for a moment after it starts to close, and it was marked as a measurement: on a PI 640i after a switch of the operation mode almost every shutter cycle showed the wall about 0.5 K too warm for more than a second, and sometimes much more. The SDK now keeps the picture from before it gives the command, on the GPU and the CPU pipeline. Cycles that a camera or a process interface starts by itself are unchanged.
- A shutter correction never uses frames in which the detector is saturated (since 12.0.15). Such frames come right after a switch of the operation mode, while the camera adjusts to it.
- Switching a PI 640i back from its 640x120 mode no longer logs an error saying the calibration did not load (since 12.0.15). The calibration did load, and the readings were right.
- A PI 450 or PI 400 that has started measuring no longer stops again for a whole shutter interval because of one uneven detector reading (since 12.0.14). Read this if you have seen frames marked as not a measurement (
thermal_data_reliablefalse) for 8 to 20 seconds in the middle of a session. Once a camera has started measuring, the SDK now also looks at the last two shutter intervals together before it decides that the detector is warming up again. A detector that really warms too fast is still reported, at the latest one shutter cycle later than before, and the start of a session takes exactly as long as before. - After a running switch of the temperature range, the range extension or high precision, the readings marked as measurements are right from the first one (since 12.0.13). The SDK kept the camera's internal flag and housing temperatures converted for the previous range, or none, until one of them moved a few hundredths of a degree, which on a warmed-up camera can take minutes. Measured on a PI 450, readings marked as reliable after a switch were up to 36 degrees too high or 49 degrees too low; they are now within half a degree of the reading before the switch. The reading also no longer drifts off between the next two shutter cycles, by up to about a degree, because the SDK no longer learns a drift from the shutter cycles the camera takes while it settles after the switch.
- An image repeated while the shutter is closed is no longer marked as a measurement when the image it repeats was not one (since 12.0.10). Read this if your program skips images whose
thermal_data_reliableis false (IsThermalDataReliablein C#). A repeated image used to take that mark from the moment it was sent, so a startup picture, which reads 125.0 °C everywhere on many cameras, could arrive marked as a measurement once the startup had finished. A repeated image now counts as a measurement only if the image it repeats was one. - A camera whose detector has stopped working is no longer reported as measuring (since 12.0.9). Read this if you use the temperatures a camera delivers. When every point of a camera's raw image has the same value, which no working detector produces, the frame is marked as not a measurement (
thermal_data_reliablefalse,IsThermalDataReliablein C#), and the SDK writes an error to its log when this starts and when it ends. An Xi 80 was measured doing this while the SDK turned its images into believable temperatures between 26 and 37 °C.OTC_SIM_SATURATED_FRAMESmakes the simulated camera send such images, so your handling of them can be tried without a broken camera. - If your camera has no external reference probe fitted, the SDK may have reported one reading 511.9 degrees, and an alarm rule on that probe would have fired. With no probe fitted the reading is now absent (
nullin C#,Nonein Python and Rust, "not found" in C), and a rule on it goes to its orphaned state. A fitted probe is unchanged, and the Xi 640 ETH never claims one. Not fixed: on some firmware the bytes read as a probe temperature come out between 19 and 29 degrees, which looks real, so trust the reference probe only on a camera you know has one fitted. - On some PI 450 and PI 640i units the SDK read the detector temperature as about minus 450 degrees and corrected every temperature in the picture for it. These cameras now measure correctly. A conversion step was being skipped, and a reading still impossible after both steps is now treated as no reading. Still to be confirmed on the affected hardware: verified against pictures carrying exactly the readings those units send.
- When a camera cannot read its own detector temperature, your application is now told so instead of being shown 0 degrees, so an alarm set to warn below 5 degrees no longer fires on every picture. Every place it is handed out says whether it is a reading:
chip_temp_knownbesidechip_temp_cin C, a nullableFrameMetadata.SensorTemperaturein .NET and Rust,Nonein Python, and the version 11getTemperatureChip()reports its "no reading" value. A rule on it reports nothing to watch, and a latched output keeps its state. - The SDK now tells you when it could not check whether the detector has warmed up, instead of saying it had: settled, still settling or cannot tell (
detector_settlingin C,FrameMetadata.DetectorSettlingin .NET, the same in Rust and Python,getDetectorSettling()in version 11). "Settled" means the fast part of the warm-up is over; full stability takes 60 to 90 minutes, and that clock is yours to keep. - A camera was announced as trustworthy before its last start-up correction, and a cold camera while still warming up. On a warm camera "thermal data is now reliable" now arrives a few seconds later, and "settled" also requires slow drift (under 0.3 degrees moved and 0.6 degrees a minute). Pictures taken while calibrating or just after power-on are marked as not being measurements, and a frame taken before the dark reference no longer fires alarms or moves an output.
- Changing the temperature range of a running camera left every temperature about 18 °C low until the camera was reopened. A switch now lands within a degree of opening the camera in that range, and you no longer need to recreate the camera object. For about 30 seconds after a switch the camera recalibrates and its pictures are marked as not being measurements; if you need a correct reading at once, open the camera in the mode you want. Also fixed: a mode change no longer leaves the camera several degrees wrong for a minute or two, or set up for the mode you are leaving; a PI 640 switched back out of its fast 640x120 mode keeps correct temperatures; a failed mode switch says so; range or mode changes while running can no longer crash the camera.
- Changing the temperature range, the extension, the high temperature precision or the operation mode while streaming no longer stops the picture for several seconds or reports a shutter error, and a process interface fail-safe no longer trips because of it. Closing a camera during a shutter correction is now immediate, with no shutter error reported.
- The extended temperature range, high temperature precision and moving the clipped window now report the camera as initializing while it settles. The temperatures in the seconds afterwards could be several degrees wrong with nothing marking them. What you may notice: for a few seconds after changing one of those three, frames are marked as not being measurements, alarms will not act and region readings are not published.
- With the extended temperature range on, the SDK refused modes it had just offered. A mode now describes itself the same way either way. One reported value changes, deliberately: a mode's coolest and warmest figures are always its calibrated ones, with the stretched span reported beside them.
- Cameras could only measure on one of their temperature ranges. Choosing a range now applies it. Not yet verified: the 150 to 900 °C range, which needs a target above 150 °C to check.
- Skipping the start-up calibration no longer delays the first trustworthy reading by minutes, or for ever. On a warm camera the SDK now asks for the shutter closure it needs as soon as the minimum interval between corrections has passed; triggering the shutter yourself still ends the wait at once. If you need a measurement rather than a picture, do not skip.
- Four faults that made emissivity and transmissivity below 1 give wrong temperatures are fixed. Some cameras read up to several degrees low because a fixed frame rate picked the calibration table; the graphics-card path read high because it built its table as though both were 1; on the processor path the two settings had no effect at all; and two image-quality steps did nothing whenever either was not 1. Not fixed: on a PI 640 the graphics-card path still reads too high below emissivity 1; see Known Issues.
- Roughly one measurement in twenty was about 12.5 degrees too low. The SDK did not check that the shutter had closed before taking the dark reference. It now waits for the camera to report the shutter closed, and logs it if it never does.
- Occasionally one shutter calibration came out wrong and every temperature read too low for up to a quarter of a minute (processor path only). Fixed.
- On a busy computer, a shutter correction could be taken after the shutter had moved away, leaving a ghost of the scene in the picture. The SDK now holds the shutter longer when pictures are being lost and ends a correction when the camera reports the shutter reopened. A computer far behind declines a merely scheduled correction (logged) and keeps the previous reference; one due to real drift, or one you ask for, always runs.
- The log now warns when a shutter correction produces an unusual reference (the average moves by more than 2 percent); the reference is still used.
- The automatic detector-bias adjustment ("skim") moved the detector by the wrong amount on most cameras, and a still scene could ramp away by several degrees after each adjustment. Both are corrected, and version 11 and version 12 now agree on the 150 to 900 degree range. The skim faults still outstanding are under Known Issues.
- The camera corrects for detector drift between shutter cycles again, as version 11 did.
- The two version 12 processing paths (graphics card and processor) now agree with each other and with version 11. Among the corrections: - live temperatures read several degrees low on both paths, because the per-pixel internal-radiation correction was never applied; - the processor path had no normalized conversion table; the two now agree to the smallest step the format represents; - the graphics-card path misread the detector chip temperature, biasing every temperature, and was wrong by up to several tens of degrees near the shutter reference on early frames; - dead pixels are repaired on the graphics-card path as in version 11; - the chip temperature reported on the processor path was about 14 degrees high (measurements unaffected); - Windows now produces byte-for-byte the same temperatures as Linux. The two faults still outstanding are under Known Issues.
- Pixels the camera cannot measure are now left out of every temperature the SDK reports: dead detector elements, and the border the wide-angle correction leaves. A defective pixel no longer spoils the four good pixels around it.
- A PI 1M measures again, and now repairs its defective pixels. Every defective pixel showed as a speckle at the bottom of the range, wrong by over 650 degrees. This applies to any camera whose calibration is the sample-point kind.
- Detector heating works again on every camera that has it. Cameras were asked for the wrong detector temperature, and a range, extension, high-precision or mode change could leave the detector heating while the SDK said it was not; your setting is now re-applied on every switch. A camera with no heater refuses the request.
- A PI 160 at 100 Hz now gets its shutter correction, instead of reporting a broken shutter for ever while its temperatures drifted. The closure is timed where the camera cannot report it, and the log says so. Not tested on a PI 160; established on a simulated camera with the same missing data.
- Shutter state is reported truthfully: a moving shutter is no longer "open", one that fails to reopen is a fault, notifications report "closing, then open" in the documented order, and asking where the shutter is gives the same answer as the notification.
- Damaged or truncated pictures no longer corrupt temperatures. A truncated frame, a damaged picture of the right size, and a shutter correction abandoned halfway (which left every pixel at the same wrong temperature) are all handled.
- An Xi 640 ETH connected over USB no longer reports nonsense internal temperatures, and they are no longer used in the measurement. Housekeeping readings in general are no longer half-believed.
- On computers without a supported graphics card, the SDK misread the camera's shutter state on nearly every frame. Fixed.
- Ambient temperature. An ambient temperature you set while the camera is estimating it is now kept. "Not known yet" no longer looks like 0 °C. A snapshot or recording made during the estimate no longer records -100 °C.
- A camera that needs the alternative bias calibration now says it is not getting it, instead of reporting that it ran. Read this if you use an Xi 400 of hardware revision 3400, a PI 400i-V1, or a PI 160 or PI 200 of revisions 22 to 99.
- Shutter and correction settings. - Automatic correction can now be scheduled by temperature drift, as the setting always claimed. - Switching automatic shutter correction on no longer changes the other shutter settings. - The shutter interval is no longer lost when set before the automatic shutter is switched on. - "Perform NUC" and "trigger shutter" do the same thing, and the SDK now says so. - The shutter now settles for the right length of time before the picture is re-referenced.
- Correcting the camera against a reference body now actually corrects it, and you can ask the SDK up front whether it will. Where it is not available, it now says so instead of reporting success.
- Reading a camera's stored calibration out of the camera now works. It never did in version 12.
- A camera that opens without calibration now says where the SDK looked. Read this if your machines are offline or behind a firewall. Asking the user for a calibration folder is a separate step again, so it no longer interrupts cameras that did not need it.
- Other start-up fixes: two cameras starting at the same time no longer disturb each other's first calibration; cameras that deliver images slowly now produce a usable picture and keep their calibration; a camera whose dead-pixel file is damaged now opens instead of hanging.
- Turning a temperature into the SDK's compact pixel form no longer invents a reading. Outside -100 to 3176.7 °C the conversion wrapped around (3200 °C came back deep cold), and "not a number" came back as -100.0 °C. Now an unreachable temperature saturates at the hottest value, a non-temperature gives the "no measurement" marker, and you can ask in advance:
IsEncodable(C#),celsius_is_encodable(Python, Rust),optris_sdk_celsius_is_encodable(C),IsEncodableTemperature(C++). Python was also a tenth of a degree low for about one temperature in two thousand; all five languages now agree. Nothing inside the camera's range changed. - On machines with a graphics card, a camera lost its calibration when the picture format was set after loading it, and reported a flat, meaningless temperature.
Imagerwas not affected. A simulated camera can now be put on the graphics card withOTC_SIM_PIPELINE=gpu. - On a PI 1M, the count of pixels outside the calibrated range reported the whole sensor every time. It is now taken after each shutter correction. No measured temperature changes on any camera.
Export-restricted cameras
- Export-restricted cameras are now held to 9 pictures per second, as export law requires. Before, a restricted camera opened in the ordinary way delivered its full speed. Read this if you work with an export-restricted camera; the change is deliberate. - The SDK asks each camera whether it is restricted when it opens and on every reconnect, and holds a restricted camera's pictures at least one ninth of a second apart on every path: thermal, colour and raw pictures, the pull interface, measuring areas, alarms, recordings and snapshots. Nothing can switch this off or raise it. - A camera that cannot be asked is treated as restricted, in particular PI1 cameras with firmware below 1915 and Xi 640 ETH prototypes. If you believe one of your cameras is limited wrongly, contact Optris support with its serial number. - A camera whose pictures say it is restricted is limited even if its control connection said otherwise; a lasting disagreement is logged once per connection, and support wants that line with the serial number and model. - A recording from a restricted camera holds 9 pictures a second and may be played faster. Older recordings are not altered or limited. - Your own frame-rate setting still only reduces further: you can ask for 4 and get 4, but never more than 9.
FrameRateInforeportsExportRestrictedwhenever the export limit holds the rate down. The raw-picture callback of the older C++ interface is limited too. - Unrestricted cameras are no longer limited by mistake. One unfinished picture at start-up used to limit an unrestricted camera for the whole session; the SDK now needs the marking on eight pictures in a row. An Xi 400 on firmware 3435, a PI 450 on firmware 2453 and the Xi 640 ETH over Ethernet were limited at every start and no longer are. - Nothing needs changing in your code.
Cameras, connections and discovery
- An Xi 640 ETH reconnects after it lost power, and opens from a configuration saved in an earlier session (since 12.0.29). Both failed with "Failed to set PIF configuration", so the camera stayed disconnected until the program was restarted.
- An Xi 640 ETH over USB on Linux starts every time (since 12.0.29). About one start in three failed with "cannot establish this camera's wire framing"; the SDK now reads the picture layout the camera announces and waits for the first whole picture.
- An Xi 640 ETH over USB calibrates without discarded shutter cycles or fail-safe timeouts (since 12.0.29). It delivers 25 of its 50 pictures a second over USB, and the SDK's wait for the shutter to settle now follows the share of pictures that arrive.
- Stopping a network camera search that the SDK runs in the background ends it at once, and a program that searched the network ends without waiting (since 12.0.28). The SDK waits half a second for cameras to answer a search, and nothing could cut that wait short:
stopRunning(),DisableAutoReconnect()while it looked for a lost network camera,StopDeviceMonitor()while it searched the network, and closing a network camera that had just stopped sending pictures each waited it out, and a program that ended during a search ended half a second late. They now end the wait at once. A search your program runs itself, such asEnumerateDevices()orProbeNetworkDevice(), still waits as long as you ask. - A free camera is no longer refused as already in use while another program starts or lists cameras (since 12.0.28). The check every program makes of the cameras' claims looked like a claim of its own for that instant; programs now take turns for it, so a camera is reported in use only when a program really has it. On Linux that check could also delete the claim of a camera another program had just opened, so that a second program could open the same camera; it no longer can.
- A network camera that is unplugged or switched off is reported as disconnected, and with automatic reconnection on it is opened again as soon as it is back (since 12.0.27). Read this if you use a camera over Ethernet, such as the Xi 640 ETH or the Xi 410. When its pictures stop, the SDK asks the camera who it is, the same request the camera search sends, and reports
Lostwhen it does not answer, as for an unplugged USB camera; one that answers but sends nothing isStalledas before. Automatic reconnection then looks for the camera by its serial number without using up its tries, reportskWaitingForDevice, and opens it with your settings when it answers, also at a new address. - An Xi 640 ETH that restarts while it is open is opened again from the start, and a picture that arrived only in part is dropped (since 12.0.27). After a short power cut the camera came back in its own temperature mode and its pictures were read as raw sensor values, with wrong temperatures and an unusual colour gradient; the SDK now notices the mode, reports
Lostand, with automatic reconnection on, opens the camera again. A picture missing some of its 420 network packets was passed on with the gap filled in from its neighbours; it is now dropped and counted. - A program that watches for cameras being plugged in ends at once, and stopping the watch no longer waits (since 12.0.26). On Linux, a program that ended while watching with
StartHotplugMonitor()orStartDeviceMonitor()(or the device watchers of the C#, Python and Rust packages) took about a second longer to end, andStopHotplugMonitor()andStopDeviceMonitor()took up to a second. On Windows and Linux, stopping the watch while the SDK was still finding out which camera had just been plugged in waited up to a tenth of a second. Both waits now end at once; a camera arrival being reported at that moment is still reported first. - A simulated camera no longer leaves an
otc-sim-cali-...folder in the temporary folder, however the program ends (since 12.0.25). The folder holds a few files the camera reads while it opens, and is now removed before the open returns; before, a program that ended, crashed or was stopped with the camera open left one behind on every run. Opening a simulated camera also removes such folders once they are an hour old, the ones earlier versions left behind. - A program that used the SDK's camera search ends as soon as it is done, instead of up to half a second later (since 12.0.24). On Linux, and on Windows with the SDK's static library, a program that ended between two searches waited until the next one was due, every half second by default. The wait now stops as soon as the program ends or the search is stopped; a search under way is still finished first. A Windows program that uses the SDK's DLL never waited between searches, but one that searched for network cameras still ends about half a second later, while that search listens for answers. The camera watch of the version 12 interface stopped waiting only in 12.0.26, the first entry in this section.
- Opening a camera without a serial number no longer waits about 8.5 seconds for each camera your program cannot reach (since 12.0.20). In a container given one camera of six, the open took 46.9 seconds; now it takes a few.
- A PI 400 or PI 450 that was closed while its shutter was cycling opens next time with a working shutter (since 12.0.19). Its shutter used to stay shut on about half of the next opens, with every picture showing the back of the shutter; closing the camera, or stopping its picture, now waits until the cycle is finished.
- On Linux, with the optional
hal-libusborhal-v4l2backend, the first picture after a start is no longer reported as an incomplete picture from the camera when only its beginning was missed (since 12.0.19), and withhal-libusba few stray bytes an Xi 400 sends at a start no longer split its first pictures. A short picture the camera really sends is still reported. - After a program streaming from an Xi 640 ETH over Ethernet is killed, the next program puts the camera back into measuring first (since 12.0.18), and no longer reports that the temperatures will be wrong.
- Stopping an Xi 640 ETH connected by Ethernet takes about 4.6 seconds instead of about 8.3 (since 12.0.18), and no warning is written on every opening of one any more.
- A camera in another subnet is found also from a computer without a default route, and the request goes out of every network card (since 12.0.18). On Linux such a computer also needs a route for the camera's subnet on that card; the Ethernet chapter explains this.
- A program waiting for data from an Ethernet camera no longer waits forever while another camera sends to the same port of the computer (since 12.0.18), so a stop no longer hangs there.
- On Linux, a USB camera whose first picture is slow to arrive streams once it does (since 12.0.17). A camera that sent nothing within ten seconds of being started never delivered a picture after that, and starting it again failed until it was closed and opened again.
- On Linux, opening a camera no longer disturbs the other cameras on the same computer (since 12.0.17), and a camera whose video devices were numbered in an unlucky order, for example
video10andvideo2, opens again instead of failing with "No formats found". - On Linux, an Xi 400 switches between its 27 Hz and 80 Hz modes (since 12.0.17), on the default video path and with the optional
hal-v4l2andhal-libusbbackends. Almost every switch to 80 Hz used to fail. - The frame number of a PI 1M counts up (since 12.0.17). It stayed at 0 on every frame.
- Switching a running camera's temperature range or operation mode no longer logs errors when the switch works (since 12.0.17), and the fail-safe output no longer reports a fault after such a switch.
- With the optional
hal-v4l2andhal-libusbbackends on Linux, a frame your program still holds stays readable after the stream stops (since 12.0.17). The default streaming paths were never affected. - An Xi 640 ETH with its current firmware no longer reports a shutter fault after every shutter cycle (since 12.0.16), which the fail-safe signal counted as a failure although the camera worked. The SDK now closes and opens the shutter itself for the time it needs.
- Stopping a stream from an Xi 640 ETH leaves the camera measuring (since 12.0.16). After a stream with shutter cycles the camera could be left sending pictures but no temperatures, for every program, until it was restarted.
- On Windows, a program using an Ethernet camera no longer crashes when the camera's data stops arriving (since 12.0.16), for example because a firewall blocks it while the computer is busy. Waiting for camera data no longer leaves anything behind that Windows can complete later.
- On Windows, a camera found on the network is linked to the network card it was found on (since 12.0.16), also when the camera answers to everyone at once, as the Xi 640 ETH with its current firmware does. The SDK used to record the general broadcast address instead.
- Finding network cameras is more robust (since 12.0.16). A short or unrelated message arriving during a search could hide the answer of a camera right after it, and an answer to someone else's address change could be taken for where a camera is.
- On Linux, an Xi 640 ETH that the SDK has streamed from over USB can be used by other video programs again afterwards (since 12.0.16). The system's own video driver used to be left without the camera's video connection until the camera was plugged in again.
- On Linux, a copy of your application made with
fork()no longer fails to end now and then (since 12.0.16). A copy that ended withexit()while the SDK was looking for cameras or talking to a USB camera, as it does all the time while the device monitor runs, could wait for ever at its very end: about 2 copies in 100 with the device monitor running. It now ends straight away. - A camera's incomplete frames no longer cost the good frames after them (since 12.0.15). Some cameras, the PI 640i among them, send a few incomplete frames when streaming starts and after the frame rate changes. On Windows, and on Linux with the
hal-v4l2backend, the SDK read the frame number from such a frame before discarding it, and a wrong number made it discard the next good frames as well: eight after every start on a PI 640i under Linux. Nothing is read from an incomplete frame now. With thehal-libusbbackend, incomplete frames are now reported as incomplete instead of disappearing without a trace. - On Windows, the calibration folder, saved camera names and a calibration folder you name yourself work for users whose name is not plain English (since 12.0.14).
GetCalibrationDir()gives the folder in UTF-8, like every other path the SDK hands you. On such a computer the SDK could fail to start when it opened a camera, saving a camera's name reported an error after the name had been saved, the list of named cameras came back empty, and a calibration folder with an umlaut or other non-English letter in its name was reported as missing. A simulated camera's frame file in such a folder is now read too. - The message for a camera another program is using names SDK 12.0.12 or earlier as the versions that cannot see it (since 12.0.14). It said 12.0.11. The start of the message is unchanged, so programs that recognise a busy camera by it still do.
- On Windows, a camera that the Optris Relay service or another user's program is using is protected from every other program on the computer (since 12.0.13). The SDK kept its record of which program has a camera in a folder of the account running it, so a program of another account could not see it. The record is now kept for the whole computer, under
C:\ProgramData\Optris\otcsdk\claims. Programs built with 12.0.12 or earlier, run by the same user, still see the cameras newer programs use and the other way around; one that runs as another user or as a service, such as an older Optris Relay, needs updating. - When a camera cannot be opened because another program is using it, the message says so, and names that program when it can (since 12.0.13). It mentions file permissions only when the SDK really could not create its file. The type of error your program receives is unchanged.
- On Linux, a camera in use by a program of another account no longer blocks every other account from opening any camera (since 12.0.13). The folder
/tmp/otcsdkbelonged to the account that created it first; it is now created so that every account can use it. - A program your application starts no longer keeps its cameras (since 12.0.13), and on Linux neither does a copy of it made with
fork()(since 12.0.15). A started program received the connection of an Ethernet camera, and on Linux the video device, so the camera stayed busy after you closed it. A forked copy shared your application's hold on its cameras and could release it while your application still used them, which 12.0.13 fixed. Up to 12.0.14 such a copy still kept the camera's devices open, so no other program could open the camera while the copy ran, and a copy that ended withexit()or Python'ssys.exit()could fail to end at all. Now the copy lets go of every camera device as it starts, the cameras it inherited are left alone in it, and ending it waits for nothing; to use a camera in the copy, open it there. When the SDK processes images on the graphics card, a copy that ends in the ordinary way ends before the graphics driver's own clean-up, so clean-up your program set up to run at exit before it opened the camera does not run in that copy. - Opening an Xi 80 on Linux no longer logs an error when everything is working, and the log names the processing pipeline a camera really uses, once (since 12.0.13). The Xi 80 does not need the Linux video device, so a missing one is no longer logged as an error. On a computer without a usable graphics card the log no longer says "Pipeline backend: GPU" before "Pipeline backend: CPU".
- A PI 400 no longer stops delivering measurements for up to half a minute after a shutter cycle (since 12.0.12). Read this if every frame of a PI 400 was marked as not a measurement (
thermal_data_reliablefalse, no reading for region rules and alarms) for several seconds while it kept streaming. Its detector temperature reads up to about 0.3 degrees higher while the shutter is closed, and the SDK took exactly that reading to decide whether the detector was still warming up. It now uses the reading from the frames just before the shutter closed. A camera that really is still warming up is still reported as such. - A computer without a usable graphics card no longer logs errors every time a camera opens (since 12.0.11). Read this if your log shows "Adapter request failed" or "No frames will be produced" in a container, a virtual machine or on a server while the camera delivers its pictures. Running on the processor is a supported way to run: the log now says once, as information, that no graphics card is used and why. A real failure to build a camera's pictures is still an error.
- An Xi 80 delivers pictures the first time it is opened on a computer (since 12.0.11). The camera sends its calibration as pictures, and on a first open the SDK set them aside until it knew the picture size, which comes from that calibration, so nothing streamed until the next open. The first open now reads the calibration and streams.
- Cameras whose shutter closes for a fixed, short time no longer warn about their shutter correction on every cycle (since 12.0.10). Read this if your log shows "NUC: collected 6 of 10 frames" or a similar line each time the shutter closes. The SDK learns from the first correction how long the shutter really stays closed and plans the following ones for that, says so once as information, and no longer warns. The correction itself is unchanged.
- The simulated camera marks the images it repeats during a shutter cycle as repeats (since 12.0.10), as a real camera does (
is_repeated_frame,IsRepeatedFramein C#), so its measured frame rate dips through a shutter cycle the way a real camera's does. - On Linux, the Xi 80, Xi 410 and Xi 1M open on their USB cable again (since 12.0.9). From 12.0.1 to 12.0.8 opening one failed every time with "Failed to receive command response", because the SDK restarted the camera's USB connection when it opened the video stream, which also took away the connection for the camera's commands. Closing a USB camera on Linux no longer crashes a program now and then, and when the SDK cannot reach a camera's command interface its message says whether another program holds it, whether this user lacks permission, or whether the udev rule is missing.
- A PI camera switches its detector's bias on when it is opened, as version 11 did (since 12.0.6). Read this if you use a PI camera and have seen it start with a flat picture that never changes, with the shutter reported as faulty. A camera left in that state after an interrupted shutdown now delivers a real image. Opening a PI camera, and switching it to another temperature range or video format, takes about 0.2 seconds longer. Other cameras are not affected.
- An application no longer crashes as it closes when it had been watching for cameras being plugged in or out (
WatchDevicesAsync()in C#,StartDeviceMonitor()in C++, or the same elsewhere). Exiting is clean in every state, including from inside a notification, with no need to wait for the watch to end. Affected versions: 12.0.0 and 12.0.1. - Starting a simulated camera again, or closing it, after a start that failed no longer ends your application. On a very busy machine a simulated camera's start can fail; starting it again or closing it then ended the whole application with every other camera in it. Both now work. Affected versions: 12.0.0 and 12.0.1.
- On Windows, a PI 1M streaming 1000 images a second no longer loses pictures when your application fetches them one by one. Read this if you use 72x56 or 764x8 at 1000 Hz and
Next(),TryNext()or version 11getFrame(). Windows delivers sixteen at a time and the SDK kept room only for your buffer size (three by default); it now keeps room for a whole group, so raising the buffer size is no longer needed. Affected versions: 12.0.0 and 12.0.1 on Windows. - On Windows, opening an older PI 400, PI 450 or PI 1M in a mode Windows cannot stream now tells you so, instead of appearing to succeed and never delivering a picture. Read this if you use a PI 400 or PI 450 with firmware 2400 to 2437, or a PI 1M with firmware 2800 to 2818, on Windows. Modes an odd number of pixels wide (385x289 on the wire, and on the PI 1M also 73x224 and 71x224) cannot be carried by Windows' standard video system. They are still listed (they work on Linux), but opening one on Windows is refused at once with a message naming the mode, the firmware and what to do; if it is the camera's default mode, choose another when you open it. Newer firmware replaces these modes: 2438 or later on the PI 400 and PI 450, 2818 or later on the PI 1M. If your PI 1M has hardware revision 2100, ask Optris support before updating: its 1000 Hz mode is only available up to firmware 2819. For the 382x288 mode at 27 Hz,
OTC_STREAMING_BACKEND=directshowalso works. Affected versions: 12.0.0 and 12.0.1 on Windows. - On Windows, PI cameras deliver their full frame rate with the default settings (since 12.0.3). Read this if you use a PI camera on Windows. In 12.0.1 and 12.0.2 they delivered about 21.5 frames per second whatever their own rate, because each frame waited three times for the graphics card and on Windows each wait lasted about 16 milliseconds instead of the fraction of a millisecond asked for. A PI 640i now delivers 32 frames per second and a PI 400 27, and the shutter calibration no longer discards cycles for want of frames. If you set
OTC_FORCE_CPU=1orOTC_STREAMING_BACKEND=directshowto get the full rate, you can remove it. The SDK does this without changing the timer settings of your application. - When the SDK reports that your camera's shutter never closed, the message now says how long it really waited and what the camera told it. The time used to be about three times too small on Windows, and the message now names the shutter positions the camera reported and on how many frames. Behaviour is unchanged.
- A simulated camera cannot deliver every requested frame rate. At rates in the hundreds per second on a busy or small machine, the delivered rate falls below the request. Check
Processing::RealFrameRate()and choose a rate with margin if a run needs a known number of frames. - Starting the SDK no longer opens every attached camera twice a second for as long as it runs; the background search starts only when asked. For the classic
EnumerationManager:getDetectedDevices(0)means "what you already know", so in a program that has not looked yet it returns an empty list; pass a timeout to ask what is attached. - On Windows, looking for cameras no longer opens every other USB device (keyboards, mice, headsets, card readers). The list you get back is the same.
- Asking only for simulated cameras, or only for USB cameras, no longer searches everything first. Simulated touches no hardware; USB sends nothing on the network. Filtering by model still needs a full search.
- One damaged picture from a busy USB bus no longer costs the eight good ones after it. There is still no way for your application to ask whether a picture arrived intact;
thermal_data_reliableanswers a different question. - The SDK now logs when it discards a frame, on the two paths where it used to do so silently (an incomplete USB block on Windows, and frames dropped while a settings change rebuilds the pipeline). No picture that used to arrive is affected.
- On Windows, a camera now opens when the user's account name is not plain English (for example Japanese, Chinese, Russian or Greek). Before, no camera could be opened on such an account.
- Asking for a camera by serial number could open a different camera, without saying so. Read this even if you run only one camera today: it decides whether past measurements can be trusted.
- Switching a camera to a larger operating mode can no longer crash the CPU pipeline. Read this if you switch operating mode while streaming, for example into or out of a PI 640's 640x120 mode. It could end the program or deliver a few pictures of the previous mode's pixels.
- A camera asked for one of its video formats could stay on a different one, and then report nonsense for its shutter, its internal temperatures and its own frame count. On a PI 1M eight of its ten formats were affected. Nothing to do.
- A camera now reports the operating mode it is actually in, not the first in its list, so an application no longer shows the wrong range or saves a layout that reopens in the wrong mode. The measurement was never wrong.
- On some PI 450 and PI 640i cameras one unreadable internal temperature made the SDK discard everything else the picture said (shutter position, picture number, process-interface readings). It now keeps the rest, and reports each internal temperature as available or not.
- An Xi 640 ETH with the October 2026 firmware can be opened again, on either cable, and it now streams over USB. Over USB 25 pictures a second arrive while the camera numbers them at 50, so gaps in the numbering are normal, and that is not a fault. Focusing by percentage does not work, so set a position directly. Two more things this entry said until 12.0.16 no longer hold: the camera is no longer held to 9 pictures a second (the SDK leaves its rate to the camera, see Changed), and with the firmware that reports revision 4200 its internal temperatures are read over USB (see Fixed, measurement).
- The Xi 80's resolution was reported as 80x64 instead of 80x80.
- Focus commands now move the lens to where you asked, and a camera without a focus motor says so. The reported focus-motor capability (
HasMotorizedFocus()) is now correct: it wrongly said the PI 400/450/640/640i had a motorized lens and several Xi models did not. On Xi cameras, the documented way to tell when the lens has finished moving was wrong and could hang your program; read the corrected advice if you drive the focus motor. - Changing the temperature range, the optic, the resolution, the range extension or the high-precision switch while the camera runs or calibrates its shutter no longer risks crashing the program. The call now waits for a calibration in progress, so it can take a few seconds.
- Automatic reconnection now actually brings a camera back, after a laptop wakes from sleep, after a cable is knocked, and for cameras on the network: - an unplugged camera, including the only one on the machine, or one another program is using, is waited for without using up the retry budget, and picked up the moment it is back; turning reconnection on before opening a camera no longer spends its retries at once; - on Windows, a camera that is plugged in but not answering fails with the real reason instead of "waiting for camera" for ever; - a link that recovers on its own is no longer torn down and re-opened; - stopping the stream during a reconnect sticks, and a recording stopped by a reconnect says so; - closing a camera or switching recovery off no longer waits out an attempt; the status then rests at "disconnected", not "failed"; - "reconnecting" and "reconnected" arrive in a sensible order, and log lines name the camera.
- Your connection-status handler can be called on two SDK threads at the same time, as it always could; guard any list, counter or UI field it touches. Registering it no longer races its first notifications, especially in .NET.
EnableAutoReconnect: a reconnection feature that was documented but never written now says so. Read this if your program calls it.- Unplugging a USB camera is reported the moment it happens instead of thirty seconds later, an unplugged Xi camera is reported as gone rather than quiet, and a camera that stops sending pictures can now be detected instead of leaving an old picture on screen. Plug and unplug notices now name the camera every time.
- Re-opening a camera your program is still closing now waits up to five seconds for the close and then succeeds, over USB and the network, so you can drop any pause you added. Opening one your program already has open fails at once with the same busy error and a message saying so; when another program has it, the message names that program.
- Closing a camera no longer crashes or freezes the application. This covers disconnecting, reconnecting, shutting down, closing from inside your own connection handlers, during startup, and on a busy machine. On Windows, closing a streaming camera no longer takes two seconds.
- Several faults that froze or crashed a running camera are fixed. Among them: reading from the camera while a picture arrives froze it; an unanswered control command could crash the SDK or invent camera settings; connecting could wedge a program for good; repeatedly listing cameras froze other threads out of the SDK.
- The graphics-card pipeline no longer crashes at start-up on Windows machines with a real graphics card.
- A brief stall in your application no longer costs you frames. Frames are collected on the SDK's own thread and buffered, so the application catches up.
- Opening cameras is faster and fails sooner. Several cameras open together; a PI with a process interface opens two seconds faster; an unplugged USB camera no longer pauses three seconds; a network camera no longer searches every network connection first (three seconds could become three minutes); a wrong address fails in seconds.
- You can now put a time limit on opening a camera over the network. When you open by network address, set it on the network target; the camera options' limits apply only to the open calls that take no network target. How long the SDK waits for a USB camera to answer a command can also be set.
- Errors when opening a camera now say what is wrong: not plugged in; a picture stream that fails to start (instead of "connected" with nothing arriving); a camera missing its calibration files is no longer reported as failing to open; a video format with no table names what the camera reported and what was on offer. A camera that fails to open always gives the camera back.
- Ethernet cameras are more reliable. No frames lost to an undersized receive buffer; a picture-packing mismatch is reported by name, never delivered as a wrong picture; a camera used on both USB and Ethernet opens on either. On Windows, two Ethernet cameras of different models on one PC no longer lose most of their pictures (not reproduced on a bench).
- Linux: a camera whose control interface the kernel claims no longer fails silently, and the package now installs the rule that prevents it.
- The direct-USB route can be selected through the environment (
OTC_STREAMING_BACKEND) or thestreamingBackendsetting:"legacy"(the default, unchanged),"hal-v4l2"or"hal-libusb". The direct route now reconnects cleanly, uses the format you chose, and runs the PI 640's 125 frames per second format for the first time. - Naming a camera from two places or two programs at once no longer fails (on Windows as well); one of the two changes simply wins.
- Smaller fixes: no duplicate operation modes that cannot be chosen; a mode says whether its optics number is degrees or millimetres;
EnumerationManager::runAsync()no longer reports failure on a busy machine; a mode change on a camera with a measuring area no longer locks it up; switching the frame rate while running (an Xi 400 in particular) no longer fails the first time; re-opening a just-released camera logs no false lock-file error; on Linux, a camera offering one format twice opens on the one reported, and hotplugged cameras are named. - Simulated cameras on Windows: one set up as a radiometric detector no longer aborts a debug build, and a fast one now delivers evenly spaced frames up to 500 frames a second, where before frames came in bursts above 64 a second.
- Reading the camera's settings and applying them again no longer changes them.
GetConfig()followed byApplyConfig()is now a true round trip. - Saving a setup and loading it back no longer changes how the camera measures. A blank
<ambient>entry is handled as documented, the temperature range survives saving and restoring, and exporting settings no longer writes a second file that changed the camera's behaviour the next time it opened. - There is now a way back from a reduced frame rate, and reading the frame-rate limit back tells you what you are actually getting. On-demand picture requests return a picture from now, not from when the camera started.
- An out-of-range temperature band is now refused by
SetTemperatureRange(), as documented. - Frames from a camera on the graphics-card pipeline were all numbered zero. The sequence number, which tells a fresh frame from a repeat and reveals a gap, is now correct.
IsEthernetDevice()gave the wrong answer for six of eight models, and is fixed.- The command line tools now find network cameras by serial, and the enumeration examples take
--networkto search the network and--watchto watch for cameras being plugged in. - A network camera on Windows that connects but never delivers a frame is usually the firewall, which blocks incoming video by default. Changing a camera's address does not end your connection, and the address a camera streams to must differ from its own.
- Simulated cameras now behave like real ones. A simulated camera keeps the serial you give it (
TEST-0001no longer becomes9990001), reports its shutter from the first frame and runs a real camera's shutter schedule, honours an area's own emissivity, and its shutter cycle can be changed or switched off cleanly. A noise-pattern camera given its range the wrong way round no longer stops a Windows debug build.
Measuring areas and alarms
- Alarm rules added to a measuring region are saved and restored with the rest of the configuration (since 12.0.29). A file written with
SaveConfig()and the record fromGetConfig()left them out, so loading or applying brought the regions back without their alarms. Both now keep every rule on its region; a file also keeps what each rule compares with, and still loads in earlier versions. - Measuring a region costs far less processor time, and every number it reports is exactly what it was (since 12.0.27). The SDK works out once which pixels a region covers, again only when the region or the picture size changes, and finds the percentiles and the median without sorting. On a Raspberry Pi Compute Module 5 one whole-picture region went from about 24 ms of processor time per picture to under 1 ms, and its percentiles from 13 ms to about 2.5 ms more, so a PI 640i keeps its 32 pictures per second with four such regions where it reached 8.6. A region moved or reshaped in every picture costs about what it did before.
- A hot spot, cold spot or spot inside another region no longer risks crashing the program when the picture is placed on a canvas (since 12.0.27). On the first frame such a pair was measured, the inner spot read the outer region's shape from memory already given back: the program could crash, or the spot report nothing for that frame. The showcase crashed this way with its canvas on and the regions of 02_rects loaded.
- A recording started by an alarm rule no longer crashes a program that is using the recorder at the same moment (since 12.0.22).
- A measuring area's own emissivity changes the picture on every camera, not only on those that use the graphics card (since 12.0.19). On a camera computed on the processor the area showed corrected readings over an uncorrected picture and was labelled "numbers only".
- Two measuring areas over the same pixels each report their own reading (since 12.0.19). An area overlapping one with its own emissivity could report its reading at the other area's emissivity; such areas now keep the picture at the camera's emissivity and are labelled "numbers only".
- Adding, removing or clearing motion zones while the camera runs no longer risks crashing your program, and a motion handler may remove its own zone (since 12.0.17).
- An alarm's snapshot or recording that fails in an unexpected way is reported to your action error callback (since 12.0.17) instead of ending your program.
- When an alarm rule is refused, the message says why (since 12.0.12). A rule that compares a signal with itself, for example, was refused with a message about the measuring area and the input, which were both fine, and in C++ with no message at all. Every refused rule now names its cause: in the error's message in C#, Python and Rust, in the last error message in C, and as a warning in the SDK's log in C++. Which rules are accepted has not changed.
- A measuring area with no size, and an alarm rule that watches no measuring area, are refused (since 12.0.4). A rectangle or ellipse with a zero width or height measured no pixel, ever, and a rule on a measuring area's reading added with no measuring area watched nothing and could never go off; both were accepted although the manual said they are refused. Adding either, or changing an area to zero size, now fails the way any invalid argument does (
OPTRIS_SDK_ERROR_INVALID_ARGUMENTin C, an id of 0 in C++). A line of zero length and a ring with no hole are still accepted, because they measure. Nothing needs rebuilding. A saved configuration that contains a zero-size area loads without it. - An alarm that saves a picture every time it goes off no longer delays or loses its own notifications. Read this if an alarm has ever stayed showing as active after the condition had gone. Notifications and relay outputs no longer wait behind picture writing.
- An alarm's picture is now of the moment the alarm went off, not of whenever it was written. A CSV picture also records which frame it is of.
- Setting the minimum time between alarm pictures to zero now means no limit, in every language; zero used to mean one a second. Python: this setting's default changed from zero to "unset", so pass nothing for the default, or you get a picture on every activation.
- Measuring areas and alarms did not work on a real camera, at all. Every area reported nothing, no alarm on one could fire and motion detection reported nothing, with no error logged.
- A measuring area could report −3376.8 °C while also reporting that it had measured pixels: in wide-angle mode on the graphics-card pipeline, border pixels with no picture were counted into its minimum, average and pixel count. An area entirely inside the picture was never affected.
- Every measuring area reported itself as the first one, with no name and an emissivity of 1.0, on every frame. The readings were right; the identifying values beside them were not.
- An alarm could silently end up watching the wrong measuring area, and saving your configuration saved the wrong one. If your alarms were saved by an earlier version 12, check which area each is on. A rule read back through the C interface could also have its input turned into an area's average.
- An alarm relay no longer clicks off and on when the camera cannot measure for a moment: a held output, or a recording running "while the alarm is active", stays held. If the reading never returns, it stays held until you disable or remove the rule or close the camera; there is deliberately no timeout.
- An alarm set to be silenced while an input is low now rings when that input is missing. Read this if a rule has an inhibit with
invertturned on, for example a suppress button on the process interface. While the signal is missing, the alarm now behaves as if the inhibit were not there. - When an alarm fires faster than its pictures can be saved, a picture that would show the wrong moment is now skipped and reported, instead of saved under the alarm's name. Read this if your alarms save still pictures and can fire in quick succession. Before, it showed a later moment labelled with the alarm's time; your application now gets an outcome of its own for it.
- Alarm fixes: a debounce under a millisecond (
OnDelay,OffDelayfrom .NET, Python or Rust) now debounces instead of switching off; a shutter cycle no longer clears a latched alarm; a clearing alarm no longer stops a recording it did not start; alarms on a replay notify; a saved motion alarm comes back working; rules can tell the shutter is closed, to stay silent during calibration. - A measuring area can be moved without losing its alarms.
- Two measuring areas could end up with the same position number. Positions now close up when an area is removed.
- Measuring areas are now drawn on the picture your application receives, with alarm colouring, not only in the SDK's own window. This applies to cameras on the graphics-card path; small-format cameras on the processor path still deliver a picture without overlays.
- Measuring areas measure and draw what they should. Straight-line areas measure the pixels they lie on at every position; a spot with its own emissivity now uses it, on cameras with a graphics card too; removing an area nested two levels deep works; blob detection works, also on a replay.
- Percentile statistics (1st, 5th, 95th, 99th) on a measuring area are now computed only when asked for, because they cost a sort of every pixel in the area.
- Measuring areas on a replayed recording behave. An area you draw stays put and cannot be taken over by the recording, polygon and curve areas move as recorded, and an area that never got a reading no longer ends the program.
- Smaller fixes: - A spot measurement no longer describes itself as an area. - A measuring area's alarm badge counts rules rather than areas. - An area built from several shapes is drawn as the one shape it measures, not its pieces. - Adding a camera's first alarm rules from two threads at once no longer corrupts its alarm set-up.
Recording, playback and still images
- What the best Motion JPEG quality costs in a C++ export, measured, and that it is the one to set (since 12.0.29). A C++ program that does not set
VideoExportConfig::mjpeg_qualitywrites at 4, while the other languages write at 2, the best: setconfig.mjpeg_quality = 2;yourself. A file at 2 is 28 % to 37 % larger than at 4, and the temperatures in a Matroska export are the same at every quality. - A radiometric video export into a Matroska file keeps every temperature, through every codec (since 12.0.28). Only FFV1 did. Through Motion JPEG (the default), H.264, H.265, VP9 and AV1 the file held only the double-height picture: the SDK read it back as a picture with no temperatures, and unpacked by hand it was 2.4 C off on average and up to 51 C at Motion JPEG's best quality on a smooth scene, more through the other codecs, while the header said the export preserved radiometry. A
.mkvexport now also writes the frames to a lossless FFV1 track, which is what the SDK reads back. The picture track is still the file's first, with the same bytes. MP4, MOV and WebM cannot hold FFV1: such an export is written as before, logs a warning, andKeepsTemperatures()says no. - Starting a recording no longer holds up the rest of your program while the drive creates the file (since 12.0.27).
GetStatistics(),IsRecording()and the delivery of new pictures waited for the file to be created, 634 ms on a busy drive. The file is now created outside the lock they go through; the recording still begins when the start returns. - A converted PIX Connect recording no longer states a start time off by the recording PC's time zone (since 12.0.27). The
.ravi's local clock reading was handed out as UTC, so on a PC in Germany a converted recording started one or two hours late. Without a zone given, the start is now read in the converting computer's zone, the recording says the zone was assumed, and the report and the log say so; give the zone, or correct the recording afterwards, when the files come from another zone. - The JPEG quality setting changes the quality (since 12.0.27).
visual_jpeg_qualityon a visual camera's recording andmjpeg_qualityon a Motion JPEG export wrote the same pictures, at the best quality, for every value from 2 to 31. The number now takes effect: on the same 160 x 120 pictures, 2 writes 182 KB, 4 writes 113 KB and 31 writes 28 KB. A program in C, C#, Python or Rust that sets no quality writes what it always wrote: the export default there is now 2, which every Motion JPEG export was written at (the documentation said 4), and a visual camera in a recording stays lossless unless asked. In C++ the default ofVideoExportConfig::mjpeg_qualitystays 4, because it is compiled into the program; a C++ program that sets nothing now gets 4, so set 2 to keep the earlier pictures. JPEG snapshots were not affected. - A colour video exported as Motion JPEG shows its full contrast (since 12.0.27). Its pictures were stored in television range (16 to 235) under a full-range label, so black played back as dark grey and white as light grey. They are now stored in the full range the file declares.
- Replaying a recording the moment it reports its end always plays it again (since 12.0.26). A seek to the start and a play asked for just as
IsAtEnd()turned true could be ignored without a word, bySessionPlayerand by the C++rec::Player, also for a recording in several parts, because playback was still finishing. Playback has now stopped by the time the end is reported. A seek asked for just as a recording of several cameras hands over its last picture is carried out too, instead of being lost.Play()still does not rewind: seek to the start to play a recording through again. - A TIFF snapshot says when its picture was taken (since 12.0.26). Its
DateTimegave a day in January 1970, worked out from how long the computer had been running, for a live camera, a recording played back and a still alike. A live camera's snapshot now gives when the frame arrived, a replay's when the frame was recorded, and a TIFF opened as a still and saved again keeps its own date. A still from a PNG, which has no date, gets none. PNG, JPEG and CSV snapshots carry no date, as before. - A visual camera recorded with JPEG compression plays back (since 12.0.25). A visual-light camera recorded into a recording session with
visual_jpeg_qualityset delivered none of its pictures on playback: each was counted as a decoding error. They now come back as they were recorded, up to the small loss JPEG compression makes, also from recordings made with earlier versions. - Opening a recording whose cover picture shows one temperature all over no longer logs an FFmpeg warning (since 12.0.25).
[FFmpeg mjpeg] EOI missing, emulatingwas logged every time such a recording was opened, for example one started while the camera was still calibrating itself. The picture was complete: FFmpeg misjudged where a very small picture ends while examining the file, and the SDK, which only hands the cover picture out, no longer asks FFmpeg to examine it. Recordings made with earlier versions open without the warning too, with no change to the files. - An interval capture into a folder that does not exist yet creates the folder (since 12.0.23), with the folders above it. One that cannot be created or written to is refused when the capture starts, with an I/O error naming the folder; before, the capture appeared to start and wrote nothing.
- Exporting a colour video no longer reads past the end of your picture (since 12.0.23). FFmpeg's colour converter read up to 4 bytes past the last pixel at an odd width, and up to 64 bytes for a picture under 16 pixels wide, which ended the program when the picture ended where its memory ended. The SDK now converts from a copy with room to spare.
- On Windows, Windows' own H.265 encoder is tried last, and through the graphics card (since 12.0.23). It used to be tried first, through a Store add-on that refused every picture and printed "failed processing input: 80004005" on the console before the export moved on to NVIDIA, QuickSync or AMD. Where none of those works, an H.265 export to MP4 now works through it; it cannot write Matroska, so
IsCodecAvailable()still answers no for H.265 there. - On Linux, an H.265 export through Intel or AMD graphics (VA-API) keeps its pictures in order, and
kSlowon Intel graphics no longer writes a file seven times larger of lower quality (since 12.0.23). Every picture was uploaded into one buffer on the graphics card, so pictures the encoder still held were overwritten by later ones. - Snapshots, recordings and file names no longer depend on the number format a C++ program sets for itself (since 12.0.22). A C++ program that set a German locale for itself got decimal commas inside a comma-separated CSV snapshot, "21,5 C" in a JPEG's text line, a temperature curve without decimals in snapshots and recordings, and dots in a
{sequence}file name. - Saving a JPEG still no longer crashes on a picture of an unlucky size, and two programs using simulated cameras or playing recordings at the same time no longer delete each other's temporary files (since 12.0.22).
- A long PIX Connect recording converts completely, and its frame count is the number of frames it holds (since 12.0.19). A recording PIX Connect writes in several parts stopped converting at the end of the first part, and inspecting a file reported the count from the one header PIX Connect gets wrong. Convert long recordings again if you converted them before.
- Recordings from short-wave cameras (PI 1M, PI 05M, PI 08M, Xi 1M) convert with the temperatures PIX Connect shows, without "allow short-wave" (since 12.0.19), and PIX Connect's measuring spots stay spots: a 1, 9 or 25 pixel spot keeps its size, a hot or cold spot searches PIX Connect's window, and a spline area covers the curve PIX Connect fills. What cannot be carried exactly is listed in the conversion's report.
- Stopping a recording that is split into parts reports every part before it says the recording has stopped (since 12.0.19), in every language, so the parts you were told of plus the one
Stoppedends are all the files on disk. - A snapshot taken while measuring area outlines are shown always has the outlines in it, and says so (since 12.0.19). A snapshot taken in the moment before the picture with its outlines was drawn came without them.
- On Linux, exporting a video no longer ends the program on a computer without the VA-API libraries (since 12.0.19): the SDK tries the next encoder, as it does for the other hardware encoders. The fallback for the older VA-API library of Ubuntu 22.04 and 24.04 and Debian 12 was tested with a stand-in, not yet on Intel or AMD graphics.
- The quality setting of an H.264 or H.265 export reaches NVIDIA, Intel and AMD graphics hardware and Windows' own encoder, and no longer prints "Unable to parse option value" (since 12.0.19). Each encoder gets the setting in its own terms; with VA-API only Intel's and AMD's drivers get one. The SDK's debug log says once per export which encoder was chosen and what it was given.
- PIX Connect recordings converted by the SDK are the right way up, with their measuring areas on the pixels PIX Connect used, and their temperature values described completely (since 12.0.17). Every conversion used to be mirrored top to bottom, each area was placed half its size too far right and down, and the description left out where the temperature scale starts. Convert files converted with 12.0.14 or earlier again.
- Region outlines can be drawn on a recording from C, .NET, Python and Rust, on every platform (since 12.0.17). Switching them on for a recording used to be refused as "not supported".
- A snapshot saved in the first seconds after opening a camera is written and reads back as not a measurement (since 12.0.17), whatever the colour scale. A JPEG there used to be refused, and a PNG could read back as a measurement.
- A snapshot from a camera without a graphics card says when region outlines are drawn into its picture (since 12.0.17). It used to say the picture had none.
- Stopping a time-lapse waits for the picture being saved at that moment (since 12.0.17), so the folder and the picture count are complete when the stop returns.
- A snapshot of a frame that was not a measurement reads back as not a measurement (since 12.0.15). The file has always recorded whether its frame was a measurement, but
Camera.open_still()in Python,ThermalCamera.OpenStill()andSnapshot.LoadThermal()in .NET, the C and C++ still functions and the Rust crate reported every frame of a snapshot as one. A TIFF snapshot, and a PNG saved before the camera had drawn its first picture, did not record it and read back as a measurement; that second case is every snapshot in the first seconds after opening a camera with the default automatic colour scale. From 12.0.17 every PNG and TIFF snapshot records it, ascapture.thermal_data_reliablein its metadata, and reads back accordingly. - A recording of several cameras in one file is recognised as an Optris recording (since 12.0.13). A file from
RecordingSession(C#),SessionRecorder(C++) or theoptris_sdk_session_functions (C) now carriesotc-meta.jsonand theOTC_FORMATandOTC_SOFTWARElabels, in every file of a split recording, so programs such as Optris Connect no longer take it for an ordinary video. Opened as a single-camera recording, such a file now reports its first thermal camera's model and serial number. - A converted PIX Connect recording shows when it was recorded and which camera made it (since 12.0.12), instead of the time of the conversion and a sentence about the serial number; a file from an older PIX Connect that does not name the model leaves it empty. Old PIX Connect recordings that did not record the shutter position no longer play as if the camera were calibrating the whole time. A recording whose measuring areas have Chinese or other non-Western names now converts, and on Windows so does one in a folder whose name has non-English characters. These apply to
otc_ravias well. - A recording saves each image with its own measuring area readings, and its first image has them when it plays back (since 12.0.11). Read this if you read an area's statistics from a recording. Up to 12.0.10 every image was saved with the readings of the image before it, so the first image, and the image after going back to the start, reported the area as not measured (
validfalse). Recordings made with earlier versions still play back with the readings one image late, except that their first image now shows readings taken from it. - Reading the measured frame rate of a recording no longer fails (since 12.0.10). It used to be refused as not supported (an exception in .NET, Python and Rust). It now counts the frames the recording delivers while it plays; stepping through a paused recording does not count. In C++ the call for a recording is
Player::RealFrameRate(). - A recording keeps which frames were not measurements yet, and playback reports them as the camera did (since 12.0.9). Up to 12.0.8 a recording lost that mark, so a program that skips the startup frames of a camera printed them as temperatures from the recording. Recordings made with 12.0.8 or earlier do not contain it and play back as before.
- A recording's measuring areas, and alarms on them, survive playback going back to the start (since 12.0.9). Every recording now saves its measuring areas with its first picture, recordings made with earlier versions show the areas they started with on their first picture, and an alarm on a measuring area gives readings again as soon as its area is back.
- Re-opening a stopped multi-camera recording session is now refused, saying to create a new session. A stopped session's file is finished. It used to fail with an unrelated message or do nothing.
- After playback is briefly held up, the player no longer races to catch up and throws frames away; it carries on at your speed and finishes correspondingly later. Frames lost on a replay now mean only that your own code was too slow.
- Changing the emissivity on a recording or a saved image now works on any machine, including one without the SDK installed, where it used to be refused. Files written by earlier version 12 builds still refuse it.
- Saving a still image to the same file from two threads or two programs at once no longer fails or leaves a damaged picture. A timed capture and a button saving to the same name were enough. Every save now succeeds and the file is always one whole picture (last one wins). Also: - a CSV still can no longer be read half-written, and a disk that fills at the very end of a save is reported; - on Windows, a save waits up to two seconds for another program (a viewer, the indexer, a virus scanner) to let go of the file, then fails with "Access is denied" as before; - file names can be up to 255 characters on Linux (247 before), and up to 8 more on Windows without long paths; - a temporary file left by a crash is named like
3fa9c2e1.otcpartand can be deleted. - Cutting two clips to the same file from a rolling history no longer fails or leaves a damaged clip, as for still images. On Windows a cut waits up to two seconds for a player to let go and leaves no temporary file on failure, and the history's catalog survives another program reading it. Linux clip names may be as long as the file system allows (242 before).
- A long recording on a FAT32 card or stick, without a size limit, overwrote its own earlier parts, and could die at 4 GB. The parts are now named
run_part000.mkvonwards, a part no longer grows past the size you set, and reaching a file-size limit is reported. Recordings already made this way cannot be recovered; check that they are as long as you expected. - On Windows, starting a recording onto a path that already held a recording destroyed it and reported success, when the path had a character outside the English alphabet. It is now refused, as elsewhere. Snapshots, attachments, automatic naming, part rollover, and palette and configuration files now also work in such folders.
- A multi-camera recording split into parts no longer reports an error after a camera disconnects and reconnects. The file was always fine.
- An attachment provider registered for a whole camera no longer makes an alarm's CSV or JPEG picture fail; it is told the file kind and whether it can carry an attachment. Changed: the capture time it gets for a still is now the frame's own time, not the computer's clock. Adding or removing a provider while an alarm fires no longer risks a crash.
- Starting a recording no longer destroys a file that is already at that name. It is refused, the file is untouched, and the refusal is its own kind of error. Delete the file first if you mean to replace it; automatic naming still picks the next free name.
- Every way a recording can be refused is now reported as what it is: invalid argument for a missing or impossible setting, input/output for an unwritable folder or full drive, not supported for a format with no encoder, out of range for a result too big for the drive, each with a message saying why. If your program checks for the unclassified error to mean "refused", that check stops matching: check the specific kinds, or the common base error.
- Recording failures are reported, and no longer take your program down. An unwritable destination fails at once; a recording that starts failing part-way stops, says why and is reported as failed, not finished; one whose first write is refused or that captured nothing leaves no file and says which; starting a recording while one runs is an error; you are told it stopped only once its file is finished.
- Exporting a video onto a drive that fills up, or is removed, now fails instead of reporting success, and starting one on a full drive no longer closes your program.
- Asking whether H.264, H.265 or AV1 can be exported now gives a reliable answer, and an export falls back to the next encoder that works; on some Windows computers H.265 and AV1 were reported available and then failed.
- A replayed recording now shows the same automatic colour scale at any playback speed, and an exported video shows the scale the camera showed. Read this if you replay faster than real time or export with a self-adjusting colour scale. Live cameras and fixed colour scales are unchanged.
- Seeking a recording to a frame number now lands on that frame. Some landed one frame late. The first such seek on a newly opened recording reads through the file once.
- A recording to a slow drive no longer freezes the live picture, the measurement or the fail-safe output, and when frames cannot be stored the SDK says so.
- Pre-roll works as described. The buffered seconds carry their measuring areas and colour range, the buffer holds the time you asked, turning it off frees the memory, arming it no longer freezes the live picture, and a change of picture size no longer throws it away. "Is the buffer full" is right on every camera, including slow and export-restricted ones where it stuck at 28 %. The write-queue figures say how many waiting pictures are pre-roll (
queue_preroll_peak,QueuePreRollPeakin .NET). - Closing a camera while recording, during a time-lapse, or while pre-roll is being written no longer crashes the program; a snapshot still waiting at close is reported, and a recording is finished on disk by the time the SDK says it stopped.
- A recording no longer runs on into the same file across a reconnection, and a snapshot taken while the camera is away is refused instead of saving an old picture.
- Recordings and snapshots now carry their metadata. Snapshots saved none, and now keep your notes too (a line number, a shift, a batch). A recording says which camera made it and what it was measured with, in the snapshot's form, which also fixes files already recorded. Every segment carries the full metadata and attachments, and a recording with your own palette looks the same wherever opened.
- Replays report what the frames say: measurement settings agree with the frames, a replay says whether its temperatures can be trusted and whether it was recorded on a fixed range, it has a hottest and coldest spot, and positions and lengths are reported correctly.
- Playback faults fixed: a washed-out first picture; seven palettes playing back as Iron Bow; a speed change freezing the video; a multi-camera recording playing the last camera instead of the first; scrubbing landing in the wrong place or showing the wrong frame and areas; a playing multi-camera session briefly reporting the old position; removing the picture handler during a replay ending the program; colour windows (isotherms) on a replay.
- Opening a recording no longer reads the whole file (it matters on a share, stick or card) or prints video-library warnings. A recording in progress is a real, readable file from the first frame instead of 0 bytes for half a minute, with the preview picture and notice a player shows.
- Two pictures recorded less than a millisecond apart no longer share one moment: the later moves to the next millisecond, every other keeps its time. Existing recordings are unchanged.
- Recordings with measuring areas that stay put are smaller, because an unmoved area's position is no longer re-written. Existing recordings play as before.
- Attaching a file to a finished recording now checks it will fit before spending minutes copying.
- The playback controls on a live camera now say they do not apply. Seeking, looping and replay speed used to be accepted with invented answers. Check
IsPlayback(optris_sdk_imager_is_playbackin C) before offering them. - A snapshot setting the SDK rejects is reported as a rejected setting, not a disk problem.
- Smaller fixes: - Reading a recording's statistics no longer waits while the recording is being stopped. - Saved measuring areas without identifiers are no longer lost on playback. - Asking a recording whether it can sharpen, or which noise filters it offers, gets an answer, not an error. - A recording no longer lists an attached file that is not actually in it.
- Recording into a folder that does not exist reports the error straight away. The .NET and Python guides still warned it succeeded silently; if you added your own check because of that, you can remove it.
- Attachment providers run once per file, as its header is written, not on the camera's frame thread; calling back into the recorder from one can deadlock, and
on_action_thread(IsOnSdkThreadin .NET) can read false while the SDK drives the save.
The process interface
- C++ telemetry carries the process interface readings (since 12.0.29).
pif_analog_in_1,pif_analog_in_2,pif_digital_inandpif_digital_outfromGetTelemetry()were never filled in; they now carry the camera's last readings and the outputs the SDK switched on, and the two voltages are NaN when there is no reading. - Reading back an output nothing has set answers unknown (since 12.0.29).
ReadDigitalOutput()andReadAnalogOutput(), in every language, reported the input with the same number on a simulated interface and failed as not supported on a camera; they now answerDigitalState::Unknownor NaN, as for an input not read yet. - A process interface you select yourself stays selected after a reconnect (since 12.0.29). A proprietary interface or temperature probe on a PI camera, which the camera cannot detect, was switched back to no process interface after a reconnect or an open from a saved configuration naming it.
- In Fahrenheit, reading back an analog output gives the volts or milliamperes on the wire, as in Celsius (since 12.0.28).
ReadAnalogOutput(), a reading of all channels and a rule on an analog output converted the wire value as if it were a temperature: 5.5 V read 41.9. They now read 5.5 in both units, and an analog input's signal next to an output with the same number follows the input's own unit. Writing an output, and the temperatures the SDK decodes from an input, still follow your chosen unit. - On Linux, the inputs of a process interface reach your program again (since 12.0.27). The camera sends its PIF inputs with every picture and on Linux the SDK did not read them from there, so every frame reported no PIF. A Stackable PIF is also reported on a frame's metadata as SDK 11 reported it, with its own number of devices and three analog inputs per device.
- The fail-safe on a Stackable PIF does what it reports (since 12.0.21). On a digital output it beats from the moment it is armed, also when an alarm had switched the output on before; an output the fail-safe leaves is switched off; its health reads "Late" instead of "Beating" when the camera reports that it cannot reach the box, and when a line never moves; and the log says the relay released only when the gap was longer than the relay holds.
- The second and third analog input of each Stackable PIF carry their readings (since 12.0.21). They always read 0 V.
- A process-interface input or output that is switched off or removed no longer keeps reporting its last value (since 12.0.21), and "shutter held by the process interface" goes off when the input lets go of the shutter, so alarm rules on them report a missing input instead of comparing an old reading.
- The fail-safe output reported that the camera was healthy without checking anything. If you have wired one into a machine, check your wiring after upgrading: the heartbeat now comes out of the fail-safe terminals. Also: the fail-safe line's state can be read back; a 4-20 mA heartbeat now beats on the wire and is not reported as beating when it does not; a fail-safe no longer switches off on reconnect; the processing-chain fail-safe no longer faults on every late frame; an armed fail-safe no longer fills your log.
- Process-interface outputs: seven faults, in every one of which an output did nothing, or the wrong thing, while the SDK reported success.
- Process-interface inputs now arrive. Digital and analog inputs never reached an application on any camera that reports them with each picture, which is every camera the SDK supports. Reading them before the first picture is no longer an error; digital inputs beyond the first no longer always read "off"; "off" and "not reported" are told apart. The external probe no longer travels in the first analog output slot, and a probe that stops working stops reporting instead of repeating its last value, which matters for an interlock.
- Two defects in the analog calibration are fixed: applying the calibration to an input added the gain a second time instead of the offset.
- Handing a camera's shutter to a process-interface input works again; in version 12 it did nothing. A digital input can be watched without handing it the shutter, watching no longer stops the interface driving the measurement, and closing or changing range just after an input took the shutter no longer risks a crash.
- Declaring and detecting a process interface works, even when the camera cannot see it, and the declared kind can be changed directly. The list no longer offers interfaces the camera refuses, a refusal no longer looks like a broken cable, and a fitted interface that cannot be read is logged with the reason.
- A process interface can now be reconfigured while the camera is streaming, and holding one across a reconnect no longer crashes your application. Settings given through
Imager::GetPif()now persist between calls. - Simulated cameras: switching a process-interface ambient input off no longer reports −100 °C, and detaching a process interface while streaming, or an analog output that follows a measuring area across a reconnect, can no longer race a picture in progress.
- Smaller fixes: a declared process interface no longer claims serial number "0"; a PI camera's process interface is asked its firmware; re-detecting no longer leaves it half-detected when the camera stops answering (Xi 80, Xi 410, Xi 1M); the control connection no longer blocks checking for an absent interface; the fail-safe line refuses a rate the interface cannot carry; "trip on a shutter timeout" no longer points at an unreachable replacement; the fail-safe explanation is no longer cut off; a saved fail-safe configuration with one unreadable value still loads the rest.
- The process interface example scaled its analog input wrongly. If you based your code on it, check your scaling.
- "Supported" does not mean "attached". Every real camera hands out a process-interface handle whether or not anything is plugged in. The analog calibration file's slopes change nothing on a camera: what a camera applies is the interface's own factory trim, which cannot be read through the SDK.
Image, colour and corrections
- A setting changed while the camera streams no longer collides with the frame being processed (since 12.0.22): emissivity, transmissivity, ambient temperature, colour scale, overlays, palette and a new dark reference from the shutter all take effect between two frames. A setting made during a frame waits for that frame, a few milliseconds.
- A camera moved from the graphics card to the processor keeps its noise filter, its smoothing and its detail enhancement (since 12.0.19), also after a reconnect, as the colour settings already did.
- Detail enhancement reaches the pictures the SDK colours for you on a camera that uses the graphics card, also with the colour output switched off (since 12.0.19): snapshots, shared picture buffers and a colour picture handler added later.
- The documentation of how the SDK chooses a camera's pipeline says that the choice can change while the camera is open (since 12.0.19), which features depend on it, and that it is made per camera from the mode it is opened in, not from how busy the graphics card is.
- With region outlines switched on, a camera that draws its picture on the graphics card draws each outline once (since 12.0.17). They were drawn twice, which made them slightly heavier than intended.
- On the GPU pipeline, the picture no longer stands still longer than on the CPU pipeline while the SDK cycles the shutter (since 12.0.17). Since 12.0.15 it repeated about 70 frames there against about 40.
- The documentation says correctly when region outlines are drawn into the delivered picture (since 12.0.17): by default on a camera that draws its picture on the graphics card, and only after you switch it on for a camera without one, the simulated camera and a recording.
- Lens distortion correction now actually corrects the picture, so the picture will move. Before, it did nothing on any camera. Read this even if you have never touched the setting.
SetDdeGainBase(),SetDdeGainDetail(),SetFilterMode()andSetTemporalAlpha()now work on the processor pipeline. Before, they did nothing there.- Eleven of the seventeen colour palettes drew the wrong colours, and now draw the right ones. You simply got a different palette from the one you asked for. On the processor pipeline, red and blue were also swapped. The palette colour-reading functions, missing from the library, can now be called, and palette changes take effect while streaming on the graphics-card pipeline.
- The live picture no longer misbehaves on machines with a graphics card. It no longer washes out to flat white (also with a fixed colour range, or with wide distortion correction, which affected recordings, measuring areas and the cold spot too); the first frame no longer lacks picture and readings; it no longer darkens at every shutter close on large cameras; it is no longer banded without high precision, or sheared on cameras whose width is not a multiple of 64.
- The picture no longer flashes when a hot object leaves the scene, no longer flattens because of one unusual pixel such as a lamp or a reflection, and no longer tears when you add a measurement area. Processor-pipeline images are no longer banded: the colour range you set now reaches that pipeline.
- A fixed colour scale can be switched back to automatic, a camera that moves to the processor pipeline keeps its palette and colour scaling, colour windows (isotherms) work on real cameras, and detail enhancement really switches on, simulated cameras included.
- Turning off the colorized image now really turns it off, saving about a third of the graphics-card pipeline's work. Region and blob outlines are drawn as smooth lines. Each frame also costs less processor time, with byte-for-byte identical output.
- The graphics-card pipeline is more robust, and says when it is not. A pipeline that fails to start or never finishes starting falls back to the processor instead of going dark or hanging; one slow moment no longer stops the camera; it no longer runs silently on a software stand-in, and runs on a Raspberry Pi; hidden failures are logged; two driver crashes when overlays changed while streaming are fixed; and programs using it no longer crash on exit or slow down the longer they run.
- Colour settings are now safe to change from any thread while a camera streams, including while it reconnects (a change made then used to crash or be thrown away), and the colour range can be read while streaming. Loading palettes from several threads no longer kills the program or loads the wrong folder.
view::FrameProcessornever drew measuring-area outlines on the picture it returns, and still does not. Areas given to it are measured and tracked but not painted; the documentation now says so.
C, .NET, Python and Rust
- In Python, an SDK that cannot load because libusb is missing says so first, with the package to install (since 12.0.20):
sudo apt-get install libusb-1.0-0on Debian and Ubuntu. The reason used to be one line among 18 places tried. - Reading the lists of region or alarm rule ids while they change no longer fails (since 12.0.17), in .NET, Python and Rust, and in .NET a list that just became shorter no longer comes back with extra ids of 0.
- In .NET, a camera that is in use says who has it and why (since 12.0.17).
DeviceBusyException.Reasonwas alwaysUnknown, andHolderandClaimPathalways empty. - On Windows, the Python package of an SDK installation loads the SDK library of its own installation (since 12.0.17), not one that another product put first in
OTC_SDK_DIR. - In Python, a device monitor you did not keep no longer crashes your program (since 12.0.15). A monitor from
optris_sdk.device_monitor()oroptris_sdk.hotplug_monitor()that nothing referred to any more crashed the program at the next change it reported, on Linux and on Windows. It now keeps running until you stop it or the program ends. - In Python, setting a callback again while the camera is running no longer crashes your program (since 12.0.15). The callback being replaced could still be running, and replacing it freed it. The callbacks you replace are now kept until you close the camera or the recording.
- The C# samples for
EnumerationOptionscompile in a new .NET project (since 12.0.15). The default .NET templates importSystem.IO, which has a type of the same name, so the samples stopped with error CS0104. They now writeOptris.Sdk.EnumerationOptions. - A Python program ends with its own exit status, instead of sometimes crashing or hanging as it exits (since 12.0.14). On Linux it could end with
FATAL: exception not rethrownand a core dump after its work had succeeded; on Windows a program that left a camera open with a frame handler could stop responding as it exited. The Python package now closes every camera, recording session and process interface still open, and stops a device monitor still running, before Python shuts down, and removes the log handler last. Nothing changes for a program that closes its cameras itself. - On Linux, a C or C++ program whose log handler ends the thread it is called on, for example with
pthread_exit(), no longer crashes (since 12.0.14). That thread ends and the program carries on. - The C, Rust and other language documentation describes what a switch of the operation mode while the camera runs does (since 12.0.14). It warned against such a switch and told you to close and reopen the camera. The frames are marked as not being measurements for about thirty seconds while the camera recalibrates, and the readings are right once they are marked as measurements again.
- The Rust instructions no longer build the library path from
OTC_SDK_DIR(since 12.0.13). That failed as soon as the variable held more than one entry, which a second installation or Optris Relay causes. - On Windows, a C or C++ program that opens a real camera keeps all of its standard output when it ends, and ends with the exit code it returned (since 12.0.4). Read this if your program writes to a file, a pipe, a log or a CI job. In 12.0.1 to 12.0.3, a program built with
/MD, the default in CMake and Visual Studio, lost everything still waiting in its standard output once it had opened a real camera, and still exited with 0; the examples built yourself from source printed nothing when their output was redirected. When a program ends, Windows stops its other threads first and then lets each library tidy up, and the SDK library's tidying up waited for a lock that a stopped camera thread still held, so Windows ended the program before the C runtime wrote the output out. The library now leaves the tidying up to Windows when the program is ending. Measured on a PI 400, a PI 640i and an Xi 80. If you flush standard output yourself in anatexitfunction or build with/MTto avoid this, you can keep doing so or stop. - On Windows,
import optris_sdknow finds the SDK the installer installed, and on every platform it loads the SDK it belongs to rather than another copy. The binding now readsOTC_SDK_DIR(set by the installer, read as a list) as well asOPTRIS_SDK_DIR, finds the library in its own installation with no variable set, and searches there before the system.optris_sdk.library_pathnames the file really loaded:bash python -c "import optris_sdk; print(optris_sdk.library_path)"Affected versions: 12.0.0 and 12.0.1 on Windows. SettingOPTRIS_SDK_DIRor callingos.add_dll_directoryis no longer needed. - If your C# application catches
SDKExceptionfrom theOptris.OtcSdkpackage, your code now compiles; it failed with error CS0122: 'SDKException is inaccessible due to its protection level. **Affected versions: every publishedOptris.OtcSdk`, version 11 as well as 12**; version 11 is not corrected by this release. - If you watch for cameras from C#, a polling interval of zero now always throws
ArgumentOutOfRangeException; it was sometimes accepted and leftSdk.IsWatchingDevicesstuck attrue. Leave it unset for the default. - If you use the C interface or a binding built on it, handing the SDK a handle you have already freed is now always reported and can no longer crash your program. One case still cannot be detected: a new handle of the same kind at the same address. Do not use a handle after freeing it, and set your variable to
NULL. - The blob-tracking header
optris/sdk/view/blob_tracker.hnow compiles with compilers older than GCC 14 (Debian 12, Ubuntu 22.04). It stopped with 'size_t does not name a type`. - Rust:
optris_sdk::NO_MIN_INTERVAL_MS, which switches a snapshot action's rate limit off, is now exported. - "Where is the hottest pixel" is now one call, the same in every language.
MinLocationandMaxLocation(spelled to suit each language) give the column first. A frame with nothing measurable in it now says so (ExtremesKnownand its equivalents) instead of pointing at pixel zero at 0.0 °C. Existing programs are unaffected. - A duration given as a fraction of a second now converts the same way in C#, Python and Rust. Python rounded halves to even, so a 2.5 ms alarm delay was 2 ms there and 3 ms elsewhere. - In Python, an alarm recording shorter than one second was cut to zero, meaning the default ten seconds; it now records the length you asked. - A playback position in fractions of a second is no longer rounded down, and a duration too long for the camera is refused instead of replaced by 49.7 days. - A timeout of zero on the connection, discovery and watcher settings is now refused. Zero used to mean "camera default", so a short timeout became a long one. This changes code that passes a zero: leave the setting unset (
nullin C#,Nonein Python) for the default. In Rust these stay plain milliseconds. - The five .NET
await foreachstreams (pictures, alarms, alarm-action failures, movement observations, device notices) no longer lose what arrived before your first read; they listen from the moment you ask. Ask for the stream before starting the camera to get the very first picture. - A C caller that declares a smaller structure than it was given is now refused, instead of having memory beyond it overwritten. For callers that fill
struct_sizeby hand, 21 calls (eight of them on the process interface) wrote the whole structure anyway; each now refuses with an invalid-argument error and writes nothing, and a process-interface channel table with a mismatched entry size is no longer applied to real terminals. One call changed shape:optris_sdk_imager_get_continuous_timeline()now takes the size of one entry before the capacity. The .NET, Python and Rust bindings, and programs using the_initcalls, need no change. - Opening a recording from .NET did not work at all; every attempt failed with "imager handle is empty". It now works.
- Documented functions that were missing now exist: thirty-one parts of the C++ interface that failed to link,
CalibrationStoreand theDownloadCalibrationfunctions, and the image builder and imager factory in C# and Python. - Asking for raw or energy pictures now actually delivers them. A handler registered for raw sensor frames or for energy frames used to be accepted and then never called.
- The Windows NuGet package now works when you install it. It built cleanly and then failed on first use, and lacked four files it needs to start.
- Linking the SDK statically now works, on Windows, into a C program, and from the installed package:
find_package(otcsdk)thenotcsdk::otcsdk_static, with no extra lines. If you built a workaround, such as addingnghttp2,sslandcryptoto your link line or copying the video libraries up a directory, you can remove it. - Test suites that mock SDK classes with Moq or NSubstitute work again.
- More settings can be read back: extended range and high precision from Rust, high precision from Python, and six camera settings that could be set but never read. A camera that will not finish switching measurement mode is now reported as refusing, not as an invalid request.
- Crashes and hangs fixed: C interface functions crashing on Windows instead of returning an error; two threads at once, or a log handler installed while running; reading a pixel; exit with a camera open; a C# recording started with options. Twenty-seven places where the bindings ignored an error now report it.
- Clearing a handler now waits for one that is already running, so its data can be freed safely, and closing a camera leaves none of your callbacks registered.
- In Python, a serial number can be given as a number:
Camera.open(serial=16030066)and"16030066"are the same camera.effective_ambient_cgives one value, orNonewhen there is no reading yet. - If you write Rust on Windows, set
OPTRIS_SDK_LIB_DIRto the installed SDK'slibdirectory (notbin), and putbinonPATHat run time; without the first, the build stops at LNK1181: cannot open input file 'otcsdk.lib`. Both crates are on crates.io. - If you build C++ on Windows, match the SDK: the same Visual Studio toolset, C runtime setting and configuration as the
otcsdk-34.dllyou load. This does not apply to .NET, Python or Rust: a .NET project built in Debug loads the shipped Release library correctly.
Installation and packaging
- A C++ program that includes
sdk.hcan add the headers that are not part of it (since 12.0.29). Adding#include "optris/sdk/rec/video_exporter.h"below#include "sdk.h", as the shipped examples begin, gave 137 compiler errors; the two now compile together in either order, and the manual's page "Headers outside the single-include header" shows how. - The manual's pip steps work on a fresh Debian or Ubuntu system (since 12.0.20): they install
python3-venvfirst, whichpython3 -m venvneeds there. - On Windows, the Visual Studio projects of
simpleViewandplaygroundbuild on a computer where Optris Relay is installed (since 12.0.17). - The installation guide says which folder the uninstaller leaves behind on Windows, and why (since 12.0.17):
C:\ProgramData\Optris\otcsdk\claims, which other Optris software shares. - The installation guide says exactly which Python package is used when both the SDK and the
optris-sdkwheel are on a computer (since 12.0.13), including that with the Linux archive aPYTHONPATHyou set yourself is searched first. - On Windows,
pip install optris-sdkin a virtual environment uses the package from pip, even when the SDK is installed on the same computer (since 12.0.8). Read this if you use Python on a Windows computer where the SDK installer has run. Up to 12.0.7 the installer's copy of the Python package won inside such an environment, so the program ran on the installed SDK's version and library instead of the one installed with pip. A Python without its ownoptris-sdkstill finds the installed SDK's package with nothing to set up. - The Python package from pip no longer warns that the SDK's data folder does not exist (since 12.0.7). Read this if you installed with
pip install optris-sdkand saw that warning on every run. The package always used the camera format table, palettes and norm tables it carries, so cameras, temperatures and pictures were never affected; only the folder the SDK named as its data folder was wrong. It now names the folder inside the package. You do not need to setOTC_SDK_DIRfor the package. - The Linux
.tar.gzarchive holds the same files as the.deb(since 12.0.5). Read this if you build your own programs with CMake against the archive. Up to 12.0.4 it also carried the development files of libraries built into the SDK (curl, cpr, zlib, pugixml and ftxui: headers, CMake and pkg-config files,curl-config, manual pages), so a project pointingCMAKE_PREFIX_PATHat the archive could pick up our curl instead of the system's. The SDK never needed them at run time, and their licence texts are still included. If your project used one of them from the archive, install your distribution's development package, for examplelibcurl4-openssl-dev. - The C# NuGet packages work on every Linux distribution the SDK supports, not only on Debian 13 (since 12.0.4). Read this if you use
Optris.SdkorOptris.OtcSdkon Linux, for example in a container. In 12.0.1 to 12.0.3 their Linux library needed glibc 2.39 and OpenSSL 3.2, which of the supported distributions only Debian 13 has, so on Ubuntu 24.04 (the base of the official .NET 10 container images), Ubuntu 22.04 and Debian 12 the first SDK call failed withDllNotFoundException. The packages now run on Debian 12 and 13 and Ubuntu 22.04 and 24.04, and on other distributions with glibc 2.35 or later and OpenSSL 3. They take one library from the system that a minimal system or container usually lacks, libusb: install it withsudo apt-get install libusb-1.0-0. Without it, the error now names that package. The NuGet package on Linux lists what the packages take from the system and how to install the camera access rules a USB camera needs. - The video libraries that come with the SDK contained code under the GNU GPL, which is not compatible with shipping the SDK inside a commercial product. They have been replaced, and nothing the SDK ships is under the GPL any more. The libraries (
avcodec-61,avformat-61,avutil-59,swscale-8,swresample-5) are now built by Optris from the official FFmpeg source and hold only what the SDK uses. File names, the SDK's interface, recording, playback, snapshots, video export and hardware encoders are unchanged. On Windows,avdevice-61.dllandavfilter-10.dllare no longer installed: if your application loaded them, or calls FFmpeg itself for formats the SDK does not use, ship your own copy. On Linux, the bundled libraries use the system'slibstdc++. - If you use the Linux
.tar.gz, the Python bindings, the command line tools and the pre-built examples in it now work from wherever you extracted it, with noLD_LIBRARY_PATHto set. Before, they stopped at "cannot open shared object file". The Installation chapter's new section "The Linux Archive, Without apt" covers camera permissions, CMake, and C#, which still needs a step from you. Affected versions: every 12.x.tar.gzup to and including 12.0.1. - Debian 12 and Ubuntu 22.04 packages are built again. Those two suites on
apt.optris.comkept offering version 11 whileapt upgradesaid everything was up to date (apt policy otcsdkshows it). Once version 12 is published there,apt update && apt upgrademoves you to it, so read Breaking Changes first. OTC Studio is in no Debian or Ubuntu package; it needs a newer GTK. - The example and tool programs in the Windows package now start on an ordinary Windows PC. Before, each one needed Visual Studio installed, or Windows refused it with "MSVCP140D.dll was not found". The package now ships proper release builds. The debug SDK library,
otcsdkd-34.dll, is still included on purpose. - The Windows installer now puts the version 11 Python module where Python will find it, so
import otcsdkworks after installing. If you added the path toPYTHONPATHby hand, you can take it out; a duplicate does no harm. - Every package now ships the licence texts for everything third-party inside it: 23 instead of 3. The video libraries (LGPL version 3) come with the LGPL and GPL version 3 texts and a file naming the exact build, its source download and checksums; the GPU engine's 135 components are listed in
wgpu-native-THIRD-PARTY.md(all permissive); two NuGet licence files with the wrong text are corrected. Locations: Linux/usr/share/otcsdk/licenses/(the video libraries' three in/usr/lib/otcsdk/), Windowslicenses\, NuGetlicenses\<runtime>\with aTHIRD-PARTY-NOTICES.md. - Installing on a machine where the previous installation's folder had been deleted by hand no longer hangs forever. A genuine uninstall failure still stops the installation, now with a message.
- Installing the SDK a second time on Windows no longer breaks the data lookup of every installation on the machine. After a second installation the SDK could not find its palettes, norm tables and
Formats.def. It now readsOTC_SDK_DIRas a list (;on Windows,:on Linux), uses the first entry that exists and logs its choice; set it to one directory to pin an installation. Uninstalling removes only its own entry. - Removing one of two SDK installations on Windows no longer makes the other vanish from "Apps & features"; the remaining one keeps or takes over the entry.
- On Windows, nothing needs to be installed before the SDK: the Microsoft Visual C++ runtime now comes with it. Before, without Visual Studio or the Redistributable,
import optris_sdkand every C# program failed with "could not find module otcsdk.dll". The four runtime files (msvcp140.dll,msvcp140_atomic_wait.dll,vcruntime140.dll,vcruntime140_1.dll) are besideotcsdk-34.dllin the installer, the zip and the NuGet package, withlicenses\MSVC-RUNTIME-NOTICE.txt. If you copy onlyotcsdk-34.dllinto your own application, copy the four with it, or install the Microsoft Visual C++ Redistributable (x64), https://aka.ms/vs/17/release/vc_redist.x64.exe. - Uninstalling the SDK on Windows now cleans up properly without touching anything else: empty registry keys and an empty
Optrisfolder in Documents go, while anything with content stays; the tables copied intoAPPDATA%\Imager, which used to stop newer cameras opening, are removed; "Apps & features" shows size and folder and offersQuietUninstallString. - Copying the examples into Documents no longer needs about 532 MB free for 11 MB, and a failed copy is shown (or written to
install.logon a silent install). - The Windows installer no longer ships a debug build of the Python and C# bindings.
- Installing or removing the SDK could delete the Start menu entries of every program on the computer. This is the most serious defect we have shipped. Removing the SDK, including when a newer one is installed on top, deleted the folder holding the Start menu entries for all programs (Word, Excel, Outlook, Windows Tools, Startup and so on); the programs still work, but the shortcuts are gone, not to the Recycle Bin. Affected versions: 10.0.0 up to and including 11.3.0; 11.3.1 and later and all 12.x are not affected. What to do: upgrade to this release, and do not uninstall the old version by hand first. This installer saves your Start menu entries, lets the old removal run, restores anything that should not have gone, and leaves the copy under
C:\ProgramData\Optris\SDK Setup\StartMenuBackup, which is safe to delete. - Installing the SDK deleted everything in your
Documents\Optrisfolder, on every install, not to the Recycle Bin. Affected versions: 10.2.0 up to and including 12.0.0. Now only the example files we ship are replaced, so copy your edits to them first. Lost files can only come back from a backup or shadow copy. - Installing one of our smaller Windows programs, such as the Thermal Showcase, no longer offers to uninstall it and removes the SDK instead.
- The NuGet package carries Windows debug symbols again, under
symbols/win-x64/; they are not copied into your output, so point your debugger's symbol path at the restored package. The NuGet package now carries exactly the five video libraries the SDK links. - On Debian and Ubuntu, a USB camera works straight after installing, and after unplugging and replugging it. Affected versions: every 12.x Debian, Ubuntu and
.tar.gzpackage up to and including 12.0.1; NuGet packages were never affected. Installing with an already set-up camera attached no longer fails; if you unplugged cameras before upgrading, you can stop. - The Linux packages are complete: version 12 examples and
sdk.h, workingfind_package(otcsdk)andcmake --install --prefix, no reading another installation's data files from outside/usr, no third-party headers, man pages or pugixml that could shadow yours, declared dependencies, and the distribution in the version (12.0.0~trixie1) soaptrefuses a mismatch. On Linux the NuGet package carries its video libraries and finds its data files however the application starts. - Plain
.tar.gz(Linux) and.zip(Windows) downloads are available again, and every package contains this changelog. The hidapi library the SDK uses for USB cameras is now named in the third-party list, under its BSD 3-clause licence, with its licence text. The build information the SDK reports, including the branch on Debian and Ubuntu packages, is now true.
Examples and tools
- The showcase's status line names the pipeline the camera really runs on (since 12.0.29). After "Pipe:" it named the graphics card the showcase had asked for, also when the SDK ran the camera on the processor; it now shows what
Processing().Info()reports, andnone (playback)while a recording plays. - The notices file that comes with the benchmark program holds every licence the program needs (since 12.0.28): the BSD licence of hidapi, the MIT licence of the DirectShow base classes on Windows, and the LGPL licence of the FFmpeg libraries beside it on Linux.
- simpleView, the showcase, the playground and the C# SimpleView open a camera on the network (since 12.0.27). Given a serial number, each looks on USB and on the network, waits for the camera with its window open, and opens a busy camera once the other program lets go. Without a serial number they look on USB only;
--networkalso opens the first camera on the network, which the playground andSimpleView --liveused to do without being asked. - The showcase reconnects to its camera, focuses by 1 % of the travel instead of driving the lens to its near end, keeps its picture when the canvas is switched, and its pointer and centre readouts follow a measuring area's own emissivity (since 12.0.27). The guide for moving from version 11 now names
Optics().SetFocus(pos / 100.0f)forsetFocusMotorPosition(), where it named a call taking the motor's own position. - The C, C++ and Python examples on the process interface pages compile and run as written (since 12.0.23), and so does the Python example for watching cameras being plugged in and out on the overview page. They called functions with the wrong number of arguments, by an old name, or read methods as attributes.
- The Python example
process_interface/pif_info.pyno longer stops withAttributeErroron a camera without a process interface (since 12.0.23), which is most cameras, and it says thatdeclare_identity()declares which process interface is attached. - The C example that places the colour picture into a larger canvas no longer shares flags with the SDK's streaming thread (since 12.0.22).
- The C# example on the process interface page that reads the interface's hardware information compiles (since 12.0.21). It named a type,
PifHardware, that does not exist; the type isPifHardwareInfo. - Every Rust example refuses an option it does not know with exit code 2 (since 12.0.20).
device_control_network_configtook one for a serial number and searched for that camera, anddiscovery_set_address_by_broadcastignored it and reported success. - The
network_configexample works with an Xi 640 ETH connected by Ethernet, in every language (since 12.0.18), and the C# one no longer crashes when another program is using the camera. - The first programs in the descriptions of the Python package, the Rust crates and the .NET package skip startup frames (since 12.0.18), so they no longer print 125.0 °C on a real camera.
- The
pan_livecanvas example no longer fails its own check now and then on a busy computer (since 12.0.18), in any language: it reads after a drag only from a frame taken after the drag. - The example programs work on Windows for a user whose folder names are not plain English (since 12.0.17), for example a user name in Chinese or "Müller", and so do the C++ samples on the palette library page.
- The first programs in the manual print measurements on a camera that was just opened (since 12.0.17), and simpleView says "waiting for the camera's startup calibration" in narrow tiles too.
otc_ravi,otc_snapshot,otc_config,otc_rdcandotc_virtualaccept file and folder names with non-English characters on Windows (since 12.0.14). They received their command line in the computer's Windows character set, sootc_ravianswered "cannot open" for a recording in a folder such asPrüfung, andotc_snapshotcould report success after writing its file under a garbled name.otc_config generatewithout--outputalso works when your Windows user name contains such characters.- The hardware benchmark runs at normal priority and no longer makes a Windows computer stop responding (since 12.0.14). Run as an administrator, it gave itself the highest priority Windows has, and its last test, which keeps every processor busy on purpose, could starve the rest of the computer. It never uses that priority now.
--priority highruns the scored tests at high priority, never higher, and the simulated camera test stops after five minutes at the latest (--simulated-time-limitsets another limit in seconds). - The C++ example "Converting a whole folder" and the two Python examples on the page about converting PIX Connect recordings work as printed (since 12.0.14). The C++ example passed folder names that are not plain English to the SDK in the old Windows character set, and both Python examples stopped with "name 'optris_sdk' is not defined".
- simpleView, the playground, showcase and the .NET SimpleView no longer show a camera's startup frames as temperatures (since 12.0.13). In place of each reading they say "waiting for the camera's startup calibration" until the frames are measurements. The .NET SimpleView has a new option,
--print-readout, which prints its readout instead of opening a window. - The samples in the manual and the C recording example skip a camera's startup frames (since 12.0.13). The samples printed them as readings, and
06_recording.ccould save a CSV snapshot of 125.0 °C in every cell.open_network_camera --simulatednow runs. - The hardware benchmark always reports its score (since 12.0.13). A simulated camera that could not be started in the last, unscored part ended the whole run with "the acquisition loop did not start" and no score. That part now stops there and says why.
- The C# examples end with exit status 1 when the camera cannot be opened (since 12.0.13), with the reason, instead of .NET's code for an unhandled error and a stack trace.
otc_streamandotc_snapshotend with exit status 1 when the camera sends no image (since 12.0.11), and write one line naming the camera, whether the run ended at its-dduration, at Ctrl+C or after the new--first-frame-timeout(30 seconds by default).otc_streamended with 0 andotc_snapshotwaited for ever. A run that received images still ends with 0.otc_streamalso refuses a-dduration that is zero or that it cannot read completely, such as0sor1.5xs, with exit status 2. SetOTC_SIM_WITHHELD_FRAMESwith--simulatedto try a script against a camera that sends nothing.- The Linux hardware benchmark starts on Debian 12 and 13 and on Ubuntu 22.04 and 24.04 (since 12.0.10). It used to need newer system libraries than three of them have and stopped at once. Every release now starts it on all four, on x64 and arm64. Beside its own folder it needs
libusb-1.0-0and OpenSSL 3 (libssl3,libssl3t64on Ubuntu 24.04 and Debian 13). - The
pipeline_replaytool uses the calibration settings that come with a recorded data set (since 12.0.10) instead of this computer's calibration folder, so one data set gives the same result on every computer. - The Rust examples answer
--help(since 12.0.9) with what they accept, without opening a camera, as the C, C++ and Python examples do. With no argument they use a simulated camera, and a mistyped option is refused with exit status 2. - The ready-made example programs now write their files into your temporary folder, and report a failure when they cannot write. They used to write inside the installation, where a standard user may not: the recording example failed on every run after the first, and the alarm examples wrote nothing and reported success. Each now prints the path it wrote to and uses a fresh folder per run; the two viewers with a snapshot key save into your pictures folder.
- Every package now carries the 22 Python examples for the
optris_sdkinterface it installs, inexamples/python/. Before, only four examples for the olderoptris.otcsdkbinding shipped, inexamples/python3/; they stay, andexamples/python3/README.mdsays which directory is for which binding. Affected versions: every 12.x package up to and including 12.0.1, on every platform. - The C# examples in the Windows installer and zip can now be built: 24 of the 28 could not, because the
Optris.Sdkpackage they ask for was not available. A copy now sits inexamples/packages/andexamples/NuGet.configpoints at it; if you move one example elsewhere, take the wholeexamplesdirectory or point NuGet at that folder. On Linux the.deband.tar.gzcarry the same copy since 12.0.5, so the C# examples build there as well, all butSimpleViewCS, which uses Windows Forms and is Windows-only. - Copying the C examples out of an installed SDK and building them now gives you all 31, not 30.
examples/c/recording/record_and_replay.cwas missing from the build file; the ready-to-run copy always worked. - The example programs and command-line tools now build with GCC 12, so you can build them on Debian 12 and Ubuntu 22.04. They print the same text.
simpleViewandplaygroundbuild again from the package, now that the SDK asks only C++17 of its callers. If a copied folder would not build, take the new copy, or add thetarget_compile_featuresline itsCMakeLists.txtnow carries.- The SDK Showcase viewer can now be built from the package, on any platform; it needs only the SDK and the two SDL2 development packages its instructions name.
- The Windows viewers behave like Windows programs.
simpleViewopens its window and keeps it open, saying "No camera connected." when there is nothing to show, reports start-up problems in the window, and picks up a camera connected later.simpleView,showcaseandplaygroundno longer open a black console window; from a command prompt they print as before, and redirected output still lands in the file. Started from the Start menu,simpleViewlogs tosimpleView.login your temporary folder and reports a failed start in a message box, asplaygrounddoes when it closes.showcaseanswers--help, and with no camera opens its window and says so. playground --helpprints what it accepts and stops, instead of opening a camera and running until stopped. It accepts no other options, on purpose: it is meant to be changed insrc/playground.cc.- The viewers in the Windows package have Start menu entries named after their programs:
simpleView(previously listed as "Simple View") and, new,showcase.playgrounddeliberately has none, and there is no desktop icon. Uninstalling removes the entries the installer created, including the old "Simple View". - Two Rust examples in the
optris-sdkpackage work now.process_interface_pif_infofailed on every camera without a process interface instead of saying so, andrecording_record_and_replayfailed on every run after the first; it now writes into a new folder each run and prints where. - The example programs do what they say: none crash, fail after a correct run or exit silently on a serial; they use
IRImager.Create(), can raise their alarms and wait for a healthy camera; the installed playground, the C recording examples on Ubuntu andlegacyTestbuild;simpleViewshows several cameras; the C# recording example's replay runs. - The examples no longer write to
/tmp, no longer open "the first camera found", and most run without a camera, so a broken installation can be told from a missing camera. Each says what it demonstrates when it starts. - Every C and C++ example answers
--help(since 12.0.4): it prints what it accepts and stops without opening a camera. 27 of the 31 C examples took--helpfor a camera serial number and failed. A mistyped option is refused with exit status 2 instead of being looked up as a camera. The C process interface example07_pifnow uses the simulated camera with no arguments, like every other C example. - The C# minimal example no longer reports a healthy run as almost every picture dropped (since 12.0.4). It printed the pull queue's dropped-picture counter, which rises with every picture in a program that never collects pictures that way. It now prints the count for the way it does take them, and the C# examples' instructions say which counter belongs to which way.
- The C error-handling examples report a failure when the SDK does not behave as documented (since 12.0.4), instead of printing the count and exiting successfully.
- The first examples you run no longer print the frames a camera delivers while it calibrates as temperatures (since 12.0.4). For the first seconds after it starts, a real camera delivers frames from before its startup calibration has finished, and the SDK marks each of them as not yet a measurement. On an Xi 80, a PI 400 and a PI 640i they read 125 °C, the top of the range, for about 0.9 to 2 seconds (94 to 125 °C on the PI 640i), and the minimal examples printed them anyway: the C example that reads 30 frames printed only 125.0 °C on an Xi 80 or a PI 400. The minimal example in each language, and the C tour
minimal.c, now skip those frames, say that they are waiting for the calibration and how many frames they skipped, and then show 30 measurements; thepull_framesexamples label them "NOT A MEASUREMENT". Your own program should do the same: skip every frame whose "is this a measurement" flag is false,thermal_data_reliablein C, C++, Python and Rust andIsThermalDataReliablein C#. The SDK delivers these frames on purpose, so that a picture can be shown while the camera calibrates. - Every example that prints temperatures skips the frames a camera delivers while it calibrates (since 12.0.8), not only the minimal ones of the entry above. Up to 12.0.7 the region, line profile, hot spot, recording, frame and other examples printed those frames as readings, for example 125.0 °C. Each one, in C, C++, C#, Python and Rust, now says once that it is waiting for the camera's startup calibration and at the end how many frames it skipped. On a camera that has already warmed up it skips none.
- The command line tools write only data to standard output; status messages go to the error stream, so
otc_stream -f raw > frames.binholds only frames andotc_find --jsonparses. On Windows they accept a path starting with/, such asotc_ravi info /data/run.ravi. - Individual tools fixed:
otc_snapshotstarts on Windows and writes real 16-bit PNG and TIFF (it wrote CSV whatever the name);otc_inforeports the processing backend and why;otc_cali statusreports calibration folders, servers and files;otc_netno longer calls the stream destination the "gateway", and--dhcpno longer claims success on these fixed-address cameras;otc_config generateworks on Windows;otc_versionanswers a support question on its own; OTC Studio can no longer record over a recording. - The log says more, consistently: which pipeline each camera runs and why, which camera a line is about, which calibration folder and format table were used, and what asked for a recalibration. Numbers no longer follow regional settings, and
Sdk::setLogCallback(callback, exclusive)honoursexclusive. - If you read "which processing pipeline, and why": for simulated cameras it now gives one true answer, and the set of values has grown by one, so an exhaustive switch should add it.
OTC_SIM_PIPELINE=autostill restores the ordinary rules. - The GPU "vendor" now reads
NVIDIA,AMD,Inteland so on, with the driver reported separately. For C and C++ callers: the GPU information structure grew two fields at the end; no code change is needed.
Version 11 applications
- Starting the camera search again right after stopping it can no longer hang (since 12.0.24). A start that came at the very moment the search had finished stopping, after
EnumerationManager::stopRunning()or anything else that stops it, could be missed, andrunAsync()then waited forever. - A version 11 program that adds or removes an alarm channel while the camera streams can no longer hang (since 12.0.22).
- Programs written for version 11 can name any folder on Windows (since 12.0.17), including one whose name Windows' older text encoding cannot hold:
Sdk::setCustomDataDirectoryUtf8(),Sdk::setCalibrationFileSourceDirectoryUtf8()andSdk::loadPalettesUtf8()take the folder in UTF-8, in C++ and in the version 11 .NET package. A folder starting with~orUSERPROFILE%means your home folder there too. - On Windows, a version 11 program writes its log file, and
Sdk::savePalette()keeps a name like "Müller", in a folder whose name is not plain English (since 12.0.17). - On Windows, the Python package for programs written for version 11 (
optris.otcsdk) uses the SDK library it was installed with (since 12.0.17), even when Optris Relay is installed. The import used to fail with "The specified procedure could not be found". - If you have a version 11 application that measures, it kept receiving pictures from version 12 and silently stopped receiving temperatures: every measurement area went quiet, along with its alarms and its raw frames. All three work again, and a measurement area given in relative coordinates covers the pixels you asked for. What was wrong, and is now fixed: - per-picture area statistics were computed and then dropped; - alarm notifications, the combined alarm notification and raw sensor frames never arrived; - an alarm watching a measurement area was not created at all; - an area in relative coordinates covered no pixels; an area in pixels landed half its own size down and to the right; an oval covered four times the area asked for; a smooth curve was measured as straight lines; - an area's median was always zero, so a median alarm never fired, and an area's own emissivity was not applied. What to check: if you shifted your own coordinates to compensate, undo that. Adding an area with no name is now refused, as in version 11, along with the other configuration mistakes version 11 refused.
- A version 11 application can now be tested against a simulated camera with a simulated process interface: a voltage on the simulated analog input is converted with your gain and offset and reported on the first reading and each change, and the interface reports as attached.
- A version 11 application watching the internal shutter is now told "opening" and "closing", not only "open" and "closed". All six shutter positions, including starting-up and fault, now arrive as themselves, so a watchdog waiting for the shutter to finish moving now starts.
- A version 11 application is now told the truth about every picture.
isSameFrame()always said no,isThermalDataReliable()always said yes even while warming up, andgetDetectorSettling()always said "cannot tell". All three now report the real, more cautious state. - Stopping a version 11 camera by closing it from another thread no longer crashes your application, which is what the documentation has always told you to do (
stopRunning()ordisconnect()whilerun()blocks). Nothing in your program needs to change. - The process interface reached through
IRImager::getPif()works again; it silently did nothing. What it returns lasts as long as the camera object: with no camera open it reads as empty and refuses writes with "not connected", and after a re-open it reaches the new camera. - Your version 11 application is told again when a connection attempt starts and fails (code implementing
IRImagerClient), readings from a camera that is not connected say so instead of giving a believable number, and a setting applied with no camera connected fails instead of doing nothing. optris::IRImagerFactorystill exists and works in version 12, includinggetInstance().create("native"); the migration guide wrongly said it was gone.
Known Limitations
These are things the SDK does not do, or does not do fully. They are not expected to change in this release, and each says what to do instead.
- Four of the camera readings an alarm rule can name are never measured, so a rule watching one of them will never go off. They are the focal-plane-array temperature, the focus position, the frame rate and the dropped-frame count. Such a rule is accepted and reports its state as "orphaned". What to do instead: for dropped frames,
DroppedFrameCounton the camera object (it counts the pull queue's discards, so with callbacks it counts nearly every frame); for the frame rate, the measured frame rate on the camera object; for the focus position, read it from the lens; for the focal-plane-array temperature there is no substitute, and the detector chip temperature is the reading that exists. - The per-module processing trace a version 11 application could ask for is not produced, and a version 11 application subscribing to it is never called. Version 12 processes a picture differently and has no equivalent list of steps. The SDK says so once per camera, at warning level, the first time you ask. What to do instead: for the overall rate, read the measured frame rate on the camera object; the version 12 interface exposes each processing stage's own buffer for diagnostic tools.
- The notice image's repeats are not sized to the stream, so on a small or slow camera they are most of the first three minutes of every file. Every recording carries one picture of its scene with a notice that the file holds raw thermal data, repeated once a second for the first three minutes so a player keeps showing it. That costs about 1 % of the file on a 640x480 at 32 Hz and most of the first three minutes on a 160x120 at 8 Hz. If you measure a recording's size or rate yourself, count only the thermal track.
- On Arm Linux (arm64), commands to a camera's control channel are unreliable, and there is no setting that avoids it. Read this if you run the SDK on a Jetson or any other arm64 machine. A control command often fails inside the USB library, the SDK retries thirty times, and the program appears to hang for about a minute; a camera that is only streaming is not affected. There is no workaround in this release, and the earlier advice to switch backends no longer applies. On amd64 this has never been seen. On arm64, expect configuration calls to need retrying, and tell us if you hit it.
Known Issues
These are defects still present. Each is here because it can move a measured temperature or block something you may be relying on.
Measurement
- On a Stackable PIF, the analog input voltages are read wrongly in a program that uses a German number format, for example a Python program that called
locale.setlocale(locale.LC_ALL, "")on a German computer: 1.5 V reads as 1 V and 0.25 V as 0 V, so an input that drives the emissivity or the ambient temperature moves the measured temperature. Programs that leave the number format alone are not affected. Set only the parts of the locale you need (for exampleLC_TIME), notLC_NUMERIC. - A custom emissivity set on an individual measurement field is lost as soon as the configuration is saved. The file is written with the field's override flag the wrong way round, so a field that has its own emissivity is written blank, and a field that has none is written with whatever unused number it carries. Both directions change the temperature the field reports, and saving twice in a row produces two different files. Not corrected yet, because correcting it changes measured temperatures for anyone whose saved configuration is already affected.
- On a PI 640, the graphics-card pipeline reports temperatures much too high whenever emissivity is set below 1: by 4 degrees at emissivity 0.9, 14 at 0.7 and 29 at 0.5, against a target at 50 degrees, and exactly right at 1. A PI 640 at full resolution uses the graphics-card pipeline by default. Transmissivity is affected exactly as much as emissivity. The processor pipeline is correct here, and an Xi 400 shows no such error. Until this is understood, do not rely on measurements below emissivity 1 taken on a PI 640 with a usable graphics card.
- The automatic detector-bias adjustment ("skim") makes the processor pipeline read about 1.6 degrees too high on a PI 640, roughly nine runs in ten, and the image looks normal.
OTC_NO_AUTO_SKIM=1suppresses the adjustment and restores correct temperatures, but it is a diagnostic switch for confirming the problem, not a setting to run with. On an Xi 400 the same adjustment is far more damaging: it pushes the detector outside its calibrated range, the image goes flat and reads about 13 degrees low, and because the setting is stored in the camera it persists after your program exits. Running version 11, or measuring with the adjustment suppressed, restores the camera; suspect this first if an Xi 400 suddenly shows a flat or wildly wrong image. On a PI 640 at full resolution on the graphics-card pipeline the adjustment never runs at all. - A single reading on the 150 to 900 °C range carries roughly 1.5 degrees of uncertainty that no settling removes. The detector-bias adjustment can come to rest anywhere inside a band, so repeat readings of an unchanging target land up to about 1.5 degrees apart. Version 11 behaves the same way. Average several readings.
- A camera that has just been powered on cannot be used for accurate radiometry for roughly an hour, and gives no sign of it. Every reading follows the detector's temperature while it warms, smoothly. Let a camera stream for an hour before checking it against a reference.
Other
- A version number is reported as invalid whenever any part of it is zero.
Version::isValid()and theboolconversion that uses it require all three parts to be non-zero, so 12.0.29, the SDK's own version, is reported invalid. Compare the parts yourself.