I need to predict the gap in railway switch using python .
CodePudding user response:
This is a way to general question.
The most important thing you need to know is the scale of the image.
Scale could be like, 1mm for 1 pixel.
The second step is to detect two rails, Here you can use a segmentation model and train to identify tracks.
Then simple find the shortest distance between those two identifies rails.
This is not a simple task, you need to brain strom around the above ideas.