Learn R Programming

clarifai: R Client for the Clarifai API

Find out what is in a (moving) image with perhaps the best off-the-shelf solution: clarifai.com. Clarifai provides descriptors for images along with how confident it is about each of the descriptors. It is a bit magical. (See also the 2013 ImageNet LSVR Classification Results.)

Installation

To get the current released version from CRAN:

install.packages("clarifai")

To get the current development version from GitHub:

install.packages("devtools")
devtools::install_github("soodoku/clarifai", build_vignettes = TRUE)

To learn about how to use clarifai, see using_clarifai (html version) or analyzing instagram accounts of politicians (html version). There are lots of other interesting ways you can use clarifai. For instance, you can use clarifai for inferring gender of the speaker based on the first name.

You can also launch vignettes within R:

# Using clarifai
vignette("using_clarifai", package = "clarifai")
# Analyzing politician instagram accounts
vignette("poligrams", package = "clarifai")

License

Scripts are released under MIT License.

Contributor Code of Conduct

The project welcomes contributions from everyone! In fact, it depends on it. To maintain this welcoming atmosphere, and to collaborate in a fun and productive way, we expect contributors to the project to abide by the Contributor Code of Conduct.

Copy Link

Version

Install

install.packages('clarifai')

Monthly Downloads

215

Version

0.4.2

License

MIT + file LICENSE

Issues

Pull Requests

Stars

Forks

Maintainer

Last Published

April 12th, 2017

Functions in clarifai (0.4.2)

get_color_urls

Get the dominant colors present in images or videos
get_info

Get Information
get_usage

Get API usage for the current month and hour
secret_id

Sets Application ID and Secret
feedback

Provide Feedback on Tags of an Image
get_color

Get the dominant colors present in images or videos
get_langs

List all the languages that the tag API call supports
get_token

Get Access Token
clarifai_POST

Base POST AND GET functions. Not exported.
clarifai_check_auth

Check if authentication information is in the environment
tag_image_urls

Tag Remote Images
tag_images

Tag Images on the Computer
clarifai-package

clarifai: Get Description of (Moving) Images
clarifai_GET

GET
clarifai_check_results

Check results
clarifai_check_token

Check if authentication token is in the environment