No more lightdb:delete v14
This commit is contained in:
parent
c48007ad45
commit
89bf9722c4
|
@ -53,7 +53,7 @@
|
||||||
$read = shell_exec("tesseract ".$this->fname." stdout -l fra --user-words ".__ROOT__."/config/edt.user-words -c language_model_penalty_non_freq_dict_word=0.1 -c language_model_penalty_non_dict_word=.15 -c tessedit_char_whitelist=abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789 2>/dev/null");
|
$read = shell_exec("tesseract ".$this->fname." stdout -l fra --user-words ".__ROOT__."/config/edt.user-words -c language_model_penalty_non_freq_dict_word=0.1 -c language_model_penalty_non_dict_word=.15 -c tessedit_char_whitelist=abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789 2>/dev/null");
|
||||||
|
|
||||||
/* (2) If empty */
|
/* (2) If empty */
|
||||||
if( is_null($read) || !preg_match('@\n@', $read) )
|
if( is_null($read) || !preg_match('@\n@g', $read) )
|
||||||
throw new \Exception("Nothing read");
|
throw new \Exception("Nothing read");
|
||||||
|
|
||||||
/* (3) Split by lines */
|
/* (3) Split by lines */
|
||||||
|
|
Loading…
Reference in New Issue