Total Complexity | 2 |
Total Lines | 12 |
Duplicated Lines | 0 % |
Changes | 0 |
1 | def set_orientation(self, orientation): |
||
2 | """ |
||
3 | Set deskewing angle to given number. |
||
4 | Moreover, invalidate self's AlternativeImages |
||
5 | (because they will have been rotated and enlarged |
||
6 | with the angle of the previous value). |
||
7 | """ |
||
8 | if hasattr(self, 'invalidate_AlternativeImage'): |
||
9 | # PageType, RegionType: |
||
10 | self.invalidate_AlternativeImage(feature_selector='deskewed') |
||
11 | self.orientation = orientation |
||
12 |