Saturday, 11 March 2023

Cannot access member "safe_search_detection" for type "ImageAnnotatorClient"

I have this line:

vision.safe_search_detection(image).safe_search_annotation.adult

After enabling type checking on Pylance I'm getting the error:

Cannot access member "safe_search_detection" for type "ImageAnnotatorClient". Member "safe_search_detection" is unknown

How can I fix it?

I'm using the latest version of google-cloud-vision



from Cannot access member "safe_search_detection" for type "ImageAnnotatorClient"

No comments:

Post a Comment