infinitered / nsfwjs

NSFW detection on the client-side via TensorFlow.js
https://nsfwjs.com/
MIT License
8.06k stars 539 forks source link

Supported File Types #434

Open jneterer opened 4 years ago

jneterer commented 4 years ago

Is there a list of file types that can be scanned? For instance not just traditional image files, but also file types like PDFs, docs, txt, etc.

GantMan commented 4 years ago

Canvas elements/JPG/PNG/GIFs for right now.

I do like the idea of being able to scan PDFs/docs etc, but you'd have to find a way to extract images from those filetypes and run their images through one by one.

What were you looking for it to catch in a txt file?

jneterer commented 4 years ago

@GantMan I suppose it doesn't make sense to extract and scan images in a .txt file, as that's not possible. The main issue I'm trying to solve is ensuring individuals aren't storing inappropriate images in other types of files than the ones you've mentioned. File types like PDFs, word docs, PowerPoints, etc.

jneterer commented 4 years ago

@GantMan thinking through extracting images from the file... would the process be first identifying images in a document, then classifying the image?

GantMan commented 4 years ago

For PDFs

H7-25 commented 2 years ago

Video file are supported ?

GantMan commented 2 years ago

You'd have to pull frames. You can do that from a web player at certain time increments, OR do it with something more detailed.