### 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 ! adtrans_classifier label='/home/adlink/Desktop/EVA Sample/EVA_IDE/model/googlenet-v2_RT_labels.txt' ! 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 ! adtrans_classifier label="/home/adlink/Desktop/EVA Sample/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/Downloads/model/ssdv2.engine batch=1 device=0 scale=0.0078 mean="1 1 1" ! adtrans_ssd label='/home/adlink/Desktop/EVA Sample/EVA_IDE/model/ssd_mobilenetv2_RT_labels.txt' ! admetadrawer ! videoconvert ! xvimagesink sync=false ### Object detection yolov3 ### $ gst-launch-1.0 pylonsrc camera=0 fps=6 binningh=2 binningv=2 ! videoconvert ! adrt model=~/Downloads/tensorrt_demos/yolo/yolov3-416-fp16.engine scale=0.004 mean="0 0 0" device=0 batch=1 ! adtrans_yolo blob-size="13,26,52" mask="(6,7,8),(3,4,5),(0,1,2)" label="/home/adlink/Desktop/EVA Sample/EVA_IDE/model/yolo_RT_labels.txt" use-sigmoid=True ! admetadrawer ! videoconvert ! xvimagesink sync=false