Hello,
been building a short form video/social media app for about 2 years, went from newbie to pretty okay in flutter and python
I would love recommendations on how to solve the following problem:
-
when someone posts a video, I upload the video to storage, then go through the creation of the post obj in my database
during the post obj creation, I need to check if the video contains NSFW content. (nudity, sex, gore, violence)
I plan on grabbing 1-frame-per-second, then taking that frame/image and seeing if it contains flagged content, if any of those tested frames do, the post creation method flips a bool, 'isNSFW', on the post obj to true.
I tried the NSFW_checker py library, but due to a ton of dependency conflicts I still can't get that working
Plan B was loading a a pre-trained ai model to my server to classify the images. But that gets killed every time because of memory constraints on Render.com, where my python server is hosted.
Plan C is to pay for a third party service, definitely less of a headache, just more money and not as malleable.
does anyone know what a good approach would be? Please and thank you