Project

General

Profile

Object detection deployed on Raspberry Pi

Deployed software to raspbery Pi and checked how it works "in the field". There was no problem with object detection. Even camera is more sensitive to colour differences in sunlight than it is in artificial light.
Added by Pawel Zaborny about 1 month ago

This is how our first task looks like. We want the robot to detect one of this two objects and then give us a feedback about its position in the console.

As we can see that random HSV range setup doesn't give us any meaningful results. Robot convert camera view to binary representation and shows it in the right window. It's called mask and white areas represents our target. And what we can see now are our objects with tons of noise.

After adjusting saturation and value parameters we remove noises caused by reflection of sunlight captured by the camera. In the result, it gives us a clear picture of our objects. What we can see on the original camera view that program added green pointers around orange ball it's because program tries to find the biggest object from white areas in the right window and then mark them on the left window. This approach is called finding bounding boxes and was chosen due to its low complexity what doesn't cause a decrease in FPS.

At this point we still don't have defined the exact color that we want to follow. Let's say that we want to follow the yellow ball. All we need to do is to slightly adjust last parameter "hue". And that's the result. We have marked yellow ball and information about it's bounding box position is printed 30 times per second in console.

IMG_2102.JPG (144 KB) IMG_2102.JPG Pawel Zaborny, 2018-03-22 02:11 PM
first.png (681 KB) first.png Pawel Zaborny, 2018-03-22 02:22 PM
second.png (663 KB) second.png Pawel Zaborny, 2018-03-22 02:29 PM
4.png (661 KB) 4.png Pawel Zaborny, 2018-03-22 02:55 PM

Comments