diff --git a/build/bytetrack-counter b/build/bytetrack-counter index 64167bc..4715af5 100755 Binary files a/build/bytetrack-counter and b/build/bytetrack-counter differ diff --git a/build/version.hpp b/build/version.hpp index 28d4ab3..7592b09 100644 --- a/build/version.hpp +++ b/build/version.hpp @@ -4,11 +4,11 @@ namespace version { -const std::string GIT_COMMIT = "b73e54b3"; +const std::string GIT_COMMIT = "1c783fd9"; const std::string GIT_BRANCH = "main"; const std::string GIT_TAG = ""; const std::string BUILD_DATE = "2026-07-07"; -const std::string BUILD_TIME = "16:32:45"; +const std::string BUILD_TIME = "17:13:57"; const int BUILD_YEAR = 2026; const bool BUILD_RKNN = 1; diff --git a/src/batch_store.cpp b/src/batch_store.cpp index f449e5f..a59cce3 100644 --- a/src/batch_store.cpp +++ b/src/batch_store.cpp @@ -270,7 +270,7 @@ std::pair BatchStore::record_ayam_crossing(int track_id) { return {current_state_["count"].get(), started_new}; } -bool BatchStore::record_talenan_crossing(int track_id) { +bool BatchStore::record_talenan_crossing(int track_id, float confidence) { if (ignore_batch_label_) return false; std::lock_guard lock(state_mutex_); { @@ -294,7 +294,8 @@ bool BatchStore::record_talenan_crossing(int track_id) { << " | duration=" << duration_sec << "s" << " | cps=" << std::fixed << std::setprecision(2) << cps << " | start=" << start_time - << " | end=" << end_time; + << " | end=" << end_time + << " | conf=" << std::fixed << std::setprecision(3) << confidence; logger_(msg.str()); } ignore_batch_label_fn(); diff --git a/src/batch_store.hpp b/src/batch_store.hpp index e907c3c..4b5cedd 100644 --- a/src/batch_store.hpp +++ b/src/batch_store.hpp @@ -34,7 +34,7 @@ public: bool check_cutoff_reset(); std::pair record_ayam_crossing(int track_id); - bool record_talenan_crossing(int track_id); + bool record_talenan_crossing(int track_id, float confidence); void end_batch(const std::string& closed_by = "manual"); void ping_activity(); void shutdown(); diff --git a/src/main.cpp b/src/main.cpp index cc190f1..256c9b5 100644 --- a/src/main.cpp +++ b/src/main.cpp @@ -382,7 +382,7 @@ int main(int argc, char* argv[]) { if (crossed_line(prev_cx, cx, line_x, g_config.cross_direction) && talenan_line_crossed.find(tid) == talenan_line_crossed.end()) { talenan_line_crossed.insert(tid); - if (store.record_talenan_crossing(tid)) { + if (store.record_talenan_crossing(tid, talenan_scores_vec(di))) { batch_closed_frame = true; talenan_cross_flash[tid] = g_config.cross_flash_frames; popups.push_back({ @@ -410,7 +410,7 @@ int main(int argc, char* argv[]) { ayam_line_crossed.find(tid) == ayam_line_crossed.end()) { ayam_line_crossed.insert(tid); auto [count, started_new] = store.record_ayam_crossing(tid); - std::cout << store.current_batch_number() << " | " << count << std::endl; + std::cout << "[" << now_str() << "] Batch #" << store.current_batch_number() << " | count: " << count << " | conf: " << ayam_scores_vec(di) << std::endl; if (cross_logger) { std::ostringstream frame_str, tid_str; frame_str << frame_idx;