Update app.py
Browse files
app.py
CHANGED
@@ -291,7 +291,7 @@ def extract(image1):
|
|
291 |
#print(line_image)
|
292 |
#cv2.imwrite('/Users/vatsalya/Desktop/demo.jpeg',line_image)
|
293 |
|
294 |
-
|
295 |
im=Image.fromarray(line_image)
|
296 |
im=im.convert("L")
|
297 |
print(im)
|
|
|
291 |
#print(line_image)
|
292 |
#cv2.imwrite('/Users/vatsalya/Desktop/demo.jpeg',line_image)
|
293 |
|
294 |
+
line_image=line_image*255
|
295 |
im=Image.fromarray(line_image)
|
296 |
im=im.convert("L")
|
297 |
print(im)
|