Watson Workshops

use Watson analytics to solve your business problems

View on GitHub


Lab: Creating Visual Recognition App on IBM Cloud

VISUAL RECOGNITION MODEL IS DEPRECATED. THIS LAB DOES NOT WORK.

Go up? CLICK HERE

Or return to main page? CLICK HERE

image-w3-1

IMPORTANT: Take your time and do not rush through the scripts. Rather, try to understand new concepts and let them sink in.

Task 1. Create space in your organization on IBM Cloud account.

Prerequisites for this lab are:

IBM Cloud has several demonstration apps that you just need to find and start. Visual Recognition app is one them. It will demonstrate you how Watson services are used.

When logged in to IBM Cloud account navigate to Manage - Account menu in the top right corner of the screen.

image-w3-1-1

Now click on Cloud Foundry orgs square in mid-screen.

image-w3-1-2

Next click on your email address (visible on picture below) to enter your organization (at this moment this is the only org on your IBM Cloud account).

Organizations and spaces are a way to organise applications based on cloud foundry. Oragnization can represent a department or a company. Within the organisation you can create many spaces. Space can represent apps, projects.

image-w3-1-3

In your organization there is only one space: ‘dev’. Create another space using ‘Add Space’ button on the upper right.

image-w3-1-4

Select the region available and put a name for your space (for example: my-watson-app). Click the ‘Save’ button.

Note: write down the name of the region. You will need it while starting your app.

image-w3-1-5

You should see a new space in a list, like on the screen below:

image-w3-1-6

Task 2. Creating Visual Recognition App on IBM Cloud

Now when a space is created you will have a place to put your app in.
Navigate to your dashboard on IBM Cloud. You can use first icon on the vertical menu on the left.

image-w3-2

Right now Click on the search pane and write “demo”. You should see a ‘Visual Recognition Node.js App’ (among other things).

image-w3-3

Click on that app. You will get to a page descibing what is exaclty started.

Note that first instance Visual Recognition service is free, so you don’t have to worry about any charges. This rule applies to majority of services available on IBM Cloud. First service comes for free on a Lite plan.

image-w3-4

Click ‘Get Started’. You are redirected to a page creating your free Visual Recognition instance.

image-w3-5

Now you need to choose a region that you previously written down during creation of new space.
For a pricing plan ensure that you are on Lite. Then click ‘Create’ button.

image-w3-6

You are redirected to your applications console page, click ‘Deploy you App’ button.

image-w3-7

Select Cloud Foundry VM to deploy your app on (as on the screen below).

image-w3-8

Now you need to click ‘New’ button in the part ‘IBM Cloud API Key’. You will get a following pop up window:

image-w3-9

You don’t have to save this API key. For simplicity just click OK button and API key will be created for you.

Leave memory allocation as they are.
Now you need to choose again the region of your organization, and just created space. Now hit the ‘Next’ button.

image-w3-10

Now you can see the final page before create an app. Ensure the region is region of your organisation and click ‘Create’.

image-w3-11

You are going back to applicatoion console page when a lot of things will happen automatically in the background. Wait 5-10 minutes. Finally status ‘success’ should be visible in the mid-screen as shown below. Click on the application link (black arrow on pic below).

image-w3-12

Now you can enjoy how the trained visual recognition model is analyzing photos. You can upload your custom images and see which classifiers are triggered. Explore the application console and application itself.

image-w3-14

End of Visual Recognition Lab