I have a rail line right under my apartment, so I built a small computer vision app running on a Rasperry Pi which records each train passing, and tries to stitch an image of it.
It has a frontend at https://trains.jo-m.ch/. Edit: it's currently raining and the rain drops are disturbing the images a bit.
Sounds interesting id love to know how you do it. Is the speed calculated based on the noise of the wheels going over a track join? Then you can work out the length/speed based on the time it takes etc. Are the train types/images random or calculated some how?
There is a parameter which tells the program how many pixels there are per meter. From this you can compute the length after stitching. Using framerate, you can compute the speed in the same way.
They're swiss trains, I guess we have enough wealth to make sure that our trains are clean. The interior is also almost always clean, except early morning on weekends (drunk people).
From time to time I see a train with graffiti on it, but usually they remove such things very fast.
I wonder if there's open data or an open API for the schedule or location information. That way, you could include information on which train is which.
The camera is pointing at the car. The train is moving past the car. The images of the whole train are made by stitching together lots of photos, all containing the bit of the train in front of the car as it moves past it.
From what I can see, they're not actually duplicated, I would suggest taking a closer look at the windows. But I do agree that it's quite hard to see the difference.
The trains look very clean from the outside. I do wonder how loud is it, to live so near the tracks.
I also live right next to a train line in CH (that has exactly the same kind of rolling stock passing by as the ones captured by jo-m). These are modern commuter trains (no cargo and long distance trains), and are a lot less loud than you'd expect. A somewhat busy street nearby would be an order of magnitude more annoying.
It has a frontend at https://trains.jo-m.ch/.
Edit: it's currently raining and the rain drops are disturbing the images a bit.
By the way I have a quick expansion for most TLDs and for the Swiss .ch “cheese” sounds rather more apt and easier than the real one in my head :)
From time to time I see a train with graffiti on it, but usually they remove such things very fast.
Continue this thread — 3 replies
The trains look very clean from the outside. I do wonder how loud is it, to live so near the tracks.
I also live right next to a train line in CH (that has exactly the same kind of rolling stock passing by as the ones captured by jo-m). These are modern commuter trains (no cargo and long distance trains), and are a lot less loud than you'd expect. A somewhat busy street nearby would be an order of magnitude more annoying.
Continue this thread — 5 more replies