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

From RidgeRun Developer Wiki
No edit summary
Line 342: Line 342:
   document.getElementById("labels").value = label_files[document.getElementById("model").value];
   document.getElementById("labels").value = label_files[document.getElementById("model").value];
}
}


function crop_selection() {
function crop_selection() {
Line 433: Line 432:
   
   
   if(filter != "") {
   if(filter != "") {
     filter = " inferencefilter filter-class=" + document.getElementById("filter_class_id").value + " ! ";
     filter = " inferencefilter";
    if(document.getElementById("filter_class_id").value != "") {
      filter = filter + " filter-class=" + document.getElementById("filter_class_id").value + " !";
    } else {
      filter = filter + " !";
    }
   }
   }
 
   
   if(crop != "") {
   if(crop != "") {
     crop = " inferencecrop aspect-ratio=" + document.getElementById("aspect_ratio").value + " ! ";
     crop = " inferencecrop";
    if(document.getElementById("aspect_ratio").value != "") {
      crop = crop + " aspect-ratio=" + document.getElementById("aspect_ratio").value + " !";
    } else {
      crop = crop + " !";
    }
   }
   }
   document.getElementById("new_pipeline").value = "gst-launch-1.0 " + model + model_props + src + tee + filter + crop + overlay + sink;  
   document.getElementById("new_pipeline").value = "gst-launch-1.0 " + model + model_props + src + tee + filter + crop + overlay + sink;  
}
}

Revision as of 19:33, 6 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