How to Force to add image if similar targets exist

0 votes
asked Jun 20, 2019 by rahulchurhe2 (180 points)

I have to add forcefully image if similar target exist.

UploadTargetRequest request = new UploadTargetRequest();
request.setActive(TARGET_ACTIVE_STATUS);
request.setAllowSimilar("");
request.setAppKey(CLOUD_KEY);
request.setImage(getBase64(targetImagePath));
request.setMeta(getMetaDataString(meta_data));
request.setName("SmileTest" + timeStamp);
request.setSize(TARGET_IMAGE_DEFLAUT_SIZE);
request.setTimestamp(timeStamp);
request.setType(IMAGE_TARGET_TYPE);
request.setSignature(getSHA256String(rawString));

what should i need to do for upload similar target forcefully,could you pls tell me the value of  "allowSimilar"  filed.

1 Answer

0 votes
answered Jun 20, 2019 by zhnagjian (11,130 points)
Hello,

I suggest that you don't upload similar targets, in this way, the similar target can't be recognized.
commented Jun 20, 2019 by rahulchurhe2 (180 points)
could you pls suggest me some other way, if possible.
Welcome to EasyAR SDK Q&A, where you can ask questions and receive answers from other members of the community.
...