welcome.
always work with the documentation, and wherever it leads (wikipedia in this instance):
thresholds 1 and 2 are for hysteresis.
a line is only started when a gradient is above the higher threshold. it is continued as long as gradients are above the lower threshold (even if they’re below the higher threshold).
docs don’t say which is which.