SDKs.DjiImage.Net48 1.4.0

There is a newer version of this package available.
See the version list below for details.
dotnet add package SDKs.DjiImage.Net48 --version 1.4.0                
NuGet\Install-Package SDKs.DjiImage.Net48 -Version 1.4.0                
This command is intended to be used within the Package Manager Console in Visual Studio, as it uses the NuGet module's version of Install-Package.
<PackageReference Include="SDKs.DjiImage.Net48" Version="1.4.0" />                
For projects that support PackageReference, copy this XML node into the project file to reference the package.
paket add SDKs.DjiImage.Net48 --version 1.4.0                
#r "nuget: SDKs.DjiImage.Net48, 1.4.0"                
#r directive can be used in F# Interactive and Polyglot Notebooks. Copy this into the interactive tool or source code of the script to reference the package.
// Install SDKs.DjiImage.Net48 as a Cake Addin
#addin nuget:?package=SDKs.DjiImage.Net48&version=1.4.0

// Install SDKs.DjiImage.Net48 as a Cake Tool
#tool nuget:?package=SDKs.DjiImage.Net48&version=1.4.0                
SDKs.DjiImage

https://github.com/Jazous/SDKs-DjiImage

1、Nuget 安装

.NET 6.0+

PM> Install-Package SDKs.DjiImage

.NET Framework 4.8

PM> Install-Package SDKs.DjiImage.Net48

.NET Framework 4.5.2

PM> Install-Package SDKs.DjiImage.Net45
2、下载 Dji TSDK 添加到项目中

https://www.dji.com/cn/downloads/softwares/dji-thermal-sdk

dji_thermal_sdk_v1.4_20220929.zip

Linux :libdirp.so、libv_cirp.so、libv_dirp.so、libv_girp.so、libv_iirp.so、libv_list.ini

Windows:libdirp.dll、libv_cirp.dll、libv_dirp.dll、ibv_girp.dll、libv_iirp.dll、libv_list.ini

下载后解压,并将对应 tsdk-core\lib 目录下的 libv_list.ini*.dll*.so 文件拷贝到执行程序根目录下

3、使用例子
byte[] data = System.IO.File.ReadAllBytes("1.JPG");
using (var img = RJPEG.FromBytes(data))
{
    var at = img.GetRectTemp(0, 0, 100, 100);
    Console.WriteLine($"MinTemp={at.MinTemp} ,MaxTemp={at.MaxTemp}");
}
Console.ReadKey();

注:运行报错 System.BadImageFormatException 时,需要项目属性设置相应的目标平台, release_x64 目标平台选择 x64release_x86 目标平台选择 x86.NET FrameworkAnyCPU 默认是 x86

Product Compatible and additional computed target framework versions.
.NET Framework net48 is compatible.  net481 was computed. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.
  • .NETFramework 4.8

    • No dependencies.

NuGet packages

This package is not used by any NuGet packages.

GitHub repositories

This package is not used by any popular GitHub repositories.

Version Downloads Last updated
1.5.1 101 6/24/2024
1.4.3 118 6/15/2024
1.4.2 212 4/11/2023
1.4.1 245 2/10/2023
1.4.0 263 1/30/2023
1.3.2 389 8/13/2022
1.3.1 393 7/31/2022

1、修复解析图像时因区域产生的问题
2、RJPEG 添加 Filter 方法,提供简单的温差阈值主体过滤法
3、RJPEG 添加 MaxTempLocs 属性,用于获取最高温度点的位置
4、VJPEG 解析失败时抛出异常,并提供 TryParse 不抛异常方法
5、LTCollection 添加 Split 方法,用于拆分为多个小集合,方便绘制多个标记框
6、修复椭圆计算的bug