dcMotor_speed_CV working of the code is explain in the video https://www.youtube.com/watch?v=wFm4gkMq5ek&t=2s