vagheshpatel commited on
Commit
a611ddc
·
verified ·
1 Parent(s): 07e538e

Sync motion-tracking from metro-analytics-catalog

Browse files
Files changed (1) hide show
  1. README.md +4 -2
README.md CHANGED
@@ -259,7 +259,9 @@ from gstgva import VideoFrame
259
 
260
  Gst.init(None)
261
 
262
- # For GPU: change device=CPU to device=GPU and add vapostproc after decodebin3.
 
 
263
  # For NPU: change device=CPU to device=NPU (batch-size=1, nireq=4 recommended).
264
  pipeline_str = (
265
  "filesrc location=test_video.mp4 ! decodebin3 ! videoconvert ! "
@@ -348,7 +350,7 @@ print("Wrote output.mp4", flush=True)
348
  **Device targets:**
349
 
350
  - `device=CPU` -- default in the sample code.
351
- - `device=GPU` -- add `vapostproc` after `decodebin3` for zero-copy color conversion.
352
  - `device=NPU` -- use `batch-size=1` and `nireq=4` for best NPU utilization.
353
 
354
  ---
 
259
 
260
  Gst.init(None)
261
 
262
+ # For GPU: change device=CPU to device=GPU, add vapostproc !
263
+ # video/x-raw(memory:VASurface) after decodebin3, and set
264
+ # pre-process-backend=vaapi-surface-sharing on gvadetect.
265
  # For NPU: change device=CPU to device=NPU (batch-size=1, nireq=4 recommended).
266
  pipeline_str = (
267
  "filesrc location=test_video.mp4 ! decodebin3 ! videoconvert ! "
 
350
  **Device targets:**
351
 
352
  - `device=CPU` -- default in the sample code.
353
+ - `device=GPU` -- add `vapostproc ! video/x-raw(memory:VASurface)` after `decodebin3` and set `pre-process-backend=vaapi-surface-sharing` on `gvadetect`.
354
  - `device=NPU` -- use `batch-size=1` and `nireq=4` for best NPU utilization.
355
 
356
  ---