Created
April 11, 2020 12:19
-
-
Save quangnhat185/398be1c051ef4e322359ccd380251b20 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
# Extract mutiple plate license in one image | |
multiple_plates_image = "Plate_examples/multiple_plates.png" | |
LpImg,cor = get_plate(multiple_plates_image) | |
print("Detect %i plate(s) in"%len(LpImg),splitext(basename(multiple_plates_image))[0]) | |
# Visualize the original image | |
plt.figure(figsize=(10,5)) | |
plt.axis(False) | |
plt.imshow(preprocess_image(multiple_plates_image)) | |
# Visualize the obtained plates | |
plt.figure(figsize=(10,5)) | |
plt.subplot(1,2,1) | |
plt.axis(False) | |
plt.imshow(LpImg[1]) | |
plt.subplot(1,2,2) | |
plt.axis(False) | |
plt.imshow(LpImg[0]) | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment