Openface отлично работает на терминале и показывает вывод плавно. Я просто передаю каталог в своем php и запускаю скрипт Compare.py. Но выдает ошибку
OpenFace: `openface_server.lua` subprocess has died.
+ Is the Torch command `th` on your PATH? Check with `which th`.
+ If `th` is on your PATH, try running `./util/profile-network.lua`
to see if Torch can correctly load and run the network.
+ If this gives illegal instruction errors, see the section on
this in our FAQ at http://cmusatyalab.github.io/openface/faq/
Код симфонии
$process = new Process(['python2', '/home/machine/Desktop/check.py']);
$process->run();
echo exec("whoami");
// executes after the command finishes
if (!$process->isSuccessful()) {
throw new ProcessFailedException($process);
}
echo $process->getOutput();