Import thiird library from cpp. Creating custom function #5228
Unanswered
marcomameli1992
asked this question in
Q&A
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Dear I'm trying to import a library from SDK-SEN0579. Inside the library there are different version i'm trying to use the armv8 and x86_64 for ubuntu20.04.
If I test the run.sh file in the build directory, with a previous openCV 4.4 installation and the LD_LIBRARY_PATH configuration setted on /usr/local/lib it works correctly and return me the Depth map in an OpenCV window.
I have created the binding configuration that is completely compiled with cmakes and make but every time I try to use them in python I receive the error "Device /dev/video2 opened: CS20 Camera: CS20 Camera.
Traceback (most recent call last):
File "test.py", line 9, in
depth_frame = camera.get_depth_frame()
RuntimeError: Failed to get frameset
Segmentation fault (core dumped)
"
For completly reproduce the situation I starting from the SEDfolder/libsynexens3folder/example/depth.cpp for the code creation for the binding.
The cpp code is in reported next:
the CMAkesLists.txt file is filled with:
the test.py is filled with:
I have created inside the forlder the build one and after a cd I use the command:
cmake -Dpybind11_DIR=/home/admin/.local/lib/python3.8/site-packages/pybind11/share/cmake/pybind11 ..
and after that the make command.
after all I obtained the .so library and if I call it from python the import works but I can't obtain the depth frame.
Can anyone explain where is my error on do that work?
Beta Was this translation helpful? Give feedback.
All reactions