参卡昇腾社区提供的案例(https://gitee.com/ascend/ascend_community_projects/tree/master/VideoStitch)进行视频拼接。
在板子上完成了OpenCV4.5.2的编译,参考上述链接中的流程执行build.sh可以生成可执行文件main,但是在运行拼接脚本run.sh时会提示下面错误,
(base) root@davinci-mini:/home/HwHiAiUser/HUAWEI/Ascend-example/ascend_community_projects-master/VideoStitch# bash run.sh
./00.mp4读取成功!
视频宽度: 1920
视频高度: 1080
视频总帧数: 150
帧率: 30
./01.mp4读取成功!
视频宽度: 1920
视频高度: 1080
视频总帧数: 150
帧率: 30
./02.mp4读取成功!
视频宽度: 1920
视频高度: 1080
视频总帧数: 150
帧率: 30
./03.mp4读取成功!
视频宽度: 1920
视频高度: 1080
视频总帧数: 150
帧率: 30
terminate called after throwing an instance of 'cv::Exception'
what(): OpenCV(4.5.2) /opt/opencv-4.5.2/modules/calib3d/src/fundam.cpp:378: error: (-5:Bad argument) The input arrays should be 2D or 3D point sets in function 'findHomography'
test.sh: line 31: 82233 Aborted (core dumped) ./main $FRAMES $VIDEO_GLAG $MINHESSIAN $VIDEO0 $VIDEO1 $VIDEO2 $VIDEO3
Stitch finish!
参卡昇腾社区提供的案例(https://gitee.com/ascend/ascend_community_projects/tree/master/VideoStitch)进行视频拼接。
在板子上完成了OpenCV4.5.2的编译,参考上述链接中的流程执行build.sh可以生成可执行文件main,但是在运行拼接脚本run.sh时会提示下面错误,
(base) root@davinci-mini:/home/HwHiAiUser/HUAWEI/Ascend-example/ascend_community_projects-master/VideoStitch# bash run.sh
./00.mp4读取成功!
视频宽度: 1920
视频高度: 1080
视频总帧数: 150
帧率: 30
./01.mp4读取成功!
视频宽度: 1920
视频高度: 1080
视频总帧数: 150
帧率: 30
./02.mp4读取成功!
视频宽度: 1920
视频高度: 1080
视频总帧数: 150
帧率: 30
./03.mp4读取成功!
视频宽度: 1920
视频高度: 1080
视频总帧数: 150
帧率: 30
terminate called after throwing an instance of 'cv::Exception'
what(): OpenCV(4.5.2) /opt/opencv-4.5.2/modules/calib3d/src/fundam.cpp:378: error: (-5:Bad argument) The input arrays should be 2D or 3D point sets in function 'findHomography'
test.sh: line 31: 82233 Aborted (core dumped) ./main $FRAMES $VIDEO_GLAG $MINHESSIAN $VIDEO0 $VIDEO1 $VIDEO2 $VIDEO3
Stitch finish!