Under the sub-system we uses OpenCv library.
Opencv is a library for computer vision. It allows machines learning and image processing.
Opencv is allows in 3 different languages Python , Java and C++.
This is a code consist of all the items that we are going to pick up. The item is "PotatoChip, Cup noodle, Kitkat and Blue Ball.
How we are going the differentiate is by the colour and the shape of it.
The next few photos are shown below is the code for the item.
Vision gives us where's the location of the item. let's take the photo on the left for an example. the USB Camera is the original view of the camera. Since we know that the item will be placed in a yellow box we zoom in just nicely in the yellow box so that anything outside the yellow box will not affect the vision.
These are the steps how we do it:
Zoom into the yellow box
Identify the item in terms of their colour and contour( perimeter )
calculate the area of the item
Get the center of the item
Get X and Y coordination
Find the height difference from the camera