Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 9251289
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 18, 20262026-06-18T10:39:35+00:00 2026-06-18T10:39:35+00:00

ive got this big/easy problem that i need to solve but i cant.. What

  • 0

ive got this big/easy problem that i need to solve but i cant..
What im trying to do is to count cars on a highway, and i actually can detect the moving cars and put bounding boxes on them… but when i try to count them, i simply cant. I tried making a variable (nCars) and increment everytime the program creates a bounding box, but that seems to increment to many times..
The question is: Whats the best way to count moving cars/objects?

PS: I Dont know if this is a silly question but im going nutts…. Thanks for everything (:
And im new here but i know this website for some time (: Its great!

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-18T10:39:37+00:00Added an answer on June 18, 2026 at 10:39 am

    I guess you are detecting the cars in each frame and creating a new bounding box each time a car is detected. This would explain the many increments of your variable.

    You have to find a way to figure out if the car detected in one frame is the same car from the frame before (if you had a car detected in the previous frame). You might be able to achieve this by simply comparing the bounding box distances between two frames; if the distance is less than a threshold value, you can say that it’s the same car from the previous frame. This way you can track the cars.

    You could increment the counter variable when the detected car leaves the camera’s field of view (exits the frame).

    The tracking procedure I proposed here is very simple, try searching for “object tracking” to see what else you can use (maybe have a look at OpenCV’s KLT tracking).

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Ive got this problem: Line 20 (LOOT_FromContainer(container) I need that to use as Invoke
Well ive got this code that creates a table from JSON data. If a
ive got an object that looks like this with print_r(): SimpleDOM Object ( [0]
I've got this JS highchart that I'm trying to pass some values into that
So Ive got a pretty big array of data and need to sort them
I've got a big project written in PHP and Javascript. The problem is that
I've got a big Javascript project that I'm trying to refactor into pseudo-classes: jsFiddle:
I've got a big or maybe small problem. I'm trying to scroll my website,
So I've got this database that helps organize information for academic conferences, but we
Okay, now I've got this thing I need to do with Javascript but I

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.