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.

Linux/PROCESSOR-SDK-AM57X: USB camera support

Part Number: PROCESSOR-SDK-AM57X


Tool/software: Linux

Hi,

I am interfacng my usb camera with x15.

Suggestions according the points will be appreciated-

1) I have build latest opencv from git and then did make install. I guess opencv is already there but let me know if i should not build it again or it is fine to build again.

2) I have tried different gst-launch commands but camera is not streaming the video and giving some internal data stream error and regarding gstpipelines so i followed this link -"e2e.ti.com/.../2034142. Here i patched the usb_capture.txt. But that is on host side, how can this changes be done on target side? such as should i do the make_linux and copy the zImage and other files in sdcard and boot the x15 again? 

3) How can i stream video from usb camera on x15?

3) While building orbslam on x15, it throughs error-

CMake Error at /usr/share/OpenCV/OpenCVModules.cmake:201 (message):
The imported target "opencv_ts" references the file

"/usr/lib/libopencv_ts.a"

but this file does not exist. Possible reasons include:

* The file was deleted, renamed, or moved to another location.

* An install or uninstall procedure did not complete successfully.

* The installation package was faulty and contained

"/usr/share/OpenCV/OpenCVModules.cmake"

but not all the files it references.

Call Stack (most recent call first):
/usr/share/OpenCV/OpenCVConfig.cmake:86 (include)
CMakeLists.txt:27 (find_package)

How can i sove this?

Thanks. 

  • Hi, Rahul,

    Could you let us know which SDK version are you using?

    1) OpenCV is included in the release package. You don't need to rebuild it.
    4) libopencv_ts.a exists in the filesystem. I checked both 4.1 and 4.3 release, but I don't see it in 5.0. Do you see it in OpenCV rebuild?

    Other questions I'll have our camera capture expert to answer. She is on a trip and will answer after the trip.

    Rex
  • Hi,
    I am using SDK5.0.
    I rebuilt opencv3.4.0 now the problem of "libopencv_ts.a" is solved.
  • Rahul.. said:
    2) I have tried different gst-launch commands but camera is not streaming the video and giving some internal data stream error and regarding gstpipelines so i followed this link -"e2e.ti.com/.../2034142. Here i patched the usb_capture.txt. But that is on host side, how can this changes be done on target side? such as should i do the make_linux and copy the zImage and other files in sdcard and boot the x15 again? 

    You need to make the changes in the Processor SDK linux kernel driver, rebuild the driver and the modules and then install them in your filesystem. 

    You might find this link helpful to build and install linux kernel. 

     

    Note that the USB driver patch mentioned the reference e2e post was for Processor SDK 3.x version. The patch is not applicable for Processor SDK LInux version 4.x or 5.x. 

  • Thanks Manisha.