Coder Social home page Coder Social logo

clarifai-api-lab's Introduction

Image recognition API lab!

Lab 1: Basics

1. Fork and clone this repository

  1. Fork this repository by clicking "Fork" on this page.
  2. Copy this repository's URL by clicking the green clone button.
  3. Open your terminal, and clone the repo to your computer( replace with the link from step 2):

2. Before you code

To complete this lab, it's very important that you understand the example that we covered in the lecture, you should be familiar with the following concepts:

  • json.loads
  • json.dumps
  • requests.post

3. The lab

In this lab, we will build a small app where people can submit a URL of an image, and using the Clarifai API, we will return what the image is about and return the results to the user.

  • Look at the app.py and home.html. Run the app.py server (python app.py), go to your browser familiarize yourself with what is already provided for you.
  • In app.py you'll need to code below where it says YOUR CODE HERE!
  • You'll need an API key to authenticate with the Clarifai API, you can obtain it through creating a free account on https://www.clarifai.com/pricing, scrolling down and clicking on "Obtain a free api key" button, and creating an application. (Once the application is created, an API key will be generated automatically)
  • Build the dictionary for the data we want to send, this should be similar to the example we gave in class

If you have any questions ask an Instructor/TA

BONUS: Tell the user if the image provided has a human in it! Test that this works for different images that you provide! BONUS BONUS: for an image provided, redirect the user to a Wikipedia page that is most relevant to what's in the image

clarifai-api-lab's People

Contributors

aminma23-meet avatar fouad20-meet avatar loai17 avatar sbeidas avatar

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.