This module might help you: https://appstore.home.mendix.com/link/app/109419/
Yes, It can be done by integrating with Google Vision or Amazon Rekognition
As mentioned by Rene van Hofwegen there are ready modules you can use
Google Vision: https://appstore.home.mendix.com/link/app/101877/
Amazon Rekognition: https://appstore.home.mendix.com/link/app/109419/
however, I would recommend that you read the documentation of Google Vision/Amazon Rekognition and decided what is the best suitable way/features to use.