Event-driven analytics requires a data management system that can scale to allow a high rate of incoming events while optimizing to allow immediate analytics. IBM Db2 Event Store extends Apache Spark to provide accelerated queries and lightning fast inserts. This code pattern is a simple introduction to get you started with event-driven analytics. You can...
Classify vehicle damage images
Create a custom visual recognition classifier with Apache Cordova, Node.js, and Watson Visual Recognition
The IBM Watson™ Visual Recognition service uses learning algorithms to analyze images for content such as objects, scenes, and faces. This code pattern presents an insurance industry use case: a custom classifier for analyzing vehicle damage. You will create a mobile application that takes a picture of vehicle damage and sends it to the insurance company to identify and classify the problem, for example, a flat tire, a broken window, or a dent.
Image classification is a growing requirement for all kinds of organizations, including insurance companies. Classifying images gets easier with the IBM Watson Visual Recognition service.
The Visual Recognition service provides the ability to create custom classifiers by uploading sample images. In this code pattern, you’ll explore an interesting use case, where an insurance company requires a custom classifier for analyzing vehicle damage.
You will create a mobile application using Apache Cordova, Node.js, and Watson Visual Recognition. The mobile application sends the images of auto and motorcycle accidents and other vehicle issues to be analyzed by a server application using Watson Visual Recognition. The server application uses the images to train Watson Visual Recognition to identify various classes of issues, for example, vandalism, a broken windshield, a vehicle accident, or a flat tire. You can leverage this to create your own custom Watson Visual Recognition classifiers for your use cases.
When you have completed this code pattern, you should know how to:
- Create a Node.js server that can utilize the Watson Visual Recognition service for classifying images
- Have a server initialize a Watson Visual Recognition custom classifier at startup
- Create a Watson Visual Recognition custom classifier in an application
- Create an Android mobile application that can send pictures to a server application for classification using Watson Visual Recognition
- The user captures an image with the mobile application.
- The user sends the image on the mobile phone to the server application running in the cloud.
- The server sends the image to Watson Visual Recognition service for analysis.
- Watson Visual Recognition service classifies the image and returns the information to the server.
The basic steps to deploy this code pattern are listed below. Details are included in the README file.
- Deploy the server application to IBM Cloud or locally.
- Clone the repo.
- Create the Watson Visual Recognition service and name it.
- Add the Visual Recoginition API key to .env file.
- Install dependencies and run server.
- Update config values for the mobile app.
- Install dependencies to build the mobile application.
- Run the mobile application build in the Docker container.
- Add the Android platform and plug-ins.
- Setup your Android device.
- Build and run the mobile application.