Ask Your Question

What classifier and algorithm would you use to detect the cars in this image?

asked 2015-10-15 16:50:26 -0500

ajester gravatar image

updated 2020-11-30 03:32:08 -0500

Exactly as the title says, I'm trying to detect the cars in this image. What detector/classifier would work best?image description

edit retag flag offensive close merge delete

3 answers

Sort by » oldest newest most voted

answered 2015-10-16 03:41:37 -0500

I think that this paper is exactly what you are looking for.

PKLot – A robust dataset for parking lot classification

Project webpage:

the algorithm classify each parking place at once as occupied or not, and the neural network was trained considering three different situations: sunny, cloudy and rainy days. Please, see the PKLot data set for more detailed information about the parking scenes.

image description

edit flag offensive delete link more



Nice dataset! Again something to add to my collection!

StevenPuttemans gravatar imageStevenPuttemans ( 2015-10-16 04:27:57 -0500 )edit

Wow, awesome! Thanks for the link, looks very promising!

ajester gravatar imageajester ( 2015-10-16 09:36:27 -0500 )edit

answered 2015-10-16 03:30:43 -0500

I would go for some sort of object model detection, making it rotation invariant or applying it in a series of different rotation to cope for the fact that the car will not always be straight horizontal or vertical.


  • Cascade classification using a cascade of boosted classifiers
  • Creating a HOG features + SVM approach
  • ACF/ICF detectors
  • Latent SVM / part based modeling (DPM technique)

All of those are either in OpenCV main or contrib repository. Keep in mind that all of these techniques need training data, and in this case lots of it (since the variance in what is a car exactly).

Also, if the camera is fixed and always on the same position, more simpler techniques could be used, but I did not do that not to restrain the problem to much.

edit flag offensive delete link more

answered 2018-07-19 07:53:06 -0500

lrocher gravatar image

We used YOLO in order to achieve this. We were able to obtain very satisfying results, they are detailed in this post:

edit flag offensive delete link more


why downvote - i also use yolo for this.

holger gravatar imageholger ( 2018-07-20 00:19:42 -0500 )edit

@holger, the downvote is not mine, but my biggest guess, adding a comment, with a link to a website (that is cursed to be unreacheble someday) does not improve the answers already provided. They could have posted the relevant information here. The blogpost does not discuss empty parking lot detection (which to me seems the end goal here). But yes, Yolo can be used for this.

StevenPuttemans gravatar imageStevenPuttemans ( 2018-07-23 04:03:57 -0500 )edit

Ok - got your point. I am also sometimes attention seeking ;-) Thank you for clarification.

holger gravatar imageholger ( 2018-07-23 04:08:53 -0500 )edit

Question Tools



Asked: 2015-10-15 16:48:16 -0500

Seen: 2,148 times

Last updated: Jul 19 '18