Intel® Distribution of OpenVINO™ Toolkit
Community assistance about the Intel® Distribution of OpenVINO™ toolkit, OpenCV, and all aspects of computer vision-related on Intel® platforms.
6510 Discussions

End-to-end example to run VAD generated code in a terminal ?

RSun9
New Contributor I
1,497 Views

Hello again,

I have been unable to find an end-to-end example that shows how to capture an image (via tools like OpenCV), feed that image into an OpenVX graph, and display the output image after processing. Note that OpenVX graph should be generated by VAD, and the code should be built and run in a command-line terminal, ready to be deployed.

I took the lane detection sample graph and generated C code via VAD. The generated code is very different from the C code in the original sample package.  Apparently the sample C code manually defines the OpenVX graph; it does not utilize the VAD-generated code.

So here is my question: Is there an example that shows how to generate C code for an OpenVX graph in VAD, and to build a unit test around that generated graph? The unit test should feed images to the graph, and display the processed images from the graph. File I/O should also work.

If such an example exists, please kindly point it to me.

Thanks,

Robby

0 Kudos
1 Solution
Stav_S_Intel
Employee
1,497 Views

Hi Robby,

Sorry for the slow response,

We do not currently have such a sample, i can refer you to general openVX code passing parameters to an OpenVX Graph and that should be easy to modify. 

Thanks for the request, we will be working on adding such a sample to the samples stack. 

Regards,

Stav

View solution in original post

0 Kudos
3 Replies
Stav_S_Intel
Employee
1,498 Views

Hi Robby,

Sorry for the slow response,

We do not currently have such a sample, i can refer you to general openVX code passing parameters to an OpenVX Graph and that should be easy to modify. 

Thanks for the request, we will be working on adding such a sample to the samples stack. 

Regards,

Stav

0 Kudos
RSun9
New Contributor I
1,497 Views

Hi Stav,

Thanks for the confirmation. I finally managed to get my code to work. Now I can pass images between OpenCV and the OpenVX graph.

I am still interested in seeing the general openVX code passing params to a graph. Could you provide the link?

Thanks,

Robby

0 Kudos
Stav_S_Intel
Employee
1,497 Views

Hi Robby,

Sure- you have many examples of OpenVX and how to handle graphs within Khronos sample implementations. you can find it here:

https://www.khronos.org/registry/OpenVX/

let me know if you need anything else.

Regards,

Stav

0 Kudos
Reply