vagheshpatel commited on
Commit
8588238
·
verified ·
1 Parent(s): 2667e45

Sync worker-safety-detection from metro-analytics-catalog

Browse files
Files changed (1) hide show
  1. README.md +11 -1
README.md CHANGED
@@ -45,6 +45,10 @@ python3 -m venv .venv --system-site-packages
45
  source .venv/bin/activate
46
  ```
47
 
 
 
 
 
48
  ---
49
 
50
  ## Getting Started
@@ -110,7 +114,7 @@ pipeline_str = (
110
  f"filesrc location={INPUT_VIDEO} ! decodebin3 ! "
111
  f"gvadetect model={MODEL_XML} device=CPU threshold=0.4 ! queue ! "
112
  f"gvawatermark ! videoconvert ! video/x-raw,format=I420 ! "
113
- f"x264enc ! h264parse ! "
114
  f"mp4mux ! filesink name=sink location=output.mp4"
115
  )
116
  pipeline = Gst.parse_launch(pipeline_str)
@@ -155,6 +159,12 @@ Expected console output (representative):
155
  The annotated video is saved to `output.mp4` with bounding boxes drawn by
156
  `gvawatermark` around each detected `safety_helmet` and `safety_jacket`.
157
 
 
 
 
 
 
 
158
  **Device targets:**
159
 
160
  - `device=CPU` -- default in the sample code.
 
45
  source .venv/bin/activate
46
  ```
47
 
48
+ > **Note:** The `--system-site-packages` flag is required so the virtual
49
+ > environment can access the system-installed OpenVINO and DLStreamer Python
50
+ > packages.
51
+
52
  ---
53
 
54
  ## Getting Started
 
114
  f"filesrc location={INPUT_VIDEO} ! decodebin3 ! "
115
  f"gvadetect model={MODEL_XML} device=CPU threshold=0.4 ! queue ! "
116
  f"gvawatermark ! videoconvert ! video/x-raw,format=I420 ! "
117
+ f"openh264enc ! h264parse ! "
118
  f"mp4mux ! filesink name=sink location=output.mp4"
119
  )
120
  pipeline = Gst.parse_launch(pipeline_str)
 
159
  The annotated video is saved to `output.mp4` with bounding boxes drawn by
160
  `gvawatermark` around each detected `safety_helmet` and `safety_jacket`.
161
 
162
+ > **Known warning:** The `openh264enc` element prints
163
+ > `[OpenH264] this = 0x..., Error:CWelsH264SVCEncoder::EncodeFrame(), cmInitParaError.`
164
+ > on the first frame. This is a benign initialization message — the output
165
+ > video is encoded correctly. The warning comes from the OpenH264 library's
166
+ > internal logging and does not indicate a real error.
167
+
168
  **Device targets:**
169
 
170
  - `device=CPU` -- default in the sample code.