Skip to content

Commit

Permalink
Examples (#4)
Browse files Browse the repository at this point in the history
* samples

* readme update
  • Loading branch information
mlapaglia authored Dec 31, 2020
1 parent d088334 commit 828f3a6
Show file tree
Hide file tree
Showing 5 changed files with 44 additions and 15 deletions.
26 changes: 26 additions & 0 deletions ConfigurationExamples/appsettings.example.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
{
"AllowedHosts": "*",
"Cameras": {
"HikvisionCameras": [
{
"OpenAlprCameraId": 0,
"Password": "ip_camera_password",
"UpdateTextUrl": "http://ip_camera_ip/url_to_update_overlays",
"Username": "ip_camera_username"
},
{
"OpenAlprCameraId": 0,
"Password": "ip_camera_password",
"UpdateTextUrl": "http://ip_camera_ip/url_to_update_overlays",
"Username": "ip_camera_username"
}
]
},
"Logging": {
"LogLevel": {
"Default": "Information",
"Microsoft": "Warning",
"Microsoft.Hosting.Lifetime": "Information"
}
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,7 @@ public class OpenAlprWebhook
public string BestRegion { get; set; }

[JsonPropertyName("best_region_confidence")]
public int BestRegionConfidence { get; set; }
public double BestRegionConfidence { get; set; }

[JsonPropertyName("matches_template")]
public bool MatchesTemplate { get; set; }
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ public class Plate
public string Region { get; set; }

[JsonPropertyName("region_confidence")]
public int RegionConfience { get; set; }
public double RegionConfidence { get; set; }

[JsonPropertyName("processing_time_ms")]
public double ProcessingTimeMs { get; set; }
Expand Down
12 changes: 0 additions & 12 deletions OpenAlprWebhookProcessor/appsettings.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,18 +2,6 @@
"AllowedHosts": "*",
"Cameras": {
"HikvisionCameras": [
{
"OpenAlprCameraId": 0,
"Password": "",
"UpdateTextUrl": "http://x.x.x.x/ISAPI/System/Video/inputs/channels/1/overlays",
"Username": ""
},
{
"OpenAlprCameraId": 0,
"Password": "",
"UpdateTextUrl": "http://x.x.x.x/ISAPI/System/Video/inputs/channels/1/overlays",
"Username": ""
}
]
},
"Logging": {
Expand Down
17 changes: 16 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1 +1,16 @@
# OpenAlprWebhookProcessor
# OpenALPR Webhook Processor

This service accepts license plate webhooks from the OpenALPR web server. The webhook data (license plate number, make/model, year) is then set as text on the configured IP camera video overlay.

## Quick Start
The container needs 1 port for incoming connections, and an appsettings.json volume to configure the cameras to update. Check the `ConfigurationExamples` folder for guidance.

## Docker Configuration
**docker cli**

docker run -d \
--name=openalprwebhookprocessor \
--net=bridge \
-v /app/appsettings.json:/appsettings.json\
-p 3859:80 \
mlapaglia/openalprwebhookprocessor

0 comments on commit 828f3a6

Please sign in to comment.