toi uu dong bo du kieu tu server ver 1
This commit is contained in:
parent
3611390586
commit
3b247f9f25
|
@ -482,21 +482,21 @@ class ListManagementController extends Controller {
|
||||||
if (!$this->resizeImg($img, $fileTarget)) {
|
if (!$this->resizeImg($img, $fileTarget)) {
|
||||||
file_put_contents($fileTarget, $img);
|
file_put_contents($fileTarget, $img);
|
||||||
}
|
}
|
||||||
// $finish = $this->getCurrentTime();
|
$finish = $this->getCurrentTime();
|
||||||
// $temp["saveIMG"] = round(($finish - $start), 4);
|
$temp["saveIMG"] = round(($finish - $start), 4);
|
||||||
// $start = $this->getCurrentTime();
|
$start = $this->getCurrentTime();
|
||||||
// $features = json_decode(common::requestToEngine("/get-feature", [
|
$features = json_decode(common::requestToEngine("/get-feature", [
|
||||||
// "image_paths" => [
|
"image_paths" => [
|
||||||
// ["url" => "/var/www/html/BiFace_Server_Lite/web/data/uploads/face/" . $fileName, "type" => "raw"]
|
["url" => "/var/www/html/BiFace_Server_Lite/web/data/uploads/face/" . $fileName, "type" => "raw"]
|
||||||
// ],
|
],
|
||||||
// "type" => "128"
|
"type" => "128"
|
||||||
// ]), true);
|
]), true);
|
||||||
// $finish = $this->getCurrentTime();
|
$finish = $this->getCurrentTime();
|
||||||
// $temp["extract"] = round(($finish - $start), 4);
|
$temp["extract"] = round(($finish - $start), 4);
|
||||||
$ft[] = [
|
$ft[] = [
|
||||||
"url" => $fileName,
|
"url" => $fileName,
|
||||||
"urlOld" => $fileName,
|
"urlOld" => $fileName,
|
||||||
"features" => [], //$features['results'][0]['feature'],
|
"features" => $features['results'][0]['feature'],
|
||||||
"features512" => []//isset($features['results'][0]['feature512']) ? $features['results'][0]['feature512'] : []
|
"features512" => []//isset($features['results'][0]['feature512']) ? $features['results'][0]['feature512'] : []
|
||||||
];
|
];
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue
Block a user