ethz-asl / kalibr

The Kalibr visual-inertial calibration toolbox
Other
4.21k stars 1.38k forks source link

Question about the Detection failed. #626

Closed hanseongbugi closed 6 months ago

hanseongbugi commented 1 year ago

I run kalib_calibrate_imu_camera with verbose option. It printed out the phrase detection failed as a result of execution. I made the bag file that I needed to run by myself through a mobile device. Looking at the results output by the verbose option, it was found that the image was blurred. I think this happened because it didn't detect the edge well even though it used a Gaussian filter. The video collection was conducted by referring to the YouTube video. Please let me know what kind of solution there is

goldbattle commented 1 year ago

You need to have good focus / sharpness to extract. Could you post a bad / picture of the problem? Additionally, you need to first perform camera calibration before IMU-camera, which will also require good quality images. Please provide more details.

hanseongbugi commented 1 year ago

sample.bag here is my bag file

goldbattle commented 1 year ago

This looks like a case of either using a rolling shutter camera and having high motion blur. It is able to extract on still frames, but has a hard time while moving. I recommend increasing the shutter speed. Screenshot from 2023-06-26 08-07-35

hanseongbugi commented 1 year ago

Currently my camera gets frames every 33ms, imu gets data for 10ms. Also, my mobile device, Samsung Note 5, has a limit of 33ms of camera shutter speed. Can you tell me if the value of 33ms is too fast or too slow to make the right result in kalibr?

goldbattle commented 10 months ago

33ms should be fine (it is 30hz) the problem I think is the visual rolling shutter you can see. If you are able to record at a higher framerate then this could go away due to the lower exposure time.