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($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);
|
||||
|
||||
|
||||
Loading…
Reference in New Issue
Block a user