mirror of
https://github.com/qurator-spk/eynollah.git
synced 2025-08-29 11:59:55 +02:00
enhancement for vertical textlines
This commit is contained in:
parent
a9cdd56e9a
commit
adee1dc55c
1 changed files with 2 additions and 2 deletions
|
@ -5626,8 +5626,8 @@ class Eynollah_ocr:
|
|||
if angle_degrees > 15:
|
||||
better_des_slope = self.get_orientation_moments(textline_coords)
|
||||
|
||||
img_crop = self.rotate_image_with_padding(img_crop, -abs(better_des_slope) )
|
||||
mask_poly = self.rotate_image_with_padding(mask_poly, -abs(better_des_slope) )
|
||||
img_crop = self.rotate_image_with_padding(img_crop, better_des_slope )
|
||||
mask_poly = self.rotate_image_with_padding(mask_poly, better_des_slope )
|
||||
mask_poly = mask_poly.astype('uint8')
|
||||
|
||||
#new bounding box
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue