Spaces:
Sleeping
Sleeping
Commit
·
e98a15b
1
Parent(s):
8cee41e
folders
Browse files- app.py +1 -1
- solver.py +1 -1
- src/__pycache__/solve.cpython-310.pyc +0 -0
app.py
CHANGED
@@ -68,7 +68,7 @@ def main():
|
|
68 |
with gr.Row():
|
69 |
input_words = gr.Image(label='Words',
|
70 |
type='filepath',
|
71 |
-
interactive=True, height="
|
72 |
placeholder="examples/words_test.png")
|
73 |
with gr.Row():
|
74 |
crop_words_button = gr.Button('Crop Words ✂️')
|
|
|
68 |
with gr.Row():
|
69 |
input_words = gr.Image(label='Words',
|
70 |
type='filepath',
|
71 |
+
interactive=True, height="300px", width="300px",
|
72 |
placeholder="examples/words_test.png")
|
73 |
with gr.Row():
|
74 |
crop_words_button = gr.Button('Crop Words ✂️')
|
solver.py
CHANGED
@@ -131,7 +131,7 @@ def solve_puzzle(img, words):
|
|
131 |
gray = cv2.cvtColor(img, cv2.COLOR_RGB2GRAY)
|
132 |
blur = cv2.GaussianBlur(gray, (5, 5), 0)
|
133 |
# save the blurred image
|
134 |
-
cv2.imwrite("output/blur.png", blur)
|
135 |
# display blurred image
|
136 |
threshten = cv2.threshold(
|
137 |
blur, 0, 255, cv2.THRESH_BINARY | cv2.THRESH_OTSU)[1]
|
|
|
131 |
gray = cv2.cvtColor(img, cv2.COLOR_RGB2GRAY)
|
132 |
blur = cv2.GaussianBlur(gray, (5, 5), 0)
|
133 |
# save the blurred image
|
134 |
+
#cv2.imwrite("output/blur.png", blur)
|
135 |
# display blurred image
|
136 |
threshten = cv2.threshold(
|
137 |
blur, 0, 255, cv2.THRESH_BINARY | cv2.THRESH_OTSU)[1]
|
src/__pycache__/solve.cpython-310.pyc
ADDED
Binary file (2.81 kB). View file
|
|