mirror of
				https://github.com/qurator-spk/eynollah.git
				synced 2025-10-31 01:34:17 +01:00 
			
		
		
		
	typo: s,rotyate,rotate,g
This commit is contained in:
		
							parent
							
								
									375e9771e2
								
							
						
					
					
						commit
						1f95a69bec
					
				
					 2 changed files with 3 additions and 3 deletions
				
			
		|  | @ -6,7 +6,7 @@ import cv2 | |||
| from scipy.ndimage import gaussian_filter1d | ||||
| 
 | ||||
| from .utils import crop_image_inside_box | ||||
| from .utils.rotate import rotyate_image_different | ||||
| from .utils.rotate import rotate_image_different | ||||
| from .utils.resize import resize_image | ||||
| 
 | ||||
| class EynollahPlotter(): | ||||
|  | @ -121,7 +121,7 @@ class EynollahPlotter(): | |||
|         if self.dir_of_all is not None: | ||||
|             cv2.imwrite(os.path.join(self.dir_of_all, self.image_filename_stem + "_org.png"), self.image_org) | ||||
|         if self.dir_of_deskewed is not None: | ||||
|             img_rotated = rotyate_image_different(self.image_org, slope_deskew) | ||||
|             img_rotated = rotate_image_different(self.image_org, slope_deskew) | ||||
|             cv2.imwrite(os.path.join(self.dir_of_deskewed, self.image_filename_stem + "_deskewed.png"), img_rotated) | ||||
| 
 | ||||
|     def save_page_image(self, image_page): | ||||
|  |  | |||
|  | @ -44,7 +44,7 @@ def rotate_image(img_patch, slope): | |||
|     M = cv2.getRotationMatrix2D(center, slope, 1.0) | ||||
|     return cv2.warpAffine(img_patch, M, (w, h), flags=cv2.INTER_CUBIC, borderMode=cv2.BORDER_REPLICATE) | ||||
| 
 | ||||
| def rotyate_image_different( img, slope): | ||||
| def rotate_image_different( img, slope): | ||||
|     # img = cv2.imread('images/input.jpg') | ||||
|     num_rows, num_cols = img.shape[:2] | ||||
| 
 | ||||
|  |  | |||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue