public string ProcessCard(IOcrProcess ocr, string backPageDataPath, string frontPageDataPath = null) { if (frontPageDataPath != null) { IDCard.CardData.FrontSide = IdentityCardHelper.processCardImage(frontPageDataPath); } IDCard.CardData.BackSide = IdentityCardHelper.processCardImage(backPageDataPath); return(ocr.Process(backPageDataPath)); }