Merge branch 'master' of bitbucket.org:venbaittech/sparqapi
This commit is contained in:
commit
923d9ef57d
@ -10493,16 +10493,16 @@ class PD_Controller extends REST_Controller
|
|||||||
|
|
||||||
|
|
||||||
|
|
||||||
public function toMakeFaceBoundingBox_get(){
|
//public function toMakeFaceBoundingBox_get(){
|
||||||
// public function toMakeFaceBoundingBox($master_details)
|
public function toMakeFaceBoundingBox($master_details)
|
||||||
// {
|
{
|
||||||
$pdid = $this->get('pd');//pdid 3184 comment this
|
// $pdid = $this->get('pd');//pdid 3184 comment this
|
||||||
// $pdid = $master_details[0]['pd_id'];
|
$pdid = $master_details[0]['pd_id'];
|
||||||
log_message('ERROR', "In PD Controller (to Make FaceBoundingBox called ) PDID : " . $pdid);
|
log_message('ERROR', "In PD Controller (to Make FaceBoundingBox called ) PDID : " . $pdid);
|
||||||
$bounding_box = array();
|
$bounding_box = array();
|
||||||
$img_response = array();
|
$img_response = array();
|
||||||
if (!empty($pdid)) {
|
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']) {
|
if ($master_details[0]['facemark_image_generated']) {
|
||||||
log_message('ERROR', "In PD Controller Facemark Image Generated : " . $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);
|
$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 {
|
} else {
|
||||||
log_message('ERROR', "In PD Controller to Make FaceBoundingBox Faceapi Image Already Generated");
|
log_message('ERROR', "In PD Controller to Make FaceBoundingBox Faceapi Image Already Generated");
|
||||||
$data['dataStatus'] = false;
|
//$data['dataStatus'] = false;
|
||||||
$data['status'] = REST_Controller::HTTP_NO_CONTENT;
|
//$data['status'] = REST_Controller::HTTP_NO_CONTENT;
|
||||||
$data['msg'] = 'Faceapi Image Already Generated';
|
//$data['msg'] = 'Faceapi Image Already Generated';
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
log_message('ERROR', "In PD Controller to Make FaceBoundingBox PDID is Not Available");
|
log_message('ERROR', "In PD Controller to Make FaceBoundingBox PDID is Not Available");
|
||||||
$data['dataStatus'] = false;
|
//$data['dataStatus'] = false;
|
||||||
$data['status'] = REST_Controller::HTTP_NO_CONTENT;
|
//$data['status'] = REST_Controller::HTTP_NO_CONTENT;
|
||||||
$data['msg'] = 'PDID is Not Available';
|
//$data['msg'] = 'PDID is Not Available';
|
||||||
}
|
}
|
||||||
$this->response($data,REST_Controller::HTTP_OK);
|
$this->response($data,REST_Controller::HTTP_OK);
|
||||||
|
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user