GstInference/Example pipelines with hierarchical metadata/PC: Difference between revisions

From RidgeRun Developer Wiki
No edit summary
No edit summary
Line 389: Line 389:
     search_option("ncsdk","NCSDK","backend","add");
     search_option("ncsdk","NCSDK","backend","add");
     search_option(" nvarguscamerasrc","nvarguscamerasrc","source","remove");
     search_option(" nvarguscamerasrc","nvarguscamerasrc","source","remove");
    search_option(" videoconvert ! 'video/x-raw,format=I420' ! nvvidconv ! nvoverlaysink","nvoverlaysink","sink","remove");
   } else {
   } else {
     search_option("ncsdk","NCSDK","backend","remove");
     search_option("ncsdk","NCSDK","backend","remove");
     search_option(" nvarguscamerasrc","nvarguscamerasrc","source","add");
     search_option(" nvarguscamerasrc","nvarguscamerasrc","source","add");
    search_option(" videoconvert ! 'video/x-raw,format=I420' ! nvvidconv ! nvoverlaysink","nvoverlaysink","sink","add");
   }
   }
}
}
Line 518: Line 520:
     enable_element("fontscale");
     enable_element("fontscale");
     enable_element("style");
     enable_element("style");
     overlay = " net.src_bypass ! queue leaky=2 max-size-buffers=10 ! inferenceoverlay !";
     overlay = " fakesink net.src_bypass ! queue ! inferenceoverlay !";
   } else {
   } else {
     disable_element("thickness");
     disable_element("thickness");
Line 571: Line 573:


   if(overlay != "") {
   if(overlay != "") {
     overlay = " fakesink net.src_bypass ! queue leaky=2 max-size-buffers=10 ! inferenceoverlay !";
     overlay = " fakesink net.src_bypass ! queue ! inferenceoverlay !";
     var thickness= document.getElementById("thickness").value;
     var thickness= document.getElementById("thickness").value;
     var fontscale=document.getElementById("fontscale").value;
     var fontscale=document.getElementById("fontscale").value;

Revision as of 16:15, 13 March 2020




Previous: Example pipelines Index Next: Example pipelines/NANO




Sample pipelines

The following section contains a tool for generating simple GStreamer pipelines with one model of a selected architecture using our hierarchical inference metadata. If you are using and older version, you chan check the legacy pipelines section. Please make sure to check the documentation to understand the property usage for each element.

The required elements are:

  • Backend
  • Model
  • Model location
  • Labels
  • Source
  • Sink

The optional elements include:

  • inferencefilter
  • inferencrop
  • inferenceoverlay
Detection with new metadata

Pipeline generator

The following tool will provide simple pipelines according to the selected elements.

Optional utilites

The following elements are optional yet very useful. Check the documentation for more details on their properties.


Advanced pipelines

Previous: Example pipelines Index Next: Example pipelines/NANO