support keras
This commit is contained in:
@@ -176,7 +176,7 @@ class OCRController extends ApiController
|
|||||||
imagedestroy($imgcreate);
|
imagedestroy($imgcreate);
|
||||||
|
|
||||||
// keras
|
// keras
|
||||||
$cmd = 'python3 ' . base_path() . '/scripts/keras.py ' . base64_encode(file_get_contents($tmpfname));
|
$cmd = 'python3 ' . base_path() . '/scripts/keras_oc.py ' . $url;
|
||||||
$command = escapeshellcmd($cmd); #no special characters it will work
|
$command = escapeshellcmd($cmd); #no special characters it will work
|
||||||
$data['ocr']['keras'] = shell_exec($command);
|
$data['ocr']['keras'] = shell_exec($command);
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user