Can't use images from our site on vision api for annotation

188 views
Skip to first unread message

Andrés Tarrio

unread,
Dec 12, 2018, 1:56:46 PM12/12/18
to cloud-vision-discuss
Hi!

We're experimenting with google vision API to help us moderate images in our site. We have a different site to host our images with the domain kn3.net. However, when we try to use google vision, it refuses to load images from there.

We've tried putting the same image in another site (like imgur) and the api seems to take it fine from there.
There's no hotlinking prevention from our side.




{
"requests": [
 {
  "image": {
   "source": {
"
   }
  },
  "features": [
   {
    "type": "SAFE_SEARCH_DETECTION"
   }
  ]
 }
]
}
Response
{
"responses": [
 {
  "error": {
   "code": 14,
   "message": "We can not access the URL currently. Please download the content and pass it in."
  }
 }
]
}

Every time we get this. Can anyone please help? If any further information is needed I'll be happy to ask one of our devs to hop in and add detail.

cheers

cloud-vision-discuss

unread,
Dec 12, 2018, 2:21:22 PM12/12/18
to cloud-vision-discuss
The public URL crawling generally is not meant for production use. This is intentional to prevent abusers from attacking smaller sites that they don't own because we have no knowledge of the site ownership by default.

We typically recommend our clients to either
1) download the images themselves and pass the raw bytes in
2) use Google Cloud Storage to store the files and refer to the bucket/object location

Thanks.
Reply all
Reply to author
Forward
0 new messages