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, ax = plt.subplots(figsize=(15,10))
|
120 |
|
121 |
#plt.figure(figsize=(15, 10))
|
122 |
#plt.subplot(2, 1, 2)
|
@@ -148,7 +148,12 @@ def Plot_Result(raw_plate, digits) :
|
|
148 |
#plt.subplots_adjust(top=0.75)
|
149 |
#plt.imshow(raw_plate)
|
150 |
#plt.show()
|
151 |
-
ax.imshow(raw_plate)
|
|
|
|
|
|
|
|
|
|
|
152 |
|
153 |
def FINAL(img) :
|
154 |
'''
|
@@ -195,7 +200,7 @@ if selected_type == "Upload Image":
|
|
195 |
|
196 |
st.markdown("------")
|
197 |
|
198 |
-
st.
|
199 |
|
200 |
|
201 |
|
|
|
116 |
|
117 |
def Plot_Result(raw_plate, digits) :
|
118 |
|
119 |
+
#fig, ax = plt.subplots(figsize=(15,10))
|
120 |
|
121 |
#plt.figure(figsize=(15, 10))
|
122 |
#plt.subplot(2, 1, 2)
|
|
|
148 |
#plt.subplots_adjust(top=0.75)
|
149 |
#plt.imshow(raw_plate)
|
150 |
#plt.show()
|
151 |
+
#ax.imshow(raw_plate)
|
152 |
+
raw_plate.save('output.jpg')
|
153 |
+
img = cv2.imread('output.jpg')
|
154 |
+
|
155 |
+
|
156 |
+
|
157 |
|
158 |
def FINAL(img) :
|
159 |
'''
|
|
|
200 |
|
201 |
st.markdown("------")
|
202 |
|
203 |
+
st.image(FINAL(img))
|
204 |
|
205 |
|
206 |
|