forked from dsutanto/bytetrack-counter-cpp
Counter everytime ayam crossing and emove Frame log
This commit is contained in:
1 parent
b73e54b3e0
commit
1c783fd923
3 files changed
+3
-9
No files matched your search
Binary file not shown.
+2
-2
@@ -4,11 +4,11 @@
|
|||||||
|
|
||||||
namespace version {
|
namespace version {
|
||||||
|
|
||||||
const std::string GIT_COMMIT = "60a02f42";
|
const std::string GIT_COMMIT = "b73e54b3";
|
||||||
const std::string GIT_BRANCH = "main";
|
const std::string GIT_BRANCH = "main";
|
||||||
const std::string GIT_TAG = "";
|
const std::string GIT_TAG = "";
|
||||||
const std::string BUILD_DATE = "2026-07-07";
|
const std::string BUILD_DATE = "2026-07-07";
|
||||||
const std::string BUILD_TIME = "15:57:21";
|
const std::string BUILD_TIME = "16:32:45";
|
||||||
const int BUILD_YEAR = 2026;
|
const int BUILD_YEAR = 2026;
|
||||||
const bool BUILD_RKNN = 1;
|
const bool BUILD_RKNN = 1;
|
||||||
|
|
||||||
|
|||||||
+1
-7
@@ -410,6 +410,7 @@ int main(int argc, char* argv[]) {
|
|||||||
ayam_line_crossed.find(tid) == ayam_line_crossed.end()) {
|
ayam_line_crossed.find(tid) == ayam_line_crossed.end()) {
|
||||||
ayam_line_crossed.insert(tid);
|
ayam_line_crossed.insert(tid);
|
||||||
auto [count, started_new] = store.record_ayam_crossing(tid);
|
auto [count, started_new] = store.record_ayam_crossing(tid);
|
||||||
|
std::cout << store.current_batch_number() << " | " << count << std::endl;
|
||||||
if (cross_logger) {
|
if (cross_logger) {
|
||||||
std::ostringstream frame_str, tid_str;
|
std::ostringstream frame_str, tid_str;
|
||||||
frame_str << frame_idx;
|
frame_str << frame_idx;
|
||||||
@@ -527,13 +528,6 @@ int main(int argc, char* argv[]) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
frame_idx++;
|
frame_idx++;
|
||||||
if (frame_idx % g_config.flush_every_n_frames == 0) {
|
|
||||||
std::cout << "[" << now_str() << "] Frame " << frame_idx
|
|
||||||
<< " | Batch " << (batch_num ? std::to_string(batch_num) : "-")
|
|
||||||
<< ": " << (batch_num ? std::to_string(batch_count) : "-")
|
|
||||||
<< " | Total: " << display_total
|
|
||||||
<< " | Uptime " << (elapsed_sec / 3600.0) << "h" << std::endl;
|
|
||||||
}
|
|
||||||
|
|
||||||
prune_stale_tracks(ayam_tracked, g_config.tracked_prune_sec);
|
prune_stale_tracks(ayam_tracked, g_config.tracked_prune_sec);
|
||||||
prune_stale_tracks(talenan_tracked, g_config.tracked_prune_sec);
|
prune_stale_tracks(talenan_tracked, g_config.tracked_prune_sec);
|
||||||
|
|||||||
Reference in new issue
Block a user