|
4 | 4 |
|
5 | 5 | # **ObjectDetector interface C++ library** |
6 | 6 |
|
7 | | -**v1.4.0** |
| 7 | +**v1.5.0** |
8 | 8 |
|
9 | 9 |
|
10 | 10 |
|
|
62 | 62 | | 1.2.0 | 22.08.2023 | - Added new setMask method. | |
63 | 63 | | 1.3.0 | 12.09.2023 | - Changed params serialization method. | |
64 | 64 | | 1.4.0 | 24.09.2023 | - Updated encode(...) and decode(...) methods of ObjectDetectorParams.<br />- Added decodeAndExecuteCommand(...) method.<br />- Added example of object detector implementation. | |
| 65 | +| 1.5.0 | 26.09.2023 | - Signature of getParams(...) method changed. | |
65 | 66 |
|
66 | 67 |
|
67 | 68 |
|
@@ -120,7 +121,7 @@ public: |
120 | 121 | virtual float getParam(ObjectDetectorParam id) = 0; |
121 | 122 |
|
122 | 123 | /// Get object detector params structure. |
123 | | - virtual ObjectDetectorParams getParams() = 0; |
| 124 | + virtual void getParams(ObjectDetectorParams& params) = 0; |
124 | 125 |
|
125 | 126 | /// Get list of objects. |
126 | 127 | virtual std::vector<Object> getObjects() = 0; |
@@ -232,10 +233,12 @@ virtual float getParam(ObjectDetectorParam id) = 0; |
232 | 233 | **getParams(...)** method returns object detector params class object as well a list of detected objects. The particular implementation of the object detector must provide thread-safe **getParams(...)** method call. This means that the **getParams(...)** method can be safely called from any thread. Method declaration: |
233 | 234 |
|
234 | 235 | ```cpp |
235 | | -virtual ObjectDetectorParams getParams() = 0; |
| 236 | +virtual void getParams(ObjectDetectorParams& params) = 0; |
236 | 237 | ``` |
237 | 238 |
|
238 | | -**Returns:** object detector parameters structure (see [**ObjectDetectorParams class**](#ObjectDetectorParams-class-description) description). |
| 239 | +| Parameter | Description | |
| 240 | +| --------- | ---------------------------------------------------- | |
| 241 | +| params | Object detector params object (ObjectDetectorParams) | |
239 | 242 |
|
240 | 243 |
|
241 | 244 |
|
@@ -320,7 +323,7 @@ static void encodeSetParamCommand(uint8_t* data, int& size, ObjectDetectorParam |
320 | 323 | | ---- | ----- | -------------------------------------------------- | |
321 | 324 | | 0 | 0x01 | SET_PARAM command header value. | |
322 | 325 | | 1 | 0x01 | Major version of ObjectDetector class. | |
323 | | -| 2 | 0x04 | Minor version of ObjectDetector class. | |
| 326 | +| 2 | 0x05 | Minor version of ObjectDetector class. | |
324 | 327 | | 3 | id | Parameter ID **int32_t** in Little-endian format. | |
325 | 328 | | 4 | id | Parameter ID **int32_t** in Little-endian format. | |
326 | 329 | | 5 | id | Parameter ID **int32_t** in Little-endian format. | |
@@ -365,7 +368,7 @@ static void encodeCommand(uint8_t* data, int& size, ObjectDetectorCommand id); |
365 | 368 | | ---- | ----- | ----------------------------------------------- | |
366 | 369 | | 0 | 0x00 | COMMAND header value. | |
367 | 370 | | 1 | 0x01 | Major version of ObjectDetector class. | |
368 | | -| 2 | 0x04 | Minor version of ObjectDetector class. | |
| 371 | +| 2 | 0x05 | Minor version of ObjectDetector class. | |
369 | 372 | | 3 | id | Command ID **int32_t** in Little-endian format. | |
370 | 373 | | 4 | id | Command ID **int32_t** in Little-endian format. | |
371 | 374 | | 5 | id | Command ID **int32_t** in Little-endian format. | |
@@ -1119,7 +1122,7 @@ public: |
1119 | 1122 | float getParam(ObjectDetectorParam id); |
1120 | 1123 |
|
1121 | 1124 | /// Get object detector params structure. |
1122 | | - ObjectDetectorParams getParams(); |
| 1125 | + void getParams(ObjectDetectorParams& params); |
1123 | 1126 |
|
1124 | 1127 | /// Get list of objects. |
1125 | 1128 | std::vector<Object> getObjects(); |
|
0 commit comments