I know that it's possible to post an image in the wall of user twitter using TweetWithMedia,
the question is : it's possible to post just an url and twitter detect that is an image? without using TweetWithMedia (TweetWithMedia upload the image, i don't want to upload the image)
thanks,
Sure, just use the normal statuses/update endpoint to upload the tweet which includes a link to the image. Then implement the new Twitter Cards feature to get them linked as images.
Related
I want to only allow images that are taken directly with the phone’s camera on my website. Are there any APIs or tricks that could help me tell if an image is authentic and taken with an iPhone or Android camera a few moments ago and not taken from Google Images.
Hi drstuggels they are a few ways to go about this.
WebRTC
To prevent upload from any file, take picture directly on your web interface, via the user webcam.
You would need to
Ask permission to the user to use the webcam.
Open the video stream
Capture on click the frame
Save the frame
This would prevent lambda users from uploading picture "not live".
If this is a solution you are considering, look for WebRTC. Although there are many blog post showcasing demo for this exact use case.
Such as:
https://developer.mozilla.org/en-US/docs/Web/API/WebRTC_API/Taking_still_photos
EXIF validation
As mentioned by iѕєρєня, you could try to access the EXIF metadata of the uploaded picture and run a validation mechanism, for let say freshness but looking for date and time field (if you are looking for a newly taken photo) or the camera model field to make sure it was taken by a camera (phone, DSLR, etc..).
DISCLAIMER:
Nothing will prevent a malicious user from tampering with the js code or file to upload fake picture.
I'm currently building an app that requires the photo of the selected place using google places api. I requested the photo using
https://maps.googleapis.com/maps/api/place/photo?maxwidth=400&photoreference=MY_PHOTO_REF&key=API_KEY
My problem is how can i contain the response and display it in an ImageView.
Thanks in Advance
Well looks like I got it.
https://maps.googleapis.com/maps/api/place/photo?maxwidth=[IMAGESIZE]&photoreference=[REFERENCEKEY]&sensor=false&key=[YOURKEYHERE]
This will return a single image based from the photo_reference key.
i was working on a project where in i take photos of a particular object and i wanted that object to be recognized.So i was thinking of using google image search so that i get the name of the object
however i noticed that image search fails to name the objects i upload on the search. only similar images are displayed
can anyone suggest other possible search engines which may help?
the main reason i am resorting to google image search is that i don't want the application to be restricted to a few hundreds of images in a database
any help will be appreciated
If you upload image to Google Image Search, it will try to guess what's portrayed there (will be a Google search link right under your image).
Here's what I've uploaded (trimmed phone camera photo).
I'm trying to find out if there is a way to do google similar image searches via an API?
I know the image search api is depreciated but is it still useable?
https://developers.google.com/image-search/
Also... It seems that you can do image searches with the custom search api but I can't seem to work out if a similar image search is possible.
http://thenextweb.com/dd/2012/02/14/googles-custom-search-api-now-supports-image-only-results/
Any leads on advice on working this our would be appreciated.
Thanks!
If you have a URL for a hosted image (using Dropbox, imgur, etc), the answer at https://stackoverflow.com/a/15134958/116891 shows you how to find similar images. Basically,
http://images.google.com/searchbyimage?image_url=YOUR_HOSTED_URL
That is deprecated.
But I need JSON format of similar images result.
So, I try to use google cse but this is not supported searching of similar images.
It's just displayed image search results in a custom domain.
Another method that i try is URL.
http://images.google.com/searchbyimage?image_url=YOUR_HOSTED_URL
But this is not solution what i need.
It is because able to use in the browser. I need JSON.
Conclude, I decide to use Vision API of Google.
This is very simple.
https://cloud.google.com/vision/
You can try on the top.
First, access the URL.
Second, upload your image file on the "Try API".
Third, click "JSON" tab menu on the result.
You can be seen JSON about similar images.
The image search API from Google has been depreciated:
https://developers.google.com/image-search/
My question is where can we now get the same data? It says it has moved to the new Custom Search API (https://developers.google.com/custom-search/v1/overview), but I cannot find where to now submit uploaded image data for the search. Can someone please explain or link me the information for this.
Our web app needs to be able to upload the image to google and check via a API where the image has been found.
Also if Google does not allow this is there any substitutes?
Thank you in advance.
you can get search result using direct link for uploaded image.
let direct link be http://i47.tinypic.com/ekepuq.png (to stream image data for search) then Make url as
"http ://images.google.com/searchbyimage?image_url=[diretlink]"
ie " http://images.google.com/searchbyimage?image_url=http://i47.tinypic.com/ekepuq.png " and can get search result for the same image.