Skip to content

Extract in and out numbers to variable #447

Closed Answered by SkalskiP
Xkim2000 asked this question in Q&A
Discussion options

You must be logged in to vote

@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 line_counter.out_count and line_counter.in_count to your variables. What you should do is just assign:

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

Replies: 3 comments 2 replies

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
2 replies
@Xkim2000
Comment options

@SkalskiP
Comment options

Answer selected by Xkim2000
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
question Further information is requested
2 participants
Converted from issue

This discussion was converted from issue #446 on October 10, 2023 07:34.