Omnivision Module V3: Difference between revisions
Jump to navigation
Jump to search
No edit summary |
|||
Line 6: | Line 6: | ||
=Image grabbing= | =Image grabbing= | ||
You can use <code>raspistill</code> to grab an image with the command: <code>raspistill -t 0 -k</code>. | You can use <code>raspistill</code> to grab an image with the command: <code>raspistill -t 0 -k -o image.jpg</code>.<br/> | ||
This command open a live preview of the camera. When you press <code>ENTER</code>, an image is grabbed. To terminate press <code>x + ENTER</code>.<br/> | |||
You can find detailed documentation about <code>raspistill</code> in the following link [https://www.raspberrypi.org/documentation/raspbian/applications/camera.md https://www.raspberrypi.org/documentation/raspbian/applications/camera.md]. | You can find detailed documentation about <code>raspistill</code> in the following link [https://www.raspberrypi.org/documentation/raspbian/applications/camera.md https://www.raspberrypi.org/documentation/raspbian/applications/camera.md]. | ||
Revision as of 08:44, 14 May 2019
1 Overview
Features:
- 5Mpixel color camera looking 360° all around the robot
- compatible with Pi-puck and interfaced with the Raspberry Pi Zero W
- parabolic mirror for uniform pixel distribution
2 Image grabbing
You can use raspistill
to grab an image with the command: raspistill -t 0 -k -o image.jpg
.
This command open a live preview of the camera. When you press ENTER
, an image is grabbed. To terminate press x + ENTER
.
You can find detailed documentation about raspistill
in the following link https://www.raspberrypi.org/documentation/raspbian/applications/camera.md.
3 Image unwrapping
4 OpenCV
4.1 Blob tracking
A simple demo was developed to track an orange blob. It is thought to be run with the omnivision extension. The robot rotate in place towards the target when it finds one.
The code can be downloaded from the following repo: git clone https://github.com/e-puck2/e-puck2_pi_blob-tracking.git