Merge branch 'master' of bitbucket.org:venbaittech/sparqapi

This commit is contained in:
VE10-Sanjeev 2022-09-14 11:47:04 +05:30
commit 923d9ef57d

View File

@ -10493,16 +10493,16 @@ class PD_Controller extends REST_Controller
public function toMakeFaceBoundingBox_get(){
// public function toMakeFaceBoundingBox($master_details)
// {
$pdid = $this->get('pd');//pdid 3184 comment this
// $pdid = $master_details[0]['pd_id'];
//public function toMakeFaceBoundingBox_get(){
public function toMakeFaceBoundingBox($master_details)
{
// $pdid = $this->get('pd');//pdid 3184 comment this
$pdid = $master_details[0]['pd_id'];
log_message('ERROR', "In PD Controller (to Make FaceBoundingBox called ) PDID : " . $pdid);
$bounding_box = array();
$img_response = array();
if (!empty($pdid)) {
$master_details = $this->PD_Model->getPDMasterDetails($pdid);//comment this
//$master_details = $this->PD_Model->getPDMasterDetails($pdid);//comment this
if ($master_details[0]['facemark_image_generated']) {
log_message('ERROR', "In PD Controller Facemark Image Generated : " . $master_details[0]['facemark_image_generated']);
$db_result = $this->PD_Model->selectCustomRecords(array('faceapi_result'), array('pd_id' => $pdid), PDTRIGGER);
@ -10577,15 +10577,15 @@ class PD_Controller extends REST_Controller
} else {
log_message('ERROR', "In PD Controller to Make FaceBoundingBox Faceapi Image Already Generated");
$data['dataStatus'] = false;
$data['status'] = REST_Controller::HTTP_NO_CONTENT;
$data['msg'] = 'Faceapi Image Already Generated';
//$data['dataStatus'] = false;
//$data['status'] = REST_Controller::HTTP_NO_CONTENT;
//$data['msg'] = 'Faceapi Image Already Generated';
}
} else {
log_message('ERROR', "In PD Controller to Make FaceBoundingBox PDID is Not Available");
$data['dataStatus'] = false;
$data['status'] = REST_Controller::HTTP_NO_CONTENT;
$data['msg'] = 'PDID is Not Available';
//$data['dataStatus'] = false;
//$data['status'] = REST_Controller::HTTP_NO_CONTENT;
//$data['msg'] = 'PDID is Not Available';
}
$this->response($data,REST_Controller::HTTP_OK);