зеркало из
				https://github.com/ssciwr/AMMICO.git
				synced 2025-10-30 05:26:05 +02:00 
			
		
		
		
	 c9422a77ec
			
		
	
	
		c9422a77ec
		
			
		
	
	
	
	
		
			
			* clean up docstrings * clean up docstrings 2 * temp integration test module * cleaner text sample to analyse * remove clean text and spelling corrections * change ammico exposed interface
		
			
				
	
	
		
			14 строки
		
	
	
		
			392 B
		
	
	
	
		
			Python
		
	
	
	
	
	
			
		
		
	
	
			14 строки
		
	
	
		
			392 B
		
	
	
	
		
			Python
		
	
	
	
	
	
| import ammico
 | |
| 
 | |
| if __name__ == "__main__":
 | |
|     images = ammico.find_files(path=".")
 | |
|     mydict = ammico.initialize_dict(images)
 | |
|     for key in mydict:
 | |
|         mydict[key] = ammico.TextDetector(
 | |
|             mydict[key], analyse_text=True
 | |
|         ).analyse_image()
 | |
|     print(mydict)
 | |
|     outdict = ammico.append_data_to_dict(mydict)
 | |
|     df = ammico.dump_df(outdict)
 | |
|     df.to_csv("data_out.csv")
 |