SDKs.DjiImage.Net45
1.3.2
See the version list below for details.
dotnet add package SDKs.DjiImage.Net45 --version 1.3.2
NuGet\Install-Package SDKs.DjiImage.Net45 -Version 1.3.2
<PackageReference Include="SDKs.DjiImage.Net45" Version="1.3.2" />
paket add SDKs.DjiImage.Net45 --version 1.3.2
#r "nuget: SDKs.DjiImage.Net45, 1.3.2"
// Install SDKs.DjiImage.Net45 as a Cake Addin #addin nuget:?package=SDKs.DjiImage.Net45&version=1.3.2 // Install SDKs.DjiImage.Net45 as a Cake Tool #tool nuget:?package=SDKs.DjiImage.Net45&version=1.3.2
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.3_20220517.zip
Linux :libdirp.so、libv_dirp.so、libv_girp.so、libv_iirp.so、libv_list.ini
Windows:libdirp.dll、libv_dirp.dll、ibv_girp.dll、libv_iirp.dll、libv_list.ini
下载后将对应 lib
目录下的 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
目标平台选择 x64
,release_x86
目标平台选择 x86
(.NET Framework
中 AnyCPU
默认是 x86
)
Product | Versions Compatible and additional computed target framework versions. |
---|---|
.NET Framework | net452 is compatible. net46 was computed. net461 was computed. net462 was computed. net463 was computed. net47 was computed. net471 was computed. net472 was computed. net48 was computed. net481 was computed. |
-
.NETFramework 4.5.2
- 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.
Support Windows 7