ArToolkit
Un article de Centre Ressources du Labomedia.
Sommaire |
[modifier]
Installation Linux
- Télécharger le paquet http://sourceforge.net/projects/artoolkit/files/artoolkit/2.72.1/ARToolKit-2.72.1.tgz/download
- décompresser le paquet
- pour compiler (ubuntu hardy), ajouter les librairies (avec synaptic) :
- freeglut3-dev
- libglut3-dev
- libxmu-dev
- libxmu-headers
- libdv4-dev (uniquement pour Caméra DV)
- libv4l-dev
- dans le répertoire ARToolKit, ouvrir un terminal et taper
./Configure
répondre aux questions posées : Select a video capture driver. 1: Video4Linux 2: Video4Linux+JPEG Decompression (EyeToy) 3: Digital Video Camcoder through IEEE 1394 (DV Format) 4: Digital Video Camera through IEEE 1394 (VGA NONCOMPRESSED Image Format) 5: GStreamer Media Framework Enter : 1 Color conversion should use x86 assembly (choose 'n' for 64bit systems)? Enter : n Do you want to create debug symbols? (y or n) Enter : y Build gsub libraries with texture rectangle support? (y or n) GL_NV_texture_rectangle is supported on most NVidia graphics cards and on ATi Radeon and better graphics cards Enter : y
/!\ si vous choisissez de pouvoir faire la conversion de couleur, problème à la compilation
ensuite taper :
make
la compilation doit se passer sans problème ;)
[modifier]
Configuration
une fois installé pour passer un paramètre à ArToolkit, taper dans un terminal dans le répertoire bin : (exemple de paramètre pour faire fonctionner une webcam philips qui doit être YUV420P en natif)
export ARTOOLKIT_CONFIG="-palette=YUV420P"
[modifier]
Paramètres
ARVideo may be configured using one or more of the following options, separated by a space:
DEVICE CONTROLS:
-dev=filepath specifies device file. -channel=N specifies source channel. -noadjust prevent adjusting the width/height/channel if not suitable. -width=N specifies expected width of image. -height=N specifies expected height of image. -palette=[RGB|YUV420P] specifies the camera palette (WARNING:all are not supported on each camera !!).
IMAGE CONTROLS (WARNING: every options are not supported by all camera !!):
-brightness=N specifies brightness. (0.0 <-> 1.0) -contrast=N specifies contrast. (0.0 <-> 1.0) -saturation=N specifies saturation (color). (0.0 <-> 1.0) (for color camera only) -hue=N specifies hue. (0.0 <-> 1.0) (for color camera only) -whiteness=N specifies whiteness. (0.0 <-> 1.0) (REMARK: gamma for some drivers, otherwise for greyscale camera only) -color=N specifies saturation (color). (0.0 <-> 1.0) (REMARK: obsolete !! use saturation control)
OPTION CONTROLS:
-mode=[PAL|NTSC|SECAM] specifies TV signal mode (for tv/capture card).
[modifier]
Utilisation
Pour tester : lancer ./simpleTest depuis le répertoire "bin
imprimer le fichier pattHiro.pdf qui se trouve dans le répertoire ARToolKit/patterns du paquet décompressé
vous devriez voir apparaître un cube bleu sur le motif imprimé : voir arToolKit output
voilà, yapluska
[modifier]
Un patch pour v4l2
[modifier]
Ressources
- Documentation ArToolkit : http://www.hitl.washington.edu/artoolkit/documentation/index.html
- Archives de la Mailing list : http://www.hitl.washington.edu/artoolkit/mail-archive/search.php
- Forum : http://www.hitlabnz.org/forum/forumdisplay.php?s=94df22a4129de566a01ffc11c396f071&f=4
- Utilisation de v4l2 avec ArToolKit ?
- Exemple d'utilisation : LevelHead : http://julianoliver.com/levelhead
- Librairie de réalité augmentée : http://studierstube.icg.tu-graz.ac.at/handheld_ar/stbtracker.php

