# Sockets

## Socket Colors and Types <a href="#socket-colors-and-types" id="socket-colors-and-types"></a>

AugeLab Studio provides different colors in sockets to indicate what kind of data is transferred through a socket. These colors show which class or data type the input/output belongs to. Read the descriptions below to learn which colors are associated with which data types.

{% hint style="info" %}
For more additional information on socket data types, refer to [Coding Reference](/key-features/create-plugins-with-designer-window/coding-reference.md).
{% endhint %}

### Light Green (Any Image) <a href="#light-green" id="light-green"></a>

<details>

<summary>Light Green (Any Image)</summary>

This socket color corresponds to a mixed image data type and only image data should be connected.

**Camera USB** block below has one green output socket and outputs a colored image it received from the camera.

{% hint style="info" %}
Light Green sockets output BGR and GRAY format data.
{% endhint %}

<figure><img src="/files/erLegKyjLvyDluoko8KY" alt=""><figcaption></figcaption></figure>

</details>

<details>

<summary>Purple (Gray Image)</summary>

Purple sockets correspond to grayscale image type. Color image data cannot be connected to this socket.

{% hint style="info" %}
Purple sockets output grayscale, single-channel image data. This data type may not be used by Light Green sockets. To convert it, use [**Color Space**](/function-blocks/image-transformations/transformation-filters/color-space.md) function block.
{% endhint %}

<figure><img src="/files/5fAnVRzOr0PAsptPYmxL" alt=""><figcaption></figcaption></figure>

</details>

<details>

<summary>Blue (Colored Image)</summary>

Blue-colored sockets correspond to colored image data types. These guarantee a colored image output, unlike [Light Green](#light-green) sockets.

{% hint style="info" %}
Colored Image consists of 3 different arrays, Blue-Green-Red. These also can be split with [Split ](/function-blocks/image-transformations/operations/split-image.md)[Image](/function-blocks/image-transformations/operations/split-image.md) block.
{% endhint %}

<figure><img src="/files/2CEaoiCgGYkAKqeuiaZE" alt=""><figcaption></figcaption></figure>

</details>

<details>

<summary>Light Blue (Boolean)</summary>

Lift Blue colored sockets correspond to logic data types, which are either **True** or **False**.

For example, the camera block above has blue input sockets and only takes True or False values.

{% hint style="info" %}
Logic expressions consist of only two states; **True** and **False**.
{% endhint %}

<figure><img src="/files/AsFdB6CvwTTBb0Uz6fQ3" alt=""><figcaption></figcaption></figure>

</details>

<details>

<summary>Yellow (Number)</summary>

Yellow sockets correspond to integer data type. The following function block has yellow sockets and takes only integer values.

{% hint style="info" %}
Integer basically means whole numbers.
{% endhint %}

<figure><img src="/files/aiqY6oXK1wTVuoQKGri5" alt=""><figcaption></figcaption></figure>

</details>

### Purple (Position) <a href="#purple-position" id="purple-position"></a>

<details>

<summary>Purple (Position)</summary>

Pink sockets output as position/point data type. For example ((x1,y1),(x2,y2)) you can get the position of any object.

{% hint style="info" %}
Point data type consists of two numbers, first is the horizontal position and the second is the vertical position.
{% endhint %}

<figure><img src="/files/LO9pAGp5YmaJeearURbT" alt=""><figcaption></figcaption></figure>

</details>

<details>

<summary>Orange (Shape)</summary>

Orange sockets correspond to the shape data type.

{% hint style="info" %}
Shape data type consists of multiple points, which also consist of two numbers representing where they reside in two-dimensional space.
{% endhint %}

<figure><img src="/files/fxjtXKFhdGpZFt90sqIx" alt=""><figcaption></figcaption></figure>

</details>

<details>

<summary>Dark Green (Undefined)</summary>

Green sockets are sockets corresponding to undefined data types. These color sockets can contain any variant type and can be connected with other sockets.

{% hint style="warning" %}
Be careful when working with green type sockets and make sure data flow is safe.
{% endhint %}

</details>

<details>

<summary>Gray (Text)</summary>

The gray sockets correspond to the text data type.

{% hint style="info" %}
Texts are strings and can be modified to represent results.
{% endhint %}

<figure><img src="/files/kbGQhic3fOMwgVQxWjHm" alt=""><figcaption></figcaption></figure>

</details>


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.augelab.com/function-blocks/sockets.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
