I am dealing with Image Classification problem and I am using SVM classifier for the classification. I have setup an experiment that consists of two level classification. I assume that I first pass the test image through the top level classifier, if the classification confidence of top level classifier is above some threshold its ok, but if it is lower than the threshold, the test image is feed to lower level classifier. Is it possible to calculate the classification confidence in terms of percentage? And how do I achieve this?