WHAT I CHECKED:
I went through the docs: https://cloud.google.com/vision/docs/
And saw this example: https://github.com/thesandlord/samples/blob/master/cloud-vision-nodejs/index.js
WHAT I AM TRYING TO ACHIEVE:
I would like to analyse every image uploaded by my users before they are saved to my google cloud bucket.
How can I detect violence or nudity using the Cloud Vision API?
You can make use of inappropriate content detection via the Google Cloud Vision API. To make use of this feature, just add
SAFE_SEARCH_DETECTION
to your API request:You get an response like this:
To read more about this feature, read the blog article by Google.