Fixed detected_text for videos
This commit is contained in:
@@ -306,7 +306,7 @@ def _get_detected_text(uuid: str, path: str, orientation: int, queue: Queue) ->
|
||||
if text := detect_text_in_photo(path, orientation):
|
||||
queue.put([uuid, " ".join(t[0] for t in text if t[1] > 0.5)])
|
||||
except Exception as e:
|
||||
queue.put([uuid, str(e)])
|
||||
queue.put([None, str(e)])
|
||||
|
||||
|
||||
def get_uuid_for_photos_selection() -> List[str]:
|
||||
@@ -422,6 +422,7 @@ def photo_inspect(db, theme, detect_text):
|
||||
# start text detection if requested
|
||||
if (
|
||||
detect_text
|
||||
and photo.isphoto
|
||||
and (
|
||||
photo.path
|
||||
or photo.path_edited
|
||||
|
||||
Reference in New Issue
Block a user