Relative Content

Tag Archive for pythonopencvobject-detectionedge-detectionobject-tracking

Is it possible to measure the distance between moving edges in a live video feed?

I’m working on a school project and basically, I have a vehicle moving between 2 walls with a camera at the top, looking at the truck from an aerial view. I have a motor controlling the truck externally(don’t worry about this) but I need to measure how close the truck gets to the walls on either sides which I’ll feed into my existing code that makes the truck move. How could I go about this?