Spaces:
Running
Running
Commit
·
c1cb031
1
Parent(s):
f3e69f8
only png
Browse files
app.py
CHANGED
@@ -75,7 +75,7 @@ def ocr_with_crop(aligned_image):
|
|
75 |
|
76 |
if __name__== "__main__":
|
77 |
ref = cv.imread("r.png",0)
|
78 |
-
if inp:= st.file_uploader("upload your form in image format", type=['png'
|
79 |
image = Image.open(inp)
|
80 |
gray_image_pil = image.convert('L')
|
81 |
image_array = np.array(gray_image_pil)
|
|
|
75 |
|
76 |
if __name__== "__main__":
|
77 |
ref = cv.imread("r.png",0)
|
78 |
+
if inp:= st.file_uploader("upload your form in image format", type=['png']):
|
79 |
image = Image.open(inp)
|
80 |
gray_image_pil = image.convert('L')
|
81 |
image_array = np.array(gray_image_pil)
|