Analyze an image and send a status alert
Summary
Industrial and high-tech maintenance companies often photograph their sites for potential hazards or emergencies and then inform the appropriate person who can take action to resolve the issue. In this code pattern, you will build an app that will load images into an IBM Cloudant® database, analyze it, and based on the results, trigger an alert showing whether there is a danger and need for action.
Description
Industrial and maintenance companies need to know what’s happening at their sites. A leak, fire, or malfunction can spell disaster for a company, resulting in dangerous situations for employees, downtime, public relation setbacks, and financial losses.
These companies have been leaders in using remote devices-phones, mounted cams, drones-to send images of various sites and equipment to be monitored for any malfunctions. But what if you could automatically analyze those images and send an alert about the location or potential emergency situation?
If you’re a developer working for a company that relies on site images, you can now build an application that analyzes an image and sends an alert automatically. In this code pattern, you’ll use IBM Cloud Functions to analyze an image and send it to the Watson™ IoT Platform. The image will be assigned a score, and that score will be evaluated to trigger any necessary alerts to reach authorities through the best available communication channel (for example, email, text, or push notifications).
You have the option to develop a standalone application that can be easily updated or modified to work from within a smart device, or run it on a browser on your laptop or phone.
In the pattern use case, you’ll learn how to send an image for processing that detects a fire. (You can also use this same app for maintenance alerts or other emergency alert detections.) The fire is identified by the Watson Visual Recognition service, and the Node-RED app will subsequently notify the appropriate resources.
There are multiple ways to design this process, and you can modify the pattern to extend it to other real-world use cases, sending alerts to other designated recipients and creating additional designated channels for alert notifications.
You’ll create an app based on the following flow:
- The application takes an image from a device or uploads it from a local image folder to an IBM Cloudant NoSQL database.
- The Cloudant database, in turn, receives the binary data and triggers an action on IBM Cloud Functions.
- IBM Cloud Functions Composer performs the Visual Recognition analysis and receives a response in JSON format.
- The response is sent to the IoT Platform and registers itself as a device receiving the analyzed image.
A Node-RED flow continues to read these events from the device on the IoT Platform and triggers alerts based on the image’s features. For example:
iot-2/type/Device/id/motor1/evt/eventData/fmt/json
image: fire score: 0.679 alert: EMERGENCY ALERT! time: Tue Oct 24 2017 01:20:49 GMT+0000 (UTC)
Flow
- You can execute the viz-send-image-app folder locally or push it to the cloud. The folder contains the app UI that enables you to upload an image to the Cloudant database.
- Create a Node-RED package that includes the Cloudant service.
- Create IBM Functions from the IBM Cloud Catalog. Paste your credentials from Cloudant, IoT Platform, and Visual Recognition into the credentials.cfg file (in viz-openwhisk-functions) and credentials.json file (in viz-send-image-app).
- Create the Watson Visual Recognition service from the IBM Cloud Catalog.
- Create the Watson IoT Platform and bind it to the Node-RED package.
- Paste the .json flow to your Node-RED editor. Ensure that the ibmiot node in Node-RED has the correct information from the Watson IoT Platform.
Instructions
Ready to put this code pattern to use? Complete details on how to get started running and using this application are in the README.
相關推薦
Analyze an image and send a status alert
Summary Industrial and high-tech maintenance companies often photograph their sites for potential hazards or emergencies and then inf
製作一個python-docker image and run a container!
#docker pull holbertonschool/ubuntu-1404-python3 #docker run --name python3 -v /home:/mnt -ti docker.io/holbertonschool/ubuntu-1404-pytho
Mountaintop observatory sees gamma rays from exotic Milky Way object: Space jets accelerate particles and send a high
For the first time, an international collaboration of scientists has detected highly energetic light coming from the outermost regions of an unusual star
[HTML5] Add an SVG Image to a Webpage and Get a Reference to the Internal Elements in JavaScript
show acc ntb content open direct () ren for We want to show an SVG avatar of the patio11bot, so we‘ll do that in three ways: Using a
How do I resize an image using PIL and maintain its aspect ratio?
我有一個資料夾,裡的圖檔是 96×96, 我希望在這一個資料夾下的檔案被異動時,會自動產生縮圖(64×64)到其他的資料夾下。 PIL 是 Python 下最有名的影像處理套件。 這個套件,似乎在升級改版本,把一些比較少人用的屬性或方法在新版本裡拿掉,新版本也加入了更多新的功能。一般人應該都只會使用基本
Creating an Ember and Rails app with a POST request for a side project
Creating an Ember and Rails app with a POST request for a side projectThis post is a tutorial that will go through creating a simple app with ember js on t
The Node.js Foundation and JS Foundation Announce an Intent to Merge (A Message from the Boards…
The Node.js Foundation and JS Foundation Announce an Intent to Merge (A Message from the Boards and a FAQ around the Announcement)*The introduction of this
Ask HN: Ideas for an APP,I am a Data Science Analyst and I know Django very well
I would like to see an app that shows the most used memes on a social media platform so that I know which memes not to use.
learning system tackles speech and object recognition, all at once: Model learns to pick out objects within an image, using spok
Unlike current speech-recognition technologies, the model doesn't require manual transcriptions and annotations of the examples it's trained on. Instead,
Embedded Linux S3C2440 Build and Boot an Image
文章目錄 Summary Install Buildroot Compile and install Busybox Generating the Root Filesystem Compiling the Linux kernel D
Create and Attach an Internet Gateway to a VPC
Amazon Web Services is Hiring. Amazon Web Services (AWS) is a dynamic, growing business unit within Amazon.com. We are currently hiring So
Show and Tell: A Neural Image Caption Generator 翻譯
摘要 自動描述影象的內容是連線計算機視覺和自然語言處理的人工智慧中的一個基本問題。在本文中,我們提出了一個基於深度重構架構的生成模型,它結合了計算機視覺和機器翻譯方面的最新進展,可以用來生成描述影象的自然語句。訓練該模型以最大化訓練影象給出的目標描述句子的可能
最新論文閱讀(21)--Real-Time Single Image and Video Super-Resolution Using an Efficient Sub-Pixel Convoluti
Real-Time Single Image and Video Super-Resolution Using an Efficient Sub-Pixel Convolutional Neural Network - 2016年9月 - 超解析度 -
【論文閱讀】Real-Time Single Image and Video Super-Resolution Using an Efficient Sub-Pixel......
開發十年,就只剩下這套架構體系了! >>>
Livemedia-creator- How to create and use a Live CD
download further burning method create Livemedia-creator- How to create and use a Live CDNote for older method (namely for Fedora 23) using livec
UVA 10820 Send a Table 數論 歐拉函數
space nbsp ostream void 分享 cal 解題思路 for can 題目鏈接: https://vjudge.net/problem/UVA-10820 題目描述: 給你一個N, N <= 50000, 讓你尋找N之內互素數的個數 解題
AGG第四十二課 Blitting an image over another with transparency
agg blitting an image over another with transparency問題:I‘ve managed to blit a loaded image onto another through the method "copy_from(...)" of renderer_b
Visual simultaneous localization and mapping: a survey 論文解析(全)
核心 得到 均值 選擇 人物 三種 質量 數據 旋轉 當激光或聲納等距離傳感器被用來構建小的靜態環境的二維地圖時,SLAM的問題被認為是解決的。然而,對於動態,復雜和大規模的環境,使用視覺作為唯一的外部傳感器,SLAM是一個活躍的研究領域。 第一部分是簡介 移動機器人的自主
[Gatsby] Install Gatsby and Scaffold a Blog
default plugin transform gpo reac mark dep npm exp In this lesson, you’ll install Gatsby and the plugins that give the default star
D - Send a Table (UVA - 10820)
存儲 names long long ems cst int nbsp 兩個 cstring - 題目大意 給出一個n,求從1~n中任意兩個數互質的對數為多少,(a,b)和(b,a)算兩對。 - 解題思路 構造一個歐拉函數的方法,然後用一個數組去存儲下標,