Accelerated image classification algorithm based on naive Bayes K-nearest neighbor