How to link Ximiliar app to Thukable

it’s there - it’s the first parameter

1 Like

Sorry, I oversaw it.

ok I have this copied but when you get down to the _url is that to a single image? I think that is what …bit… means? I have over 20 photos in that particular category. and then below all of that I need a place where the output would go so I need to set the label to something?

1 Like

1 Like

If you have only one image then use only one block that has _url and remove the second one and adjust the list block for a single record.

You still need a Post block to send the information to the server and use the output of the Post block to show the results as part of the green response block.

i made a mistake, you should change the call to v2/classifiy (instead of v2/detect) if you want to classify picture/s.

each _url refers to the url of each photo you want to classify (it does’nt point to one you’ve already pre-classified in the training), also you can include several photos at a time (for starters try 1 or 2 first).
when the call returns, you have to handle the response -

image

this is how to handle one item request
image

this is how you save multiple requests (the output goes to a list)

1 Like

So I did this I do not get an error message this time but nothing happens with my label.

I press the upload photo from files and it opens my photo library which works.
I press the take photo and goes to my camera and that works
when I press describe…nothing?

Sorry I ran out of times I could reply to everyone yesterday since im still “new”.

1 Like

The _url should be the URL of the photo you took or selected, instead you are using a URL that points to one of your categories.

See this note from @manyone

I told you for the test, select a photo available in a public server and get the URL of the photo to use in your API call. When you succeed, the next step is to implement choosing from the gallery or taking a photo from the camera.

1 Like

I get what you are saying but I don’t know what that should look like in blocks. im still new to this and not sure what 90% of everything means or does.

Try it again but change the method from Get to Post. (see call webapi block)

nothing happened when I changed that. I also just noticed each category where the photos are stored in each folder have their own specific id does that change anything?


overall which includes all

specific category= beach bum in this case

these are internal id’s assigned by ximilar - they should not affect you.
i see the error in your call_web_api block.
you are doing the activities when you get an error. can you recode it so you do the activities when there is no error. (you can set your label to status, if there is an error)
image

you can do

if error
  set label1 text to Status
else
  set app variable resp to blahblah 
  set label1 text to get property blahblah
end_if

please use Get_Api POST!
ALSO set the _url to a photo you want to classify - not to a photo you’ve already classified. try the photo suggested by @muneer - http://i.imgur.com/fwxooMv.png

2 Likes

I get “null” for my label which is better than an error I suppose
is there a way I could talk to anyone here one on one on discord of somewhere else by chance?

i went over the docs and the blocks and the video and i was confused by the terminology - sometimes they call the task , task-id but in the url you have to code it as task. then the video you posted showed an example pointing to a wrong endpoint, so please do the following;

  1. change the url to this
    https://api.ximilar.com/recognition/v2/classify

  2. change the task-id parameter to task in the set web body block

  3. make sure method is “Post”, etc.- point to another photo you can browse from the web as contents for _url

2 Likes

I did this an I get “null” still

there seems to be some other extra characters beyond your api_id - thunakable doesnt put spaces at the end of strings. can you replace the whole thinh and replace with your api key and try again?

also, do NOT put quotes inside the task id - they are already provided in the block.

I Still get null I even left the url blank just to see if it made a difference?

have you tried removing the quotes inside task?

yes I did that as well

maybe your label1 is part of an invisible component or maybe its font color is white!