Prevent an inappropriate image from being uploaded to my portal

I googled (with duckduckgo) and found this: Detect explicit content (SafeSearch)  |  Cloud Vision API  |  Google Cloud