Also I tried changing the baseapi.cpp in the tesseract cli program in
ProcessPage function after the SetImage line i did the following
/// MY CHANGES
OSResults *orientationStruct = new OSResults();
bool gotOrientation = this->DetectOS(orientationStruct);
int bestOrientation = -1;
float bestOrientationScore = 0;
if ((gotOrientation) && (orientationStruct->orientations != NULL)) {
for (int i=0; i<4; i++) {
printf("i tried what does %d and %d\n",
bestOrientationScore,orientationStruct->orientations[i]);
if (orientationStruct->orientations[i] > bestOrientationScore) {
printf("how am i never called\n");
bestOrientation = i;
bestOrientationScore = orientationStruct->orientations[i];
}
}
}
printf("orientation %d\n", bestOrientation);
///MY CHANGES
and i always get something like this
i tried what does -1274961920 and 0
i tried what does 0 and 1
i tried what does 0 and 2
i tried what does 0 and 3
orientation -1
with the image flipped either way I get some garbage.
--
You received this message because you are subscribed to the Google
Groups "tesseract-ocr" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/tesseract-ocr?hl=en