Skip to content

Commit e11b561

Browse files
[Metro-Vision-AI] Updated crowd analytics documentation (open-edge-platform#2157)
1 parent a17ecb4 commit e11b561

File tree

6 files changed

+12
-0
lines changed

6 files changed

+12
-0
lines changed
224 KB
Loading
122 KB
Loading
145 KB
Loading
109 KB
Loading
135 KB
Loading

metro-ai-suite/metro-vision-ai-app-recipe/docs/user-guide/tutorial-4.md

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -212,6 +212,9 @@ Here are the example prompts that we used:
212212

213213
- **Prompt for Vehicle Position Extractor**: The code output from co-pilot after vibe coding with this prompt is used in step #7.7 below
214214
- Here is the metadata output from DL Streamer Pipeline Server (Video Analytics pipeline) that does object detection. [PASTE METADATA HERE]. Provide a node red function that parses bounding box coordinates (x, y, w, h format) to calculate centroids, only include objects that are vehicles and return output message with vehicle positions.
215+
> Note: After completing step #7.6 and starting the pipeline using the curl command, open the Node-RED debug panel on the right (bug icon). Select the Vehicle Data Monitor debug node from the drop down in the debug panel to view the metadata, which is used in the prompt to generate Extract Vehicle Positions.
216+
![Crowd Analytics Node-RED Debug Panel](_images/crowd-analytics-debug-panel.png)
217+
215218
- **Prompt for Hotspot Detector**: The code output from co-pilot after vibe coding with this prompt is used in step #7.8 below
216219
- Based on the output of the previous function node, compute hotspots of vehicles. Include configurable parameters for the below in the code:
217220
- Maximum distance (pixels) to consider vehicles part of same hotspot
@@ -274,6 +277,7 @@ Create a debug node to monitor incoming vehicle detection data:
274277
3. **Deploy and Test**:
275278
- Click **Deploy**
276279
- Check the debug panel (bug icon in the right sidebar) for incoming vehicle detection messages
280+
- The debug messages from this node is being used to generate the code for extracting vehicle positions in step #7.7 using prompt engineering.
277281

278282
#### 7.7 **Implement Vehicle Position Extraction Function**
279283

@@ -787,6 +791,14 @@ Create debug nodes to monitor the hotspot analytics pipeline:
787791

788792
![Crowd Analytics Node-RED Flow](_images/crowd-analytics-node-red-flow.png)
789793

794+
### **Appendix: Fine-tuning Node-RED Functions with Claude Sonnet 4.5**
795+
796+
When developing Node-RED function nodes for advanced analytics, you can leverage prompt engineering with Claude Sonnet 4.5 to iteratively refine your code. Here’s how you can approach fine-tuning:
797+
798+
![Crowd Analytics Node-RED Flow](_images/crowd-analytics-prompt-1.png)
799+
![Crowd Analytics Node-RED Flow](_images/crowd-analytics-prompt-2.png)
800+
![Crowd Analytics Node-RED Flow](_images/crowd-analytics-prompt-3.png)
801+
![Crowd Analytics Node-RED Flow](_images/crowd-analytics-prompt-4.png)
790802

791803
### 8. **Visualizing Hotspot Analytics in Grafana**
792804

0 commit comments

Comments
 (0)