Doodle with Node.js and Watson Visual Recognition. Get the presentation.
These instructions will get you a copy of the project up and running on your local machine for development and testing purposes. See deployment for notes on how to deploy the project on a live system.
- Sign up for an IBM Cloud account.
- Download the IBM Cloud CLI.
- Create an instance of the Visual Recognition service and get your credentials:
- Go to the Visual Recognition page in the IBM Cloud Catalog.
- Log in to your IBM Cloud account.
- Click Create.
- Click Show to view the service credentials.
- Copy the
apikey
value.
- Download and setup Node.js.
- Download the doodle dataset for training the model.
- Log in to Watson Studio.
- Create a new watson studio project for your machine learning model and assign the storage and Watson Visual Recognition service instance.
- Add the image assests to your project.
- Create the classes for the assests you wish to train.
- Train the model.
- Create a file with the following content and save it as .env.
API_KEY='YOUR-API-KEY'
-
Install the dependencies.
npm install
-
Run the application.
npm start
-
View the application in a browser at
localhost:8080
-
Login to IBM Cloud with the IBM Cloud CLI.
ibmcloud login
-
Target a Cloud Foundry organization and space.
ibmcloud target --cf
-
Edit the manifest.yml file. Change the name field to something unique.
For example,- name: my-app-name
. -
Change the websocket link in sketch.js to https://my-app-name.mybluemix.net
-
Deploy the application.
ibmcloud app push
-
View the application online at the app URL.
For example: https://my-app-name.mybluemix.net
- IBM Watson Visual Recogntion Service - The Visual Recogniton Service used.
- P5.Js Library - A Sketching library with a full set of drawing functionality.
- Anime.js Library - A Javascript library for animations.