Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

IBM Watson Support #4

Open
28mm opened this issue Feb 23, 2017 · 2 comments
Open

IBM Watson Support #4

28mm opened this issue Feb 23, 2017 · 2 comments
Assignees

Comments

@28mm
Copy link
Owner

28mm commented Feb 23, 2017

IBM Watson's Visual Recognition service has a free tier that supports < 250 requests / day. It does image classification and face detection, as well as supporting a category schema like Microsoft's. It appears to support celebrity detection via the same category system.

https://www.ibm.com/watson/developercloud/doc/visual-recognition/getting-started.html

Example Image Classification:

{
 "custom_classes": 0,
  "images": [
    {
        "classifiers": [
            {
                "classes": [
                    {
                        "class": "banana",
                        "score": 0.81,
                        "type_hierarchy": "/fruit/banana"
                    },
                    {
                        "class": "fruit",
                        "score": 0.922
                    },
                    {
                        "class": "mango",
                        "score": 0.554,
                        "type_hierarchy": "/fruit/mango"
                    },
                    {
                        "class": "olive color"
                        "score": 0.951
                    },
                    {
                        "class": "olive green color"
                        "score": 0.747
                    }
                ],
                "classifier_id": "default",
                "name": "default"
            }
        ],
        "image": "fruitbowl.jpg"
    }
  ],
  "images_processed": 1
}

Example face and Identity detection:

{
  "images": [
    {
      "faces": [
        {
          "age": {
            "max": 54,
            "min": 45,
            "score": 0.364876
          },
          "face_location": {
            "height": 117,
            "left": 406,
            "top": 149,
            "width": 108
          },
          "gender": {
            "gender": "MALE",
            "score": 0.993307
          },
          "identity": {
            "name": "Barack Obama",
            "score": 0.982014
            "type_hierarchy": "/people/politicians/democrats/barack obama"
          }
        }
      ],
      "image": "prez.jpg"
    }
  ],
  "images_processed": 1
}
@28mm
Copy link
Owner Author

28mm commented Feb 24, 2017

With the foregoing commits, the --labels and --faces features work with the watson provider. Still to do:

  1. --celebrities: this should come for free with face detection as the identity field. Watson gives a canonical name for the detected celebrity, its confidence, and the celebrity's type hierarchy. Some thought required to handle this last piece, which is unavailable via Microsoft's celebrity detection feature.
  2. Documentation updates: readme.md, .../examples
  3. Custom classifiers. Watson supports custom classifiers, as does Clarifai. How should support for this look?

@28mm
Copy link
Owner Author

28mm commented Feb 27, 2017

The daily transaction limit for Watson's free plan is set fairly low.

{
    "labels": {
        "status": "ERROR",
        "statusInfo": "daily-transaction-limit-exceeded"
    }
}

28mm added a commit that referenced this issue Mar 2, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant