Log in or register to post comments

Image_Url application_metadata_url Problem

January 11, 2013 - 12:35pm #1

Hi everybody. From 2 days ago im working with the VWS Api trying to update targets from the java example. This work for me fine when i update de image from a local file and the metadata from a string. But the problem is when i try to update de image and the medatada from a url. Thanks for your help.

 

This is the requestBody of the .java xample, this work fine, create the Target perfectly

 

File imageFile = new File(imageLocation);
if(!imageFile.exists()) {
System.out.println("File location does not exist!");
System.exit(1);
}
byte[] image = FileUtils.readFileToByteArray(imageFile);
requestBody.put("name", targetName); // Mandatory
requestBody.put("width", 320.0); // Mandatory
requestBody.put("image", Base64.encodeBase64String(image)); // Mandatory
requestBody.put("active_flag", 1); // Optional
requestBody.put("application_metadata", Base64.encodeBase64String("ejemplo2.json".getBytes())); // Optional
 
-------------------------------------------------
When i change the image ande the metada for url like in this code, recive this {"result_code":"Fail","transaction_id":"2ebab70578bf460da5914e1dfdd8fb8b"} Whats is wrong here??? PLease help
 
requestBody.put("name", targetName); // Mandatory
requestBody.put("width", 320.0); // Mandatory
requestBody.put("image_url", "http://zineztezia.com/targets/Bambuco2012.jpg"); // Mandatory
requestBody.put("active_flag", 1); // Optional
requestBody.put("application_metadata_url", "http://zineztezia.com/cloudAR/hola.txt"); // Optional

 

Image_Url application_metadata_url Problem

February 25, 2013 - 3:30am #15

You're welcome.

Image_Url application_metadata_url Problem

February 25, 2013 - 3:27am #14

Thank you so much!!!!!!!!!!!!!!!!

Image_Url application_metadata_url Problem

February 25, 2013 - 3:08am #13

@ ALL:

important update: it is now possible to correctly download the metadata file (issue has been resolved and system updated).

 

Thanks for answer.

January 16, 2013 - 6:15am #12

Thanks for answer.

Hi, the fact that you need to

January 16, 2013 - 5:06am #11

Hi, the fact that you need to wait for the target to exit the "processing" state is the normal functionality;

BTW, the Java samples also show a "polling" technique to periodically check the target status after a POST;

(check the PostNewTarget.java example)

you could implement something similar in PHP.

 

 

I try cloud recognition

January 16, 2013 - 4:53am #10

Pls delete this post. I post it twice.

I try cloud recognition

January 16, 2013 - 4:52am #9

I try cloud recognition sample for unity and metadata are returned in right format. That only problem is download from target manager on web. And i have one "problem" or question. If I upload target from php via vws api I m not able update target to time, when cloud process my target. So, if uploaded target is in pending state i m not able update target. Its bug? Or right functionality? I cant to wait for process of taget, because its inconvenient for my webadministration. Have you any answer for me about it?

Just verified that the

January 16, 2013 - 12:39am #8

Just verified that the metadata text file which is downloaded via the Web Portal (Target Manager) interface is indeed zero-sized.

This has been brought to the attention of our engineering team.

However, this might be just an issue with the Download function of the Web Portal interface (but your metadata should be actually stored in the Cloud DB);

to verify that I would invite you to make a test using the CloudReco sample (Android, Unity or iOS, at your choice) to see if the metadata reported upon target recognition is effectively a non-empty / non-null string.

This would proove that the metadata is actually stored (and that the problem is only at the level of the Web Target Manager, as I said).

If you coudl make such verification, that would be great!

Hi all, a few updates: @

January 15, 2013 - 9:52am #7

Hi all, a few updates:

@ c4m1l0:   the image_url and the metadata_url are currently not supported; in this regard, the Documentation is incorrect and will be updated to reflect this.

 

For the remaining issue (metadata with zero size...), I'm investigating it, will report back asap.

 

 

Metadata file size 0

January 15, 2013 - 7:20am #6

I have a similar  problem.

I have update the metadata but the file size is 0

I m not able put any metadata

January 15, 2013 - 6:39am #5

I m not able put any metadata when uploading the file directly and I m not able put metadata via metadata_url. If i put metadata directly, target manager show download link for metadata package but file has 0 bytes size and it havent content.

Hi chiwo, are you saying that

January 15, 2013 - 6:04am #4

Hi chiwo, are you saying that you're not able to put any metadata even when uploading the file directly ? (or does it only happen when you use the metadata_URL like in the report of the previous post from c4m1l0 ) ?

Similar problem

January 15, 2013 - 5:06am #3

Hi

I have similar problem. When i run PostNewTarget that target is created, image is uploaded but metadata isnt in target manager. I see metadata package with link for this file({target name}.txt) but file has 0 bytes. I try send application_metadata_url also without success. I try UpdateTarget without success. Can you help me pls with this?Its bug in cloud storage or in vws? c4m1l0 have you in cloud metadata with content? or empty packages?

I m working with default java sample codes with some own console outputs for debuging of values and others actions in samples work fine.

Hi, I've forwarded your issue

January 14, 2013 - 1:28am #2

Hi,

I've forwarded your issue to our technical team, so to investigate it; I will report to you as soon as I get some news

(don't hesitate to ping me if you don;t hear any feedback soon)

 

Log in or register to post comments