PhAO
Sommaire |
Photo assistée par ordinateur
De nombreux appareils photo peuvent être commandés par un ordinateur, non seulement pour récupérer des images mais aussi pour en prendre.
source : gphoto2
(capture est obsolète, en particulier gphoto2 prend à présent les photos sans avoir besoin d'ouvrir et refermer l'objectif.)
libgphoto2 2.4.10
Canon PowerShot A95
paramètres configurables
| Certains paramètres sont accessibles objectif fermé | d'autres ne sont accessibles qu'objectif déployé |
| cases de fond rose dans les tableaux | cases de fond bleu dans les tableaux |
| $ gphoto2 --set-config capture=off --list-config | $ gphoto2 --set-config capture=on --list-config |
actions
| focuslock Label: Focus vérrouillé (sic) |
syncdatetime Label: Synchronize camera date and time with PC |
settings
| datetime Label: Camera Date and Time |
output Label: Type de sortie de l'appareil |
|
| ownername Label: Owner Name |
capturetarget Label: Fichier cible |
capture
Label: Capture |
status
| model | firmwareversion | orientation |
imgsettings
| imagequality Label: Qualité de l'image |
imageformat Label: Image Format |
imagesize Label: Taille de l'image |
| iso Label: Iso |
whitebalance Label: Balance des blancs |
photoeffect Label: Effet Photo |
capturesettings
| zoom Label: Zoom |
assistlight Label: illuminateur d'assistance |
autorotation Label: Drapeau de rotation |
||||||||
| exposurecompensation Label: Correction d'exposition |
flashmode Label: Mode flash |
shootingmode Label: Mode de prise de vue Canon |
||||||||
aperture
|
focusingpoint Label: Point de focus |
shutterspeed
|
||||||||
| meteringmode Label: Mode Mesure |
afdistance Label: Longueur de autofocus |
|||||||||
exemples d'usage
$ gphoto2 --get-config ownername Label: Owner Name Type: TEXT Current: $ gphoto2 --set-config ownername=user $ gphoto2 --get-config ownername Label: Owner Name Type: TEXT Current: user
$ gphoto2 --get-config datetime Label: Camera Date and Time Type: DATE Current: 1285865015 Printable: jeu. 30 sept. 2010 18:43:35 CEST $ gphoto2 --set-config datetime=1285861251 $ gphoto2 --get-config datetime Label: Camera Date and Time Type: DATE Current: 1285861260 Printable: jeu. 30 sept. 2010 17:41:00 CEST
$ gphoto2 --get-config orientation Label: orientation de la l'appareil Type: TEXT Current: 0' $ gphoto2 --get-config orientation Label: orientation de la l'appareil Type: TEXT Current: 90'
$ gphoto2 --get-config imagequality Label: Qualité de l'image Type: RADIO Current: fine Choice: 0 normal Choice: 1 fine Choice: 2 très fine $ gphoto2 --set-config imagequality=2 $ gphoto2 --get-config imagequality Label: Qualité de l'image Type: RADIO Current: très fine Choice: 0 normal Choice: 1 fine Choice: 2 très fine
gestion gphoto2
- [--hook-script=FILENAME]
- [--stdout]
- [--stdout-size]
- [--shell]
- [--list-config] [--get-config=STRING] [--set-config=STRING]
- [--set-config-index=STRING] [--set-config-value=STRING]
- [--wait-event=COUNT] [--wait-event-and-download=COUNT]
- [--capture-preview] [-B|--bulb SECONDS] [-F|--frames COUNT]
- [-I|--interval SECONDS] [--reset-interval] [--capture-image]
- [--capture-image-and-download] [--capture-movie=COUNT or SECONDS]
- [--capture-sound] [--capture-tethered=COUNT]
- [--filename=FILENAME_PATTERN]
script pour obtenir tous les paramètres
#!/bin/shLabel=("Fichier cible" "Qualité de l’image" "Image Format" \
"Taille de l’image" "Vitesse ISO" "Balance des blancs" "Effet Photo" \
"Zoom" "illuminateur d’assistance" "Drapeau de rotation" \
"Correction d’exposition" "Mode flash" "Mode de prise de vue Canon" \
"Ouverture" "Point de focus" "Vitesse de l’obturateur " \
"Mode Mesure" "Longueur d’autofocus")
nbItem=${#Label[*]}
n=0
Zc="\Zb\Z3"
Zn="\Zn"
echo lecture des données, compter une trentaine de secondes...dateConfig=`gphoto2 --set-config capture=on --get-config capturetarget \
--get-config imagequality --get-config imageformat --get-config imagesize \
--get-config iso --get-config whitebalance --get-config photoeffect \
--get-config zoom --get-config assistlight --get-config autorotation \
--get-config exposurecompensation --get-config flashmode \
--get-config shootingmode --get-config aperture --get-config focusingpoint \
--get-config shutterspeed --get-config meteringmode \
--get-config afdistance 2>/dev/null|grep Current:|sed 's/Current: /:/'`
dateoldIFS=$IFS
IFS=:a=( $Config )
IFS=$oldIFS
for ((i=0;i<$nbItem;i++)); do
let n+=1
echo ${Label[${i}]} : ${a[$n]}
done
G7
- gphoto2 --set-config syncdatetime=1
- synchronise heure et date de l'appareil photo avec le PC
- gphoto2 --set-config ownername=fal7i
- set exif Owner Name
gphoto2 --list-config
- /main/actions/focuslock
- /main/actions/syncdatetime
- /main/settings/ownername
- /main/settings/capturetarget
- /main/settings/capture
- /main/status/model
- /main/status/firmwareversion
- /main/other/d045 Label: Mode émulation de l'événement Type: MENU
- /main/other/d04a Label: PTP Property 0xd04a Type: MENU
- /main/other/d02e Label: Taille de sortie des données à partir de l'appareil photo Type: TEXT
- /main/other/d02f Label: Taille d'entrée des données à l'appareil photo Type: TEXT
- /main/other/d002 Label: Type de batterie Type: MENU
- /main/other/d003 Label: mode de batterie Type: MENU
- /main/other/d034 Label: Temps UNIX Type: TEXT
- /main/other/d047 Label: Type de Diaporama Type: TEXT
- /main/other/d046 Label: Version DPOF: Type: TEXT
- /main/other/d02d Label: Support de taille de imagette Type: TEXT
- /main/other/d048 Label: Taille moyenne des fichiers Type: TEXT
- /main/other/d02c Label: Mode de qualitée des tailles d'image Type: MENU
- /main/other/d030 Label: Version de l'API de la télécommande Type: TEXT
- /main/other/d049 Label: Modèle : Type: TEXT
- /main/other/d032 Label: Modèle de l'appareil photo Type: TEXT
- /main/other/d033 Label: Propriétaire de l'appareil photo Type: TEXT
- /main/other/d031 Label: Version du Firmware Type: TEXT
- /main/other/d402 Device Friendly Name
- /main/other/d407 Perceived Device Type
gphoto2 --set-config capture=1
gphoto2 --list-config
- /main/actions/focuslock
- /main/actions/syncdatetime
- /main/settings/output
- /main/settings/ownername
- /main/settings/capturetarget
- /main/settings/capture
- /main/status/model
- /main/status/firmwareversion
- /main/status/orientation
- /main/imgsettings/imagequality
- /main/imgsettings/imageformat
- /main/imgsettings/imagesize
- /main/imgsettings/iso
- /main/imgsettings/whitebalance
- /main/capturesettings/zoom
- /main/capturesettings/assistlight
- /main/capturesettings/autorotation
- /main/capturesettings/exposurecompensation
- /main/capturesettings/flashcompensation
- /main/capturesettings/flashmode
- /main/capturesettings/shootingmode
- /main/capturesettings/aperture
- /main/capturesettings/focusingpoint
- /main/capturesettings/shutterspeed
- /main/capturesettings/meteringmode
- /main/capturesettings/afdistance
- /main/other/d045
- /main/other/d04a
- /main/other/d02e
- /main/other/d02f
- /main/other/d002
- /main/other/d003
- /main/other/d034
- /main/other/d047
- /main/other/d046
- /main/other/d02d
- /main/other/d048
- /main/other/d02c
- /main/other/d030
- /main/other/d049
- /main/other/d032
- /main/other/d033
- /main/other/d031
- /main/other/d402
- /main/other/d407
- /main/other/d029
- /main/other/d006
- /main/other/d007
- /main/other/d008
- /main/other/d00e
- /main/other/d010
- /main/other/d011
- /main/other/d012
- /main/other/d013
- /main/other/d01c
- /main/other/d01f
- /main/other/d020
- /main/other/d041
- /main/other/d042
- /main/other/d044
- /main/other/d00a
- /main/other/d00c
- /main/other/d01d
- /main/other/d01e
- /main/other/d02a
- /main/other/d036
- /main/other/d037
- /main/other/d038
- /main/other/d039
- /main/other/d03b
- /main/other/d03c
- /main/other/d03d
- /main/other/d043
MTP Name: MTP Datacode
Undefined: 0x5000 | Battery Level: 0x5001 | Functional Mode: 0x5002 | Image Size: 0x5003 | Compression Setting: 0x5004 | White Balance: 0x5005 | RGB Gain: 0x5006 | F-Number: 0x5007 | Focal Length: 0x5008 | Focus Distance: 0x5009 | Focus Mode: 0x500A | Exposure Metering Mode: 0x500B | Flash Mode: 0x500C | Exposure Time: 0x500D | Exposure Program Mode: 0x500E | Exposure Index: 0x500F | Exposure Bias Compensation: 0x5010 | DateTime: 0x5011 | Capture Delay: 0x5012 | Still Capture Mode: 0x5013 | Contrast: 0x5014 | Sharpness: 0x5015 | Digital Zoom: 0x5016 | Effect Mode: 0x5017 | Burst Number: 0x5018 | Burst Interval: 0x5019 | Timelapse Number: 0x501A | Timelapse Interval: 0x501B | Focus Metering Mode: 0x501C | Upload URL: 0x501D | Artist: 0x501E | Copyright Info: 0x501F | Synchronization Partner: 0xD401 | Device Friendly Name: 0xD402 | Volume: 0xD403 | SupportedFormatsOrdered: 0xD404 | DeviceIcon: 0xD405 | Playback Rate: 0xD410 | Playback Object: 0xD411 | Playback Container Index: 0xD412 | Session Initiator Version Info: 0xD406 | Perceived Device Type: 0xD407