Spaces:
Sleeping
Sleeping
Remove saving image to disk
Browse files
app/services/adhaarServices/ocr.py
CHANGED
|
@@ -32,7 +32,7 @@ def process_results(results, img):
|
|
| 32 |
final_image = all_cropped_images_to_one_image(cropped_images, separator_image_path='app/utils/seprator3.png')
|
| 33 |
|
| 34 |
buffer = BytesIO()
|
| 35 |
-
final_image.save(buffer, format=input_image_format)
|
| 36 |
buffer.seek(0)
|
| 37 |
|
| 38 |
response = analyze_image(buffer.getvalue(), input_image_format)
|
|
|
|
| 32 |
final_image = all_cropped_images_to_one_image(cropped_images, separator_image_path='app/utils/seprator3.png')
|
| 33 |
|
| 34 |
buffer = BytesIO()
|
| 35 |
+
# final_image.save(buffer, format=input_image_format)
|
| 36 |
buffer.seek(0)
|
| 37 |
|
| 38 |
response = analyze_image(buffer.getvalue(), input_image_format)
|