Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -27,7 +27,7 @@ def extract_room_data(results, room_patterns, dimension_pattern):
|
|
27 |
# Function to process the uploaded image
|
28 |
def process_image(image):
|
29 |
# Convert the Gradio image to PIL Image
|
30 |
-
|
31 |
|
32 |
# Perform OCR
|
33 |
results = reader.readtext(np.array(image), detail=0)
|
|
|
27 |
# Function to process the uploaded image
|
28 |
def process_image(image):
|
29 |
# Convert the Gradio image to PIL Image
|
30 |
+
image = Image.fromarray(image)
|
31 |
|
32 |
# Perform OCR
|
33 |
results = reader.readtext(np.array(image), detail=0)
|