Elcano bike requires an eye to see the world surrounding it in order to make appropriate decisions. Elcano Vision System would do such tasks as detecting surrounding objects and behaving responsively. The system is built with a help from computer vision open source OpenCV and a variety of programming languages (currently Python). It employs Raspberry Pi (currently version 3) as the controller to process inputs and generate essential outputs. In further development of Vision system, machine learning achievements can solve a lot of problems and extend its ability unimaginably.

Where to Start and Experience

1.Setup OpenCV on Raspberry Pi - Install OS for Raspberry Pi:

This link will explain why NOOBs This link will help download NOOBs

Note: Raspberry Pi stores OS on SD card , I suggest to use 32GB cards to have no worries about memory.

- Install OpenCV:

Note: Notice on Version issues while setting up

2.Setup Picam Camera -Setting Up Camera & Basic Functions :

Note: Straight forward

-Formal Doc for Pi Cam:

Note: Ctrl-D doesn’t work on my Pi

-Setup Pi Cam with OpenCV & Basic Functions:

Note: Straightforward

4. Useful links on Detecting Objects -Detect Motion:

-Detect A Ball:

-OpenCV Python commands on finding contours and enclosing objects:

-OpenCV C++ commands on finding contours and enclosing objects:

Note : - For some reason my Pi does not have connection to bcm2835-v4l2 . So I need to connect to it "sudo modprobe bcm2835-v4l2" . Without this command, VideoCapture() will not run, and no video is captured. Further information on v4l2 :

3.Further Pi Usage

-Reset Pi : connect 2 holes next to Pi Cam port in the Pi

Cone Detection Method

The color of the cone is orange. Elcano Cone Detection currently is based on detecting regions of orange color on the images. Our algorithm automatically encloses those regions in a rectangle, and the height of rectangle (the vertical side) will be used to calculate the range.

For more information, you can go to Camera Sensor article by Professor Folsom on Elcano Wiki .

Useful References

1. Package Management ( virtuallenv, conda ):

-- HuyNguyen - 2017-06-15

Topic revision: r3 - 2017-06-30 - HuyNguyen
This site is powered by the TWiki collaboration platform Powered by PerlCopyright © 2008-2017 by the contributing authors. All material on this collaboration platform is the property of the contributing authors.
Ideas, requests, problems regarding TWiki? Send feedback