krishnac7 / IotImageAnalysis

Fire Alarm using Watson Visual Recognition This project is a how-to guide on using Watson Visual Recognition service to analyse an image and based on a trigger word then send a event command to IoT Device.In this example node-red is used to create an image upload form which sends the image to Watson Visual Recognition and trigger an iot device whenever fire is detected in the image.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Fire Alarm using Watson Visual Recognition

This project is a how-to guide on using Watson Visual Recognition service to analyse an image and based on a trigger word then send a event command to IoT Device.In this example node-red is used to create an image upload form which sends the image to Watson Visual Recognition and trigger an iot device whenever fire is detected in the image.

NOTE: Please check the Video tutorial at the bottom if you have issues.

  1. Login/signup in to your IBM Cloud Account
  2. Goto Catalog and create the following services:

creating Services

NOTE: You can skip steps 3,4 & 9

  1. Goto connections tab and open IotF Service and Launch Watson Iot Platform
  2. Navigate to Devices tab and Add Device

Adding devices

  1. Once the Starter app is running,visit app url and configure Node-red
  2. Login to your node-red flows dashboard and import flow from flows.json

Importing Flows

  1. Create new visual recognition credentials

Create visual recognition credentials

  1. Update api key in the visual recognition node-red flow
  2. Update the device details in IBM Iot device node {Optional}

Updating credentials

  1. Visit <app_url>/upload and upload required image
  2. Change the string inside includes from trigger action function to set a different trigger

Video Tutorial

About

Fire Alarm using Watson Visual Recognition This project is a how-to guide on using Watson Visual Recognition service to analyse an image and based on a trigger word then send a event command to IoT Device.In this example node-red is used to create an image upload form which sends the image to Watson Visual Recognition and trigger an iot device whenever fire is detected in the image.