Vector quantization for license plate location and image coding