KAP & UAV Exposure Control Intervalometer Script - page 65 - Completed and Working Scripts - CHDK Forum

KAP & UAV Exposure Control Intervalometer Script

  • 1068 Replies
  • 343527 Views
Canon Powershot S110 using KAP 3.6... Blurry images from flying wing.
« Reply #640 on: 06 / October / 2015, 23:11:26 »
Advertisements
Thank you for creating such a great script.  It super charged my S110.
I was wondering if it's possible to adjust a few settings to get a sharper image from my camera.  I'm flying a winged plane between 50-100 meter grid missions.  It seems to me that the adjustments are off a bit.  I followed the instructions for the camera and set the Kap 3.6 settings to burst, pixhawk and checked focus on infinity.  All other settings are default.  Any suggestions to get a sharper image from my Canon S110 would be greatly appreciated.  I attached a photo and kap.log file.  Thank you again.

Re: Canon Powershot S110 using KAP 3.6... Blurry images from flying wing.
« Reply #641 on: 06 / October / 2015, 23:37:29 »
It seems to me that the adjustments are off a bit.  I followed the instructions for the camera and set the Kap 3.6 settings to burst, pixhawk and checked focus on infinity.  All other settings are default.  Any suggestions to get a sharper image from my Canon S110 would be greatly appreciated.  I attached a photo and kap.log file.
Thanks for including the log file.  Actually, your one posted image does not look too bad to me.  Are some of the others you took better than the others or are they all about the same?

A couple of things I see in the log file (which could be bugs in the log file I suppose)

  • According to the log file,  you have "Focus at Infinity" disabled rather than enabled.
  • You have Continuous AF enabled in the Canon menu.  Please disable it.
  • Your target Tv value is 1/1000 and your max tv value is 1/2000.  According to the log there is lots of light available  and it's only using ISO100 so crank the target Tv to 1/2000 (or even 1/5000) and the max TV to something higher than that.

Unrelated to camera settings,  your vibration mount can make a big difference.  What are you doing there ?

Finally,  here's a note about Canon cameras - and specifically the S90-S120 series : Let's Talk Canon Cameras


Note :  I've asked for this thread to be merged into the main kap_uav.lua thread


edit : typo - disabled rather than disabled should read  disabled rather than enabled
« Last Edit: 07 / October / 2015, 20:01:30 by waterwingz »
Ported :   A1200    SD940   G10    Powershot N    G16

Re: Canon Powershot S110 using KAP 3.6... Blurry images from flying wing.
« Reply #642 on: 07 / October / 2015, 00:22:59 »
Thank you so much for the fast reply.  Most of my photos look like the one I posted.  Most of the photos are about the same as what I posted.  I would like to get just a little sharper image.

I will update the settings you suggested.  I wonder why the focus on infinity shows disabled when there is a dot next to it.  You are talking about the setting in the KAP script, right?

I have the camera mounted to a foam block that is velcroed to coroplast.  The camera also shoots through a 1- 1/2 square piece of double strength clear glass (approx 1/8" thick).   This glass is mounted between the camera lens and the bottom of the plane.  Perhaps I need to redesign my camera mount to help cut down on vibration.

I really appreciate your suggestions.  I look forward to taking more photos in the morning.  Thanks again.
 

Re: Canon Powershot S110 using KAP 3.6... Blurry images from flying wing.
« Reply #643 on: 07 / October / 2015, 20:03:17 »
I wonder why the focus on infinity shows disabled when there is a dot next to it.  You are talking about the setting in the KAP script, right?
My mistake - your setting are correct.    The log file you posted has data from 27 different runs of the script.  In the first 16 of those,  you had  "Focus @ Infinity" disabled - in the last 11 runs you had it enabled.
Ported :   A1200    SD940   G10    Powershot N    G16


Canon Powershot S110 using KAP 3.6... Blurry images from flying wing.
« Reply #644 on: 05 / November / 2015, 00:29:55 »
I'm still having trouble getting the script to be in focus with my Canon S110.  If I use autofocus the photos are good.  If I turn off autofocus and set the radial button in the script to focus on infinity the photos are slightly blurred.  See attachments.  I would leave autofocus on but I get less photos during the mission.  Maybe I'm missing a step?  I already tried going into the camera settings and manually set the camera to infinity prior to flying but end up with the same slightly blurred photos.

Any help would be greatly appreciated.

Thank you.

Canon Powershot S110 using KAP 3.6... Blurry images from flying wing.
« Reply #645 on: 05 / November / 2015, 00:38:17 »
Forgot to include the KAP.LOG

Re: Canon Powershot S110 using KAP 3.6... Blurry images from flying wing.
« Reply #646 on: 05 / November / 2015, 09:48:54 »
Maybe I'm missing a step? 
I don't think you have missed anything,  but see my last comment below.

It is my opinion that we are dealing with a fundamental limitation with trying to use MF on Powershot cameras.  I've suggested my theory about this before - your most recent observations seem to add confirmation.

Quote
I already tried going into the camera settings and manually set the camera to infinity prior to flying but end up with the same slightly blurred photos.
This is the key.  It's not related to the script settings if  using Canon MF mode also has the same problem.

Simply put, the distance values (especially infinity) that you enter in Canon MF mode (or via a CHDK override) don't really work well.  The camera focus mechanism is not well calibrated,  if it's even calibrated at all.  So when you give the camera a focus distance,  it moves the lens to a fixed position that it looks up in a table and interpolates for.   If this position is not correct, then the focus will not be good.   In the case of your pictures,  I would suggest the focus is close but not perfect, which is consistent with my theory.

So why does autofocus work so much better?  Well, in autofocus mode the camera does not care about or use distance. It simply moves the lens focus mechanism until it finds the sharpest focus (based on "crispness" of observed image edges at the pixel level).  The selected focus is then at the best position, but distance is not known or needed.

Quote
I would leave autofocus on but I get less photos during the mission.
So I see you are using the new pixhawk mode?    I have not completed the documentation on that so I'm curious about how you have it setup. Thank for posting the log file.

You should be able to leave the camera in autofocus mode when setup for pixhawk shooting and only the first shot in a shooting sequence will focus.  The rest will use the focus & exposure settings from the first shot and you should be able to get about two shots per second that way. 

Also, from the log, I see that you have the camera set to Canon continuous shooting mode (which is fine) but I wonder what happens if you leave it in single shot mode, set the script's shot interval to zero in the script, and let the script manage shooting continuously?  You should get the same frame rate but the camera might handle focus resetting differently ?



Ported :   A1200    SD940   G10    Powershot N    G16

Re: KAP & UAV Exposure Control Intervalometer Script
« Reply #647 on: 06 / November / 2015, 10:02:37 »
Hey WW! Quick question: When using the new Pixhawk mode, I just have to connect the camera to one of the RC out channels, right? If that is the case, with a few script modifications (amount of PWM pulses needed for each action) I could connect it directly to the RC receiver and control the camera just with my RC transmitter, bypassing the pixhawk? That would mean the script would be ready to be used by any kind of flight controller, as they all have at least four RC PWM outputs...


Re: KAP & UAV Exposure Control Intervalometer Script
« Reply #648 on: 06 / November / 2015, 11:40:48 »

Hey WW! Quick question: When using the new Pixhawk mode, I just have to connect the camera to one of the RC out channels, right?
Correct.

Quote
If that is the case, with a few script modifications (amount of PWM pulses needed for each action) I could connect it directly to the RC receiver and control the camera just with my RC transmitter, bypassing the pixhawk?

That will not work - good try though. 

The pixhawk setup that we discovered somewhat by trial and error generates pulses in the range of about 4 mSec to 20 mSec, which CHDK can discriminate if high precision USB timing is enabled.   The servo output of your RC radio generated pulses shorter than 2 mSec, too fast for CHDK to read.

Quote
That would mean the script would be ready to be used by any kind of flight controller, as they all have at least four RC PWM outputs...
I did some experimenting with this to try and get CHDK to read servo outputs directly. I was able to almost discriminate three stick positions - down, center, up - but it was not extremely reliable.  Doing some averaging over multiple pulses helped with that but it was very processor intensive and would likely not have worked well with low end cameras.  I'll see if I can find the post where I reported the results.
Ported :   A1200    SD940   G10    Powershot N    G16

*

Offline c_joerg

  • *****
  • 1211
Re: KAP & UAV Exposure Control Intervalometer Script
« Reply #649 on: 06 / November / 2015, 12:57:44 »
I’m not sure if this is helpful:

I have also an S110 and manual focus setting does not work very well.

Autofocus works very well. Only think which I notice: I got absolute unrealistic values with get_focus, like object distance is 4m, I got 1.2m with get_focus. This is not happens on my G1x. These values are more realistic.

Also when I look in the EXIF Data on my S110 pictures with infinity objects. All pictures are sharp. But I don’t find infinity values in EXIF (May be 1 in 200 pictures).

This is totally different on my IXUS500HS, G1X and SX230HS. Here I find a lot of infinity values in EXIF.
Setting manual focus (like hyperfocal distance) works very well on G1X and SX230HS, but not on S110.
M100 100a, M3 101a, G9x II (1.00c), 2*G1x (101a,100e), S110 (103a), SX50 (100c), SX230 (101a), S45,
Flickr https://www.flickr.com/photos/136329431@N06/albums
YouTube https://www.youtube.com/channel/UCrTH0tHy9OYTVDzWIvXEMlw/videos?shelf_id=0&view=0&sort=dd

 

Related Topics