[doc] query and image update
authoryelini-jeong <yelini.jeong@samsung.com>
Tue, 7 Dec 2021 07:48:32 +0000 (16:48 +0900)
committerMyungJoo Ham <myungjoo.ham@samsung.com>
Wed, 8 Dec 2021 01:04:17 +0000 (10:04 +0900)
This patch updates query and image for tutorial 4

Signed-off-by: yelini-jeong <yelini.jeong@samsung.com>
Documentation/tutorials/T4_object_detection_query.png
Documentation/tutorials/tutorial4_query.md

index d862c8c..7c9eb66 100644 (file)
Binary files a/Documentation/tutorials/T4_object_detection_query.png and b/Documentation/tutorials/T4_object_detection_query.png differ
index 5a90faf..ed90405 100644 (file)
@@ -26,9 +26,12 @@ If you succeeded in streaming the video using query, let's run the object detect
 ```
 $ cd /usr/lib/nnstreamer/bin
 $ gst-launch-1.0 \
-    tensor_query_serversrc ! tensor_filter framework=tensorflow-lite model=tflite_model/ssd_mobilenet_v2_coco.tflite ! \
-    tensor_decoder mode=bounding_boxes option1=mobilenet-ssd option2=tflite_model/coco_labels_list.txt option3=tflite_model/box_priors.txt option4=640:480 option5=300:300 ! \
-    tensor_converter ! other/tensors,num_tensors=1,dimensions=4:640:480:1,types=uint8 ! tensor_query_serversink
+    tensor_query_serversrc ! video/x-raw,width=640,height=480,format=RGB,framerate=0/1 ! \
+        videoconvert ! videoscale ! video/x-raw,width=300,height=300,format=RGB ! tensor_converter ! \
+        tensor_transform mode=arithmetic option=typecast:float32,add:-127.5,div:127.5 ! \
+        tensor_filter framework=tensorflow-lite model=tflite_model/ssd_mobilenet_v2_coco.tflite ! \
+        tensor_decoder mode=bounding_boxes option1=mobilenet-ssd option2=tflite_model/coco_labels_list.txt option3=tflite_model/box_priors.txt option4=640:480 option5=300:300 ! \
+        videoconvert ! tensor_query_serversink
 ```
 
 ### Client pipeline.
@@ -37,8 +40,7 @@ $ cd /usr/lib/nnstreamer/bin
 $ gst-launch-1.0 \
     compositor name=mix sink_0::zorder=2 sink_1::zorder=1 ! videoconvert ! ximagesink \
         v4l2src ! videoconvert ! videoscale ! video/x-raw,width=640,height=480,format=RGB,framerate=10/1 ! tee name=t \
-            t. ! queue ! videoscale ! video/x-raw,width=300,height=300,format=RGB ! tensor_converter ! tensor_transform mode=arithmetic option=typecast:float32,add:-127.5,div:127.5 ! queue leaky=2 max-size-buffers=2 ! \
-                tensor_query_client ! tensor_decoder mode=direct_video ! videoconvert ! video/x-raw,width=640,height=480,format=RGBA ! mix.sink_0 \
+            t. ! queue ! tensor_query_client ! videoconvert ! mix.sink_0 \
             t. ! queue ! mix.sink_1
 ```