In recent years, millions of hectares of vegetation worldwide have been destroyed by wildfires and forest fires. Computer vision-based fire classification, which separates pixels from image or video datasets into fire and non-fire categories, has gained more attention recently due to technological innovations. Fire pixels in an image or video can be classified using either a deep learning strategy or a traditional machine learning approach. Deep learning algorithms could process enormous volumes of data, but their training model performance is constrained because they fail to consider the differences in complexity between training samples. Moreover, it is not obvious to train a deep learning model without a dedicated GPU unit.Similarly, deep learning techniques that have a scarcity of training data and insufficient features exhibit poor performance in intricate real-world fire situations. Consequently, to categorize fire and non-fire pixels from the processed photos from the publicly accessible datasets, Corsican and FLAME, as well as the aerial private dataset Firefront_Gestosa, the current study uses a lightweight technique based on SVM and a refined set of features.The present research implemented a novel framework for fire detection and classification from a variety of RGB and Infra-red images acquired during real missions, addressing the significant requirement for swift and accurate recognition of diverse types of flames, ranging from wildfires to industrial and domestic fires. The framework employs wavelet decomposition-based features, including wavelet length, standard deviation, variance, energy, and Shannon’s entropy, extracted through a sliding window sampling method within a machine learning approach. It should be noted that managing multidimensional data to train a model is difficult in machine learning applications. This issue is solved adopting a feature selection approach, which eliminates redundant or unnecessary data that affects the functionality of the model. Thus, to enhance model performance, feature selection using ranking algorithms based on theoretical mutual information is applied in combination to the Support Vector Machine (SVM) with Radial Basis Function (RBF) kernel.Extensive experiments demonstrate exceptional results, notably with Haar wavelets, achieving an impressive overall accuracy of 99.43% and remarkable performance across specificity, precision, recall, F-measure, and G-mean metrics. Thus, the present study showcases the potential of advanced image processing techniques to significantly advance fire detection and classification, thereby contributing to fire prevention, management, and research in various contexts.