Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

Table of Contents

Introduction

In this document, we will give a guide about deploying an application step by step in OTE-stack platform on AI Edge for testing.

...

  • Prepare a picture for face detection, for example: http://aip.bdstatic.com/portal-pc-node/dist/1590550949362/images/technology/face/detect/demo-card-2.jpg
  • Send request to the face server through the ip:port got by last step

    Code Block
    $ # prepare image
    $ wget http://aip.bdstatic.com/portal-pc-node/dist/1590550949362/images/technology/face/detect/demo-card-2.jpg
    $ # make a request
    $ image=demo-card-2.jpg
    $ echo '{"image": "'$(base64 -w 0 $image)'"}' > data.json
    $ curl -X  POST 10.247.22.115:8080/face_detect -d@data.json
    {"objects": [{"location": {"x1": 898, "y1": 217, "x2": 1154, "y2": 518}, "prob": 0.9999696016311646}, {"location": {"x1": 444, "y1": 331, "x2": 700, "y2": 657}, "prob": 0.9997757077217102}]}