-
Search before asking
Question
OUTPUT: In this example in the live video it was only me and the in_count in the line was 1 and the out_count was 2, but in the variables in code was 75 and 39. Are any way to extract the correct values ? AdditionalNo response |
Beta Was this translation helpful? Give feedback.
Replies: 3 comments 2 replies
-
Hello there, thank you for opening an Issue ! 🙏🏻 The team was notified and they will get back to you asap. |
Beta Was this translation helpful? Give feedback.
-
Hi, @Xkim2000 👋🏻! Lot's convert that question into discussion and move it into the Q/A section. |
Beta Was this translation helpful? Give feedback.
-
@Xkim2000, the problem is here: out_count += line_counter.out_count
in_count += line_counter.in_count You are looping over frames and adding the current value of out_count = line_counter.out_count
in_count = line_counter.in_count Or skip the assignment altogether and use: line_counter.out_count
line_counter.in_count |
Beta Was this translation helpful? Give feedback.
@Xkim2000, the problem is here:
You are looping over frames and adding the current value of
line_counter.out_count
andline_counter.in_count
to your variables. What you should do is just assign:Or skip the assignment altogether and use: