ZY.PlateRecognition.HTTP
1.0.4.2
dotnet add package ZY.PlateRecognition.HTTP --version 1.0.4.2
NuGet\Install-Package ZY.PlateRecognition.HTTP -Version 1.0.4.2
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="ZY.PlateRecognition.HTTP" Version="1.0.4.2" />
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="ZY.PlateRecognition.HTTP" Version="1.0.4.2" />
<PackageReference Include="ZY.PlateRecognition.HTTP" />
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 ZY.PlateRecognition.HTTP --version 1.0.4.2
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
#r "nuget: ZY.PlateRecognition.HTTP, 1.0.4.2"
#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.
#:package ZY.PlateRecognition.HTTP@1.0.4.2
#:package directive can be used in C# file-based apps starting in .NET 10 preview 4. Copy this into a .cs file before any lines of code to reference the package.
#addin nuget:?package=ZY.PlateRecognition.HTTP&version=1.0.4.2
#tool nuget:?package=ZY.PlateRecognition.HTTP&version=1.0.4.2
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
http 摄像头配置
Program
services.AddHttpCamera();
app.UseEndpoints(endpoints =>
{
endpoints.MapHealthChecks("/qianyihttphealth", new HealthCheckOptions() //迁移摄像头 http 连接 心跳回复
{
Predicate = s => s.Name.Equals("qianyihttpresult"),
ResponseWriter = QianYiHealthCheck.HtppCameraResponse
});
endpoints.MapHealthChecks("/huaxiahttphealth", new HealthCheckOptions() //华夏摄像头 http 连接 心跳回复
{
Predicate = s => s.Name.Equals("huaxiahttphealth"),
ResponseWriter = HuaXiaHealthCheck.HtppCameraResponse
});
endpoints.MapHealthChecks("/visionhttphealth", new HealthCheckOptions() //榛识摄像头 http 连接 心跳回复
{
Predicate = s => s.Name.Equals("visionhttphealth"),
ResponseWriter = VisionZenithHealthCheck.HtppCameraResponse
});
});
调用
本地调用
var httpinfo = new List<CameraLinkInfo>
{
new CameraLinkInfo{ IP="10.0.201.245", Host="http://localhost:9003", Type= ECameraType.臻识},
new CameraLinkInfo{ IP="10.0.201.247", Model="基石", Host="http://localhost:9005", Type= ECameraType.千熠},
new CameraLinkInfo{ IP="10.0.201.246", Host="http://localhost:9008", Type= ECameraType.华夏}
}
var httpserver = _serviceProvider.GetService<HttpCameraFactory>();
httpserver.CaptureRec += Receive; //接收摄像头推送事件
httpserver.Connection(httpinfo.ToList<CameraInfo>()); //绑定摄像头
//处理摄像头推送数据
public Task Receive(object obj, ResultInfo info)
{
Console.WriteLine($"收到了摄像头抓拍信息,内容{JsonConvert.SerializeObject(info)}");
return null;
}
//抓拍
public ApiResult GetCapture(string ip)
{
_factory.Trigge(ip);
return new ApiResult();
}
局域网调用 使用 摄像头ip 做为参数 调用命令接口
外网调用
public class CameraCloudService : ICameraCloudService
{
private readonly IServiceProvider _serviceProvider;
private readonly HttpCameraFactory _httpserver;
public CameraCloudService(IServiceProvider serviceProvider)
{
_serviceProvider = serviceProvider;
_httpserver = _serviceProvider.GetService<HttpCameraFactory>();
_httpserver.CaptureRec += Receive; //接收摄像头推送事件
_httpserver.BindConnectionHandler(HTTPQuerySendCameraType); //根据摄像头编号判断类型
}
//处理根据摄像头编号判断摄像头类型
private ECameraType HTTPQuerySendCameraType(object obj, string clientid)
{
switch (clientid)
{
case "3fd67c3e-14695d26":
case "e022ba62-0b8a6a70":
return ECameraType.臻识;
case "13ZC06S11122924A":
return ECameraType.千熠;
case "20I1002201807377":
return ECameraType.华夏;
}
return ECameraType.其他;
}
//处理摄像头推送数据
public Task Receive(object obj, ResultInfo info)
{
Console.WriteLine($"收到了摄像头抓拍信息,内容{JsonConvert.SerializeObject(info)}");
return null;
}
//抓拍
public ApiResult GetCapture(string clientid)
{
_factory.Trigge(clientid);
return new ApiResult();
}
}
外网调用 使用 摄像头编号 做为参数 调用命令接口
千熠
勾选 开启、推送车牌识别结果、发送图片、发送小图、推送端口触发信息、HTTP心跳
平台域名 服务IP地址
平台端口 服务端口
车牌推送地址 /qianyihttphealth
gpio推送地址 /qianyihttphealth
心跳地址 /qianyihttphealth
华夏
勾选 开启、推送车牌识别结果、发送图片、发送小图、推送端口触发信息、HTTP心跳
工作模式 模式5
服务器地址 http://服务IP地址:服务端口/huaxiahttphealth
心跳周期 1
IO类型 input2
3、对象存储填写
榛识
勾选 主服务器优先、comet轮询、推送车牌识别结果、推送端口触发信息、发送大图片
服务器地址 服务IP地址
端口 服务端口
地址 都填 /visionhttphealth
| Product | Versions Compatible and additional computed target framework versions. |
|---|---|
| .NET | net5.0 was computed. net5.0-windows was computed. net6.0 was computed. 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. net10.0 was computed. net10.0-android was computed. net10.0-browser was computed. net10.0-ios was computed. net10.0-maccatalyst was computed. net10.0-macos was computed. net10.0-tvos was computed. net10.0-windows was computed. |
| .NET Core | netcoreapp2.0 was computed. netcoreapp2.1 was computed. netcoreapp2.2 was computed. netcoreapp3.0 was computed. netcoreapp3.1 was computed. |
| .NET Standard | netstandard2.0 is compatible. netstandard2.1 is compatible. |
| .NET Framework | net461 was computed. net462 was computed. net463 was computed. net47 was computed. net471 was computed. net472 was computed. net48 was computed. net481 was computed. |
| MonoAndroid | monoandroid was computed. |
| MonoMac | monomac was computed. |
| MonoTouch | monotouch was computed. |
| Tizen | tizen40 was computed. tizen60 was computed. |
| Xamarin.iOS | xamarinios was computed. |
| Xamarin.Mac | xamarinmac was computed. |
| Xamarin.TVOS | xamarintvos was computed. |
| Xamarin.WatchOS | xamarinwatchos was computed. |
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.
-
.NETStandard 2.0
- Microsoft.AspNetCore.Http.Abstractions (>= 2.2.0)
- Microsoft.Extensions.Diagnostics.HealthChecks.Abstractions (>= 2.2.0)
- ZY.Framework.Core (>= 1.3.3.30)
- ZY.LED (>= 1.0.0.2)
- ZY.PlateRecognition (>= 1.0.4.2)
-
.NETStandard 2.1
- Microsoft.AspNetCore.Http.Abstractions (>= 2.2.0)
- Microsoft.Extensions.Diagnostics.HealthChecks.Abstractions (>= 2.2.0)
- ZY.Framework.Core (>= 1.3.3.30)
- ZY.LED (>= 1.0.0.2)
- ZY.PlateRecognition (>= 1.0.4.2)
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.0.4.2 | 98 | 5/27/2026 |
| 1.0.4.1 | 98 | 5/25/2026 |
| 1.0.3.2 | 355 | 5/15/2025 |
| 1.0.3.1 | 280 | 5/15/2025 |
| 1.0.2.7 | 256 | 10/31/2024 |
| 1.0.2.6 | 176 | 10/12/2024 |
| 1.0.2.3 | 186 | 9/19/2024 |
| 1.0.2.2 | 267 | 6/14/2024 |
| 1.0.1.2 | 238 | 4/15/2024 |
| 1.0.1.1 | 207 | 3/6/2024 |
| 1.0.1 | 195 | 3/6/2024 |
| 1.0.0.2 | 189 | 2/28/2024 |
| 1.0.0.1 | 191 | 1/23/2024 |