The code has been worked on in Visual Studio in serial communication with Arduino
Arduino-driven Autonomous robot detecting obstacles using OpenCV