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.
コメント
4件のコメント
Update: I have added (appended)
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.
Could you please send the following information to SDK_Support@abbyy.com so that we could help you:
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...
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.
サインインしてコメントを残してください。