Created
May 17, 2020 21:36
-
-
Save quangnhat185/6b52ddceca735c22fd42e10869a071ec to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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