cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
twlee2
Visitor
Visitor
1,231 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
hokim
Scholar
Scholar
1,120 Views
Registered: ‎10-21-2015

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)

 

View solution in original post

3 Replies
nutang
Moderator
Moderator
1,149 Views
Registered: ‎08-20-2018

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
twlee2
Visitor
Visitor
1,128 Views
Registered: ‎11-12-2018

 

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
hokim
Scholar
Scholar
1,121 Views
Registered: ‎10-21-2015

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)

 

View solution in original post