Cloud Api Product Search asked for storing the images in the google cloud storage, but can i store them in the firebase storage as alternative? - flutter

I'm using the Cloud Api product search, they ask me to store the images and the csv file in the google cloud storage but i'm already using firebase in my project and my images stored there so can i choose firebase than the google cloud ?

Yes, you can use it as an alternative. As Renaud Tarnec commented, Firebase Storage underneath is Google Cloud Storage. This means that any bucket in your Firebase console is actually a regular Google Cloud Storage bucket.
You can confirm this by creating a Storage Bucket in the Firebase console and uploading objects to it (images for your dataset and the CSV file). If you access the Cloud Storage page in the GCP console, the same bucket and objects will be there.
As for using the Vision Product Search API with Firebase Storage, I followed this quickstart guide, but edited the CSV file to point to images that were uploaded to the default Firebase Storage bucket (PROJECT-ID.appspot.com).
After letting the dataset images index, I was then able to send an image to be compared to the dataset as expected.
Keep in mind the service account you use to create a Vision API dataset must be able to read Cloud Storage Objects to access the images in your Firebase Storage bucket. Let me know if this was useful.

Related

how to search text in json file that Google vision api created from pdf

Is there any way to search text in json files that Google vision api created from pdf.
searching of text should be happen over Google cloud storage only
Google Cloud Storage is an Object based storage solution that does not provide processing features. In order to perform any process job over the Cloud Storage data you would need a computing/processing solution, and I’d opt for a serverless option such as Cloud Functions.
I’ve found at the Cloud Functions Docs a sample application that integrates several APIs with Cloud Functions and Cloud Storage, I think you can use it as a guideline to develop your own setup.
Once you have the mentioned setup you could apply a regex implementation to search for the desired data, how to implement it will depend on the runtime, libraries and technologies that you choose to use.

How do I load a Google Cloud Storage Firebase export into BigQuery?

I have a simple, single collection in Firestore, a museum visitor name and date with some other fields.
I successfully ran a gcloud export:
gcloud beta firestore export gs://climatemuseumexhibition2019gov.appspot.com --collection-ids=visitors
and the collection is now sitting in a bucket in Cloud Storage.
I tried downloading the data, which appears to be in several chunks, but it's in .dms format and I have no idea what that is.
Also, I've successfully linked BigQuery to my firestore project but don't see the collection, and I don't see the Cloud Storage object at all.
I gather the idea is create a Dataset from the Cloud Storage, then create a Table from the dataset. I'd appreciate specific details on how to do that.
I've read the manuals and they are opaque on this topic, so I'd appreciate some first hand experience. Thank you.

Are Google Cloud Storage files indexed in search?

If I upload some files into a Google Cloud Storage bucket and made them public does Google index them in search results?
Google's search index is independent of Google Cloud Storage (GCS). Making a file public in GCS does not automatically index it in Google's search results.
So, public files in GCS will not automatically be indexed by Google.

How to get image manipulation url from Google Cloud Storage?

I am trying to have an image server on Google Cloud Storage. Currently I'm using Cloudinary, and I can easily manipulate the image size by passing the parameter within the URL.
How do I achieve this in Google Cloud Storage ?
Thank you,
Wiljon
Google Cloud Storage does not intrinsically support an image resize mechanism. Google AppEngine's Images API (Java, Python, Go) has various serving URL accessors that then take resizing options, but requires the AppEngine application outlive the URL.

Is google-cloud-storage pricing dependent on the bucket location?

i have dedicated server in canada and would like to use google-cloud-storage as offsite backup.
so i will be pushing/uploading data from canada to google-cloud-storage located in us-east1.
will there be any pricing difference if i create a bucket in us-central1 instead of us-east1 ?
or the pricing is same for any location ?
i ask this becuase i have been using amazon services and their pricing totally depends on the location of amazon server/services .
No. Google Cloud Storage charges the same amount for storing data regardless of the location it's stored, and there is no charge for uploading data into Google Cloud Storage.
There are some pricing differences for serving data based on location, but for serving data from Google to outside of Google, us-centra1 and us-east1 are effectively equivalent in this regard.
The pricing details for Google Cloud Storage are published here: https://cloud.google.com/storage/pricing