Spaces:
Running
Running
Update app.py
Browse files
app.py
CHANGED
@@ -234,7 +234,7 @@ def detect_paper_bounds(image: np.ndarray, paper_size: str) -> Tuple[np.ndarray,
|
|
234 |
if paper_detector is not None:
|
235 |
# Use trained model if available
|
236 |
# FIXED: Add verbose=False to suppress prints, and use proper confidence threshold
|
237 |
-
results = paper_detector.predict(image, conf=0.
|
238 |
|
239 |
if not results or len(results) == 0:
|
240 |
logger.warning("No results from paper detector")
|
|
|
234 |
if paper_detector is not None:
|
235 |
# Use trained model if available
|
236 |
# FIXED: Add verbose=False to suppress prints, and use proper confidence threshold
|
237 |
+
results = paper_detector.predict(image, conf=0.8, verbose=False) # Lower confidence threshold
|
238 |
|
239 |
if not results or len(results) == 0:
|
240 |
logger.warning("No results from paper detector")
|