stair-step-detector icon indicating copy to clipboard operation
stair-step-detector copied to clipboard

Calibration and detection

Open hamedbagherii opened this issue 2 years ago • 1 comments

Hi,

I've tried building and running the code, specifically testing it with handmade stairs (using boxes). Unfortunately, it seems that it couldn't accurately detect the stair. I suspect this might be related to calibration issues. However, after reviewing the documentation, I couldn't find clear instructions on how to calibrate the camera. Do you have any suggestions to improve my testing, especially regarding the calibration process for detecting boxes accurately? Thanks

Screenshot from 2023-11-30 19-54-50

hamedbagherii avatar Dec 01 '23 04:12 hamedbagherii

Without calibration, the detector cannot detect anything. It is best to use three points made of reflector foil. Enter the position of your points in world coordinates in the calibration-triangle file, in the order top left - top right - bottom right (based on the view of the calibration window). calculate-triangle is a small utility for calculating world coordinates. Example:

triangle parameters
a = 2.242
b = 2.412
c = 1.539
y3 = 0.3
z = 0.004

I'll write a calibration guide sometime, maybe "between years". I'm currently up to my neck in work.

peter-nebe avatar Dec 02 '23 12:12 peter-nebe