Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -116,7 +116,7 @@ classes_dict = {
|
|
116 |
|
117 |
def Plot_Result(raw_plate, digits) :
|
118 |
|
119 |
-
fig = plt.subplots(figsize=(15,10))
|
120 |
|
121 |
#plt.figure(figsize=(15, 10))
|
122 |
#plt.subplot(2, 1, 2)
|
@@ -149,7 +149,16 @@ def Plot_Result(raw_plate, digits) :
|
|
149 |
#plt.imshow(raw_plate)
|
150 |
#ax.imshow(raw_plate)
|
151 |
#ax.show()
|
152 |
-
fig = plt.imshow(raw_plate)
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
153 |
|
154 |
|
155 |
|
@@ -199,7 +208,7 @@ if selected_type == "Upload Image":
|
|
199 |
|
200 |
st.markdown("------")
|
201 |
|
202 |
-
|
203 |
|
204 |
|
205 |
|
|
|
116 |
|
117 |
def Plot_Result(raw_plate, digits) :
|
118 |
|
119 |
+
#fig = plt.subplots(figsize=(15,10))
|
120 |
|
121 |
#plt.figure(figsize=(15, 10))
|
122 |
#plt.subplot(2, 1, 2)
|
|
|
149 |
#plt.imshow(raw_plate)
|
150 |
#ax.imshow(raw_plate)
|
151 |
#ax.show()
|
152 |
+
#fig = plt.imshow(raw_plate)
|
153 |
+
|
154 |
+
for img in raw_plate:
|
155 |
+
img_base64 = Image.fromarray(img)
|
156 |
+
img_base64.save(output, format="JPEG")
|
157 |
+
|
158 |
+
final_image = Image.open(output)
|
159 |
+
print("Opening ",final_image)
|
160 |
+
st.markdown("---")
|
161 |
+
st.image(final_image, caption='This is how your final image looks like 😉')
|
162 |
|
163 |
|
164 |
|
|
|
208 |
|
209 |
st.markdown("------")
|
210 |
|
211 |
+
FINAL(img)
|
212 |
|
213 |
|
214 |
|