OpenCV independency

SDK provides a three-tier interface with OpenCV dependencies:

  • api, upper interface, with OpenCV dependencies
  • device, interlayer interface, without OpenCV dependencies
  • uvc, bottom interface, without OpenCV dependencies

If you don’t want to use OpenCV, edit <sdk>/cmake/Option.cmake , set WITH_API to OFF. This will stop the compilation of the interface api:

option(WITH_API "Build with API layer, need OpenCV" ON)

For samples for the interface device, please refer to device/camera.cc .