public static int SetSaveOptions( int filesToDisk, int markRect, int typeRect, int saveRec, int saveUnrec, int remOld, int renNew) { FilesToDisk = filesToDisk; OutMarkRect = markRect; OutTypeRect = typeRect; SaveRecognized = saveRec; SaveUnrecognized = saveUnrec; SaveRemoveOld = remOld; SaveRenameNew = renNew; return(CarModelRecognize.SetSaveOptions( FilesToDisk, OutMarkRect, OutTypeRect, SaveRecognized, SaveUnrecognized, SaveRemoveOld, SaveRenameNew)); }
public static int CalcSunset_mins( int mon, int day) { return(CarModelRecognize.CalcSunsetCpp_mins( mon, day)); }
public static int CalcSunset_mins_full( int mon, int day, int latitude_deg, int offsetDayTime_min, int offsetTimeZone_min) { return(CarModelRecognize.CalcSunsetCpp_mins_full( mon, day, latitude_deg, offsetDayTime_min, offsetTimeZone_min)); }
public static int RecognizeImg( out CarDataStruct answer, Emgu.CV.Mat img, string fileName) { return(CarModelRecognize.RecognizeImgCpp( out answer, img, fileName, -1)); }
public static int RecognizeImageByteArr( out CarDataStruct answer, byte[] buf, long bufLen, string fileName) { // Console.WriteLine("CarModelSdk_NetCore.RecognizeImageByteArrCpp()"); return(CarModelRecognize.RecognizeImageByteArrCpp( out answer, buf, bufLen, fileName, -1)); }
public static string RecognizeFile( out CarDataStruct answer, string fileName) { var res = CarModelRecognize.RecognizeFileCpp( out answer, fileName, -1); string file_name = System.Text.Encoding.UTF8.GetString(answer.FileFullName); int pos = file_name.IndexOf(":"); if (pos >= 1) { file_name = file_name.Substring(pos - 1, file_name.Length - pos + 1); } return(file_name); }
public static int SetRecognizeOptions( int recognBorder, int latitude_deg, int offsetDayTime_min, int offsetTimeZone_min) { RecognizeBorder_prc = recognBorder; Latitude_deg = latitude_deg; OffsetDayTime_min = offsetDayTime_min; OffsetTimeZone_min = offsetTimeZone_min; //Console.WriteLine("RecognizeBorder_prc = " + RecognizeBorder_prc); //Console.WriteLine("Latitude_deg = " + Latitude_deg); //Console.WriteLine("OffsetDayTime_min = " + OffsetDayTime_min); //Console.WriteLine("OffsetTimeZone_min = " + OffsetTimeZone_min); return(CarModelRecognize.SetRecognizeOptions( RecognizeBorder_prc, Latitude_deg, OffsetDayTime_min, OffsetTimeZone_min)); }
public static int SetOutFileNamesFormat( int filename, int datetime, int name, int mark, int modl, int genr, int markProb, int type, int side, int typeProb, int filenam2) { OutNameAddFileName = filename; OutNameAddDateTime = datetime; OutNameAddName = name; OutNameAddMark = mark; OutNameAddModl = modl; OutNameAddGenr = genr; OutNameAddMarkProb = markProb; OutNameAddType = type; OutNameAddSide = side; OutNameAddTypeProb = typeProb; OutNameAddFileNam2 = filenam2; return(CarModelRecognize.SetOutFileNamesFormat( OutNameAddFileName, OutNameAddDateTime, OutNameAddName, OutNameAddMark, OutNameAddModl, OutNameAddGenr, OutNameAddMarkProb, OutNameAddType, OutNameAddSide, OutNameAddTypeProb, OutNameAddFileNam2)); }
public static int SetFileDirectoryIn(string strpath) { FileDirectoryIn = strpath; return(CarModelRecognize.SetFileDirectoryIn(FileDirectoryIn)); }
public static int Test(int myInt) { return(CarModelRecognize.Test(myInt)); }
public static int RecognizeDir() { return(CarModelRecognize.RecognizeDirCpp( -1)); }
public static int SetRecognizeMode(RecognizeMode recognizeMode) { Mode = (int)recognizeMode; return(CarModelRecognize.SetRecognizeMode( Mode)); }
public static int SetRecoCountLim(int cntLim) { return(CarModelRecognize.SetRecoCountLim( cntLim)); }
public static int GetRecoCarTypeAddress(out long num) { return(CarModelRecognize.GetRecoCarTypeAddress(out num)); }
public static int InitRecognizer() { return(CarModelRecognize.InitRecognizer()); }
public static int GetFileDirectoryOut(out StringStruct text) { return(CarModelRecognize.GetFileDirectoryOut(out text)); }