Just to give you an example of a pipeline take a look at:

  

      PyImageSearch – 4 May 20
  

  
    

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

  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
  

  

  
    
    
  

  


I don’t know why you need to use C++ but generally you will train in python then you could use your model with TF directly or on different targets  exporting on TFLite (mobile, embedded) , TFMicro (microcontrollers), TFJS (browser).