In this paper, the authors develop an efficient face recognition algorithm from images or live video streaming for IoT systems based on K-nearest neighbor and support vector machine learning to recognize the person from the local database and extract the features of the face. Because of the complexity of the conditions, there might be some factors of facing errors like the size; the angle; the distance from the ear, nose, and eyes; etc. This sustainable machine learning-based IoT system is designed for sovereign face recognition with features extraction with improved accuracy near about 96%. The experimental study is done to test the performance of the face recognition in the changes of number of persons in video or images. Finally, this manuscript recognized persons from live video or images with accuracy approximately 96% by using the SVM and KNN classifiers and discussed with the block diagram and proposed algorithm.