Ask Your Question

Best solution for car approaching to the gate and anpr lib

asked 2015-10-14 14:16:03 -0500

gabrielpasv gravatar image

updated 2015-10-16 04:45:18 -0500

Hi People,

I am new to OpenCV and I am working a project to detect a car. This is a little different from the ones I found online.

Check the brief description:

  1. In this project the car approaches the gate then stop
  2. We have a camera in front of the car capturing car image
  3. Need to detect the presence of the car and take the snapshot
  4. Pass the snapshot image as a parameter for my anpr library.
  5. Will return the car plate and display it to the user.

I could try to run the anpr lib on every frame, but that will impact on performance. That's why I need something to detect the car first, and then pass it to my anpr lib


edit retag flag offensive close merge delete


What is your requirement for "detect car" ? it's depends from specification/context, you can go from simple occlusion detection, motion detection up to object identification. You could start from background subtraction

pklab gravatar imagepklab ( 2015-10-15 05:10:31 -0500 )edit

1 answer

Sort by ยป oldest newest most voted

answered 2015-10-16 04:48:16 -0500

A solution can be

  • Detecting presence or not --> background subtraction, since the place where an object will be is known
  • The result can be cleaned using morpholocal operations and blob analysis, both in openCV.
  • Pass the bounding box of the car to the ANPR interface

You could even optimize this and take only a ROI of the found blob, since you will know due to the fixed cam, where the license plate will be with some buffer.

edit flag offensive delete link more

Question Tools

1 follower


Asked: 2015-10-14 14:16:03 -0500

Seen: 356 times

Last updated: Oct 16 '15