image_features: Detects image features

Description Usage Arguments Details Value See Also Examples

Description

Given an input image, returns a 2048 dimensional sparse feature vector explaining that image. Useful as a form of feature engineering for image oriented tasks.

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

List with image features

See Also

face_emotion, facial_features

Examples

1
2
3
4
5
6
7
img <- "../tests/testthat/image/image.png"
features <- image_features(img)

length(features)
min(unlist(features))
max(unlist(features))
sum(unlist(features))

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