I built a lane detection model in tensorflow. And I have a function named “run” which encompasses model.predict, cv2.resize, … as shown below:
In that way, I just need to call run(image) to get the result.
Now I need to run the model in real-time. That is, I will use my webcam pointed at a road and it will classify the lane. How can I do this with openCV?
Thanks for helping!