Note: Please keep in mind that the Angstrom version is only
optimised for armv5te and does not make advantage of the VFP at
all.
Note 2: OpenCV is not available on BSP V2.x, but one can use
OpenEmbedded to compile it including proper Floating Point unit
support (VFPv3 or NEON)
And optional python support.
root@colibri_t20:~# export DISPLAY=:0
root@colibri_t20:~# delaunay
Delaunay triangulation will be build now interactively.
To stop the process, press any key
opkg files opencv-samples
OpenCV
Webcam
For actual image acquisition one can hook up a USB video class
UVC compatible webcam device (see
[[Linux_(Colibri_T20)_-_Know_How#Webcam_2]]) and proceed as
follows:
root@colibri_t20:~# export DISPLAY=:0
root@colibri_t20:~# bgfg_codebook
Capture from camera
Learn background and find foreground using simple average and average difference
learning method:
USAGE:
bgfg_codebook [--nframes=300] [movie filename, else from camera]
***Keep the focus on the video windows, NOT the consol***
INTERACTIVE PARAMETERS:
ESC,q,Q - quit the program
h - print this help
p - pause toggle
s - single step
r - run mode (single step off)
=== AVG PARAMS ===
- - bump high threshold UP by 0.25
= - bump high threshold DOWN by 0.25
[ - bump low threshold UP by 0.25
] - bump low threshold DOWN by 0.25
=== CODEBOOK PARAMS ===
y,u,v- only adjust channel 0(y) or 1(u) or 2(v) respectively
a - adjust all 3 channels at once
b - adjust both 2 and 3 at once
i,o - bump upper threshold up,down by 1
k,l - bump lower threshold up,down by 1
SPACE - reset the model
root@colibri_t20:~# camshiftdemo
Hot keys:
ESC - quit the program
c - stop the tracking
b - switch to/from backprojection view
h - show/hide object histogram
To initialize tracking, select the object with mouse
^C
root@colibri_t20:~# bgfg_segm
2. 986.3
3. 1027.9
4. 983.7
5. 990.2
^C
root@colibri_t20:~# wget -c http://sourceforge.net/projects/opencvlibrary/files/
opencv-unix/2.3.1/OpenCV-2.3.1.tar.bz2/download -O OpenCV-2.3.1.tar.bz2
Connecting to sourceforge.net (216.34.181.60:80)
Connecting to downloads.sourceforge.net (216.34.181.59:80)
Connecting to heanet.dl.sourceforge.net (193.1.193.66:80)
OpenCV-2.3.1.tar.bz2 100% |*******************************| 31903k 00:00:00 ETA
root@colibri_t20:~# tar xjvf OpenCV-2.3.1.tar.bz2 OpenCV-2.3.1/./data/haarcascad
es/haarcascade_frontalface_alt.xml OpenCV-2.3.1/./data/haarcascades/haarcascade_
eye_tree_eyeglasses.xml
OpenCV-2.3.1/./data/haarcascades/haarcascade_eye_tree_eyeglasses.xml
OpenCV-2.3.1/./data/haarcascades/haarcascade_frontalface_alt.xml
root@colibri_t20:~# facedetect --cascade=OpenCV-2.3.1/data/haarcascades/haarcascade_frontalface_alt.xml --nested-cascade=OpenCV-2.3.1/data/haarcascades/haarcascade_eye_tree_eyeglasses.xml --scale=5 0
detection time = 206.155 ms
detection time = 205.224 ms
detection time = 199.44 ms
detection time = 199.13 ms
detection time = 200.793 ms
...
root@colibri_t20:~# laplace
^C
root@colibri_t20:~# lkdemo
Welcome to lkdemo, using OpenCV version 2.1.1 (2.1.1)
Hot keys:
ESC - quit the program
r - auto-initialize tracking
c - delete all the points
n - switch the "night" mode on/off
To add/remove a feature point click it
^C
root@colibri_t20:~# motempl
^C
root@colibri_t20:~# polar_transforms --help
Could not initialize capturing...
Usage: polar_transforms , or
polar_transforms
root@colibri_t20:~# polar_transforms 0
If you happen to get the following message on one of the above
commands just try again and it usually works:
Could not initialize capturing...
You'll need Skype
CreditFree via
Skype