Skip to content

Instantly share code, notes, and snippets.

@quangnhat185
Created April 11, 2020 12:19
Show Gist options
  • Save quangnhat185/398be1c051ef4e322359ccd380251b20 to your computer and use it in GitHub Desktop.
Save quangnhat185/398be1c051ef4e322359ccd380251b20 to your computer and use it in GitHub Desktop.
# 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