Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How do you determine the formula to count the detected vehicle? #4

Open
yovir opened this issue Jun 29, 2018 · 0 comments
Open

How do you determine the formula to count the detected vehicle? #4

yovir opened this issue Jun 29, 2018 · 0 comments

Comments

@yovir
Copy link

yovir commented Jun 29, 2018

For example if I want to count a three lane instead of two lane, how do I determine the formula for the center lane?
Example of right lane and left lane based on your code:

if ((abs(center.y - img.rows * 2 / 3) < 3) && img.cols / 1.55 <= center.x && center.x <= img.cols)

if ((abs(center.y - img.rows * 2 / 3) < 4) && 0 <= center.x && center.x <= img.cols / 3)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant