Skip to content

Commit d174c4f

Browse files
committed
Fixed occurrence of small rotated blocks in loosely spaced text part 2
1 parent b1d99df commit d174c4f

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

ccstruct/publictypes.h

+3
Original file line numberDiff line numberDiff line change
@@ -179,6 +179,9 @@ enum PageSegMode {
179179
inline bool PSM_OSD_ENABLED(int pageseg_mode) {
180180
return pageseg_mode <= PSM_AUTO_OSD || pageseg_mode == PSM_SPARSE_TEXT_OSD;
181181
}
182+
inline bool PSM_ORIENTATION_ENABLED(int pageseg_mode) {
183+
return pageseg_mode <= PSM_AUTO || pageseg_mode == PSM_SPARSE_TEXT_OSD;
184+
}
182185
inline bool PSM_COL_FIND_ENABLED(int pageseg_mode) {
183186
return pageseg_mode >= PSM_AUTO_OSD && pageseg_mode <= PSM_AUTO;
184187
}

0 commit comments

Comments
 (0)