Posted by : JeA Eletrônica quarta-feira, julho 31, 2013
Hello Friends, the purpouse of this simple post is show how to use a minoru 3d webcam on raspberry pi board.
This tutorial assume that you have a opencv installed on your board.
The script below are a example of usage:
This first two lines are the libraries of functions that was used.
Now we set the device that we going to use for capture image in the first line, note that the number in the argument field represent the device os /dev directory, for consult this run the folow command:
and the response are one thing like this:
The number showed, in this case '0', represent the number of device that can be used in this script. Returning to explanation, the others two lines are setting the widht and height parameters of the image captured, in particulary the minoru webcam only shows the two images with this resolution.
This command read the image, and attribute the result on "visao" var.
Now we split the image, generating two images, left (first line) and right(second line).
Finally the images are shown.
The next post we apply the concept of disparity to study the distance of objects.