how to clear osd / remove af frame - General Discussion and Assistance - CHDK Forum

how to clear osd / remove af frame

  • 9 Replies
  • 4697 Views
how to clear osd / remove af frame
« on: 16 / March / 2013, 09:52:53 »
Advertisements
I have an SX260 connected as a webcam to a piece of photo-booth software.  Everything works fine apart from the osd shows the af frame which appears on the photos taken by the software. 
Hitting the 'DISP' key on the camera will remove all other settings info but i can't switch off the af frame.
I have done some trial and error with chdk but can't find a setting that helps.
Any ideas?
thank you

*

Offline srsa_4c

  • ******
  • 4451
Re: how to clear osd / remove af frame
« Reply #1 on: 16 / March / 2013, 10:25:51 »
I have an SX260 connected as a webcam to a piece of photo-booth software.  Everything works fine apart from the osd shows the af frame which appears on the photos taken by the software.
Can you provide more details about your setup?
- what is that software
- what is the camera exactly used for (only preview / live view, or also shooting)
- what is connected to the camera ( computer via usb / usb remote / tv-out )

Re: how to clear osd / remove af frame
« Reply #2 on: 16 / March / 2013, 16:47:09 »
I have a canon av cable (avc-dc400st) plugged into the av out.  This is plugged into an av grabber (http://www.maplin.co.uk/usb-video-and-audio-grabber-340918) which plugs into the usb on the computer. 

The software is Sparkbooth, which uses the image from the camera in an 'always on' way and just captures 4 pictures when you hit the start button...

So, to answer yr 2nd q, the camera is in preview/live view (i think) and this is why, when the software captures the pic, the af frame is on the picture.  I tried putting the camera in video mode and the af frame still appears.

any help would be gratefully received.  thank you

*

Offline lapser

  • *****
  • 1093
Re: how to clear osd / remove af frame
« Reply #3 on: 16 / March / 2013, 17:07:04 »
CHDK isn't involved in this problem, it's coming from the camera.

On my SX260, if I put the camera in "SCN" mode, and choose "Low Light", the box disappears. Does that work for you?
EOS-M3_120f / SX50_100b / SX260_101a / G1X_100g / D20_100b
https://www.youtube.com/user/DrLapser/videos


Re: how to clear osd / remove af frame
« Reply #4 on: 17 / March / 2013, 06:57:39 »
Hi Iapser,

Your suggestion works... as long as there isn't a face in the image.  As soon as a face is detected (obv when 'af frame' is set to 'face detect' (the AF box appears full-time when 'tracking' or 'center' are selected)) the AF box appears.

I was hoping there may be a setting in chdk to hide the af box...?

Thank you for your help and any more suggestions welcome.

Re: how to clear osd / remove af frame
« Reply #5 on: 17 / March / 2013, 10:53:54 »
I was hoping there may be a setting in chdk to hide the af box...?
Sorry - if there was, I think that its safe to say we would have suggested that first.
Ported :   A1200    SD940   G10    Powershot N    G16

*

Offline reyalp

  • ******
  • 14117
Re: how to clear osd / remove af frame
« Reply #6 on: 17 / March / 2013, 15:56:12 »
You might be able to use CHDK to repeatedly draw transparent over where the AF frame appears. Perhaps using a grid: http://chdk.wikia.com/wiki/Grids or using lua drawing commands: http://chdk.wikia.com/wiki/Lua/Drawings

The AF frame would probably still flicker occasionally.

If you used PTP live view ( http://chdk.wikia.com/wiki/PTP_Extension ), then you could simply not display the OSD portion, but this would require a completely different implementation of your photobooth.
Don't forget what the H stands for.

*

Offline srsa_4c

  • ******
  • 4451
Re: how to clear osd / remove af frame
« Reply #7 on: 17 / March / 2013, 19:48:41 »
And another way to clear the overlays would be to overwrite the whole palette with transparent colors (by modifying load_chdk_palette() ). This seems to work for me.
Unfortunately, I haven't been able to do it from a script, so a custom CHDK build is required.


*

Offline lapser

  • *****
  • 1093
Re: how to clear osd / remove af frame
« Reply #8 on: 18 / March / 2013, 01:10:27 »
As luck would have it, I'm working on drawing and moving rectangles for setting my shot metering areas. I noticed that if I move a rectangle over the Canon AF box, it doesn't redraw itself. So I was able to write a script that keeps the Canon overlays invisible.

You have to turn everything in CHDK/OSD off, as you've probably discovered already. Here's the script for you to try (also attached)

Code: (lua) [Select]
--[[
@title Clear
--]]
while(is_pressed("shoot_half"))do sleep(100) end -- wait for shutter up
exit_alt() -- clears bottom line
repeat
  draw_rect_filled(0,0,359,239,256,256)
  coroutine.yield() -- equivalent to sleep(10) but more efficient
until is_pressed("menu") -- press menu to exit
enter_alt() -- shows script ended

EOS-M3_120f / SX50_100b / SX260_101a / G1X_100g / D20_100b
https://www.youtube.com/user/DrLapser/videos

Re: how to clear osd / remove af frame
« Reply #9 on: 21 / March / 2013, 05:52:34 »
Thank you so much for the script, lapser.  I am struggling to find time to test it but will let you know how I get on as soon as I get the chance.

 

Related Topics


SimplePortal 2.3.6 © 2008-2014, SimplePortal