Ubuntu 20.04 or later Ubuntu LTS version x86-64bit system; For Windows system, please checkout windows branch.
You could install ViduSdk using package manager, execute sudo dpkg -i Vidu_SDK_Api_x_x(_x)_amd64.deb
or sudo apt install ./Vidu_SDK_Api_x_x(_x)_amd64.deb
.
When you want to uninstall ViduSdk package, just execute sudo dpkg -r vidusdkapi
or sudo apt remove vidusdkapi
.
If you want to obtain accurate metadata, linux driver patch is required, please execute the following commands:
Before you execute, you need to disconnect the connected camera.
./camdriver/patch-okulo-ubuntu-lts-hwe.sh
PS: If your system has been updated, it needs to be patched again.
The ViduSdk provides the following executable tools for you to have a quick taste of the functionality of Okulo P1 Camera and Okulo C1 Camera:
Then you could execute vidu_viewer
or click Ubuntu Applications Vidu viewer
to run vidu_viewer
Run python demo, you could execute python3 python/vidu_test.py
SDKpythonLib/pyvidu.cpython-xx-x86_64-linux-gnu.so
.Below we briefly introduce some important folders to the developers. The comprehensive guidance on the usage of the software development for the Okulo camera is here
C
headers by which the developer can directly invoke the Vidu_SDK_Api/SDKlib/libDYVGenTL.cti
using C
interface according to the GenTL standard.C++
wrapper of the Vidu_SDK_Api/SDKlib/libDYVGenTL.cti
, which makes the coding with okulo camera more conciser and C++
tone.You can build example in root directory of SDK package(need opencv-dev), you can install by sudo apt-get -y install libopencv-dev python3-opencv
.
cd ViduSdk/
mkdir build && cd build
cmake ../
make -j
./example/streamShow/streamShow
Also you can build your code or move the example outside of the package by adding
find_package(OpenCV REQUIRED)
find_package(Vidu_SDK_Api REQUIRED)
and
target_link_libraries(${PROJECT_NAME} Vidu_SDK_Api::GenTLwrapper)
in the CMakeLists.txt file.
If unable to install or do not want to install the deb package, you can follow the following steps to configure it:
bash install.sh
install dependencies, which also sets the environment variable DYVCAM_GENTL64_PATH
source ~/.bashrc
make environment variables effectiveNow, you can use vidu_viewer to open the camera, if you also want to use Python
libraries, you also need to specify the PYTHONPATH
environment variable to the Vidu_SDK_Api/SDKLib/SDKPythonLib
directory, which contains the exported Python
library files.
In this case, when using find_cackage
, it is necessary to specify the specific directory of Vidu_SDK_Api's cmake, for example Vidu_SDK_Api/cmake
. Just like:
find_package(Vidu_SDK_Api REQUIRED HINTS $ENV{DYVCAM_GENTL64_PATH}/../cmake)
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。