Skip to content

Node.js application that uses image preprocessing and tiling to add localized image recognition results using the Watson Visual Recognition service.

License

Notifications You must be signed in to change notification settings

moyabrannan/Visual-Recognition-Tile-Localization

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Visual-Recognition-Tile-Localization

The Visual-Recognition-Tile-Localization application leverages the Watson Visual Recognition service with image pre-processing techniques to deliver localized image classification. For example, "show me where there is rust on the bridge".

You can view a demonstration of this application in action in the video here:

https://youtu.be/wEs1imQmk-Y

Video showing sample application

The user drags & drops an image onto the applicaiton within the browser, and the image is uploaded to the Node.js application. Once uploaded, the image is "chopped up" into smaller images (tiles) and each individual tile is analyzed by the Watson Visual Recognition service. Once complete, all results are visualized within the browser in a heatmap-like visualization, where colorization is based on the confidence scores being returned by the Visual Recognition service's custom classifier.

Build status

Bluemix Deployments

Reference/Docs

Run the app locally

  1. Install Node.js
  2. Download the code
  3. Edit app.js and add your Watson Visual Recognition Key and Customer Classifier ID
  4. cd into the app directory
  5. Run npm install to install the app's dependencies
  6. Run npm start to start the app
  7. Access the running app in a browser at http://localhost:6001

Run on IBM Bluemix

The app will also run as-is (with Watson key and classifier id) in the default Node.js buildpack on Bluemix. Once you have modified app.js and updated the WATSON_KEY and WATSON_CLASSIFIER values, then you can deploy using the Bluemix CLI push command.

Privacy Notice

The sample web application includes code to track deployments to Bluemix and other Cloud Foundry platforms. The following information is sent to a [Deployment Tracker] deploy_track_url service on each deployment:

  • Application Name (application_name)
  • Space ID (space_id)
  • Application Version (application_version)
  • Application URIs (application_uris)

This data is collected from the VCAP_APPLICATION environment variable in IBM Bluemix and other Cloud Foundry platforms. This data is used by IBM to track metrics around deployments of sample applications to IBM Bluemix. Only deployments of sample applications that include code to ping the Deployment Tracker service will be tracked.

Disabling Deployment Tracking

Deployment tracking can be disabled by removing require("cf-deployment-tracker-client").track(); from the app.js main server file.

About

Node.js application that uses image preprocessing and tiling to add localized image recognition results using the Watson Visual Recognition service.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • JavaScript 95.0%
  • HTML 3.6%
  • CSS 1.4%