stereolabs / zed-yolo

3D Object detection using Yolo and the ZED in Python and C++
https://www.stereolabs.com/
MIT License
159 stars 68 forks source link

TRACK_OPTFLOW #41

Closed husseinpasha closed 2 years ago

husseinpasha commented 3 years ago

Hi, I have a ZED camera and a Jetson TX2. I want to track the detected objects. here are the first few lines of my darknet make file: GPU=1 CUDNN=1 CUDNN_HALF=1 OPENCV=1 AVX=0 OPENMP=1 LIBSO=1 ZED_CAMERA=1 ZED_CAMERA_v2_8=0 USE_CPP=0 DEBUG=0 ARCH= -gencode arch=compute_62,code=[sm_62,compute_62]

And first few lines of my yolo_console_dll.cpp file:

include

include

include

include

include

include

include

include

include

include // std::mutex, std::unique_lock

include

using namespace std; //added by myself

define TRACK_OPTFLOW

define GPU

define ZED_STEREO

When I try to make the darknet I get the following error: yolo_consoledll.cpp:(.text.startup+0x66c): undefined reference to `cv::cuda::SparsePyrLKOpticalFlow::create(cv::Size, int, int, bool)' collect2: error: ld returned 1 exit status Makefile:172: recipe for target 'uselib' failed make: *** [uselib] Error 1

It generates the uselib file and then deletes that! When I comment out the #define TRACK_OPTFLOW line everything works well!

Would you please help me?

github-actions[bot] commented 2 years ago

This issue is stale because it has been open 30 days with no activity. Remove stale label or comment otherwise it will be automatically closed in 5 days