the errror like
Retrieving the COM class factory for component with CLSID {40942A6C-1520-4132-BDF8-BDC1F71F547B} failed due to the following error: 80040154 Class not registered (Exception from HRESULT: 0x80040154 (REGDB_E_CLASSNOTREG))
What I have tried:
Bitmap source = new Bitmap(imgset);
Bitmap CroppedImage = source.Clone(new System.Drawing.Rectangle(x, y, width, height), source.PixelFormat);
pictureBox3.Image = new Bitmap(CroppedImage);
source.Dispose();
CroppedImage.Save(@"D:\OCRREAD\" + file_name);
get_file = @"D:\OCRREAD\" + file_name;
MODI.Document objModi = new MODI.Document();
objModi.Create(get_file);
objModi.OCR(MODI.MiLANGUAGES.miLANG_ENGLISH, true, true);
MODI.Image image = (MODI.Image)objModi.Images[0];
MODI.Layout layout = image.Layout;
ReferenceValue = layout.Text;
File.Delete(get_file);
objModi.Close();