I am hoping to fetch images of locations using BirdsEye (BE) view through Bing Maps API (using Python 3.x). Unfortunately I was unable to find any relevant documentation for BE view on the BING API site. Also there is a conflicting information on whether BirdsEye is included in the latest version of the Maps API.
2 questions:
1) Does anyone know or can point to good examples of accessing BirdsEye view using Python through Bing Maps API?
2) Alternatively, could you let me know how I can amend the below code to access the required BE view pictures of the selected location (in this case Bellevue Washington):
url = "https://dev.virtualearth.net/REST/V1/Imagery/Map/BirdsEye/Bellevue%20Washington?&key=" + bingMapsKey
print(url)
filename = 'maps_default.png'
urllib.request.urlretrieve(url, filename)
I = misc.imread(filename)
plt.imshow(I)
plt.show()
I found a similar question asked in 2012 without any relevant answers, so hoping someone else can help.
The Bing Maps birds eye images are not available outside of the Bing Maps interactive map controls. The static REST API does not provide access to these images. You will see in the documentation that birdseye is not listed as an imagery type for this service: https://msdn.microsoft.com/en-us/library/ff701724.aspx
Related
I am attempting to find the Image for an instance on Google Cloud Platform using the Google Python SDK. So far, I can get the instance, get the disks for the instance, find the boot disk, and extract the sourceImage and sourceImageId fields from there. However, since my instance and disk are in a different project from the image, I'm having trouble getting the actual image object.
The disk's sourceImage is https://www.googleapis.com/compute/v1/projects/centos-cloud/global/images/centos-7-v20200420 and its sourceImageId is 2742482894347998968.
My question is similar to a previous question (GCP Python SDK - Get data from the googleapi url's) except that I would like to find the best-practice method. The lone answer on that question recommends using the URLs in the metadata to get the related object but there is a comment that indicates that the URLs in object metadata are not real URLs which makes me think they should not be used directly. All I need is the project (centos-cloud in this case) for the image and I can use the sourceImageId to get the image object. I could extract the project from the URL pretty easily but that seems fragile. I looked through the documentation to see if there was a built in function to extract the project or get the image using that URL, but I didn't find one.
Is there something I have overlooked? Or is this not a supported workflow? Or did I misinterpret John Hanley's comment and I should just use that URL to pull the image?
TL;DR: Given only a disk's sourceImage (eg. https://www.googleapis.com/compute/v1/projects/centos-cloud/global/images/centos-7-v20200420) and sourceImageId (eg. 2742482894347998968), how can I programatically get the Image object from the API?
google-api-python-client==2.45.0
Python 3.10
I know Google's powerful image search feature but it's searching images from the entire Internet.. Until recently, I discovered they apply image search to Google+ photos. That means you can search your own photos by keywords.
I'm wondering if there's any API/Lib (provided by Google) so that I can use directly... To be more specific, I'm working on Google App Engine. I know there are Image API and Search API.. I have not found Image Search API yet. And I don't know if this deprecated image search API does the job I want..
I'm really trying my luck to ask this question!
I did lots of search for Google Image Search using local image but not found any accurate answer. like what are the parameter we have to pass when upload a photo to google server. so any one know how i can use Google Image search for searching local image stored in my harddisk but using python programming. tell me if any Library or API available. Thank you in advance.
This looks like a duplicate of this question:
Google Search by Image API?
The Google Image API is deprecated but as the answerer points out, there are alternatives like tinyeye.
I have a python program that takes the md5 & sha1 hash values of passwords and searches for them on the internet using Google's custom search api. The problem is that I'm getting 0 results(which means the hash probably isn't in a rainbow table) when I run the program. But when I searched using my browser, I get a whole bunch of results, in fact at least 10 pages of results.
Could the problem lie in the cx value I used? I picked it up from the sample program provided by google as I couldn't figure out how to get one for myself. Or does the custom search api give only selected results and it's futile trying to get more results from it?
I know it's pretty old post but it is still returned very high in google results so a little bit of clarification:
You can create your own CSE in here: https://www.google.com/cse/ .
API codes can be created using API console: https://cloud.google.com/ .
Using Google Custom Search you can search the whole Web: go to the system from point 1, from the menu on the left choose the CSE to edit, then in the Configuration -> Basics -> Sites select the option to search the whole Web and finally remove previously specified sites.
Still using CSE you might not get the same results as using live google as it does not include google features (real-time results, social features etc.) and once you specify more than 10 sites to look on it can actually use sub-index. More information can be found in here: https://support.google.com/customsearch/answer/70392?hl=en
The Google Custom Search API let's you search the Google indexes for a specific website only, and you will not find any results from anywhere else on the internet. The cx parameter tells Google what website you want to search.
From the Google Custom Search Engine page:
With Google Custom Search, add a search box to your homepage to help people find what they need on your website.
You could use the deprecated Google Web Search API (JavaScript API, should work until November 2013), or you'd have to scrape the HTML UI provided to your browser instead (also see What are the alternatives now that the Google web search API has been deprecated?).
I am trying to retrieve a photo (the .jpg file) from a Picasa album using the gdata Google API. However I did not find any method which does it, even though it is possible to upload a photo using methods like InsertPhoto and InsertPhotoSimple.
I guess I must be missing something :-(. A simple example would help.
Client API provides methods only for obtaining information on photos: http://code.google.com/apis/picasaweb/docs/1.0/developers_guide_python.html#Photos
To retrieve an image, use an HTTP GET with information previously obtained. Read the documentation.
For this purpose you may use a Python library:
httplib
urllib2