### Collect Image ### ### Open image ### $ cd ~/Downloads/data $ gst-launch-1.0 -v filesrc location=/home/adlink/Downloads/data/fruit_with_noise.jpg ! jpegdec ! videoconvert ! imagefreeze ! xvimagesink ### Open video ### $ gst-launch-1.0 filesrc location=/home/adlink/Downloads/data/mask.mkv ! decodebin ! nvvidconv ! videoconvert ! xvimagesink ### Launch Neon Camera ### $ gst-launch-1.0 pylonsrc camera=0 fps=20 ! xvimagesink !!! Hands on 1 !!! ### Open lenna.jpg at location /home/adlink/Downloads/lenna.jpg ### $ cd ~/Downloads/data $ gst-launch-1.0 -v filesrc location=/home/adlink/Downloads/data/lenna.jpg ! jpegdec ! videoconvert ! imagefreeze ! xvimagesink ### Process image ### $ gst-launch-1.0 -v filesrc location=/home/adlink/Downloads/data/fruit_with_noise.jpg ! jpegdec ! videomedian filtersize=5 ! videoconvert ! imagefreeze ! ximagesink !!! Hands on 2 !!! ### Do more de-noise by change filtersize of videomedian ### ### Tips: filtersize is "The size of the median filter" ### ### Tips: 5 - Median of 5 neighbour pixels ### ### Tips: 9 - Median of 9 neighbour pixels ### $ gst-inspect-1.0 videomedian $ gst-launch-1.0 -v filesrc location=/home/adlink/Downloads/data/fruit_with_noise.jpg ! jpegdec ! videomedian filtersize=9 ! videoconvert ! imagefreeze ! ximagesink !!! Hands on 3 !!! ### Do AI Inference ### ### Classifier googlenet ### $ cd ~/Downloads $ gst-launch-1.0 pylonsrc camera=0 fps=10 ! videoconvert ! adrt model=/home/adlink/Downloads/model/googlenet.engine batch=1 ! adtranslator topology=classifier label=/home/adlink/Desktop/EVA_IDE/model/googlenet-v2_RT_labels.txt dims=1,1000 ! admetadrawer ! videoconvert ! xvimagesink sync=false ### Classifier mobilenet ### $ gst-launch-1.0 pylonsrc camera=0 fps=10 ! videoconvert ! adrt model=/home/adlink/Downloads/model/mobilenetv2-b1.engine batch=1 scale=0.017 ! adtranslator topology=classifier dims=1,1000 label=/home/adlink/Desktop/EVA_IDE/model/mobilenet-v2_RT_labels.txt ! admetadrawer ! videoconvert ! xvimagesink sync=false ### Object detection ### ### Object detection ssd ### $ gst-launch-1.0 pylonsrc camera=0 fps=10 ! videoconvert ! adrt model=/home/adlink/Desktop/EVA_IDE/model/ssdv2_FP32.engine batch=1 device=0 scale=0.0078 mean="1 1 1" ! adtranslator topology=ssd dims=1,1,100,7 label=/home/adlink/Desktop/EVA_IDE/model/ssd_mobilenetv2_RT_labels.txt ! admetadrawer ! videoconvert ! xvimagesink sync=false ### Object detection yolov3 ### $ gst-launch-1.0 pylonsrc camera=0 fps=11 ! videoconvert ! adrt model=~/Downloads/tensorrt_demos/yolo/yolov3-416-fp16.engine scale=0.004 mean="0 0 0" device=0 batch=1 ! adtranslator label=~/Desktop/EVA_IDE/model/yolo_RT_labels.txt topology=yolov3 dims=1,255,13,13,1,255,26,26,1,255,52,52 input_width=416 engine-type=2 ! admetadrawer ! videoconvert ! fpsdisplaysink video-sink=xvimagesink text-overlay=true