I'm working on project for the Autonomous vehicle, and i want to know what's confidence level means and how can we use confidence level for vehicle detection in OpenCV ?
1 Answer
Statistical confidence is most often defined in terms of a score that is the number of standard deviations away from the mean.
Now let's say you have a set of states (a state vector) used to define an object recognized using image processing in OpenCV (for example, RGB data, HSV data, filter responses, etc.). Given a series of training images for vehicles, you can compute the mean and covariance of their state vectors. If you then consider some new object being tested, you can compute what is known as the Mahalanobis distance between the new object's state vector and the vehicle state vector. This distance will essentially be the statistical confidence that the new object is a vehicle.
In fact, OpenCV has functions available to compute things like the covariance matrix and the Mahalanobis distance.
-
$\begingroup$ Note that this is only one example of how to classify an object based on statistical confidence. There are many algorithms that have a probabilistic basis. For example, you may also want to consider using a Bayesian network. $\endgroup$ Commented Oct 16, 2015 at 9:56
c++
tag has nothing to do with your question. For confidence level, you need to relate your question to robotics otherwise this question is more suitable in Cross Validated Stack stats.stackexchange.com. $\endgroup$