Obstacle Avoidance At Night

In this blog, we demonstrate how to run our obstacle detection algorithm using raspberry pi and a Sphero RVR rover. Obstacle detection is involves classifying meaningful pixels as obstacles and identifying traversable paths. Sample images were obtained from Raspberry Pi camera. The setup is shown below.


We run a python code to obtain the output, the API source code can be found below.

API source code from GitHub

You’ll need to have a subscription key to use this, you can check out the intro blog on how to get your free subscription key.

We input the sample image as a base64 image. The output will give back a base64 obstacle map image if the processing is successful. A sample input image and the response is shown below.

Original Image Obstacle Image

Original Image Obstacle Image

The output shows connected obstacles, the black region is where no obstacles were detected and the pixels with colour represent obstacles. The colors represent the connected obstacles. A single obstacle can be represented with multiple colors. In our next blog, we show how to use the above obstacle map to move while avoiding obstacles.


Check other blogs!

Find more blogs along with other interesting videos and technical papers below!

Contact Us

Have questions? Drop us a message and we will get back to you soon!

Valid name is required.
Please enter a valid email address.
Subject:
Message subject is required.
Please enter your message