Post Go back to editing

Frame rate of AD-3DSMARTCAM1-PRZ is far below 30 fps

Hi, 

I was trying to develop some applications on my computer with AD-3DSMARTCAM1-PRZ, so I connected my computer to the camera through Ethernet.

When I ran aditof-demo, I found that the fps is only 2:

So I am wondering if such delay is normal when running programs on host computer through Ethernet?

I have also tried to run aditof-demo on the camera's embedded platform, and the fps is 14 which is still far below 30 as the document claims.

I understand there are some operations in aditof-demo will decrease fps, but I am not sure if such fps is normal? If not, then is there any way to speed up the frame rate?

Thank you!



.
[edited by: r09921135 at 4:27 PM (GMT -4) on 14 Aug 2022]
  • Hi!
    The fps that you mention is not supposed to be that low in optimal circumstances. Could you please enter the build directory of the camera and post here the flag list from the build folder of the SDK. (in aditof_sdk/build run: cmake -LA)?

    Robert

  • Hi,

    Here is the flag list:

    -- Cache values
    CMAKE_AR:FILEPATH=/usr/bin/ar
    CMAKE_BUILD_TYPE:STRING=
    CMAKE_COLOR_MAKEFILE:BOOL=ON
    CMAKE_CXX_COMPILER:FILEPATH=/usr/bin/c++
    CMAKE_CXX_COMPILER_AR:FILEPATH=/usr/bin/gcc-ar-7
    CMAKE_CXX_COMPILER_RANLIB:FILEPATH=/usr/bin/gcc-ranlib-7
    CMAKE_CXX_FLAGS:STRING=
    CMAKE_CXX_FLAGS_DEBUG:STRING=-g
    CMAKE_CXX_FLAGS_MINSIZEREL:STRING=-Os -DNDEBUG
    CMAKE_CXX_FLAGS_RELEASE:STRING=-O3 -DNDEBUG
    CMAKE_CXX_FLAGS_RELWITHDEBINFO:STRING=-O2 -g -DNDEBUG
    CMAKE_C_COMPILER:FILEPATH=/usr/bin/cc
    CMAKE_C_COMPILER_AR:FILEPATH=/usr/bin/gcc-ar-7
    CMAKE_C_COMPILER_RANLIB:FILEPATH=/usr/bin/gcc-ranlib-7
    CMAKE_C_FLAGS:STRING=
    CMAKE_C_FLAGS_DEBUG:STRING=-g
    CMAKE_C_FLAGS_MINSIZEREL:STRING=-Os -DNDEBUG
    CMAKE_C_FLAGS_RELEASE:STRING=-O3 -DNDEBUG
    CMAKE_C_FLAGS_RELWITHDEBINFO:STRING=-O2 -g -DNDEBUG
    CMAKE_EXE_LINKER_FLAGS:STRING=
    CMAKE_EXE_LINKER_FLAGS_DEBUG:STRING=
    CMAKE_EXE_LINKER_FLAGS_MINSIZEREL:STRING=
    CMAKE_EXE_LINKER_FLAGS_RELEASE:STRING=
    CMAKE_EXE_LINKER_FLAGS_RELWITHDEBINFO:STRING=
    CMAKE_EXPORT_COMPILE_COMMANDS:BOOL=OFF
    CMAKE_INSTALL_BINDIR:PATH=bin
    CMAKE_INSTALL_DATADIR:PATH=
    CMAKE_INSTALL_DATAROOTDIR:PATH=share
    CMAKE_INSTALL_DOCDIR:PATH=
    CMAKE_INSTALL_INCLUDEDIR:PATH=include
    CMAKE_INSTALL_INFODIR:PATH=
    CMAKE_INSTALL_LIBDIR:PATH=lib
    CMAKE_INSTALL_LIBEXECDIR:PATH=libexec
    CMAKE_INSTALL_LOCALEDIR:PATH=
    CMAKE_INSTALL_LOCALSTATEDIR:PATH=var
    CMAKE_INSTALL_MANDIR:PATH=
    CMAKE_INSTALL_OLDINCLUDEDIR:PATH=/usr/include
    CMAKE_INSTALL_PREFIX:PATH=/usr/local
    CMAKE_INSTALL_RUNSTATEDIR:PATH=
    CMAKE_INSTALL_SBINDIR:PATH=sbin
    CMAKE_INSTALL_SHAREDSTATEDIR:PATH=com
    CMAKE_INSTALL_SYSCONFDIR:PATH=etc
    CMAKE_LINKER:FILEPATH=/usr/bin/ld
    CMAKE_MAKE_PROGRAM:FILEPATH=/usr/bin/make
    CMAKE_MODULE_LINKER_FLAGS:STRING=
    CMAKE_MODULE_LINKER_FLAGS_DEBUG:STRING=
    CMAKE_MODULE_LINKER_FLAGS_MINSIZEREL:STRING=
    CMAKE_MODULE_LINKER_FLAGS_RELEASE:STRING=
    CMAKE_MODULE_LINKER_FLAGS_RELWITHDEBINFO:STRING=
    CMAKE_NM:FILEPATH=/usr/bin/nm
    CMAKE_OBJCOPY:FILEPATH=/usr/bin/objcopy
    CMAKE_OBJDUMP:FILEPATH=/usr/bin/objdump
    CMAKE_RANLIB:FILEPATH=/usr/bin/ranlib
    CMAKE_SHARED_LINKER_FLAGS:STRING=
    CMAKE_SHARED_LINKER_FLAGS_DEBUG:STRING=
    CMAKE_SHARED_LINKER_FLAGS_MINSIZEREL:STRING=
    CMAKE_SHARED_LINKER_FLAGS_RELEASE:STRING=
    CMAKE_SHARED_LINKER_FLAGS_RELWITHDEBINFO:STRING=
    CMAKE_SKIP_INSTALL_RPATH:BOOL=NO
    CMAKE_SKIP_RPATH:BOOL=NO
    CMAKE_STATIC_LINKER_FLAGS:STRING=
    CMAKE_STATIC_LINKER_FLAGS_DEBUG:STRING=
    CMAKE_STATIC_LINKER_FLAGS_MINSIZEREL:STRING=
    CMAKE_STATIC_LINKER_FLAGS_RELEASE:STRING=
    CMAKE_STATIC_LINKER_FLAGS_RELWITHDEBINFO:STRING=
    CMAKE_STRIP:FILEPATH=/usr/bin/strip
    CMAKE_VERBOSE_MAKEFILE:BOOL=FALSE
    GIT_EXECUTABLE:FILEPATH=/usr/bin/git
    IGNORE_TARGET_VERSION:BOOL=OFF
    Libwebsockets_DIR:PATH=/opt/websockets/lib/cmake/libwebsockets
    OpenCV_DIR:PATH=/usr/local/lib/cmake/opencv4
    PTHREAD_LIBRARIES:FILEPATH=/usr/lib/aarch64-linux-gnu/libpthread.so
    Protobuf_INCLUDE_DIR:PATH=/opt/protobuf/include
    Protobuf_LIBRARY_DEBUG:FILEPATH=/opt/protobuf/lib/libprotobuf.a
    Protobuf_LIBRARY_RELEASE:FILEPATH=/opt/protobuf/lib/libprotobuf.a
    Protobuf_LITE_LIBRARY_DEBUG:FILEPATH=/opt/protobuf/lib/libprotobuf-lite.a
    Protobuf_LITE_LIBRARY_RELEASE:FILEPATH=/opt/protobuf/lib/libprotobuf-lite.a
    Protobuf_PROTOC_EXECUTABLE:FILEPATH=/opt/protobuf/bin/protoc
    Protobuf_PROTOC_LIBRARY_DEBUG:FILEPATH=/opt/protobuf/lib/libprotoc.a
    Protobuf_PROTOC_LIBRARY_RELEASE:FILEPATH=/opt/protobuf/lib/libprotoc.a
    RUN_LDCONFIG:BOOL=ON
    UDEV_RULES_PATH:STRING=/etc/udev/rules.d
    USE_3D_SMART:BOOL=1
    USE_FXTOF1:BOOL=OFF
    WITH_DOC:BOOL=OFF
    WITH_EXAMPLES:BOOL=ON
    WITH_IMGUI:BOOL=OFF
    WITH_MATLAB:BOOL=OFF
    WITH_NETWORK:BOOL=ON
    WITH_OPEN3D:BOOL=OFF
    WITH_OPENCV:BOOL=OFF
    WITH_PYTHON:BOOL=OFF
    WITH_ROS:BOOL=OFF
    WITH_TOOLS:BOOL=OFF
    glog_DIR:PATH=/opt/glog/lib/cmake/glog

    Thank you!

  • Hi! The cmakelist seems okay to me. In case the problem still exist, could you please delete the build directory of the SDK and rebuild it with the latest main banch with the following commands:

    cmake -DUSE_3D_SMART=1 -DWITH_EXAMPLES=off -DCMAKE_PREFIX_PATH="/opt/glog;/opt/protobuf;/opt/websockets" ..