• Stars
    star
    144
  • Rank 255,590 (Top 6 %)
  • Language
    C++
  • License
    MIT License
  • Created almost 7 years ago
  • Updated about 2 years ago

Reviews

There are no reviews yet. Be the first to send feedback to the community and the maintainers!

Repository Details

A C++ example of running TensorFlow Object Detection model in live mode.

tensorflow-object-detection-cpp

This repo is not supported as long as I switched to PyTorch long ago. TensorFlow (probably) has been updated a couple of times since I created this repo so there's a (huge) chance that something would go wrong.

A C++ example of running TensorFlow Object Detection model in live mode. Inspired by issue.

Requirements (for use without Bazel):

  • TensorFlow .so builds (more, requires Bazel to build)
  • Eigen3 headers (more)
  • OpenCV (more)

Usage:

  1. Specify your own paths for necessary libs in CmakeLists.txt
  2. Specify your own paths for frozen_inference_graph.pb and labels_map.pbtxt in main.cpp (lines 44-47)
  3. Specify your video source (main.cpp, line 80)
  4. Have fun

demo/ dir contains frozen graph & labels map from victordibia/handstracking as an example.