Set ocr to failed text to make them easy to find in the manager
This commit is contained in:
parent
2e4ce6c458
commit
f79c6926de
|
|
@ -152,6 +152,7 @@ class MTGImage implements JsonSerializable {
|
||||||
$text = str_replace("\n", " ", $text);
|
$text = str_replace("\n", " ", $text);
|
||||||
return $this->setOCR($text);
|
return $this->setOCR($text);
|
||||||
} catch ( Exception $e ) {
|
} catch ( Exception $e ) {
|
||||||
|
$this->setOCR("ocr failed");
|
||||||
return $e->getMessage();
|
return $e->getMessage();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue
Block a user