krishnamishra8848 commited on
Commit
41b657d
·
verified ·
1 Parent(s): 73ea518

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -0
app.py CHANGED
@@ -75,6 +75,7 @@ if uploaded_file is not None:
75
  st.write(f"Detected {len(cropped_plates)} license plate(s). Showing results:")
76
  for idx, cropped_image in enumerate(cropped_plates, 1):
77
  st.write(f"License Plate {idx}:")
 
78
  annotated_plate = detect_characters(cropped_image.copy())
79
  st.image(cv2.cvtColor(annotated_plate, cv2.COLOR_BGR2RGB), caption=f"License Plate {idx} with Characters", use_container_width=True)
80
  else:
 
75
  st.write(f"Detected {len(cropped_plates)} license plate(s). Showing results:")
76
  for idx, cropped_image in enumerate(cropped_plates, 1):
77
  st.write(f"License Plate {idx}:")
78
+ # Pass cropped license plate to character detection
79
  annotated_plate = detect_characters(cropped_image.copy())
80
  st.image(cv2.cvtColor(annotated_plate, cv2.COLOR_BGR2RGB), caption=f"License Plate {idx} with Characters", use_container_width=True)
81
  else: