This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

RAW Image capture example for DM368IPNC (V4L)

There is any source code sample of RAW image capture using DM368IPNC using V4L?

  • Hi Bruno,

    DM368IPNC inherently does not have support for raw image capture using V4L2. We have written our drivers in such a  way that we can use it in the best of its forms for IP Camera design. But none the less, you can use the DVSDK DMAI based demo code to run on DM368 IPNC. It would need a porting effort but it is possible.

    BTW, just to understand, why would you want to use V4L instead of the drivers which we provided?

    Regards,

    Anshuman

    PS: Please mark this post as verified, if you think this has answered your question. Thanks.

  • Hi Anshuman,

    We have a computer vision application running over OpenCV that supports V4L frame capture directly to library image representation. That is the reason we are trying to use V4L API to acquire raw image (linux platform independent solution).

    What is the best way to retrieve these RAW frames using DVSDK DMAI? Is there any example? The GetAVData interface function does not provide RAW option, just compressed formats.

    Thanks for your attention!

    Regards,

    Bruno

  • Hi Bruno,

    The two options for you are:

    1. Refer to capture.c in DMAI source code for DM365 in DVSDK. This is used in all demos like encode, encodedecode etc. Here we use V4L2 interface for capture buffers.

    2. If you intend to use IPNC Ref Design software, you can use the videoCaptureThr.c. This file has a similar concept as V4L2 IOCTLs but has been implemented for our requirements. You can get exact functions to capture frame and do buffer queue/dequeue in this file. The implementation for the capture frame is in the drv layer of the framework.

    Regards,

    Anshuman

    PS: Please mark this post as verified, if you think it answered your question. Thanks.

  • Thanks for your help Anshuman!

    We will work on it...

    Best regards,

    Bruno