Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 5 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,15 +6,15 @@ This repo contains the main data model for the Starwit Awareness Engine (SAE). S

### Python / Poetry
- Add the following to your `pyproject.toml` dependencies section\
`visionapi = { git = "https://github.com/starwit/vision-api.git", subdirectory = "python/visionapi", tag = "3.5.0" }`
`visionapi = { git = "https://github.com/starwit/vision-api.git", subdirectory = "python/visionapi", tag = "3.5.1" }`

### Java / Maven
- Add dependency to your project:
```xml
<dependency>
<groupId>de.starwit</groupId>
<artifactId>vision-api</artifactId>
<version>3.5.0</version>
<version>3.5.1</version>
</dependency>
```
- Add maven repository to your `~/.m2/settings.xml` (adapt example / your config as necessary):
Expand Down Expand Up @@ -82,6 +82,9 @@ This repo contains the main data model for the Starwit Awareness Engine (SAE). S
```

## Changelog
### 3.5.1
- Add `class_name` to `DetectionCount`

### 3.5.0
- Add `ModelMetadata` containing `class_names` mapping to `SaeMessage`

Expand Down
2 changes: 1 addition & 1 deletion VERSION
Original file line number Diff line number Diff line change
@@ -1 +1 @@
3.5.0
3.5.1
2 changes: 1 addition & 1 deletion java/visionapi/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
<artifactId>vision-api</artifactId>

<packaging>jar</packaging>
<version>3.5.0</version>
<version>3.5.1</version>
<name>visionapi</name>
<url>https://github.com/starwit/vision-api</url>

Expand Down
107 changes: 90 additions & 17 deletions java/visionapi/src/main/java/de/starwit/visionapi/Analytics.java

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion python/visionapi/pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[tool.poetry]
name = "visionapi"
version = "3.5.0"
version = "3.5.1"
description = ""
authors = ["flonix8 <flstanek@googlemail.com>"]
readme = "README.md"
Expand Down
4 changes: 2 additions & 2 deletions python/visionapi/visionapi/analytics_pb2.py

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 4 additions & 2 deletions python/visionapi/visionapi/analytics_pb2.pyi
Original file line number Diff line number Diff line change
Expand Up @@ -20,11 +20,13 @@ class DetectionCountMessage(_message.Message):
def __init__(self, timestamp_utc_ms: _Optional[int] = ..., detection_counts: _Optional[_Iterable[_Union[DetectionCount, _Mapping]]] = ..., sae_uuid: _Optional[bytes] = ..., type: _Optional[_Union[_common_pb2.MessageType, str]] = ...) -> None: ...

class DetectionCount(_message.Message):
__slots__ = ("class_id", "count", "location")
__slots__ = ("class_id", "class_name", "count", "location")
CLASS_ID_FIELD_NUMBER: _ClassVar[int]
CLASS_NAME_FIELD_NUMBER: _ClassVar[int]
COUNT_FIELD_NUMBER: _ClassVar[int]
LOCATION_FIELD_NUMBER: _ClassVar[int]
class_id: int
class_name: int
count: int
location: _common_pb2.GeoCoordinate
def __init__(self, class_id: _Optional[int] = ..., count: _Optional[int] = ..., location: _Optional[_Union[_common_pb2.GeoCoordinate, _Mapping]] = ...) -> None: ...
def __init__(self, class_id: _Optional[int] = ..., class_name: _Optional[int] = ..., count: _Optional[int] = ..., location: _Optional[_Union[_common_pb2.GeoCoordinate, _Mapping]] = ...) -> None: ...
1 change: 1 addition & 0 deletions visionapi/analytics.proto
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@ message DetectionCountMessage {

message DetectionCount {
uint32 class_id = 1;
uint32 class_name = 10;
uint32 count = 2;
GeoCoordinate location = 3;
}