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;
    }

asked 18 Sep '14, 12:47

tenzen's gravatar image

tenzen
112

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.

(19 Sep '14, 10:48) olga_parmenova ♦♦
Be the first one to answer this question!
toggle preview

Follow this question

By Email:

Once you sign in you will be able to subscribe for any updates here

By RSS:

Answers

Answers and Comments

Markdown Basics

  • *italic* or _italic_
  • **bold** or __bold__
  • link:[text](http://url.com/ "title")
  • image?![alt text](/path/img.jpg "title")
  • numbered list: 1. Foo 2. Bar
  • to add a line break simply add two spaces to where you would like the new line to be.
  • basic HTML tags are also supported

Tags:

×30
×4
×2
×1

Asked: 18 Sep '14, 12:47

Seen: 1,808 times

Last updated: 19 Sep '14, 10:48

© 2016 ABBYY. All rights Reserved. www.ABBYY.com | Privacy Policy | Legal