# sp500\_yolo\_detection

```cpp
#include <sp500/yolo.h>

struct sp500_yolo_detection
```

One detection. 6 floats; the layout of a [SP500\_YOLO\_TASK\_DETECT](<https://docs.mobilint.com/regulus/en/v4.1/api/cpp/yolo-h/#sp500-yolo-task-detect>) record.

## Attributes

| Member | Description |
| --- | --- |
| [`x1`](<#x1>) |  |
| [`y1`](<#y1>) |  |
| [`x2`](<#x2>) |  |
| [`y2`](<#y2>) |  |
| [`score`](<#score>) |  |
| [`class_id`](<#class-id>) |  |

### x1

```cpp
float x1
```

left, in network-input pixels

### y1

```cpp
float y1
```

top

### x2

```cpp
float x2
```

right

### y2

```cpp
float y2
```

bottom

### score

```cpp
float score
```

confidence in 0..1

### class\_id

```cpp
float class_id
```

class index, integral but stored as a float
