Versions Compared

Key

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

Image processing works on the principle of sending the image via HTTP request. Only one image can be sent per request. (MODIFY & DELETE)

Widget Connector
overlayyoutube
_templatecom/atlassian/confluence/extra/widgetconnector/templates/youtube.vm
width680px
urlhttps://www.youtube.com/watch?v=WkEYKFe9wMo&feature=youtu.be
height400px

...

If the project runs on a local computer, the address is 127.0.0.1. If a remote computer is accessed, then you need to use the IP address of the remote computer.

Port

This is selected when starting the project.

...

If the project is running with the api API key, each request in the parameter query must contain API key.

Data

You can add extra information to the request. This string will be add to the context (key is data). It is available only in the Code module (context variable).

Code Block
'http://127.0.0.1:8000/analyze_image?width=1920&height=1024&data=SomeInfo'

Types

analyze_raw_Image

Used for sending the image as raw data. For example, the numpy array in Python is converted to binary format. You need to send the image dimensions in a query parameter.

...

Code Block
'http://127.0.0.1:8000/analyze_image?api_key=SUPER_SECRET'

Response

Query parameter ‘response_type’ determines the response type.

...

‘annotated_image’ – processed image with annotations

‘heatmap’ - response is heatmap ‘.pngimage of heatmapformat

For image and annotated_image types, the serialized context is added to the header with the header title: context.