SDKs.DjiImage 1.3.1

There is a newer version of this package available.
See the version list below for details.
dotnet add package SDKs.DjiImage --version 1.3.1
                    
NuGet\Install-Package SDKs.DjiImage -Version 1.3.1
                    
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" Version="1.3.1" />
                    
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="SDKs.DjiImage" Version="1.3.1" />
                    
Directory.Packages.props
<PackageReference Include="SDKs.DjiImage" />
                    
Project file
For projects that support Central Package Management (CPM), copy this XML node into the solution Directory.Packages.props file to version the package.
paket add SDKs.DjiImage --version 1.3.1
                    
#r "nuget: SDKs.DjiImage, 1.3.1"
                    
#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.
#addin nuget:?package=SDKs.DjiImage&version=1.3.1
                    
Install SDKs.DjiImage as a Cake Addin
#tool nuget:?package=SDKs.DjiImage&version=1.3.1
                    
Install SDKs.DjiImage as a Cake Tool
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
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 的 .dll 或 .so 文件拷贝到执行程序根目录下

3、使用方法:
byte[] data = System.IO.File.ReadAllBytes("1.JPG");
using (var img = RJPEG.FromBytes(data))
{
    AreaTemperature at = img.GetTempRect(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)

License

https://github.com/Jazous/SDKs-DjiImage/blob/main/LICENSE.txt

Product Compatible and additional computed target framework versions.
.NET net6.0 is compatible.  net6.0-android was computed.  net6.0-ios was computed.  net6.0-maccatalyst was computed.  net6.0-macos was computed.  net6.0-tvos was computed.  net6.0-windows was computed.  net7.0 was computed.  net7.0-android was computed.  net7.0-ios was computed.  net7.0-maccatalyst was computed.  net7.0-macos was computed.  net7.0-tvos was computed.  net7.0-windows was computed.  net8.0 was computed.  net8.0-android was computed.  net8.0-browser was computed.  net8.0-ios was computed.  net8.0-maccatalyst was computed.  net8.0-macos was computed.  net8.0-tvos was computed.  net8.0-windows was computed.  net9.0 was computed.  net9.0-android was computed.  net9.0-browser was computed.  net9.0-ios was computed.  net9.0-maccatalyst was computed.  net9.0-macos was computed.  net9.0-tvos was computed.  net9.0-windows was computed. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.
  • net6.0

    • 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.7.1 161 4/14/2025
1.7.0 148 3/11/2025
1.5.0 171 6/24/2024
1.4.3 123 6/15/2024
1.4.2 304 4/11/2023
1.4.1 345 2/10/2023
1.4.0 339 1/30/2023
1.3.2 511 8/13/2022
1.3.1 470 7/31/2022
1.3.0 471 7/29/2022
1.0.1 584 7/28/2022 1.0.1 is deprecated because it is no longer maintained.
1.0.0 576 7/28/2022 1.0.0 is deprecated because it has critical bugs.

1、修复浮点类型温度精度问题,只保留1位小数
2、扩展 RJPEG 类的相关方法