In amsterdam there are traffic light systems that prioritize their green phases and rhythms according to the number of traffic participants. For example, streetcars have priority 1, then buses, bicycles and finally cars. This works via weight or pressure sensors. No camera or app.