There is PhotoDNA that is free of charge and does it well. I donβt think we should spend our limited resources on that.
If I were to do it, I could have a age detection AI model and nude detection model in a multimodel setup, but PDNA is definitely better and an industry standard πΆπΎπ«‘
DM me if you wish, but consider the above