Just to show you an example pipeline see:

  

      PyImageSearch – 4 May 20
  

  
    

COVID-19: Face Mask Detector with OpenCV, Keras/TensorFlow, and Deep Learning... 7

  In this tutorial, you will learn how to train a COVID-19 face mask detector with OpenCV, Keras/TensorFlow, and Deep Learning.

  
    Est. reading time: 33 minutes
  

  

  
    
    
  

  


For opencv and cppflow data exchange see:
  

      github.com/serizba/cppflow
  

  
    
  
	  
  

  
    
      How to convert tensor to cv::Mat or float array? 6
    

    
      
        opened 
        
          
        
        Mar 3, 2021
      
      

        
          closed 
        
          
        
        Mar 4, 2021
      
        

      
        
          
          seungtaek94
        
      
    

    
    
  


  
    hi.

I'm working on segmentation task.

I successfully load my pre-trained m…odel and get output tensor that has shape (1, 512, 1024).

I want to convert output tensor to cv::Mat.

Any comments is thanks for me :)