Code Monkey home page Code Monkey logo

clarifai's Introduction

clarifai: R Client for the Clarifai API

Build Status Build status CRAN_Status_Badge codecov Research software impact Github Stars

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.

clarifai's People

Contributors

soodoku avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

clarifai's Issues

get_token problem

dear team
hi, when i use the function get_token ,i meet the follows error

Error in Sys.setenv(ClarifaiToken = token_info$access_token) :
wrong length for argument

thank you!

Failed to take API Keys

Clarifai has changed the API. It can no longer generate client secret, but uses API keys instead. There package doesn't seem to be able to take in API keys.

get_token error

Hi
I get this error message when running get_token()

Error: unexpected symbol in:
"
get_token"

it has recognised the secret_id parameters though (used Sys.getenv to check)

library(clarifai)
secret_id(c("lruLGQlebkD06FzoYBblhe9z010rtEpDTbltTGXk", "Z5DpmAmhv3c9YU9svyxIYWSVNBvYYcoAg6rLPyZ_"))

Sys.getenv('ClarifaiId')
Sys.getenv('ClarifaiSecret')

get_token()

Best

Add v2 Support

Hey @soodoku - thanks for this awesome community contribution!

My name is Eddie and I serve our developer community @Clarifai.

We've had some requests from customers for this library to support v2 of our API and API Keys.

v1 of our API is most likely going to be deprecated by the end of this year and API Keys do not work with the /v1/token endpoint/session tokens.

All newly created apps only have access to v2 and API keys so folks are running into an issue when trying to use your rad library.

We're happy to aide in the work for this but wanted to check with you first whether or not you'd merge that PR.

Not that familiar with the R ecosystem but it seems that we'd be unable to strip v1 support without screwing existing users over.

What are your thoughts?

v2 api support

Hi @soodoku

Sorry for the misuse of github issue; I am not sure how to reach out. This is Robert from Clarifai. Our api is at v2 that supports custom training, visual search, etc. Do you have any interest in following up? email me at [email protected] if you have interest. I hope we can make the best use of your current code base. Thanks for your contribution again~

Thanks,
Robert

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.