Lag en nettapp for visuelt å samhandle med objekter som oppdages ved hjelp av maskinlæring

Kilde node: 1849328

Oppsummering

The IBM Model Asset eXchange (MAX) models that are hosted on the Machine Learning eXchange (https://ml-exchange.org/models/) have given application developers without data science experience easy access to prebuilt machine learning models. This code pattern shows how to create a simple web application to visualize the text output of a MAX model. The web app uses the Objektdetektor from MAX and creates a simple web UI that displays bounding boxes around detected objects in an image and lets you filter the objects based on their label and probable accuracy given by the model.

Beskrivelse

This code pattern uses one of the models from the Model Asset eXchange, an exchange where you can find and experiment with open source deep learning models. Specifically, it uses the Object Detector to create a web application that recognizes objects in an image and lets you filter the objects based on their detected label and prediction accuracy. The web application provides an interactive user interface backed by a lightweight Node.js server using Express. The server hosts a client-side web UI and relays API calls to the model from the web UI to a REST end point for the model. The web UI takes in an image and sends it to the model REST endpoint through the server and displays the detected objects on the UI. The model’s REST endpoint is set up using the Docker image provided on MAX. The Web UI displays the detected objects in an image using a bounding box and label and includes a toolbar to filter the detected objects based on their labels or a threshold for the prediction accuracy.

Når du har fullført dette kodemønsteret, forstår du hvordan du:

  • Build a Docker image of the Object Detector MAX model
  • Distribuere en dyp læringsmodell med et REST-endepunkt
  • Recognize objects in an image using the MAX model’s REST API
  • Kjør et webapplikasjon som bruker modellens REST API

Flow

flyten

  1. The user uses the web UI to send an image to the Model API.
  2. The Model API returns the object data and the web UI displays the detected objects.
  3. The user interacts with the web UI to view and filter the detected objects.

Instruksjoner

Klar til å bruke dette kodemønsteret du skal bruke? Komplette detaljer om hvordan du kommer i gang med å kjøre og bruke dette programmet, finnes i README.

Source: https://developer.ibm.com/patterns/create-a-web-app-to-interact-with-objects-detected-using-machine-learning/

Tidstempel:

Mer fra IBM-utvikler