gphoto2 and bracketed exposure short intro  

Everything you need to motorize your head
User avatar
jplorge
Member
 
Posts: 214
Likes: 0 post
Liked in: 0 post
Joined: Sun Oct 05, 2008 11:42 pm
Location: Belgium
Info

by jplorge » Tue Jul 14, 2009 4:08 pm

let's go

we need to make HDR to change the EV or IL or STOP it's like you want...
at this time we know :
--get-config CHAINE
now understand : --set-config CHAINE, it's realy the secret of all...
a litle wait i take a drink
Jean-Pierre
Merlin/Orion firmware : 01.09.81 panohead + Papywizard on XP PC and Linux Ubuntu 9.1 & Nokia 800
Manfrotto 303 PAN HEAD with Nikon D70 + Nikon 18-70 in kit - Nikon 80-200 F 2.8 old - Sigma 10-20
Assembly : Ptgui 9.1.3

User avatar
jplorge
Member
 
Posts: 214
Likes: 0 post
Liked in: 0 post
Joined: Sun Oct 05, 2008 11:42 pm
Location: Belgium
Info

by jplorge » Tue Jul 14, 2009 4:28 pm

let's go

you can find some magics CHAINE :
capturetarget -----> it's the secret of the speed, what did you have in your setting for it : Current : 1 --------->>must be 0
like that:
gphoto2 --set-config capturetarget=0
shutdown your apn and remove the card, open it

when it's do you can see the fille in /home/you/.gphoto
______________________________________________________________________________
gphoto2=port=usb:
gphoto2=model=Nikon DSC D70 (PTP mode)
------------------------------------------------------------------------> this line now ptp2=capturetarget=sdram
libgphoto=cached-images=2
gphoto2=filename=/mnt/sdb1/images/nikD70_%d_%m_%y_%H_%M_%S.jpg
_____________________________________________________________________________

now all the image go on the HD of your pc, before it's the same... no before gphoto read all and the card after do what you want and you wait...
now normaly (for me in usb1) i'm watting 5 sec for the first shot and ... 2min for 31 shots with each 03ev change.
I give you now the script with the largest the widest gap. for 03EV and 05 EV

FIRST 03EV Copy this in edit-text en name it like you want or like this : ev03
________________________________________________________________________________________

Code: Select all
#!/bin/sh

gphoto2 --get-config time --set-config capturetarget=0 --set-config evstep=0 --set-config=exposurebiascompensation=15\
--set-config=exposurebiascompensation=-5000 --capture-image-and-download \
--set-config=exposurebiascompensation=1 --capture-image-and-download \
--set-config=exposurebiascompensation=2 --capture-image-and-download \
--set-config=exposurebiascompensation=3 --capture-image-and-download \
--set-config=exposurebiascompensation=4 --capture-image-and-download \
--set-config=exposurebiascompensation=5 --capture-image-and-download \
--set-config=exposurebiascompensation=6 --capture-image-and-download \
--set-config=exposurebiascompensation=7 --capture-image-and-download \
--set-config=exposurebiascompensation=8 --capture-image-and-download \
--set-config=exposurebiascompensation=9 --capture-image-and-download \
--set-config=exposurebiascompensation=10 --capture-image-and-download \
--set-config=exposurebiascompensation=11 --capture-image-and-download \
--set-config=exposurebiascompensation=12 --capture-image-and-download \
--set-config=exposurebiascompensation=13 --capture-image-and-download \
--set-config=exposurebiascompensation=14 --capture-image-and-download \
--set-config=exposurebiascompensation=15 --capture-image-and-download \
--set-config=exposurebiascompensation=16 --capture-image-and-download \
--set-config=exposurebiascompensation=17 --capture-image-and-download \
--set-config=exposurebiascompensation=18 --capture-image-and-download \
--set-config=exposurebiascompensation=19 --capture-image-and-download \
--set-config=exposurebiascompensation=20 --capture-image-and-download \
--set-config=exposurebiascompensation=21 --capture-image-and-download \
--set-config=exposurebiascompensation=22 --capture-image-and-download \
--set-config=exposurebiascompensation=23 --capture-image-and-download \
--set-config=exposurebiascompensation=24 --capture-image-and-download \
--set-config=exposurebiascompensation=25 --capture-image-and-download \
--set-config=exposurebiascompensation=26 --capture-image-and-download \
--set-config=exposurebiascompensation=27 --capture-image-and-download \
--set-config=exposurebiascompensation=28 --capture-image-and-download \
--set-config=exposurebiascompensation=29 --capture-image-and-download \
--set-config=exposurebiascompensation=30 --capture-image-and-download \

2 FOR 05EV STEP : Copy this in edit-text en name it like you want or like this : ev05

Code: Select all
#!/bin/sh

gphoto2 --get-config time --set-config capturetarget=0 --set-config evstep=1 --set-config=exposurebiascompensation=10\
--set-config=exposurebiascompensation=-5000 --capture-image-and-download \
--set-config=exposurebiascompensation=1 --capture-image-and-download \
--set-config=exposurebiascompensation=2 --capture-image-and-download \
--set-config=exposurebiascompensation=3 --capture-image-and-download \
--set-config=exposurebiascompensation=4 --capture-image-and-download \
--set-config=exposurebiascompensation=5 --capture-image-and-download \
--set-config=exposurebiascompensation=6 --capture-image-and-download \
--set-config=exposurebiascompensation=7 --capture-image-and-download \
--set-config=exposurebiascompensation=8 --capture-image-and-download \
--set-config=exposurebiascompensation=9 --capture-image-and-download \
--set-config=exposurebiascompensation=10 --capture-image-and-download \
--set-config=exposurebiascompensation=11 --capture-image-and-download \
--set-config=exposurebiascompensation=12 --capture-image-and-download \
--set-config=exposurebiascompensation=13 --capture-image-and-download \
--set-config=exposurebiascompensation=14 --capture-image-and-download \
--set-config=exposurebiascompensation=15 --capture-image-and-download \
--set-config=exposurebiascompensation=16 --capture-image-and-download \
--set-config=exposurebiascompensation=17 --capture-image-and-download \
--set-config=exposurebiascompensation=18 --capture-image-and-download \
--set-config=exposurebiascompensation=19 --capture-image-and-download \
--set-config=exposurebiascompensation=20 --capture-image-and-download \

After you do it, in terminal:
where you save the 2 files, i think for you : /home/you/ev03 and /home/you/ev05
type
in root (for Ubuntu : sudo) for other su
su chmod 777 ev*
or
sudo chmod 777 ev*
terminal want the root pass
type it
now the 2 script can be executed...

it's almost finished...

i write the END
Last edited by jplorge on Tue Jul 14, 2009 5:36 pm, edited 1 time in total.
Jean-Pierre
Merlin/Orion firmware : 01.09.81 panohead + Papywizard on XP PC and Linux Ubuntu 9.1 & Nokia 800
Manfrotto 303 PAN HEAD with Nikon D70 + Nikon 18-70 in kit - Nikon 80-200 F 2.8 old - Sigma 10-20
Assembly : Ptgui 9.1.3

User avatar
jplorge
Member
 
Posts: 214
Likes: 0 post
Liked in: 0 post
Joined: Sun Oct 05, 2008 11:42 pm
Location: Belgium
Info

by jplorge » Tue Jul 14, 2009 4:53 pm

let's go for the END
you must in A mode on your APN (for M mode it's not the same script)
in terminal type
time ./ev03

and wait, normaly after a few second your APN start to take shots

at the end of shot you see it

real 2m52.703s this is the real time to take 31 shots with 0,3EV step from -5 - 0 - + 5 EV
user 0m3.456s
sys 0m4.844s

here is my "ls"
_________________________________________________________________________
-rw------- 1 jpl jpl 2616677 2009-07-14 17:44 nikD70_14_07_09_17_44_31.jpg
-rw------- 1 jpl jpl 1546356 2009-07-14 17:44 nikD70_14_07_09_17_44_36.jpg
-rw------- 1 jpl jpl 1598123 2009-07-14 17:44 nikD70_14_07_09_17_44_40.jpg
-rw------- 1 jpl jpl 1775423 2009-07-14 17:44 nikD70_14_07_09_17_44_45.jpg
-rw------- 1 jpl jpl 1903349 2009-07-14 17:44 nikD70_14_07_09_17_44_49.jpg
-rw------- 1 jpl jpl 1978366 2009-07-14 17:44 nikD70_14_07_09_17_44_54.jpg
-rw------- 1 jpl jpl 2096930 2009-07-14 17:44 nikD70_14_07_09_17_44_58.jpg
-rw------- 1 jpl jpl 2179549 2009-07-14 17:45 nikD70_14_07_09_17_45_03.jpg
-rw------- 1 jpl jpl 2241334 2009-07-14 17:45 nikD70_14_07_09_17_45_08.jpg
-rw------- 1 jpl jpl 2300369 2009-07-14 17:45 nikD70_14_07_09_17_45_13.jpg
-rw------- 1 jpl jpl 2352614 2009-07-14 17:45 nikD70_14_07_09_17_45_18.jpg
-rw------- 1 jpl jpl 2392010 2009-07-14 17:45 nikD70_14_07_09_17_45_23.jpg
-rw------- 1 jpl jpl 2448964 2009-07-14 17:45 nikD70_14_07_09_17_45_28.jpg
-rw------- 1 jpl jpl 2466586 2009-07-14 17:45 nikD70_14_07_09_17_45_33.jpg
-rw------- 1 jpl jpl 2513081 2009-07-14 17:45 nikD70_14_07_09_17_45_38.jpg
-rw------- 1 jpl jpl 2667700 2009-07-14 17:45 nikD70_14_07_09_17_45_44.jpg
-rw------- 1 jpl jpl 2659431 2009-07-14 17:45 nikD70_14_07_09_17_45_49.jpg
-rw------- 1 jpl jpl 2657850 2009-07-14 17:45 nikD70_14_07_09_17_45_55.jpg
-rw------- 1 jpl jpl 2580713 2009-07-14 17:46 nikD70_14_07_09_17_46_00.jpg
-rw------- 1 jpl jpl 2595422 2009-07-14 17:46 nikD70_14_07_09_17_46_06.jpg
-rw------- 1 jpl jpl 2570479 2009-07-14 17:46 nikD70_14_07_09_17_46_11.jpg
-rw------- 1 jpl jpl 2541718 2009-07-14 17:46 nikD70_14_07_09_17_46_17.jpg
-rw------- 1 jpl jpl 2509815 2009-07-14 17:46 nikD70_14_07_09_17_46_22.jpg
-rw------- 1 jpl jpl 2477494 2009-07-14 17:46 nikD70_14_07_09_17_46_28.jpg
-rw------- 1 jpl jpl 2446309 2009-07-14 17:46 nikD70_14_07_09_17_46_34.jpg
-rw------- 1 jpl jpl 2418776 2009-07-14 17:46 nikD70_14_07_09_17_46_40.jpg
-rw------- 1 jpl jpl 2393555 2009-07-14 17:46 nikD70_14_07_09_17_46_45.jpg
-rw------- 1 jpl jpl 2283749 2009-07-14 17:46 nikD70_14_07_09_17_46_52.jpg
-rw------- 1 jpl jpl 2239029 2009-07-14 17:46 nikD70_14_07_09_17_46_59.jpg
-rw------- 1 jpl jpl 2172746 2009-07-14 17:47 nikD70_14_07_09_17_47_06.jpg
-rw------- 1 jpl jpl 2080539 2009-07-14 17:47 nikD70_14_07_09_17_47_13.jpg
___________________________________________________________________


Last edited by jplorge on Tue Jul 14, 2009 4:54 pm, edited 1 time in total.
Jean-Pierre
Merlin/Orion firmware : 01.09.81 panohead + Papywizard on XP PC and Linux Ubuntu 9.1 & Nokia 800
Manfrotto 303 PAN HEAD with Nikon D70 + Nikon 18-70 in kit - Nikon 80-200 F 2.8 old - Sigma 10-20
Assembly : Ptgui 9.1.3

User avatar
jplorge
Member
 
Posts: 214
Likes: 0 post
Liked in: 0 post
Joined: Sun Oct 05, 2008 11:42 pm
Location: Belgium
Info

by jplorge » Tue Jul 14, 2009 5:01 pm

you can do with 2nd script

time ./ev05

now it's time to set papywizard
open in terminal
you must be where you put the 2 scripts (pwd > /home/you/
type
papywizard.sh














Last edited by jplorge on Tue Jul 14, 2009 5:21 pm, edited 1 time in total.
Jean-Pierre
Merlin/Orion firmware : 01.09.81 panohead + Papywizard on XP PC and Linux Ubuntu 9.1 & Nokia 800
Manfrotto 303 PAN HEAD with Nikon D70 + Nikon 18-70 in kit - Nikon 80-200 F 2.8 old - Sigma 10-20
Assembly : Ptgui 9.1.3

User avatar
jplorge
Member
 
Posts: 214
Likes: 0 post
Liked in: 0 post
Joined: Sun Oct 05, 2008 11:42 pm
Location: Belgium
Info

by jplorge » Tue Jul 14, 2009 5:26 pm

End it's all (I stop my live demo now after 2 complet shot with 31 images and a few on 3rd)
I'll take time to make scripts with other set like +2EV-0-2EV STEP 0,5EV but i'm sure with all infos you have you can do it.
For "M" mode i have scripts but I'm not sure (not tested now) it's recognition as a bracket such as EV

For those who appreciated, thank you to comment


Last edited by jplorge on Tue Jul 14, 2009 5:34 pm, edited 1 time in total.
Jean-Pierre
Merlin/Orion firmware : 01.09.81 panohead + Papywizard on XP PC and Linux Ubuntu 9.1 & Nokia 800
Manfrotto 303 PAN HEAD with Nikon D70 + Nikon 18-70 in kit - Nikon 80-200 F 2.8 old - Sigma 10-20
Assembly : Ptgui 9.1.3

User avatar
fma38
Moderator
 
Posts: 5850
Likes: 2 posts
Liked in: 2 posts
Joined: Wed Dec 07, 2005 6:21 pm
Location: Grenoble, France
Info

by fma38 » Tue Jul 14, 2009 7:37 pm

Pfiou, great job! This is really impressive...

I think it should be possible to automatically retreive the settings, and build the script on-the-fly, according to user settings. But it is some work (need to analyse the gphoto2 output, and build tables)...
Frédéric

User avatar
jplorge
Member
 
Posts: 214
Likes: 0 post
Liked in: 0 post
Joined: Sun Oct 05, 2008 11:42 pm
Location: Belgium
Info

by jplorge » Tue Jul 14, 2009 8:14 pm

Thank you Frédérick, yes i'm sure it's possible, but so simple to use scripts for Linux users, if one day you have some times i'll be happy to test your new dev. without you where we are... I, hope that post can interest active other many people in the project. Did you read my post about the same subject on win.?

Merci Frédérick, oui, je suis sûr que c'est possible, mais si simple d'utiliser des scripts pour les utilisateurs de Linux, si un jour tu as un peu de temps je serai heureux de tester tes nouvelles dev. sans vous, où nous sommes ... J'espère que le sujet intéressera de nombreuses autres personnes actives dans le projet. As-tu lu mon post sur le même sujet pour win.?
Jean-Pierre
Merlin/Orion firmware : 01.09.81 panohead + Papywizard on XP PC and Linux Ubuntu 9.1 & Nokia 800
Manfrotto 303 PAN HEAD with Nikon D70 + Nikon 18-70 in kit - Nikon 80-200 F 2.8 old - Sigma 10-20
Assembly : Ptgui 9.1.3

User avatar
jplorge
Member
 
Posts: 214
Likes: 0 post
Liked in: 0 post
Joined: Sun Oct 05, 2008 11:42 pm
Location: Belgium
Info

by jplorge » Tue Jul 14, 2009 8:42 pm

The images don't have no interest but for the test i stay at home
First test HDR in the garden 5x2 X 10 stop 15 minutes many wind
Second test head on the table in front of TV without light only the rest of sunset 3x2 30stop 10 minutes no check anything about focus. only to see what is possible...




Last edited by jplorge on Tue Jul 14, 2009 9:17 pm, edited 1 time in total.
Jean-Pierre
Merlin/Orion firmware : 01.09.81 panohead + Papywizard on XP PC and Linux Ubuntu 9.1 & Nokia 800
Manfrotto 303 PAN HEAD with Nikon D70 + Nikon 18-70 in kit - Nikon 80-200 F 2.8 old - Sigma 10-20
Assembly : Ptgui 9.1.3

no avatar
Gordon
Member
 
Posts: 357
Likes: 0 post
Liked in: 0 post
Joined: Wed Oct 08, 2008 12:18 pm
Location: Deep in the woods, UK
Info

by Gordon » Wed Jul 15, 2009 1:11 am

Thank you jplorge, your English is understandable, I just wish I could read French as I'm positive a lot is being lost in the translation...
your images look good.

Best
Gordon
2000th Member :D

GigaPixel Experimenter
Gigapan Beta Unit, Canon Powershot S5IS, Canon 350D, Nikon D40, Manfrotto Tripod, BT-Serial + Papywizard on Nokia 770, Fully-Operational Merlin the Wizard Unit!!!

User avatar
fma38
Moderator
 
Posts: 5850
Likes: 2 posts
Liked in: 2 posts
Joined: Wed Dec 07, 2005 6:21 pm
Location: Grenoble, France
Info

by fma38 » Wed Jul 15, 2009 12:30 pm

jplorge wrote:Merci Frédérick, oui, je suis sûr que c'est possible, mais si simple d'utiliser des scripts pour les utilisateurs de Linux, si un jour tu as un peu de temps je serai heureux de tester tes nouvelles dev. sans vous, où nous sommes ... J'espère que le sujet intéressera de nombreuses autres personnes actives dans le projet. As-tu lu mon post sur le même sujet pour win.?

Non, je n'ai pas vu ton post pour windows... C'est où ?
Frédéric

User avatar
jplorge
Member
 
Posts: 214
Likes: 0 post
Liked in: 0 post
Joined: Sun Oct 05, 2008 11:42 pm
Location: Belgium
Info

by jplorge » Wed Jul 15, 2009 12:39 pm

Jean-Pierre
Merlin/Orion firmware : 01.09.81 panohead + Papywizard on XP PC and Linux Ubuntu 9.1 & Nokia 800
Manfrotto 303 PAN HEAD with Nikon D70 + Nikon 18-70 in kit - Nikon 80-200 F 2.8 old - Sigma 10-20
Assembly : Ptgui 9.1.3

User avatar
jplorge
Member
 
Posts: 214
Likes: 0 post
Liked in: 0 post
Joined: Sun Oct 05, 2008 11:42 pm
Location: Belgium
Info

by jplorge » Thu Jul 16, 2009 7:28 pm

Hi,
Always the same garden:P Final size 21000 x 12400 pix.
nikon D70 18-70mm @ 70 --> 105mm f16 - 13 x 5 shots x 9 stop ( -2EV - 0 - + 2EV step 0,5) with DIYCameracontrol
Time to make shots +/- 25 min. for 585 imges
Images was saved on CF not on PC






Last edited by jplorge on Thu Jul 16, 2009 7:37 pm, edited 1 time in total.
Jean-Pierre
Merlin/Orion firmware : 01.09.81 panohead + Papywizard on XP PC and Linux Ubuntu 9.1 & Nokia 800
Manfrotto 303 PAN HEAD with Nikon D70 + Nikon 18-70 in kit - Nikon 80-200 F 2.8 old - Sigma 10-20
Assembly : Ptgui 9.1.3

no avatar
hankkarl
Member
 
Posts: 1284
Likes: 0 post
Liked in: 0 post
Joined: Tue Feb 21, 2006 5:32 pm
Location: Connecticut, USA
Info

by hankkarl » Thu Jul 16, 2009 11:29 pm

fma38 wrote:I think it is better to put in on the APP forum, as you will be able to update whenever you want.

About analysing the RAW, I don't think it is mandatory: you don't need a very important accuracy. Don't forget that the way how over-exposed pixels are spread arround the image also very important: small white dots (little reflects) are not a problem: a large area is. But doing such analyse will take too much time, and is not possible.

BTW, I moved your previous post on the "general design - ideas", as there are good ideas...

Memory is cheap, processor horsepower (for enfuse, PM, etc) is getting cheap....

So it would be interesting to start with the Ev the camera suggests (or even use the sunny 16 rule-- iso 100, f/16, 1/100 sec) and bracket by one or two Ev up till there are no blown pixels -- that is, there is no pixel with a value equal to the maximum value.

Then bracket down by 1 or 2 Ev till no pixel has a value less than 1/2 of the minimum value. (same reason that we expose to the right).

User avatar
jplorge
Member
 
Posts: 214
Likes: 0 post
Liked in: 0 post
Joined: Sun Oct 05, 2008 11:42 pm
Location: Belgium
Info

by jplorge » Fri Jul 17, 2009 7:57 pm

Hi,
Always the same garden:P Final size 21000 x 12400 pix.
nikon D70 18-70mm @ 70 --> 105mm f16 - 13 x 5 shots x 9 stop ( -2EV - 0 - + 2EV step 0,5) with Gphoto2
Time to make shots +/- 60 min. for 585 images
Images was saved on PC
HDR is not also easy like water paint










Last edited by jplorge on Fri Jul 17, 2009 8:09 pm, edited 1 time in total.
Jean-Pierre
Merlin/Orion firmware : 01.09.81 panohead + Papywizard on XP PC and Linux Ubuntu 9.1 & Nokia 800
Manfrotto 303 PAN HEAD with Nikon D70 + Nikon 18-70 in kit - Nikon 80-200 F 2.8 old - Sigma 10-20
Assembly : Ptgui 9.1.3

User avatar
jplorge
Member
 
Posts: 214
Likes: 0 post
Liked in: 0 post
Joined: Sun Oct 05, 2008 11:42 pm
Location: Belgium
Info

by jplorge » Thu Jul 23, 2009 7:40 pm

Bonsoir Fédérick,
J'essaye d'écrire 2 scipts pour automatiser le Bracketting :
1/ en écart d'EV dont voici le script en mode "A" sur l'APN
2/ en changement du temps d'exposition "en mode M" que je peux aussi t'envoyer, mais comme il est sur le même principe je pense pouvoir le terminer si celui-ci fonctionne.
Code: Select all
#!/bin/bash
# efface le script
rm /home/jpl/cmd/bracket

#j'affecte mes variables
echo "quel écart 0 = 1/3EV - 1 = 1/2EV"
read ev
echo "quel bracket"
read b
echo "STEP"
read s
# if ...... ev=0 alors ...z pour 0EV= 15 et si ev=1 alors z=10
# then echo "choix non valide"
#fi
#verif EV
echo "EV choisi = "$ev
# écriture 1ere ligne (10=1/2 EV)
ligne10='gphoto2 --get-config time --set-config capturetarget=0 --get-config capturetarget --set-config evstep='$ev' --get-config evstep --set-config=exposurebiascompensation=10 --get-config exposurebiascompensation \'
# écriture 1ere ligne (15=1/3 EV)
#ligne15='gphoto2 --get-config time --set-config capturetarget=0 --get-config capturetarget --set-config evstep='$ev' --get-config evstep --set-config=exposurebiascompensation=15 --get-config exposurebiascompensation \'
echo $ligne10 >> /home/jpl/cmd/bracket
#echo $ligne15 >> /home/jpl/cmd/bracket
for (( i=0; i=$b; i++ ))
do
  b=`expr $b - 1`

 #j'ajoute mes lignes au fichier
ligne2='--set-config=exposurebiascompensation='$b' --capture-image-and-download \'
echo $ligne2 >> /home/jpl/cmd/bracket

 echo $b
done
#rend le script executable
 chmod 777 '/home/jpl/cmd/bracket'
#ouvre le script pour vérification
 gedit /home/jpl/cmd/bracket
#lance papy
papywizard.sh

Voici un fichier créer par celui-ci

gphoto2 --get-config time --set-config capturetarget=0 --get-config capturetarget --set-config evstep=1 --get-config evstep --set-config=exposurebiascompensation=10 --get-config exposurebiascompensation \
--set-config=exposurebiascompensation=7 --capture-image-and-download \
--set-config=exposurebiascompensation=6 --capture-image-and-download \
--set-config=exposurebiascompensation=5 --capture-image-and-download \
--set-config=exposurebiascompensation=4 --capture-image-and-download \
--set-config=exposurebiascompensation=3 --capture-image-and-download \
--set-config=exposurebiascompensation=2 --capture-image-and-download \
--set-config=exposurebiascompensation=1 --capture-image-and-download \
--set-config=exposurebiascompensation=0 --capture-image-and-download \

Je n'ai jamais programmé avant et j'ai un problème avec la condition "choix EV" qui doit écrire soit la "ligne15" soit "ligne10"
et pour la boucle qui devrait commencer avec la valeur "0EV" et distribuer le choix d'écart en +b$ et en -b$

Le bon script devrait être pour EV par 1/2: et par ex: bracket -5EV 0EV + 5EV step 1:
gphoto2 --get-config time --set-config capturetarget=0 --get-config capturetarget --set-config evstep=1 --get-config evstep --set-config=exposurebiascompensation=10 --get-config exposurebiascompensation \
--set-config=exposurebiascompensation=10 --capture-image-and-download \
--set-config=exposurebiascompensation=8 --capture-image-and-download \
--set-config=exposurebiascompensation=6 --capture-image-and-download \
--set-config=exposurebiascompensation=4 --capture-image-and-download \
--set-config=exposurebiascompensation=2 --capture-image-and-download \
--set-config=exposurebiascompensation=0 --capture-image-and-download
--set-config=exposurebiascompensation=12 --capture-image-and-download \
--set-config=exposurebiascompensation=14 --capture-image-and-download \
--set-config=exposurebiascompensation=16--capture-image-and-download \
--set-config=exposurebiascompensation=18 --capture-image-and-download \
--set-config=exposurebiascompensation=20 --capture-image-and-download

0 = -5EV 10 = 0EV 20 = +5EV
et pour le même pour 1/3
Le bon script devrait être pour EV par 1/3: et par ex: bracket -5EV 0EV + 5EV step 1:
gphoto2 --get-config time --set-config capturetarget=0 --get-config capturetarget --set-config evstep=0 --get-config evstep --set-config=exposurebiascompensation=15 --get-config exposurebiascompensation \
--set-config=exposurebiascompensation=15 --capture-image-and-download \
--set-config=exposurebiascompensation=12 --capture-image-and-download \
--set-config=exposurebiascompensation=9 --capture-image-and-download \
--set-config=exposurebiascompensation=6 --capture-image-and-download \
--set-config=exposurebiascompensation=3 --capture-image-and-download \
--set-config=exposurebiascompensation=0 --capture-image-and-download \
--set-config=exposurebiascompensation=18 --capture-image-and-download \
--set-config=exposurebiascompensation=21 --capture-image-and-download \
--set-config=exposurebiascompensation=24 --capture-image-and-download \
--set-config=exposurebiascompensation=27 --capture-image-and-download \
--set-config=exposurebiascompensation=30 --capture-image-and-download

0 = -5EV 10 = 0EV 20 = +5EV
Je sais qu'il manque au moins la variable step mais comme je n'arrive pas a démarrer la boucle à  "0EV" je suis bloqué
Si tu m'as compris et que tu as un peu de temps? Cela pourrait déja faciliter la création du script utilisé par "Papy"
Last edited by jplorge on Thu Jul 23, 2009 8:18 pm, edited 1 time in total.
Jean-Pierre
Merlin/Orion firmware : 01.09.81 panohead + Papywizard on XP PC and Linux Ubuntu 9.1 & Nokia 800
Manfrotto 303 PAN HEAD with Nikon D70 + Nikon 18-70 in kit - Nikon 80-200 F 2.8 old - Sigma 10-20
Assembly : Ptgui 9.1.3

User avatar
jplorge
Member
 
Posts: 214
Likes: 0 post
Liked in: 0 post
Joined: Sun Oct 05, 2008 11:42 pm
Location: Belgium
Info

by jplorge » Thu Jul 23, 2009 11:36 pm

j'ai trouver pour la condition de la premiere ligne à  écrire et la deuxième en fonction de EV reste la formule dans la boucle pour les écart en + et en -
Code: Select all
#!/bin/bash
# efface le script
rm /home/jpl/cmd/bracket

#j'affecte mes variables
echo "quel écart 0 = 1/3EV - 1 = 1/2EV"
read ev
echo "quel bracket"
read b
echo "STEP"
read s

echo "EV choisi = "$ev
echo "Bracket choisi= "$b
echo "STEP choisi = "$s
# écriture 1ere ligne (10=1/2 EV)
ligne10='gphoto2 --get-config time --set-config capturetarget=0 --get-config capturetarget --set-config evstep='$ev' --get-config evstep --set-config=exposurebiascompensation=10 --get-config exposurebiascompensation \'
# écriture 1ere ligne (15=1/3 EV)
ligne15='gphoto2 --get-config time --set-config capturetarget=0 --get-config capturetarget --set-config evstep='$ev' --get-config evstep --set-config=exposurebiascompensation=15 --get-config exposurebiascompensation \'
if [ $ev -eq 1 ]
            then
                echo $ligne10 >> /home/jpl/cmd/bracket ; c=11
            else
                echo $ligne15 >> /home/jpl/cmd/bracket; c=16
            fi
# deffinition de EV0
Z=$(expr $c - 1)
ligne2='--set-config=exposurebiascompensation='$Z' --capture-image-and-download \'
echo $ligne2 >> /home/jpl/cmd/bracket

for (( i=0; i=$b; i++ ))
do
#______________________________ici ca ne va pas_____________________
  b=`expr $b - 1`
  rc=$(expr $c / $s + $b )
  cc=$(expr $c / $s - $b )

echo "valeur de rc ="$rc

 #j'ajoute mes lignes au fichier
ligne4='--set-config=exposurebiascompensation='$rc' --capture-image-and-download \'
ligne5='--set-config=exposurebiascompensation='$cc' --capture-image-and-download \'

echo $ligne4 >> /home/jpl/cmd/bracket
echo $ligne5 >> /home/jpl/cmd/bracket

done
#______________________________jusqu'ici ca ne va pas_____________________
#rend le script executable
 chmod 777 '/home/jpl/cmd/bracket'
#ouvre le script pour vérification
 gedit /home/jpl/cmd/bracket
#lance papy
#papywizard.sh

gphoto2 --get-config time --set-config capturetarget=0 --get-config capturetarget --set-config evstep=0 --get-config evstep --set-config=exposurebiascompensation=15 --get-config exposurebiascompensation \
--set-config=exposurebiascompensation=15 --capture-image-and-download \
--set-config=exposurebiascompensation=12 --capture-image-and-download \
--set-config=exposurebiascompensation=4 --capture-image-and-download \
--set-config=exposurebiascompensation=11 --capture-image-and-download \
--set-config=exposurebiascompensation=5 --capture-image-and-download \
--set-config=exposurebiascompensation=10 --capture-image-and-download \
--set-config=exposurebiascompensation=6 --capture-image-and-download \
--set-config=exposurebiascompensation=9 --capture-image-and-download \
--set-config=exposurebiascompensation=7 --capture-image-and-download \
--set-config=exposurebiascompensation=8 --capture-image-and-download \
--set-config=exposurebiascompensation=8 --capture-image-and-download \

sur le terminal :

jpl@jpl-desktop:~$ ./bra
quel écart 0 = 1/3EV - 1 = 1/2EV
0
quel bracket
5
STEP
2
EV choisi = 0
Bracket choisi= 5
STEP choisi = 2
valeur de rc =12
valeur de rc =11
valeur de rc =10
valeur de rc =9
valeur de rc =8
jpl@jpl-desktop:~$
Last edited by jplorge on Fri Jul 24, 2009 12:01 am, edited 1 time in total.
Jean-Pierre
Merlin/Orion firmware : 01.09.81 panohead + Papywizard on XP PC and Linux Ubuntu 9.1 & Nokia 800
Manfrotto 303 PAN HEAD with Nikon D70 + Nikon 18-70 in kit - Nikon 80-200 F 2.8 old - Sigma 10-20
Assembly : Ptgui 9.1.3

User avatar
jplorge
Member
 
Posts: 214
Likes: 0 post
Liked in: 0 post
Joined: Sun Oct 05, 2008 11:42 pm
Location: Belgium
Info

by jplorge » Fri Jul 24, 2009 10:50 am

Bonjour à  tous,
Quelqu'un connait-il un peu la programmation "shell"? A l'aide!
voir http://www.autopano.net/forum/viewtopic.php?id=6396&p=8
et juste le post ci-dessus


Hello everyone,
Which can know programming "shell"? and help me !

see http://www.autopano.net/forum/viewtopic.php?id=6396&p=8

and just following the above pos
Last edited by jplorge on Fri Jul 24, 2009 10:53 am, edited 1 time in total.
Jean-Pierre
Merlin/Orion firmware : 01.09.81 panohead + Papywizard on XP PC and Linux Ubuntu 9.1 & Nokia 800
Manfrotto 303 PAN HEAD with Nikon D70 + Nikon 18-70 in kit - Nikon 80-200 F 2.8 old - Sigma 10-20
Assembly : Ptgui 9.1.3

User avatar
fma38
Moderator
 
Posts: 5850
Likes: 2 posts
Liked in: 2 posts
Joined: Wed Dec 07, 2005 6:21 pm
Location: Grenoble, France
Info

by fma38 » Fri Jul 24, 2009 11:22 am

Wait a minute, Jean-Pierre, I'm writing an example in python to do want you want...
Frédéric

User avatar
jplorge
Member
 
Posts: 214
Likes: 0 post
Liked in: 0 post
Joined: Sun Oct 05, 2008 11:42 pm
Location: Belgium
Info

by jplorge » Fri Jul 24, 2009 11:37 am

Thank you Frederick
Jean-Pierre
Merlin/Orion firmware : 01.09.81 panohead + Papywizard on XP PC and Linux Ubuntu 9.1 & Nokia 800
Manfrotto 303 PAN HEAD with Nikon D70 + Nikon 18-70 in kit - Nikon 80-200 F 2.8 old - Sigma 10-20
Assembly : Ptgui 9.1.3

User avatar
fma38
Moderator
 
Posts: 5850
Likes: 2 posts
Liked in: 2 posts
Joined: Wed Dec 07, 2005 6:21 pm
Location: Grenoble, France
Info

by fma38 » Fri Jul 24, 2009 11:43 am

Here is a way to do what you want in python:

Code: Select all
# Exposure bias table
exposureBiasTable = {'0.5 EV': [-5., -4.5, -4., -3.5, -3., -2.5, -2., -1.5, -1., 0.5,
                                0,
                                0.5, 1., 1.5, 2., 2.5, 3., 3.5, 4., 4.5, 5.],
                     '0.3 EV': [-5., -4.666, -4.333, -4., -3.666, -3.333, -3., -2.666, -2.333, -2., -1.666, -1.333, -1., -0.666, -0.333,
                                0,
                                0.333, 0.666, 1., 1.333, 1.666, 2., 2.333, 2.666, 3., 3.333, 3.666, 4., 4.333, 4.666, 5.]
                    }

# User params
bracketEV = 0.5
bracketNbPicts = 5
bracketStep = 2

# Generate script
start = -int(bracketNbPicts / 2)
stop = int(bracketNbPicts / 2) + 1
for i in xrange(start, stop):
    bias = i * bracketStep
    index = exposureBiasTable["%.1f EV" % bracketEV].index(bias)
    print "--set-config=exposurebiascompensation=%d --capture-image-and-download \\" % index

Result:

--set-config=exposurebiascompensation=2 --capture-image-and-download \
--set-config=exposurebiascompensation=6 --capture-image-and-download \
--set-config=exposurebiascompensation=10 --capture-image-and-download \
--set-config=exposurebiascompensation=14 --capture-image-and-download \
--set-config=exposurebiascompensation=18 --capture-image-and-download \

The nice part is that you can dynamically generate the exposureBiasTable table using the --get-config param (I will try to write that part too)...
Frédéric

User avatar
fma38
Moderator
 
Posts: 5850
Likes: 2 posts
Liked in: 2 posts
Joined: Wed Dec 07, 2005 6:21 pm
Location: Grenoble, France
Info

by fma38 » Fri Jul 24, 2009 11:58 am

Here it is (untested):

Code: Select all
import subprocess

exposureBiasTable = {'0.5 EV': [],
                     '0.3 EV': []
                    }


# Launch external command
cmd = "gphoto2 --setconfig evstep=1 --get-config exposurebiascompensation"
args = cmd.split()
p = subprocess.Popen(args, stdout=subprocess.PIPE, stderr=subprocess.PIPE)

# Wait end of execution
stdout, stderr = p.communicate()
if stderr:
    print stderr.strip()
    exit(1)
if p.returncode:
    print p.returncode
    exit(1)
print stdout.strip()

for line in stdout.split('\n'):
    if line.startswith("Choice"):
        bias = line.split()[-1]  # Get last field
        exposureBiasTable['0.5 EV'].append(bias / 1000.)
Frédéric

User avatar
jplorge
Member
 
Posts: 214
Likes: 0 post
Liked in: 0 post
Joined: Sun Oct 05, 2008 11:42 pm
Location: Belgium
Info

by jplorge » Fri Jul 24, 2009 12:03 pm

Frédéric thank you, but now it is Chinese for me and not for my level :-(
Sorry
Jean-Pierre
Merlin/Orion firmware : 01.09.81 panohead + Papywizard on XP PC and Linux Ubuntu 9.1 & Nokia 800
Manfrotto 303 PAN HEAD with Nikon D70 + Nikon 18-70 in kit - Nikon 80-200 F 2.8 old - Sigma 10-20
Assembly : Ptgui 9.1.3

User avatar
fma38
Moderator
 
Posts: 5850
Likes: 2 posts
Liked in: 2 posts
Joined: Wed Dec 07, 2005 6:21 pm
Location: Grenoble, France
Info

by fma38 » Fri Jul 24, 2009 12:28 pm

What part(s) you don't undertsand? Feel free to ask, and I will explain...

I fyou want to learn python, just have a look at this excellent (e-)book (written by a guy from Belgium too ;)):

http://www.inforef.be/swi/python.htm
http://www.inforef.be/swi/download/python_notes.pdf
Frédéric

User avatar
jplorge
Member
 
Posts: 214
Likes: 0 post
Liked in: 0 post
Joined: Sun Oct 05, 2008 11:42 pm
Location: Belgium
Info

by jplorge » Fri Jul 24, 2009 12:42 pm

Must begin to learn, perhaps in a year lol
Jean-Pierre
Merlin/Orion firmware : 01.09.81 panohead + Papywizard on XP PC and Linux Ubuntu 9.1 & Nokia 800
Manfrotto 303 PAN HEAD with Nikon D70 + Nikon 18-70 in kit - Nikon 80-200 F 2.8 old - Sigma 10-20
Assembly : Ptgui 9.1.3

User avatar
jplorge
Member
 
Posts: 214
Likes: 0 post
Liked in: 0 post
Joined: Sun Oct 05, 2008 11:42 pm
Location: Belgium
Info

by jplorge » Thu Aug 06, 2009 10:31 am

Hi,
A new version libgphoto2 is ready :
http://www.nabble.com/Call-for-Testers-for-upcoming-2.4.7-release-td24721387.html

I compiled it no problem on Ubuntu 9.0..

i'm testing all, and write comment
Jean-Pierre
Merlin/Orion firmware : 01.09.81 panohead + Papywizard on XP PC and Linux Ubuntu 9.1 & Nokia 800
Manfrotto 303 PAN HEAD with Nikon D70 + Nikon 18-70 in kit - Nikon 80-200 F 2.8 old - Sigma 10-20
Assembly : Ptgui 9.1.3

PreviousNext

Who is online

Users browsing this forum: No registered users and 1 guest