Import image memory error exception

  • 1.9K Views
  • Last Post 19 September 2014
tenzen posted this 18 September 2014

Hello, I'm using Abbyy ocr sdk on Linux. I have a image in the memory and try to analyses it but i get an memory error (exception). Further more, is that the fastest way to process an image in the memory? try {

        // Load ABBYY FineReader Engine
        cout << "Initializing Engine..." << endl;
        LoadFREngine();

                            //bimg = OpenCV IplImage;
            CSafePtr<IFRDocument> frDocument = 0;
            CheckResult( frDocument->AddImageFileFromMemory((unsigned char*)bimg->imageData, (__int64) bimg->width * bimg->height, 0, 0, 0, 0));

                            cout <<"Recognizing..." << endl;
            CheckResult( frDocument->Process() );

            // Save results
            CBstr exportPath = "/tmp/Demo.rtf";
            cout <<"Saving results: "<< exportPath.ConvertToString() << endl;

            CheckResult( frDocument->Export(  exportPath, FEF_RTF, 0  ) );

        // Unload ABBYY FineReader Engine
        cout << "Deinitializing Engine..." <<endl;
        UnloadFREngine();

    }
    catch( CAbbyyException& e )
    {
        cout << e.Description()  << endl;
    }

olga_parmenova posted this 19 September 2014

Hi! Please, provide us with the following additional data to help us investigate the issue: 1. Your product serial number; 2. Version and build of FineReader Engine you use; 3. Image you process when getting an exception; 4. FREngine log; 5. Screenshot of error message (exception message), you receive. You could send this information to our e-mail SDK_Support@abbyy.com.

Close