Skip to content

Commit

Permalink
MOSIP-28575
Browse files Browse the repository at this point in the history
Signed-off-by: Jayesh Kharode <[email protected]>
  • Loading branch information
Jayesh Kharode committed Dec 5, 2023
1 parent eeb6f34 commit ae74bba
Showing 1 changed file with 8 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -122,7 +122,9 @@ public void createProfile(String profilePath,String profile, ResidentModel resid
/////////
//reach cached finger prints from folder
String dirPath = VariableManager.getVariableValue(contextKey,"mountPath").toString()+VariableManager.getVariableValue(contextKey,"mosip.test.persona.fingerprintdatapath").toString();
logger.info("createProfile dirPath " + dirPath);
logger.info("createProfile dirPath {}", dirPath);


Hashtable<Integer, List<File>> tblFiles = new Hashtable<Integer, List<File>>();
File dir = new File(dirPath);

Expand All @@ -143,7 +145,7 @@ public void createProfile(String profilePath,String profile, ResidentModel resid
// otherwise pick the impression of same of scenario number
int impressionToPick = (currentScenarioNumber < numberOfSubfolders) ? currentScenarioNumber : randomNumber ;

logger.info("createProfile currentScenarioNumber=" + currentScenarioNumber +" numberOfSubfolders=" + numberOfSubfolders + " impressionToPick=" + impressionToPick );
logger.info("createProfile currentScenarioNumber={}" , currentScenarioNumber ," numberOfSubfolders={}" , numberOfSubfolders , " impressionToPick={}" , impressionToPick );
List<File> lst=new LinkedList<File>();
for(int i=min; i <= max; i++) {

Expand All @@ -153,7 +155,7 @@ public void createProfile(String profilePath,String profile, ResidentModel resid
}

List<File> firstSet = tblFiles.get(impressionToPick);
logger.info("createProfile Impression used "+ impressionToPick);
logger.info("createProfile Impression used {}", impressionToPick);

///////////////

Expand Down Expand Up @@ -355,7 +357,7 @@ public MDSRCaptureModel captureFromRegDevice(MDSDevice device,
HttpRCapture capture = new HttpRCapture(url);
capture.setMethod("RCAPTURE");
String response = RestClient.rawHttp(capture, jsonReq.toString(),contextKey);
//logger.info("MDS RESPONSE :"+ response);

JSONObject respObject = new JSONObject(response);
JSONArray bioArray = respObject.getJSONArray("biometrics");
List<MDSDeviceCaptureModel> lstBiometrics = rCaptureModel.getLstBiometrics().get(type);
Expand Down Expand Up @@ -476,13 +478,13 @@ public static void main(String[] args) {
// MDSRCaptureModel r = client.captureFromRegDevice(dv, null, "Finger",null,60,"1",0);
//MDSRCaptureModel r = client.captureFromRegDevice(d.get(0),null, "Iris",null,60,2);

// logger.info( r.toJSONString());


});

//r = client.captureFromRegDevice(d.get(0),r, "Face",null,60,1);

//logger.info( r.toJSONString());

}

@Override
Expand Down

0 comments on commit ae74bba

Please sign in to comment.