Research of the algorithm calculating the length of bridge crack based on stereo vision