HarborC / PL-SLAM

PL-SLAM: The method is implemented in《PL-SLAM:Real-time Monocular Visual SLAM with Points and Lines》
Other
220 stars 59 forks source link

运行开始出现段错误 #15

Open xyflzyn opened 11 months ago

xyflzyn commented 11 months ago

![Uploading image.png…]() 使用的是和ORB-SLAM2一样的指令,运行开始就报错了,请求大佬指点

xyflzyn commented 11 months ago

运行指令 ./Examples/Monocular/mono_euroc ./Vocabulary/ORBvoc.bin ./Examples/Monocular/EuRoC.yaml /home/slam/dataset/V1_01_easy/mav0/cam0/data /home/slam/dataset/V1_01_easy/V101.txt

xyflzyn commented 11 months ago

ORB-SLAM2 Copyright (C) 2014-2016 Raul Mur-Artal, University of Zaragoza. This program comes with ABSOLUTELY NO WARRANTY; This is free software, and you are welcome to redistribute it under certain conditions. See LICENSE.txt.

Input sensor was set to: Monocular

Loading ORB Vocabulary. This could take a while... Vocabulary loaded!

Camera Parameters:

ORB Extractor Parameters:


Start processing sequence ... Images in the sequence: 2912

OpenCV(3.4.1) Error: Bad argument (Mask error while detecting lines: please check its dimensions and that data type is CV_8UC1) in detect, file /home/slam/opencv-3.4.1/modules/line_descriptor/src/LSDDetector.cpp, line 107 terminate called after throwing an instance of 'cv::Exception' what(): OpenCV(3.4.1) /home/slam/opencv-3.4.1/modules/line_descriptor/src/LSDDetector.cpp:107: error: (-5) Mask error while detecting lines: please check its dimensions and that data type is CV_8UC1 in function detect

已放弃 (核心已转储)

wz8530 commented 11 months ago

+1

wz8530 commented 11 months ago

Tracking.cc文件内读取的是./mask/mask.png图片,大小为640x480,EuRoC数据集图片大小是752x480的,所以报这个错误。 解决办法:自己制作一个752x480的euroc_mask.png,然后将Tracking.cc文件读取mask的路径改下,就可以正常运行。

xyflzyn commented 11 months ago

@wz8530 感谢大佬的指点,祝大佬科研和事业一路高歌