Reading sensor data without closing shutter? - page 5 - Script Writing - CHDK Forum supplierdeeply

Reading sensor data without closing shutter?

  • 70 Replies
  • 33718 Views
*

Offline Ant

  • *****
  • 509
Re: Reading sensor data without closing shutter?
« Reply #40 on: 23 / December / 2018, 06:54:57 »
Advertisements
Addresses for EOS M3 v1.0.1a:
Code: [Select]
NHSTUB(DoMovieFrameCapture                  ,0xFC20D881)
NHSTUB(MenuIn                               ,0xFC0AAF4D)
NHSTUB(MenuOut                              ,0xFC0AAF71)
DEF_CONST(frsp_buf                          ,0x4473D248)
DEF_CONST(frsp_param                        ,0x00000001)
DEF_CONST(frsp_argcnt                       ,0x00000002)

But maybe it's better to have ability of camera specific function shooting_shoot_frsp?
i.e. moving this function to \platform\generic\wrappers.c

« Last Edit: 23 / December / 2018, 07:19:11 by Ant »

*

Offline srsa_4c

  • ******
  • 4451
Re: Reading sensor data without closing shutter?
« Reply #41 on: 23 / December / 2018, 07:17:34 »
But maybe it's better to have ability of camera specific function shooting_shoot_frsp?
What would you do differently?

The current code is very much just a first attempt, it needs to be refined.

*

Offline Ant

  • *****
  • 509
Re: Reading sensor data without closing shutter?
« Reply #42 on: 23 / December / 2018, 07:25:55 »
On EOS M3 I need to call EnableHeadDirectCapturePath to remove bad pixels.
Also it's possible to override the exposure time using ShutterTool.SetExpTime as I described on previous page.
But this will be usefull when we find a way to override ISO for EVF...
« Last Edit: 23 / December / 2018, 07:32:32 by Ant »

*

Offline reyalp

  • ******
  • 14117
Re: Reading sensor data without closing shutter?
« Reply #43 on: 23 / December / 2018, 19:36:42 »
Nice work  :D

Some random initial thoughts:
It might be useful to allow capture without saving the image at all (which I guess would happen if CHDK raw/DNG not enabled), for raw metering or other analysis on full res raw data. If the buffer gets clobbered after the shot (e.g. by live view) that could be an issue. To avoid that, the MenuOut might need to be under script control

I suspect the shoot_hook call doesn't really make sense, since shooting_shoot_frsp appears to take place entirely in kbd_task

Another potentially interesting question is what the latency is between calling frsp_shoot and the actual exposure.

edit:
g7x values
Code: [Select]
NHSTUB(DoMovieFrameCapture                  ,0xfc172521) // via "CapError : %ld\n" @fc4eebe0

NHSTUB(MenuIn                               ,0xfc284025)
NHSTUB(MenuOut                              ,0xfc284049)

DEF_CONST(frsp_buf                          ,0x4427bfa0) // @fc4f1d9c
DEF_CONST(frsp_param                        ,0x00000001)
DEF_CONST(frsp_argcnt                       ,0x00000002)
I'll look into adding this stuff to finsig_thumb2.
« Last Edit: 24 / December / 2018, 00:52:06 by reyalp »
Don't forget what the H stands for.


*

Offline c_joerg

  • *****
  • 1251
Re: Reading sensor data without closing shutter?
« Reply #44 on: 25 / December / 2018, 03:05:32 »
Great work …
the new (and probably not final) frsp_shoot() Lua function can be used to take a silent picture and save it on card as raw or dng
I would like to test that with my M3. Where can I get the frsp_shoot () Lua function?
It might be useful to allow capture without saving the image at all (which I guess would happen if CHDK raw/DNG not enabled), for raw metering or other analysis on full res raw data.
That sounds like an interesting idea…

M100 100a, M3 121a, 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

*

Offline Ant

  • *****
  • 509
Re: Reading sensor data without closing shutter?
« Reply #45 on: 25 / December / 2018, 09:09:21 »
I would like to test that with my M3. Where can I get the frsp_shoot () Lua function?
Try this build in attachment.

*

Offline c_joerg

  • *****
  • 1251
Re: Reading sensor data without closing shutter?
« Reply #46 on: 25 / December / 2018, 10:47:18 »
Try this build in attachment.
Thanks, works better as expected….
I made a Canon CR2 and a Silent picture. In Lightroom, I have to set the exposure +0,65EV higher than the Canon CR2. Colors a little bit different. The Silent picture has much more noise. May be it has to do with the 0,65EV higher exposure. On the Silent picture i has to set manually lens correction in LR.
Not sure if it would be helpful to convert a Canon CR2 with Adobe DNG Converter into DNG and copy of meta Data into the Silent picture DNG.

https://drive.google.com/file/d/1j-ytQ85EZQfcGTPs9dgSqPLp5jHWkSLO/view?usp=sharing

On EOS M3 I need to call EnableHeadDirectCapturePath to remove bad pixels.
Could you see much bad pixels?
M100 100a, M3 121a, 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

*

Offline Ant

  • *****
  • 509
Re: Reading sensor data without closing shutter?
« Reply #47 on: 25 / December / 2018, 11:07:21 »
Could you see much bad pixels?
A lot of...
Try this build and count yours.
It also contains patch which allows to set exposure time(in microseconds) up to 4 s using:
Code: [Select]
call_event_proc("Capture.Create")
call_event_proc("ShutterTool.SetExpTime", 16600)



*

Offline c_joerg

  • *****
  • 1251
Re: Reading sensor data without closing shutter?
« Reply #48 on: 25 / December / 2018, 12:00:49 »
Try this build and count yours.

Hmmm, I don’t see any bad pixels…
M100 100a, M3 121a, 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

*

Offline Ant

  • *****
  • 509
Re: Reading sensor data without closing shutter?
« Reply #49 on: 25 / December / 2018, 12:28:21 »
Maybe your camera has excellent sensor.
This is screenshot from UFRaw at 100% zoom.

You can play with these commands using build from this post:
Code: [Select]
call_func_ptr(0xFC5A460F) --EnableHeadDirectCapturePath_FW
call_func_ptr(0xFC5A4615) --DisableHeadDirectCapturePath_FW
« Last Edit: 25 / December / 2018, 12:40:05 by Ant »

 

Related Topics


SimplePortal 2.3.6 © 2008-2014, SimplePortal