Skip to content

Commit 9644113

Browse files
first commit
0 parents  commit 9644113

File tree

11 files changed

+1145
-0
lines changed

11 files changed

+1145
-0
lines changed

.gitignore

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
2+
build/
3+
data/
4+
mot_benchmark/
5+
output/
6+
7+
*.jpg
8+
*.png
9+
*.DS_Store
10+
*.vscode

CMakeLists.txt

Lines changed: 53 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,53 @@
1+
cmake_minimum_required(VERSION 3.0.2)
2+
project(sort_cpp)
3+
4+
## Compile as C++11, supported in ROS Kinetic and newer
5+
# add_compile_options(-std=c++11)
6+
7+
## Find catkin macros and libraries
8+
## if COMPONENTS list like find_package(catkin REQUIRED COMPONENTS xyz)
9+
## is used, also find other catkin packages
10+
set(CMAKE_BUILD_TYPE "Release")
11+
set(CMAKE_CXX_FLAGS "-std=c++11")
12+
13+
# find_package(catkin REQUIRED)
14+
find_package(OpenCV REQUIRED)
15+
if(NOT OpenCV_FOUND)
16+
message(FATAL_ERROR "OpenCV not found")
17+
endif()
18+
19+
20+
# catkin_package(
21+
# INCLUDE_DIRS include
22+
# LIBRARIES sort_cpp
23+
# CATKIN_DEPENDS other_catkin_pkg
24+
# DEPENDS system_lib
25+
#)
26+
27+
include_directories(
28+
${CMAKE_SOURCE_DIR}/src
29+
${PROJECT_SOURCE_DIR}/src
30+
${OPENCV_INCLUDE_DIR}
31+
# include
32+
# ${catkin_INCLUDE_DIRS}
33+
)
34+
35+
set(CMAKE_LIBRARY_OUTPUT_DIRECTORY ${PROJECT_SOURCE_DIR}/lib)
36+
37+
## Declare a C++ library
38+
add_library(${PROJECT_NAME} SHARED
39+
src/KalmanTracker.cpp
40+
src/Hungarian.cpp
41+
)
42+
## Specify libraries to link a library or executable target against
43+
target_link_libraries(${PROJECT_NAME}
44+
${OpenCV_LIBS}
45+
)
46+
47+
48+
### Build ###
49+
50+
set(CMAKE_RUNTIME_OUTPUT_DIRECTORY ${PROJECT_SOURCE_DIR})
51+
## Declare a C++ executable
52+
add_executable(${PROJECT_NAME}_demo src/main.cpp)
53+
target_link_libraries(${PROJECT_NAME}_demo ${PROJECT_NAME} ${OpenCV_LIBS})

README.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
SORT Cpp version
2+
3+
Reference: [sort-cpp-ubuntu](https://github.com/engcang/ros-yolo-sort)

lib/libsort_cpp.dylib

135 KB
Binary file not shown.

mot_benchmark

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
/Users/thanhnguyen/Documents/Datasets/2DMOT2015

sort_cpp_demo

183 KB
Binary file not shown.

0 commit comments

Comments
 (0)