SmallRefactor: {VehicleDirection} -> {LaneDirection}
This commit is contained in:
parent
5d7dcd63da
commit
02870d5aa7
|
@ -12,7 +12,7 @@ namespace AIParkingApplication
|
||||||
private bool isHttpClientDisposabled;
|
private bool isHttpClientDisposabled;
|
||||||
private int numberOfRetry;
|
private int numberOfRetry;
|
||||||
|
|
||||||
public enum VehicleDirection
|
public enum LaneDirection
|
||||||
{
|
{
|
||||||
In,
|
In,
|
||||||
Out
|
Out
|
||||||
|
@ -123,7 +123,7 @@ namespace AIParkingApplication
|
||||||
}
|
}
|
||||||
|
|
||||||
//Neu Dicrection la Out thi logID la logID lay ve khi check the
|
//Neu Dicrection la Out thi logID la logID lay ve khi check the
|
||||||
public async Task<SaveLogRespone> SaveLog(VehicleDirection direction, string cardID, string cameraID, ModePlate squareOrLong, string timeInOrOut, string textPlate, Mat plateImage, Mat plateImageResult, Mat PlateFrameImage, Mat FrameImage, string logID = "")
|
public async Task<SaveLogRespone> SaveLog(LaneDirection direction, string cardID, string cameraID, ModePlate squareOrLong, string timeInOrOut, string textPlate, Mat plateImage, Mat plateImageResult, Mat PlateFrameImage, Mat FrameImage, string logID = "")
|
||||||
{
|
{
|
||||||
string plateImageBase64 = Convert.ToBase64String(plateImage.ToBytes());
|
string plateImageBase64 = Convert.ToBase64String(plateImage.ToBytes());
|
||||||
string plateImageResultBase64 = Convert.ToBase64String(plateImageResult.ToBytes());
|
string plateImageResultBase64 = Convert.ToBase64String(plateImageResult.ToBytes());
|
||||||
|
@ -133,7 +133,7 @@ namespace AIParkingApplication
|
||||||
{
|
{
|
||||||
var request = new SaveLogModel
|
var request = new SaveLogModel
|
||||||
{
|
{
|
||||||
Direction = (direction == VehicleDirection.In) ? "in" : "out",
|
Direction = (direction == LaneDirection.In) ? "in" : "out",
|
||||||
LogID = logID,
|
LogID = logID,
|
||||||
CardID = cardID,
|
CardID = cardID,
|
||||||
TextPlate = textPlate,
|
TextPlate = textPlate,
|
||||||
|
|
Loading…
Reference in New Issue
Block a user