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)) {
|
||||
file_put_contents($fileTarget, $img);
|
||||
}
|
||||
// $finish = $this->getCurrentTime();
|
||||
// $temp["saveIMG"] = round(($finish - $start), 4);
|
||||
// $start = $this->getCurrentTime();
|
||||
// $features = json_decode(common::requestToEngine("/get-feature", [
|
||||
// "image_paths" => [
|
||||
// ["url" => "/var/www/html/BiFace_Server_Lite/web/data/uploads/face/" . $fileName, "type" => "raw"]
|
||||
// ],
|
||||
// "type" => "128"
|
||||
// ]), true);
|
||||
// $finish = $this->getCurrentTime();
|
||||
// $temp["extract"] = round(($finish - $start), 4);
|
||||
$finish = $this->getCurrentTime();
|
||||
$temp["saveIMG"] = round(($finish - $start), 4);
|
||||
$start = $this->getCurrentTime();
|
||||
$features = json_decode(common::requestToEngine("/get-feature", [
|
||||
"image_paths" => [
|
||||
["url" => "/var/www/html/BiFace_Server_Lite/web/data/uploads/face/" . $fileName, "type" => "raw"]
|
||||
],
|
||||
"type" => "128"
|
||||
]), true);
|
||||
$finish = $this->getCurrentTime();
|
||||
$temp["extract"] = round(($finish - $start), 4);
|
||||
$ft[] = [
|
||||
"url" => $fileName,
|
||||
"urlOld" => $fileName,
|
||||
"features" => [], //$features['results'][0]['feature'],
|
||||
"features" => $features['results'][0]['feature'],
|
||||
"features512" => []//isset($features['results'][0]['feature512']) ? $features['results'][0]['feature512'] : []
|
||||
];
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue
Block a user