content_filtering: Detects NSFW content in an image

Description Usage Arguments Details Value See Also Examples

Description

Given an input image, returns a float probability between 0 and 1 that content is NSFW

Usage

1

Arguments

img

image data

version

for api version

...

additional arguments to passed to request

Details

* Input can be either grayscale or rgb color and should either be a numpy array or nested list format.

* Input data should be either uint8 0-255 range values or floating point between 0 and 1.

* Large images (i.e. 1024x768+) are much bigger than needed, resizing will be done internally to 64x64 if needed.

* For ideal performance, images should be square aspect ratio but non-square aspect ratios are supported as well.

Value

Float with probability of NSFW

See Also

face_emotion, facial_features

Examples

1
2
img <- "../tests/testthat/image/image.png"
probabilities <- content_filtering(img)

IndicoDataSolutions/IndicoIo-R documentation built on May 7, 2019, 6:37 a.m.