mirror of
				https://github.com/qurator-spk/sbb_textline_detection.git
				synced 2025-10-30 17:04:16 +01:00 
			
		
		
		
	Merge branch 'master' of code.dev.sbb.berlin:qurator/mono-repo
This commit is contained in:
		
						commit
						f94511a1d8
					
				
					 1 changed files with 3 additions and 3 deletions
				
			
		|  | @ -696,16 +696,16 @@ class textlineerkenner: | ||||||
|         if img.shape[1] < img_width_textline: |         if img.shape[1] < img_width_textline: | ||||||
|             img = cv2.resize(img, (img_height_textline, img.shape[0]), interpolation=cv2.INTER_NEAREST) |             img = cv2.resize(img, (img_height_textline, img.shape[0]), interpolation=cv2.INTER_NEAREST) | ||||||
| 
 | 
 | ||||||
|         margin = True |         margin = False | ||||||
|         if not margin: |         if not margin: | ||||||
| 
 | 
 | ||||||
|             width = img_width_textline |             width = img_width_textline | ||||||
|             height = img_height_textline |             height = img_height_textline | ||||||
| 
 | 
 | ||||||
|             img = self.otsu_copy(img) |             #img = self.otsu_copy(img) | ||||||
|             img = img.astype(np.uint8) |             img = img.astype(np.uint8) | ||||||
|             # for _ in range(4): |             # for _ in range(4): | ||||||
|             # img = cv2.medianBlur(img,5) |             img = cv2.medianBlur(img,5) | ||||||
|             img = img / 255.0 |             img = img / 255.0 | ||||||
| 
 | 
 | ||||||
|             img_h = img.shape[0] |             img_h = img.shape[0] | ||||||
|  |  | ||||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue