Function readNetFromTensorflow

  • Reads a network model stored in TensorFlow framework's format.

    https://docs.opencv.org/4.x/d6/d0f/group__dnn.html#gad820b280978d06773234ba6841e77e8d

    Parameters

    • modelPath: string

      path to the .pb file with binary protobuf description of the network architecture

    • Optional config: string

      path to the .pbtxt file that contains text graph definition in protobuf format. Resulting Net object is built by text graph using weights from a binary one that let us make it more flexible.

    Returns Net