ApiController - Method SaveLog change params input
This commit is contained in:
parent
96cc32dbee
commit
8060a595c8
|
@ -94,7 +94,7 @@ namespace AIParkingApplication
|
|||
}
|
||||
|
||||
//Neu Dicrection la Out thi logID la logID lay ve khi check the
|
||||
public async Task<SaveLogRespone> SaveLog(LaneDirection direction, string cardID, string cameraID, PlateType 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, PlateType plateType, string timestamp, string plateString, Mat plateImage, Mat plateImageResult, Mat PlateFrameImage, Mat FrameImage, string logID = "")
|
||||
{
|
||||
string plateImageBase64 = Convert.ToBase64String(plateImage.ToBytes());
|
||||
string plateImageResultBase64 = Convert.ToBase64String(plateImageResult.ToBytes());
|
||||
|
@ -104,13 +104,13 @@ namespace AIParkingApplication
|
|||
{
|
||||
var request = new SaveLogModel
|
||||
{
|
||||
Direction = (direction == LaneDirection.In) ? "in" : "out",
|
||||
Direction = direction == LaneDirection.In ? "in" : "out",
|
||||
LogID = logID,
|
||||
CardID = cardID,
|
||||
TextPlate = textPlate,
|
||||
TextPlate = plateString,
|
||||
CameraID = cameraID,
|
||||
ModePlate = (squareOrLong == PlateType.Square) ? "1":"0",
|
||||
TimeVehicleInOrOut = timeInOrOut,
|
||||
ModePlate = plateType == PlateType.Square ? "1":"0",
|
||||
TimeVehicleInOrOut = timestamp,
|
||||
PlateImage = plateImageBase64,
|
||||
PlateResultImage = plateImageResultBase64,
|
||||
PlateFrameImage = PlateFrameImageBase64,
|
||||
|
|
Loading…
Reference in New Issue
Block a user