You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+28-7Lines changed: 28 additions & 7 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -110,7 +110,7 @@ Copy and paste `docker-compose.yml` to folder of your choice (recommended to be
110
110
version: '3.8'
111
111
services:
112
112
chrysedgeportal:
113
-
image: chryscloud/chrysedgeportal:0.0.6
113
+
image: chryscloud/chrysedgeportal:0.0.7
114
114
depends_on:
115
115
- chrysedgeserver
116
116
- redis
@@ -119,7 +119,7 @@ services:
119
119
networks:
120
120
- chrysnet
121
121
chrysedgeserver:
122
-
image: chryscloud/chrysedgeserver:0.0.6
122
+
image: chryscloud/chrysedgeserver:0.0.7
123
123
restart: always
124
124
depends_on:
125
125
- redis
@@ -287,6 +287,26 @@ Run example to turn storage off for camera `test`:
287
287
python storage_onoff.py --device test --on false
288
288
```
289
289
290
+
### Running `opencv_inmemory_display.py`
291
+
292
+
Prerequsite to have an in-memory queue is to setup `buffer -> in_memory` value in `conf.yaml` of your custom config.
293
+
294
+
This setting stores compressed video stream in memory and enables you to query the complete queue or portion of it. It also allows you to query the same queue (`timestamp_from` and `timestamp_to`) from parallel subprocess (check `examples/opencv_inmemory_display_advanced.py` for an example).
295
+
296
+
Wait for X amount of time for in-memory queue to fill up then run (for added camera named `test`):
297
+
```
298
+
python opencv_inmemory_display.py --device test
299
+
```
300
+
301
+
### Running `video_probe.py`
302
+
303
+
This example shows gow to query local system time and retrieve information about the incoming video for specific camera/device.
304
+
305
+
Run example to probe a video stream (for added camera named `test`):
306
+
```
307
+
python video_probe.py --device tet
308
+
```
309
+
290
310
# Custom configuration
291
311
292
312
## Custom redis configuration
@@ -311,7 +331,7 @@ Modify folders accordingly for **Mac OS X and Windows**
311
331
Create `conf.yaml` file in `/data/chrysalis` folder. The configuration file is automatically picked up if it exists otherwise system fallbacks to it's default configuration.
312
332
313
333
```yaml
314
-
version: 0.0.3
334
+
version: 0.0.7
315
335
title: Chrysalis Video Edge Proxy
316
336
description: Chrysalis Video Edge Proxy Service for Computer Vision
317
337
mode: release # "debug": or "release"
@@ -332,6 +352,7 @@ annotation:
332
352
333
353
buffer:
334
354
in_memory: 1# number of images to store in memory buffer (1 = default)
355
+
in_memory_scale: "-1:-1"# scaling of the images. Examples: 400:-1 (keeps aspect radio with width 400), 400:300, iw/3:ih/3, ...)
335
356
on_disk: false # store key-frame separated mp4 file segments to disk
336
357
on_disk_folder: /data/chrysalis/archive # can be any custom folder you'd like to store video segments to
337
358
on_disk_clean_older_than: "5m"# remove older mp4 segments than 5m
@@ -347,10 +368,10 @@ buffer:
347
368
- `annotation -> poll_duration_ms`: poll every x miliseconds for batching purposes (default: 300ms)
348
369
- `annotation -> max_match_size`: maximum number of annotation per batch size (default: 299)
349
370
- `buffer -> in_memory`: number of decoded frames to store in memory per camera (default: 1)
0 commit comments