Geek Culture
Published in

Geek Culture

Detect Nudes Using Python Programming and Deep AI

Can we detect Nudity in Images using Python and Deep AI? Let’s check it out

Nudity detection using python and deep ai
Nudes Detection using Deep AI and Python

Code

import requestsurl = 'https://api.deepai.org/api/nsfw-detector'headers = {
'api-key': 'quickstart-QUdJIGlzIGNvbWluZy4uLi4K'
}
response = requests.post(
url,
files={
'image': open('img2.png', 'rb'),
},
headers=headers
)
print(response.text)
Nude images detection using python

--

--

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store