Community

LoadProfile() not loading profile Answered

I have created the following Profile.

[DocumentProcessingParams]

[PrepareImageMode]
CorrectSkewMode = CSM_CorrectSkewByHorizontalText,CSM_CorrectSkewByVerticalText

[PagePreProcessingParams]
CorrectOrientation = true

 Unfortunately, the loaded page will not be rotated as it would when manually Setting the CorrectOrientation property. I am guessing, I am doing something wrong loading the Profile....?

private void loadProfile()

{

   engine.LoadPredefinedProfile("Default");      

   string profile = Path.Combine(Application.StartupPath, "..\..\profiles\TableRecognitionProfile.ini");

   profile = Path.GetFullPath(profile);

   engine.LoadProfile(profile);

}

(The path is correct (File.Exists() -> true).)

 

document.Preprocess(null, null, rep, null);

RecognitionParams are user defined.

Was this article helpful?

0 out of 0 found this helpful

Comments

4 comments

  • Avatar
    Permanently deleted user

    Update: I have added (appended)

    [XMLExportParams]

    ;WriteCharacterRecognitionVariants = true

    ;WriteWordRecognitionVariants = true

    WriteCharFormatting = true

    This works fine while the Rotation of the page stil only works when Setting the property manually and overhanding the PagePreprocessingParams object to the method.

    0
  • Avatar
    Permanently deleted user

    Could you please send the following information to SDK_Support@abbyy.com so that we could help you:

    • Serial number of your license
    • A full description of the issue
    • A modifyed standard Hello sample that reproduces your issue.
    • Input documents on which the message is reproduced and profile TableRecognitionProfile.ini
    • An Engine log, generated by your program. Such log can be obtained by calling StartLogging() method of the Engine object after it is initialized.
    0
  • Avatar
    Permanently deleted user

    After collecting all data/code and submitting it, I realized that only something with the Preprocessing block itself can be wrong.

    It's embarrassing to say but it's simply a spelling error: PagePreProcessingParams should be PagePreprocessingParams...

    0
  • Avatar
    Permanently deleted user

    We are happy to hear that you were able to resolve this issue. We wish you a successful outcome for all your projects!

    Please feel free to contact us with any questions you might have in the future. We will be glad to assist you.

    0

Please sign in to leave a comment.