PL-SLAM icon indicating copy to clipboard operation
PL-SLAM copied to clipboard

运行开始出现段错误

Open xyflzyn opened this issue 1 year ago • 5 comments

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

xyflzyn avatar Aug 08 '23 05:08 xyflzyn

运行指令 ./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 avatar Aug 08 '23 05:08 xyflzyn

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:

  • fx: 458.654
  • fy: 457.296
  • cx: 367.215
  • cy: 248.375
  • k1: -0.283408
  • k2: 0.0739591
  • p1: 0.00019359
  • p2: 1.76187e-05
  • fps: 20
  • color order: RGB (ignored if grayscale)

ORB Extractor Parameters:

  • Number of Features: 1000
  • Scale Levels: 8
  • Scale Factor: 1.2
  • Initial Fast Threshold: 20
  • Minimum Fast Threshold: 7

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

已放弃 (核心已转储)

xyflzyn avatar Aug 08 '23 05:08 xyflzyn

+1

wz8530 avatar Aug 21 '23 09:08 wz8530

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

wz8530 avatar Aug 22 '23 01:08 wz8530

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

xyflzyn avatar Aug 22 '23 01:08 xyflzyn