Close

Search found 7 matches

Return to advanced search

Re: 400 {"error":"ERROR_MEDIA_DATA"...........

Ok, So I tested just quickly on a Raspberry Pi and it worked fine, uploads training images as it should. But still not on my laptop with win7.
by gadu
Sat Jun 24, 2017 12:13 pm
 
Forum: API Discussion
Topic: 400 {"error":"ERROR_MEDIA_DATA"...........
Replies: 9
Views: 1574

Re: 400 {"error":"ERROR_MEDIA_DATA"...........

@ryan

Thanks I'll do some more testing with upload of the training files.

I'm using Win 7 and Python 2.7
by gadu
Sat Jun 24, 2017 6:15 am
 
Forum: API Discussion
Topic: 400 {"error":"ERROR_MEDIA_DATA"...........
Replies: 9
Views: 1574

Re: 400 {"error":"ERROR_MEDIA_DATA"...........

@ryan Thanks for the information, i'm fully aware of how to create objects, groups and make the requests. The problem is the error message I get when I use your python tutorial to upload training images from the training folder. When running the pythoncode from the tutorial, this is the error messag...
by gadu
Thu Jun 22, 2017 2:17 am
 
Forum: API Discussion
Topic: 400 {"error":"ERROR_MEDIA_DATA"...........
Replies: 9
Views: 1574

Re: 400 {"error":"ERROR_MEDIA_DATA"...........

But how to do it in the Facial Recognition?
by gadu
Wed Jun 21, 2017 4:04 pm
 
Forum: API Discussion
Topic: 400 {"error":"ERROR_MEDIA_DATA"...........
Replies: 9
Views: 1574

Re: 400 {"error":"ERROR_MEDIA_DATA"...........

OK... changing the following: image_data = base64.b64encode(open("/test/face.jpg", "r").read()) with this instead: with open("/test/face.jpg", "rb") as f: data = f.read() #image_data = data.encode("base64") image_data = base64.b64encode(data) works w...
by gadu
Wed Jun 21, 2017 3:55 pm
 
Forum: API Discussion
Topic: 400 {"error":"ERROR_MEDIA_DATA"...........
Replies: 9
Views: 1574

Re: 400 {"error":"ERROR_MEDIA_DATA"...........

Trying this one (where I've changed the cloud token of course) works only with hosted images, but not local jpg files. import base64 import httplib import json import os import ssl headers = {"Content-type": "application/json", "X-Access-Token": "YOUR-CLOUD-TOKEN&q...
by gadu
Wed Jun 21, 2017 3:45 pm
 
Forum: API Discussion
Topic: 400 {"error":"ERROR_MEDIA_DATA"...........
Replies: 9
Views: 1574

400 {"error":"ERROR_MEDIA_DATA"...........

I have been trying to get the python example working following the tutorial. After a number of hours trying to find the reason to the error I give up and ask the question here. When running the code this is what I get Step 1: Uploading training images Adding images for object id Abby Uploading file ...
by gadu
Wed Jun 21, 2017 3:19 pm
 
Forum: API Discussion
Topic: 400 {"error":"ERROR_MEDIA_DATA"...........
Replies: 9
Views: 1574

Return to advanced search