mirror of
				https://github.com/qurator-spk/sbb_binarization.git
				synced 2025-10-31 01:24:14 +01:00 
			
		
		
		
	🐛 numpy.ndarray.as{_,}type
This commit is contained in:
		
							parent
							
								
									a24670edcc
								
							
						
					
					
						commit
						84d6b1f693
					
				
					 1 changed files with 1 additions and 1 deletions
				
			
		|  | @ -24,7 +24,7 @@ OCRD_TOOL = loads(resource_string(__name__, 'ocrd-tool.json').decode('utf8')) | ||||||
| TOOL = 'ocrd-sbb-binarize' | TOOL = 'ocrd-sbb-binarize' | ||||||
| 
 | 
 | ||||||
| def cv2pil(img): | def cv2pil(img): | ||||||
|     return Image.fromarray(img.as_type('uint8')) |     return Image.fromarray(img.astype('uint8')) | ||||||
| 
 | 
 | ||||||
| def pil2cv(img): | def pil2cv(img): | ||||||
|     # from ocrd/workspace.py |     # from ocrd/workspace.py | ||||||
|  |  | ||||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue