laxnpander / OpenREALM

OpenREALM is a pipeline for real-time aerial mapping utilizing visual SLAM and 3D reconstruction frameworks.
GNU Lesser General Public License v2.1
462 stars 117 forks source link

could you please help me check if there is any problem with my data set? #23

Closed scially closed 4 years ago

scially commented 4 years ago

Hello, could you please help me check if there is any problem with my data set? Except the camera parameters and orbslam params, all the other parameters are default, but the orthophoto results are not good, thanks~

Datas Share URL:
https://drive.google.com/file/d/18cfaPikdErhAKo0jISpyOH6OYdfrY941/view?usp=sharing

the camera config is

type: pinhole
# Frames per second
fps: 5
# Image size
width: 1368
height: 912
# Principal point
cx: 689.97
cy: 456.58
# Focal length
fx: 2010.848
fy: 1340.565
# Distortion
k1: -0.266511765417987
k2: 0.10617945434786
p1: 0.000195369051756418
p2: 0.00143753730138743
k3: -0.0285408159411354

the orb_slam2_settings is

type: ORB_SLAM2

resizing: 1.0

nrof_features: 2500

scale_factor: 1.2

n_pyr_levels: 8

ini_th_FAST: 15
min_th_FAST: 3

# Path to the vocabulary file for place recognition
path_vocabulary: /orb_slam2/ORBvoc.bin

my ortho result:

image

laxnpander commented 4 years ago

@scially Hey hey, your dataset looks quite okay. Some things might need improvement:

Unfortunately there is no magic algorithm to fix these issues with your dataset. My framework is at best as good as the orb slam, and it has a hard time with your data. Fixing the heading of the drone might already do the job.

Let me know if it helped and best regards, Alex

scially commented 4 years ago

@laxnpander Thank you~ I followed your suggestion, replaced a new UAV, and re-photographed an area, DJI FC6310S camera, the first route mosaicing perfect, but when it turned to the second route, although it was still Tracking, the mosaicing was not good, is my lateral overlap too high?

New Datas Share URL: https://drive.google.com/file/d/1xahiNa0fA_pKFx8Dr47Oltq20gaBAh_2/view?usp=sharing

the camera config is

type: pinhole
# Frames per second
fps: 10.0
# Image size
width: 1368
height: 912
# Principal point
cx: 684.0
cy: 456.0
# Focal length
fx: 970.8387
fy: 647.2258
# Distortion
k1: 0.000001
k2: 0
p1: 0.000001
p2: 0.000001
k3: 0

图片 图片

ps: When realm go to DJI_0433.JPG, there will beNo Tracking suddenly, can you help me check if it is a picture problem? 图片

laxnpander commented 4 years ago

@scially: Your lateral overlap is indeed pretty high, but that is not a problem for OpenREALM. My guess is that your GPS data in the images is not accurate. Either that or the altitude is slightly wrong. It initializes the georeference in the first leg and then tries to correct it afterwards because it detects a mismatch between GPS/Altitude and visual position. That in consequence distorts the global map, because the georeference is changed.

Go to realm_ros/profiles/your_profile/pose_estimation/stage_settings.yaml and set the flag update_georef: 0. This will prevent the georeference from updating after it has been initialized once. Your map should look better. Let's do this first and then we will see about the other problem!

scially commented 4 years ago

@laxnpander thanks ~ yes, it's right about the gps data in the images, I did not use RTK for this flight, I plan to use RTK to fly once.

After the parameter update_georef: 0 setting, the effect does not change much 图片

And, after this position, it has been No Tracking always.... 图片

laxnpander commented 4 years ago

@scially: It looks a bit better when I run it: image

Though, some artifacts will probably remain even with different settings. I assume in this case the blending is not doing its best job. But that's as good as it gets at the moment. To achieve the same results as me, you may try the most recent build.

Note: The recent build moved to CMake only as build system. So please refer to the install instructions. Let me know if you encounter any problems.

As for your tracking problem: Doesn't happen to me, can you check if your computer is running out of memory? OpenREALM is quite resource hungry and this is something that happens typically.

laxnpander commented 4 years ago

@scially Hey, how is it going? Are you happy with your results now or did you have problems with the installation?

scially commented 4 years ago

@laxnpander , Hey,thanks .... I plan to re-photo an area with a drone with RKT, and then clone a copy of the latest project to try it out, and will notify you in time when the results are available,

Thank you very much, the result is much better than before 图片

laxnpander commented 4 years ago

I will close this for now. Feel free to reopen or create a new issue if you have more problems / questions.

scially commented 4 years ago

thanks a lot... the OpenREALM is very great..It is worth learning