Configurable image recognition framework design based on KNN and bit-based similarity model