Added error logging to PhotoInfo.detected_text
This commit is contained in:
@@ -1134,6 +1134,7 @@ class PhotoInfo:
|
|||||||
try:
|
try:
|
||||||
detected_text = detect_text(path)
|
detected_text = detect_text(path)
|
||||||
except Exception as e:
|
except Exception as e:
|
||||||
|
logging.warning(f"Error detecting text in photo {self.uuid} at {path}: {e}")
|
||||||
detected_text = []
|
detected_text = []
|
||||||
|
|
||||||
self._detected_text[(path, confidence_threshold)] = [
|
self._detected_text[(path, confidence_threshold)] = [
|
||||||
|
|||||||
Reference in New Issue
Block a user