face_detect example not working

Viewed 65

重现步骤
cd face_detect
./run_cv.sh

期待结果和实际结果

软硬件版本信息
Software: CanMV-K230_LCKFB_linux_v0.6.4_nncase_v2.9.0.img.gz
Hardware: Lushanpai K230-CanMV Development Board

错误日志
18:57:23.629 -> [root@canaan ~ ]#ls
18:57:25.196 -> camera_rtsp_demo face_detect hello
18:57:25.196 -> [root@canaan ~ ]#
18:57:25.196 -> [root@canaan ~ ]#cd face_detect
18:57:36.872 -> [root@canaan ~/face_detect ]#
18:57:36.920 -> [root@canaan ~/face_detect ]#ls
18:57:45.285 -> ai2d_input.bin face_detection_320.kmodel
18:57:45.285 -> face_detect.elf run_cv.sh
18:57:45.285 -> [root@canaan ~/face_detect ]#
18:57:45.285 -> [root@canaan ~/face_detect ]#./run_cv.sh
18:57:55.750 -> ./face_detect.elf: error while loading shared libraries: libopencv_highgui.so.410: cannot open shared object file: No such file or directory
18:57:55.797 -> [root@canaan ~/face_detect ]#
18:57:55.797 -> [root@canaan ~/face_detect ]#

尝试解决过程

补充材料

2 Answers
rm -rf output;make CONF=k230_canmv_lckfb_defconfig; 

The test on my side is okay. Please recompile and try again.

rm -rf output;make CONF=k230_canmv_lckfb_defconfig; 

I'm getting error while compiling the SDK.

mvx_player Configuring
mvx_player Building
GIT_DIR=. PATH="/home/deep/K230/k230_linux_sdk/output/k230_canmv_lckfb_defconfig/host/bin:/home/deep/K230/k230_linux_sdk/output/k230_canmv_lckfb_defconfig/host/sbin:/opt/ros/humble/bin:/home/deep/.local/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/snap/bin:/snap/bin" /usr/bin/make -j5 -C /home/deep/K230/k230_linux_sdk/output/k230_canmv_lckfb_defconfig/build/mvx_player
/opt/toolchain/Xuantie-900-gcc-linux-6.6.0-glibc-x86_64-V2.10.1/bin/riscv64-unknown-linux-gnu-g++ -mcpu=c908v -O2 mvx_encoder.cpp mvx_player.cpp md5.c mvx_argparse.c -lstdc++ -Wl,-rpath . -lpthread -o mvx_encoder
make[3]: /opt/toolchain/Xuantie-900-gcc-linux-6.6.0-glibc-x86_64-V2.10.1/bin/riscv64-unknown-linux-gnu-g++: No such file or directory
make[3]: *** [Makefile:21: mvx_encoder] Error 127
make[2]: *** [package/pkg-generic.mk:273: /home/deep/K230/k230_linux_sdk/output/k230_canmv_lckfb_defconfig/build/mvx_player/.stamp_built] Error 2
make[1]: *** [Makefile:23: _all] Error 2
make[1]: Leaving directory '/home/deep/K230/k230_linux_sdk/output/k230_canmv_lckfb_defconfig'
make: *** [Makefile:22: buildroot] Error 2

@wjx Any help>

Please update the code. The latest code has been modified.

https://github.com/kendryte/k230_linux_sdk/commit/860af256dfb64bad27cf21b9fb2d6166697