Watson Age Code

About This Space

This workspace implements Watson Visual Recognition. The application uses your device camera to take your photo, determine how old you look, and tell you all about it using human speech though the speakers on your device.


Last updated on March 7, 2019

Forked from: /alex/watson-age-code/

Public Permissions:   View   Open/Fork   Run   Comment  

What is your Watson Age?

This workspace implements Watson Visual Recognition. The application uses your device camera to take your photo, determine how old you look, and tell you all about it using human speech though the speakers on your device.

Screenshot

Making it work

First, create your own space:

  • Click Fork on the ribbon to make a copy of the original space
  • Click Update on the ribbon to update public permissions. To keep your API key private, the Open and Modify permissions should be unchecked.

Next, create a Watson Visual Recognition resource:

  • Sign up for an account at cloud.ibm.com, if you don’t already have one
  • Click create resource and select Visual Recognition
  • Create service credentials and copy the API key into your credentials.json file on NodeRun.com

Finally, you’re ready to launch your own copy of the app. You can either use the Launch menu or simply use your phone, tablet, or a laptop with a camera to browse to the run URL for your new workspace.

Packages Used

The following packages are used by this space:

  • watson-developer-cloud – connects to IBM Watson
  • dataurl - converts camera snapshot to appropriate format for Watson

Select Server --> Install npm Packages to review the packages that are installed.

Screenshot

The code

The server-side code for this application is in main.js. It uses the Node.js require() keyword to bring in functionality from external packages.

  • main.js refers to display.json, a Rich Display File created in the Visual Designer Tool
  • display.json specifies public/client-scripts.js using the external javascript screen level property
  • client-scripts.js contains client-side code that the browser uses to do things like start the camera, display the results, and use speech to explain the results

Be the first to comment:      

Comments

Write Preview Markdown: bold italic code link
Post

More Spaces By Amanda (@amanda)

Filters:

Popular Recent

This Space creates a falling leaves animation

10125

0

1

My hello app

8831

0

1

This app was built to let JavaScript Orange County members suggest and vote on topics for future meetings.

8767

0

0

This workspace shows you how to add custom widgets to your project

8597

0

0

My hello app

8444

0

0

This workspace illustrates the basic setup of an HTML page that includes external JavaScript and CSS files

8428

0

0

Want to allow your users to sort data using drag-and-drop? This space shows you how!

8407

0

0

Demo app to use EJS to display information from a database

8380

0

0

This space demonstrates how to create a more responsive grid using a layout widget and a little bit of JavaScript and a responsive edit screen. It also incorporates consuming a web service to load list data, adding image upload and display to a screen, and using gauges from Fusion Charts

8314

0

0

This space illustrates the simplest way to load a Rich Display grid with data, where all records are sent to the grid in bulk.

8261

0

0

This space illustrates the simplest way to load a Rich Display grid with data, where all records are sent to the grid in bulk.

8260

0

0

This app is designed to help decide what the next women's apparel options will be available for the Profound Logic team.

8210

0

0