public static IDetect GetDetectType(string type) { IDetect detect = null; if (type == "Truc") { detect = new DerectTruck(); } else if (type == "Trailer") { detect = new DerectTruck(); } return(detect); }
public string GetPlateNumber(string image, string idDriver, string type) { string plate = ""; IDetect detect = null; if (type == "truck") { detect = new DerectTruck(); } else if (type == "trailer") { detect = new DetectTrailers(); } if (detect != null) { detect.AuchGoole(sqlCommandApiMobile); plate = detect.DetectText(idDriver, Convert.FromBase64String(image)); } return(plate); }