Thanks: 6 times
Was thanked: 124 time(s) in 121 post(s)
I was wondering, if there is an automated way to detect the rotation of a scanned page?Answer
Please make sure that you have the osd.traindata data file in your output tessdata folder.
var api = OcrApi.Create();
api.PageSegmentationMode = Patagames.Ocr.Enums.PageSegMode.PSM_AUTO_OSD;
var iterator = api.AnalyseLayout();
var orientation = iterator.Orientations;
//the image is rotated to 180
//the image is rotated to 270 clockwise
//the image is rotated to 90 clockwise
//the image is rotated to 0
You cannot post new topics in this forum.
You cannot reply to topics in this forum.
You cannot delete your posts in this forum.
You cannot edit your posts in this forum.
You cannot create polls in this forum.
You cannot vote in polls in this forum.