tier4 / CalibrationTools

sensor calibration tools for autonomous driving and robotics
GNU General Public License v3.0
119 stars 43 forks source link

[Intrinsic camera calibration] Extremely high delay of up to 4s on the camera image screen of the calibration software #122

Open zymouse opened 1 year ago

zymouse commented 1 year ago

Please make sure of the following things

Version

decf391

Describe the bug

image is a great tool, and in combination with apriltag corner detection it also verifies that the internal calibration is great.

During use, it was found that the latency of the camera image was found to be very high.

ultimate

Thank you very much, these calibration tools are great and do a much better job of calibrating the sensors!

knzo25 commented 1 year ago

Hi, thanks for using our tools.

The delay is probably due to the detector being too slow for your image size. What are the dimensions of your image?

Each detector additionally has parameters, which if tuned, will make the latency lower. The ROS tool among others will resize your image, detect in the smaller image, re-scale, and then refine the detections. I don't really trust that, so I did not implement that on purpose.

@aohsato The latency when we calibrate C2 cameras is also almost unbearable. Do you have a preference on how to proceed? My current ideas are as follows:

aohsato commented 1 year ago

@knzo25 Thanks, I think that's a good point!

Your three ideas are great, but it might be good to use two different image sizes for some purposes.

(keyframe: collected frames actually used for calibration)

What do you think? Is the code change too big?

knzo25 commented 1 year ago

Ok, I will do that. The changes are not to big, but also not that small. Let's discuss the priority internally.

@zymouse Please for a while until we implement the changes :pray:

zymouse commented 10 months ago

@knzo25 k Lower the frequency of image_raw, this improved when I lowered it to 10hz

knzo25 commented 10 months ago

@zymouse Hi, thanks for the comment. We also replicated the issue last week. Usually we run everything at 10hz, and it runs smoothly for out 1920x1080 camera (it runs slow for higher res cameras), but when I ran it free run (~30Hz) it got laggy.

Since we have the hardware to replicate and check the fix, we should be able to address it soon-ish (by the end of the month, together with the next release)

ParashRahman commented 7 months ago

I'm experiencing slowness. What is the size parameter units?

knzo25 commented 7 months ago

Could you try this branch? https://github.com/tier4/CalibrationTools/pull/152