Call the Cloud Vision API with Cloud Functions for Firebase

I leave it as a note.
I made it move with copy and paste.

It is premised that you pre-configure GCP and Firebase settings.

First package.jsonof all dependencies, copy below.

"dependencies": {
"@google-cloud/storage": "^3.0.3",
"@google-cloud/vision": "^1.1.3",
"firebase-admin": "^7.0.0",
"firebase-functions": "^3.2.0",
},

After copying, execute the following command