The DeepAI API can be used our API to process images and videos to get data about the demographics of people present, faces detected, and nudity detected. You can even flag media that contains nudity so you can remove it …
You can test it online with this online tool on the official webpage.
You can see a simple example with my avatar photo on the my dotnetfiddle.net account.
Not all URL images works, see the source code in C#:
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 | using System; using DeepAI; public class Program { public static void Main() { //d26f51bd-c992-4843-854d-84278d5d4f72 Console.WriteLine("Hello World"); string image = "URL image"; DeepAI_API api = new DeepAI_API(apiKey: "d26f51bd-c992-4843-854d-84278d5d4f72"); StandardApiResponse resp = api.callStandardApi("nsfw-detector", new {image,}); Console.Write(api.objectAsJsonString(resp)); StandardApiResponse resp_resolution = api.callStandardApi("torch-srgan", new {image,}); Console.Write(api.objectAsJsonString(resp_resolution)); } } |