Skip to content

Instantly share code, notes, and snippets.

@quangnhat185
Created May 17, 2020 21:36
Show Gist options
  • Save quangnhat185/6b52ddceca735c22fd42e10869a071ec to your computer and use it in GitHub Desktop.
Save quangnhat185/6b52ddceca735c22fd42e10869a071ec to your computer and use it in GitHub Desktop.
# Load model architecture, weight and labels
json_file = open('MobileNets_character_recognition.json', 'r')
loaded_model_json = json_file.read()
json_file.close()
model = model_from_json(loaded_model_json)
model.load_weights("License_character_recognition_weight.h5")
print("[INFO] Model loaded successfully...")
labels = LabelEncoder()
labels.classes_ = np.load('license_character_classes.npy')
print("[INFO] Labels loaded successfully...")
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment