Browse Source
        
      
      update
      
        Signed-off-by: junjie.jiangjjj <junjie.jiangjjj@zilliz.com>
      
      
        v1
      
      
     
    
      
        
          
            
            junjie.jiangjjj
          
          3 years ago
          
         
        
        
       
      
     
    
    
	
		
			
				 1 changed files with 
1 additions and 
1 deletions
			 
			
		 
		
			
				- 
					
					
					 
					image_decode_cv2.py
				
 
			
		
		
			
			
			
			
			
			
				
				
					
						
							
								
									
	
		
			
				| 
					
					
						
							
						
					
					
				 | 
				@ -49,7 +49,7 @@ class ImageDecoder(PyOperator): | 
			
		
		
	
		
			
				 | 
				 | 
				            raise RuntimeError(err) | 
				 | 
				 | 
				            raise RuntimeError(err) | 
			
		
		
	
		
			
				 | 
				 | 
				
 | 
				 | 
				 | 
				
 | 
			
		
		
	
		
			
				 | 
				 | 
				        rgb_cv_image = cv2.cvtColor(bgr_cv_image, cv2.COLOR_BGR2RGB) | 
				 | 
				 | 
				        rgb_cv_image = cv2.cvtColor(bgr_cv_image, cv2.COLOR_BGR2RGB) | 
			
		
		
	
		
			
				 | 
				 | 
				        return ndarray_utils.from_ndarray(rgb_cv_image, 'RGB') | 
				 | 
				 | 
				 | 
			
		
		
	
		
			
				 | 
				 | 
				 | 
				 | 
				 | 
				        return Image(rgb_cv_image, 'RGB') | 
			
		
		
	
		
			
				 | 
				 | 
				
 | 
				 | 
				 | 
				
 | 
			
		
		
	
		
			
				 | 
				 | 
				    @property | 
				 | 
				 | 
				    @property | 
			
		
		
	
		
			
				 | 
				 | 
				    def shared_type(self): | 
				 | 
				 | 
				    def shared_type(self): | 
			
		
		
	
	
		
			
				| 
					
						
							
						
					
					
					
				 | 
				
  |