Skip to content

Commit

Permalink
Add tracking
Browse files Browse the repository at this point in the history
  • Loading branch information
vietanhdev committed May 2, 2020
1 parent f83b911 commit 7777c2d
Show file tree
Hide file tree
Showing 126 changed files with 450 additions and 596 deletions.
3 changes: 3 additions & 0 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -66,6 +66,9 @@ include_directories(
"src/user_interface"
"src/user_interface/dark_theme"
"src/object_detector/detector/include"
"src/object_detector/common"
"src/object_detector/tracker"
"src/object_detector"
"src/lane_detector/include"
"src/car_prop_reader/include"
${SDL2_INCLUDE_DIRS}
Expand Down
9 changes: 5 additions & 4 deletions src/object_detector/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -17,10 +17,11 @@ set(HEADERS
# Include directories
# ----------------------------------------------------------------------------
INCLUDE_DIRECTORIES(
./tracker/src
./tracker/common
./tracker/src/Tracker
./tracker/src/Tracker/HungarianAlg
./common
./tracker
./tracker/Tracker
./tracker/Tracker/HungarianAlg
./detector/include
)

set(LIBS
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -87,26 +87,6 @@ typedef std::vector<CRegion> regions_t;
///
namespace tracking
{
///
/// \brief The Detectors enum
///
enum Detectors
{
Motion_VIBE,
Motion_MOG,
Motion_GMG,
Motion_CNT,
Motion_SuBSENSE,
Motion_LOBSTER,
Motion_MOG2,
Face_HAAR,
Pedestrian_HOG,
Pedestrian_C4,
SSD_MobileNet,
Yolo_OCV,
Yolo_Darknet,
Yolo_TensorRT
};

///
/// \brief The DistType enum
Expand Down
File renamed without changes.
4 changes: 1 addition & 3 deletions src/object_detector/detector/include/ctdetConfig.h
Original file line number Diff line number Diff line change
Expand Up @@ -16,9 +16,7 @@ namespace ctdet {
constexpr static int classNum = 10;
constexpr static float mean[]= {0.408, 0.447, 0.470};
constexpr static float std[] = {0.289, 0.274, 0.278};
constexpr static char *className[]= {(char*)"person", (char*)"rider", (char*)"car", (char*)"bus",
(char*)"truck", (char*)"bike", (char*)"motor", (char*)"traffic_light", (char*)"traffic_sign",
(char*)"train"};
constexpr static char *className[]= {(char*)"person", (char*)"rider", (char*)"car", (char*)"bus", (char*)"truck", (char*)"bike", (char*)"motor", (char*)"traffic_light", (char*)"traffic_sign", (char*)"train"};

}
#endif //CTDET_TRT_CTDETCONFIG_H
Loading

0 comments on commit 7777c2d

Please sign in to comment.