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.

SK-AM62: Using OpenCV with AM62x

Part Number: SK-AM62

Hi experts,

My customer is using Ubuntu PC to create software for video shooting using USB camera with SK-AM62.
They are creating software using OpenCV on the processor side in C ++, but the build does not pass. They also reviewed the build path but the build didn't pass. By the way, the source without OpenCV can be built without any problems.

I have the following questions.

Does the AM62x SDK include OpenCV libraries?

Is there a reference makefile for OpenCV C++ ?

Can SK-AM62 use OpenCV with USB camera input?

Best regards,
Sasaki

  • Hello Sasaki,

    Yes, AM62x does include OpenCV. You can check by going into the /usr/lib directory, and running "ls | grep opencv" - you should see many libraries there.

    There is a problem in the SDK installation with the sysroot, which is where the x86 build system will look for libraries. The OpenCV libraries are not populated there, despite being on the device. There is a script under /scripts in the SDK which while setup a "targetNFS" - this includes all the files that will be in the "root" partition of the SD loaded into the device. That targetNFS will therefore have a /usr/lib and /usr/include with all the expected OpenCV libraries and header files, respectively. I do not have a makefile handy, but all they need to do is add the library path and include path to this targetNFS's direcories. Another option is to build on the target itself, although this is probably slower than an their Ubuntu host.

    Yes, the SK-AM62x can absolutely use OpenCV with USB input. They will need to know the device under /dev. You can check by running "v4l2-ctl --list-devices" or by looking at the "dmesg' log right after the device is plugged in. It usually popuates at /dev/video0.

    -Reese