Medical image classification is an essential task in the field of combining medical applications with Artificial Intelligence. This study is carried out to introduce an accurate, precise method for skin cancer recognition. This research investigates the performance of classifying skin cancer dataset HAM10000 using ResNet50, MobileNet, and the traditional Support Vector Machines (SVM) model. The dataset combines seven cancer types: Actinic Keratosis, Basal Cell Carcinoma, Benign Keratosis, Dermatofibroma, Melanoma, Melanocytic Nevus, and Vascular Lesion. The SVM classifier is designed to employ a Histogram of Oriented Gradient (HOG) features with Principle Component Analysis (PCA). Moreover, the Synthetic Minority Oversampling Technique is used to balance the dataset. Additionally, six conventional machine learning (ML) methods are used to compare the results with the calculation of precision, recall, F1 Score, and accuracy. The results confirm that the SVM method outperforms the other algorithms with an accuracy of 99.15%. The novelty contribution of this research activity is mainly based on the development of a high accuracy, low computational complex machine method for skin cancer types recognition in the domain of medical image classification.