mirror of
				https://github.com/PaddlePaddle/PaddleOCR.git
				synced 2025-11-03 19:29:18 +00:00 
			
		
		
		
	fix infer rec encoding
This commit is contained in:
		
							parent
							
								
									4c129c771d
								
							
						
					
					
						commit
						b6e3734eba
					
				@ -150,7 +150,7 @@ def main():
 | 
			
		||||
                            "label": post_result[key][0][0],
 | 
			
		||||
                            "score": float(post_result[key][0][1]),
 | 
			
		||||
                        }
 | 
			
		||||
                info = json.dumps(rec_info)
 | 
			
		||||
                info = json.dumps(rec_info, ensure_ascii=False)
 | 
			
		||||
            else:
 | 
			
		||||
                if len(post_result[0]) >= 2:
 | 
			
		||||
                    info = post_result[0][0] + "\t" + str(post_result[0][1])
 | 
			
		||||
 | 
			
		||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user