Skip to content

Commit 5389823

Browse files
authored
Merge pull request #9 from starwit/feature/ab#1782-add-class_name-to-detectionCount
added class_name to detectionCount
2 parents 5931dfe + d0cff71 commit 5389823

8 files changed

Lines changed: 105 additions & 26 deletions

File tree

README.md

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,15 +6,15 @@ This repo contains the main data model for the Starwit Awareness Engine (SAE). S
66

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

1111
### Java / Maven
1212
- Add dependency to your project:
1313
```xml
1414
<dependency>
1515
<groupId>de.starwit</groupId>
1616
<artifactId>vision-api</artifactId>
17-
<version>3.5.0</version>
17+
<version>3.5.1</version>
1818
</dependency>
1919
```
2020
- Add maven repository to your `~/.m2/settings.xml` (adapt example / your config as necessary):
@@ -82,6 +82,9 @@ This repo contains the main data model for the Starwit Awareness Engine (SAE). S
8282
```
8383

8484
## Changelog
85+
### 3.5.1
86+
- Add `class_name` to `DetectionCount`
87+
8588
### 3.5.0
8689
- Add `ModelMetadata` containing `class_names` mapping to `SaeMessage`
8790

VERSION

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
3.5.0
1+
3.5.1

java/visionapi/pom.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
<artifactId>vision-api</artifactId>
77

88
<packaging>jar</packaging>
9-
<version>3.5.0</version>
9+
<version>3.5.1</version>
1010
<name>visionapi</name>
1111
<url>https://github.com/starwit/vision-api</url>
1212

java/visionapi/src/main/java/de/starwit/visionapi/Analytics.java

Lines changed: 90 additions & 17 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

python/visionapi/pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[tool.poetry]
22
name = "visionapi"
3-
version = "3.5.0"
3+
version = "3.5.1"
44
description = ""
55
authors = ["flonix8 <flstanek@googlemail.com>"]
66
readme = "README.md"

python/visionapi/visionapi/analytics_pb2.py

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

python/visionapi/visionapi/analytics_pb2.pyi

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,11 +20,13 @@ class DetectionCountMessage(_message.Message):
2020
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: ...
2121

2222
class DetectionCount(_message.Message):
23-
__slots__ = ("class_id", "count", "location")
23+
__slots__ = ("class_id", "class_name", "count", "location")
2424
CLASS_ID_FIELD_NUMBER: _ClassVar[int]
25+
CLASS_NAME_FIELD_NUMBER: _ClassVar[int]
2526
COUNT_FIELD_NUMBER: _ClassVar[int]
2627
LOCATION_FIELD_NUMBER: _ClassVar[int]
2728
class_id: int
29+
class_name: int
2830
count: int
2931
location: _common_pb2.GeoCoordinate
30-
def __init__(self, class_id: _Optional[int] = ..., count: _Optional[int] = ..., location: _Optional[_Union[_common_pb2.GeoCoordinate, _Mapping]] = ...) -> None: ...
32+
def __init__(self, class_id: _Optional[int] = ..., class_name: _Optional[int] = ..., count: _Optional[int] = ..., location: _Optional[_Union[_common_pb2.GeoCoordinate, _Mapping]] = ...) -> None: ...

visionapi/analytics.proto

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@ message DetectionCountMessage {
1515

1616
message DetectionCount {
1717
uint32 class_id = 1;
18+
uint32 class_name = 10;
1819
uint32 count = 2;
1920
GeoCoordinate location = 3;
2021
}

0 commit comments

Comments
 (0)