Util - Rename Prop Ocr -> PlateString
This commit is contained in:
parent
5bcea0ba3f
commit
34fc28a0d8
|
@ -37,7 +37,7 @@ namespace AIParkingApplication
|
|||
//TODO: Check if plateDetected empty
|
||||
OcrResult plateOcrResultFromEngine = await Util.SendEngineRequestAsync(plateDetected, plateType);
|
||||
Mat finalPlateImage;
|
||||
if (!string.IsNullOrEmpty(plateOcrResultFromEngine.Ocr) && !string.IsNullOrEmpty(plateOcrResultFromEngine.PlateImageBase64))
|
||||
if (!string.IsNullOrEmpty(plateOcrResultFromEngine.PlateString) && !string.IsNullOrEmpty(plateOcrResultFromEngine.PlateImageBase64))
|
||||
{
|
||||
byte[] imageData = Convert.FromBase64String(plateOcrResultFromEngine.PlateImageBase64);
|
||||
using (var ms = new MemoryStream(imageData))
|
||||
|
@ -53,7 +53,7 @@ namespace AIParkingApplication
|
|||
|
||||
return new FinalPlateResult
|
||||
{
|
||||
PlateString = plateOcrResultFromEngine.Ocr,
|
||||
PlateString = plateOcrResultFromEngine.PlateString,
|
||||
PlateImage = finalPlateImage,
|
||||
PlateType = plateType
|
||||
};
|
||||
|
|
|
@ -92,7 +92,7 @@ namespace AIParkingApplication
|
|||
public class OcrResult
|
||||
{
|
||||
[JsonProperty("ocr")]
|
||||
public string Ocr { get; set; }
|
||||
public string PlateString { get; set; }
|
||||
|
||||
[JsonProperty("plate")]
|
||||
public string PlateImageBase64 { get; set; }
|
||||
|
|
Loading…
Reference in New Issue
Block a user