Thank you for your response! I appreciate you answering each of my questions (thank you!) but to be honest I was looking for more insight into what is actually going on.
i.e. “What happens if I press this button?” I am hoping to get more than: “The button will be pressed.”
To answer your first question, these two lines were used to configure the output of the model. It request output information using the InferenceEngine::CNNNetwork::getOutputsInfo() method.
What does configuring the output of the model mean? Does it mean that it changes the size, the type of inference that is run, where it is saved? What is being configured here? How does the output change if I had not used these 2 lines, would the example break?
To answer your second question, these two lines are not required because they are optional step to implement a typical inference pipeline with the Inference Engine C++ API.
Sorry, is this always optional (?), for any type of inference I want to run, or do some inferences require this configuration? What changes in the inference pipeline if these are not included in the example? What benefit does this configuration provide in this example?
To answer your third question, output_name use the getOutputsInfo() method to find out OpenVINO output names for using them later when calling InferenceEngine::InferRequest::GetBlob or InferenceEngine::InferRequest::SetBlob.
So these 2 methods: network.getOutputsInfo().begin()->second; network.getOutputsInfo().begin()->first; just provide info and name, so they can be used to call other things down stream?
What would happen if I did not have these names, would I not be able to GetBlob?
Why are they called “first” and “second”? Are these arbitrary method names that actually mean get output info and get output name?
I appreciate the link to additional resources such as: Integrate Inference Engine with Your C++ Application but unfortunately in that material there is no information regarding the use of ->second and → first and what they mean.
Hoping you could provide some insight into what the purpose of those methods are!