Update app.py
Browse files
app.py
CHANGED
@@ -152,7 +152,7 @@ def vision_ai_api(image, doc_type):
|
|
152 |
|
153 |
def predict(image):
|
154 |
"""Pipeline: Preprocess -> Detect -> Crop -> Vision AI API."""
|
155 |
-
processed_image =
|
156 |
rotated_image = imageRotation(processed_image) # Placeholder for rotation
|
157 |
detected_image, labels, bounding_boxes = detect_document(rotated_image)
|
158 |
|
|
|
152 |
|
153 |
def predict(image):
|
154 |
"""Pipeline: Preprocess -> Detect -> Crop -> Vision AI API."""
|
155 |
+
processed_image = dynamic_preprocess(image)
|
156 |
rotated_image = imageRotation(processed_image) # Placeholder for rotation
|
157 |
detected_image, labels, bounding_boxes = detect_document(rotated_image)
|
158 |
|