Unfortunately Tensorflow import (esp. TF2) in OpenCV is mostly unuseable as far as I know… correct me if I’m wrong.
I also know it’s difficult to find a DNN framework with good C++ bindings… So probably the easyest solution would be to keep using Tensorflow and Python - eventually with some Python-C++ binding.