-
Notifications
You must be signed in to change notification settings - Fork 0
/
imageprocess.php
56 lines (38 loc) · 915 Bytes
/
imageprocess.php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
<?php
include "link.php";
if(!isset($_SESSION["logged"]) || $_SESSION["logged"] == 0)
{
//header("Location: signin.php");
}
$cmd = "main.exe";
chdir("facifier/src");
$output = array();
exec("$cmd", $output);
echo implode("<br>", $output)
/*$command = escapeshellcmd("python facifier/src/facifier.py"); //image storage in front end (javascript)
$output = shell_exec($command);
echo $output; */
/*sleep(3);
$ln = getlink($output);
header("Location: $ln");
*/
?>
<html>
<head>
<link href="process.css" type="text/CSS" rel="stylesheet" >
<title>Processing Facial Features</title>
</head>
<body>
<h1>Processing...</h1>
<img id="processarea" class="face" src=
<?php
//echo '"' . "faces/$actual_name" . '"';
?>
>
<script>
var processarea = document.getElementById("processarea");
processarea.width = processarea.width / 2;
processarea.height = processarea.height / 2;
</script>
</body>
</html>