UPGRADE YOUR BROWSER

We have detected your current browser version is not the latest one. Xilinx.com uses the latest web technologies to bring you the best online experience possible. Please upgrade to a Xilinx.com supported browser:Chrome, Firefox, Internet Explorer 11, Safari. Thank you!

cancel
Showing results for 
Search instead for 
Did you mean: 
Highlighted
Visitor twlee2
Visitor
729 Views
Registered: ‎11-12-2018

Video capture from scratch

Jump to solution

 

I am using zcu102 with USB camera and monitor connected and would like to run a simple example created in SDx which captures image from the camera and display to monitor in real time.

It seems that opencv functions can't be used for this purpose and linux library videodev2.h must be used.

Is there any xilinx documentation which describes how to do this in SDx using c++? Or can anyone help with this?

Thank you in advance.

0 Kudos
1 Solution

Accepted Solutions
Explorer
Explorer
618 Views
Registered: ‎10-21-2015

Re: Video capture from scratch

Jump to solution

Hi 

https://www.xilinx.com/member/forms/download/design-license-xef.html?filename=rdf0421-zcu102-base-trd-2018-3.zip

The above file has codes for video capture & display(video_lib)

You can find the codes under

rdf0421-zcu102-base-trd-2018-3/petalinux/src/project-spec/meta-user/recipes-apps/gst-plugins-xlnx/files/src/vdf/video_lib

https://www.xilinx.com/support/documentation/boards_and_kits/zcu102/2018_3/ug1221-zcu102-base-trd.pdf 

For description, refer  to the above document(Video Library, Gstreamer Videro Library)

 

3 Replies
Xilinx Employee
Xilinx Employee
647 Views
Registered: ‎08-20-2018

Re: Video capture from scratch

Jump to solution

Hi @twlee2

Please have a look at the below link,

https://github.com/Xilinx/xfopencv

Best Regards,
Nutan
-------------------------------------------------------------------------------
Please don't forget to reply, kudo and accept as a solution
0 Kudos
Visitor twlee2
Visitor
626 Views
Registered: ‎11-12-2018

Re: Video capture from scratch

Jump to solution

 

Thank you for your reply.

I know Xilinx has this nice repository https://github.com/Xilinx/xfopencv and also reVISION getting started.

Especially, reVISION getting started has live I/O examples but it is quite difficult to find how video is captured and streamed to monitor in real-time .

Could you help with pointing out only that part?   

0 Kudos
Explorer
Explorer
619 Views
Registered: ‎10-21-2015

Re: Video capture from scratch

Jump to solution

Hi 

https://www.xilinx.com/member/forms/download/design-license-xef.html?filename=rdf0421-zcu102-base-trd-2018-3.zip

The above file has codes for video capture & display(video_lib)

You can find the codes under

rdf0421-zcu102-base-trd-2018-3/petalinux/src/project-spec/meta-user/recipes-apps/gst-plugins-xlnx/files/src/vdf/video_lib

https://www.xilinx.com/support/documentation/boards_and_kits/zcu102/2018_3/ug1221-zcu102-base-trd.pdf 

For description, refer  to the above document(Video Library, Gstreamer Videro Library)