New HDR pano on-the-fly functions
After a bit of playing around with DL javascript functions, I've written a couple and published in my public repo:
https://app.dronelink.com/dsvilko/360-hdr/functions
There is a 360 HDR pano function that takes a full set of bracketed exposures at the current drone location. You need to select the shortest exposure (ISO is fixed at 100) from the list of 1/4000s, 1/2000s, 1/1000s, 1/500s or 1/200s. This is partly based on the prior work of Andrew Busst.
There are also two functions that take 3x2 HDR mini-panos centered at the current drone camera framing. One is for a single panoramic photo and the other function allows you to first mark multiple locations with your drone which will then be automatically photographed.
From the limited testing I did with my Mavic Mini, it seems to be working correctly.
If you like them, star the repo :)
Comments
25 comments
This really is great and demonstrates the power and approach of DL..
I want to do a video on this when I have time..
Thank you Eric! I certainly now have a better appreciation for the DL architecture and I have a feeling I've just scratched the surface.
Hello all,
Just made a 360 function. Takes one row of 8 photos for each of these gimbal pitches: 20,0,-30,-60,-90(only 2 pictures).(34 pictures)
AEB - Option to take 3 photos with different EV settings.One with zero and two with plus the selected step one minus the selected step(102 pictures)
SSB - Option to take 3 photos with different shutter speed settings.(102 pictures)
The options for shutter speed are:
If you select 1/120 it takes a pic with 1/240 , one with 1/120 and one with 1/50. No idea if these setting are OK to make pictures.Not really a photographer.They can be edited in the JAVA script.
Camera settings are set to ISO:100, Focus:Auto, AspectRatio:4:3, Metering:Spot.
https://app.dronelink.com/francisc-egyed/public-repo/function/jztW9254sJAx0ZEphsDW
Thanks for this ultrawide pano single function. I tried it out this morning and it worked really well but I did end up with lots of noise in the darker exposures. Is there any chance you could produce a non-HDR version of this function that would use the exposure and WB set by the user before running the mission? Thanks for considering.
@Francisc,
That's great! I was too lazy to write the whole thing in JS. Adding a single command/component is a bit convoluted but I guess that is the price you pay for a bit of added flexibility.
@Denis,
I am currently a bit tight on time but it is definitelly doable and simple. I will write the modified version when I have time.
I wonder if someone can explain how to ask for input in a function. I played around with Domjan Svilkovic's functions a bit by copying to my private repository, only realizing I also need to copy some components which I had not done. I was prompted for something (I don't recall the prompt, but it had 4000 in the default, which I chose). I looked thru the scripts and did not see where that prompt came from.
These two buttons:
Ahhh! Thank you.
So i was also playing with this but i cant get it to work.
Basically what iam trying to achieve is a making a single HDR photo on the fly.
So basically pointing my drone at a subject, press function "make hdr" and that the drone makes 3 pics at different exposure.
Kinda like the 2x3 HDR but without the drone "turning" and do pano.
I just want to make HDR without manually selecting exposure all the time between pictures.
Would like to make it a "on the fly" function so i dont need a plan really.
Any dronelink pros that know how to manage, either in js function ore otherwise.
Preferably with this nice "input" upfront to select exposure like the HDR Pano has
Wouter Bakker, you can copy Domjan Svilkovic's functions into a personal repository and modify or run them as is. Be sure to look thru the code, because it loads in some of his components when it executes. You will need those as well. I made a successful copy and took one set of the three photos and made them into a single HDR photo, then made a panorama from three of the shots.
Yeah thats exactly what iam trying to do however without succes so far.
care to share your setup/repository?
I just created a new repository and copied one function (3x2 ultrawide HDR - single) and two components, Photo HDR 4000 and Reset Camera. When I flew it, I selected the default first menu item, 4000 since that was the only component I repurposed. I would suggest you have some programming background if you want to mess with functions. The SDK is available online.
Yes Larry, i understand what you did. you used the 2x3 pano function and only use 3 photos from it.
That will work ofcourse but you end up with a bunch of pics you never use and the scene can change so you have high riks of ghosting.
Agreed. I didn't bother changing anything in the scripts. I have a large SD card which I off load to my computer. I used good stitching software to remove the ghosting.
Something like this :
https://app.dronelink.com/francisc-egyed/public-repo/function/NDdu8LkyNH6Rhg08betv
Ill check it out, think ive seen it but perhaps i misled due to (102) pictures.
Currently using this: https://app.dronelink.com/nemesis/functies/functions?fbclid=IwAR2jKhYO6sdljA_j2r_YamyCDAXPe7J-Vlv1GZdKH3k3FporgpvyGCHXfAk
Ill checked, doesnt work for me, it doesnt generate the mission.
Anyway, its probably a nice script but way to complicated for my needs ;)
It throws a location unavailable, perhaps ill manage to rip that part , its because iam trying inside my home ofcourse :)
Edit:
Oke, that worked, just got some errors if i select some input that isnt available in the Mavic Mini i think. will edit so that the script has just MM selecable values.
So, I copied Domjan's function into my personal repo and was able to get it to work.
I need to talk to Jim about whether we want to add this to our "on the fly functions" so it's available for everyone without making people copy stuff over or mess with programming or moving other functions over.
Curious what the easiest way to create the HDR is. Did you merge all the HDR pictures first and then make the 360 or make 3 360s and then merge the HDRs that way?
In my case, I made the HDR's first and then combined those into a panorama.
I just let Photoshop do it automatically using automerge HDR-Panorama
PTGUI it lets you mask out various ghosting etc
If you do incorporate an On The Fly HDR 360 Pano for the Mini you'll need to code a relative change of Shutter Speeds for example if 1/4000 captures the brightest highlights (you could set that first as part of the On The Fly Command) then the script would need to (again user selectable) take a second and third image at an exposure X and Y stops slower as the Mini (on Manaul at least - best option for HDR panos) doesn't do AEB or even respond to the EV command change when on manual.
Would be great if you could implement this.
How do i use it for Mavic Mini? can someone help how can i make it mission and run?
Hi Guys!
I'm a mavic 2 user who is somewhat new to Dronelink. I am trying to use a few of these HDR Pano for on the fly shooting but I keep getting this error and failed mission and cant figure out the steps to correct the issue.
We are not currently able to reproduce this issue. What build are you on and what aircraft firmware?
I was able to get it work with the 3x2 mode by making my own custom camera setting components on my own repository which solved my problem!
Now I am getting an error on the 360 hdr mode when it engages the first gimbal orientation move
Required Component Failed: Remove this component, make it not required, or try again. You may need to restart your drone before trying again. Gimbal Orientation | Pitch 19° | Param Illegal
Please sign in to leave a comment.