Face crop called in report : ps
This commit is contained in:
parent
7db356b7f2
commit
dab67a5438
@ -4680,7 +4680,7 @@ class PD_Controller extends REST_Controller
|
||||
|
||||
|
||||
//GET ALL PROCESSED JSON
|
||||
for ($i = 1; $i <= 30; $i++) {
|
||||
for ($i = 1; $i <= 35; $i++) {
|
||||
$fields = array('processed_json');
|
||||
if ($i == 25) {
|
||||
$fields = array('json');
|
||||
@ -4698,6 +4698,10 @@ class PD_Controller extends REST_Controller
|
||||
} else {
|
||||
$data['pd_images']['common_images'] = $this->PD_Model->getSignedPDDocsURL($pdid, null, null, 'common', null, 'report');
|
||||
}
|
||||
$applicant_details = $this->PD_Model->selectCustomRecords(array('facemark_image_generated'), array('fk_pd_id' => $pdid,'isactive'=>1,'facecrop'=>null), PDAPPLICANTSDETAILS);
|
||||
if(!empty($applicant_details)){
|
||||
$this->toMakeFaceBoundingBox($pdid,$data['pd_master_details'][0]['fk_lender_id']);
|
||||
}
|
||||
$db_result = $this->PD_Model->selectCustomRecords(array('facecrop'), array('fk_pd_id' => $pdid,'isactive'=>1,'facemark_image_generated'=>1), PDAPPLICANTSDETAILS);
|
||||
$fc_array = array();
|
||||
if(!empty($db_result)){
|
||||
@ -7837,6 +7841,7 @@ class PD_Controller extends REST_Controller
|
||||
|
||||
public function getPDReportHTML_get()
|
||||
{
|
||||
|
||||
$pdid = $this->uri->segment(3);
|
||||
$random_string = $this->uri->segment(2);
|
||||
$this->getLatestPDReportHTMLFile($pdid, $random_string);
|
||||
@ -8497,7 +8502,7 @@ class PD_Controller extends REST_Controller
|
||||
|
||||
if ($records['image_key'] == 'selfie_with_person_met' || $records['image_key'] == 'person_met_id') {
|
||||
//get main applicant name
|
||||
$main_applicant_name = $this->PD_Model->selectCustomRecords(array('fk_pd_id', 'applicant_name', 'pd_co_applicant_id'), array('fk_pd_id' => $records['fk_pd_id'], 'applicant_type' => 1), PDAPPLICANTSDETAILS);
|
||||
$main_applicant_name = $this->PD_Model->selectCustomRecords(array('fk_pd_id', 'applicant_name', 'pd_co_applicant_id','facemark_image_generated'), array('fk_pd_id' => $records['fk_pd_id'], 'applicant_type' => 1), PDAPPLICANTSDETAILS);
|
||||
//print_r($main_applicant_name);
|
||||
|
||||
|
||||
@ -8578,6 +8583,11 @@ class PD_Controller extends REST_Controller
|
||||
} else {
|
||||
$to_update = array('isactive' => 0, 'retake_flag' => 0);
|
||||
}
|
||||
if(($records['image_key'] == 'selfie_with_person_met' || $records['image_key'] == 'person_met_id') && $main_applicant_name[0]['facemark_image_generated'] == 1){
|
||||
// 'face_api_result_image_'$main_applicant_name[0]['pd_co_applicant_id'];
|
||||
// $where_condition_array[];
|
||||
$this->db->WHERE('pd_co_applicant_id', $main_applicant_name[0]['pd_co_applicant_id'])->UPDATE(PDAPPLICANTSDETAILS, array('facemark_image_generated' => 0 ,'facecrop'=>null));
|
||||
}
|
||||
$res = $this->PD_Model->updateRecords($to_update, PDDOCUMENTS, $where_condition_array);
|
||||
}
|
||||
|
||||
|
||||
Loading…
Reference in New Issue
Block a user