lysukhin / tensorflow-object-detection-cpp

A C++ example of running TensorFlow Object Detection model in live mode.
MIT License
144 stars 51 forks source link

anyone tried in Windows? #11

Open duocang opened 5 years ago

duocang commented 5 years ago

I have the problem to update the CMakeLists.txt:

cmake_minimum_required(VERSION 3.7)
project(tf_detector_example)

set(CMAKE_CXX_STANDARD 11)

set(SOURCE_FILES main.cpp utils.cpp utils.h)
add_executable(tf_detector_example ${SOURCE_FILES})

# OpenCV libs
set(OpenCV_DIR "C:/opencv/build/x64/vc15/lib")

message("OpenCV_FOUND='${OpenCV_FOUND}'")
find_package(OpenCV REQUIRED)
include_directories( ${OpenCV_INCLUDE_DIRS} )
message("These are my opencv libs: /n'${OpenCV_LIBS}'" )
target_link_libraries(tf_detector_example ${OpenCV_LIBS})

# ==================== PATHS TO SPECIFY! ==================== #

# Eigen lib headers
include_directories("C:/eigen_337")

# TensorFlow headers
include_directories("C:/Users/tf_compile/tf_vs2015_cmake")
include_directories("C:/Users/tf_compile/tf_vs2015_cmake/tensorflow")
include_directories("C:/Users/tf_compile/tf_vs2015_cmake/tensorflow/contrib/cmake/build/Release")
include_directories("C:/Users/tf_compile/tf_vs2015_cmake/third_party")

# Link TensorFlow libs
target_link_libraries(tf_detector_example "C:/Users/tf_compile/tf_vs2015_cmake/tensorflow/contrib/cmake/build/Release/tensorflow.dll")
lysukhin commented 4 years ago

Don't see a problem here actually, but the answer to your question: no, I used Linux only