Dobson / ROI stabilization

Discussions on extending SharpCap using the built in Python scripting functionality
User avatar
admin
Site Admin
Posts: 13177
Joined: Sat Feb 11, 2017 3:52 pm
Location: Vale of the White Horse, UK
Contact:

Re: Dobson / ROI stabilization

#11

Post by admin »

Hi,

to get the number of frames that the camera has processed since being opened, use

Code: Select all

print SharpCap.SelectedCamera.CapturedFrameCount
Note that this is not the number saved to file - it's the number that have come from the camera to the application.

Is that enough to do what you want?

cheers,

Robin
aquariusCZ
Posts: 61
Joined: Wed Apr 15, 2020 1:02 pm
Location: Ostrava

Re: Dobson / ROI stabilization

#12

Post by aquariusCZ »

Hi,
thanks a lot, that will be enough.
Tomas
aquariusCZ
Posts: 61
Joined: Wed Apr 15, 2020 1:02 pm
Location: Ostrava

Re: Dobson / ROI stabilization

#13

Post by aquariusCZ »

Hi,
I advanced with a script that shifts the ROI after saving npic images by npan pixels.
This algorithm makes it much easier to set the ROI offset speed.
The speed can be changed not only with npic and npan, but also gently with exposure and turbo USB.
The moon is the week of evening shooting. :D
Happy hunting, dobsonists. :lol:

Code: Select all

import time
import clr

start = 0
end = 1024
npic = 1 #pictures
npan = 1 #pan inc

pan = start
SharpCap.SelectedCamera.PrepareToCapture ()
SharpCap.SelectedCamera.RunCapture ()
SharpCap.SelectedCamera.Controls.Pan.Value = start
pic = SharpCap.SelectedCamera.CapturedFrameCount
picc = pic + npic
while pan <end:
    while pic <=picc:
      pic = SharpCap.SelectedCamera.CapturedFrameCount
    pan = pan + npan
    SharpCap.SelectedCamera.Controls.Pan.Value = pan
    picc = pic + npic
SharpCap.SelectedCamera.StopCapture ()
SharpCap.SelectedCamera.Controls.Pan.Value = start
aquariusCZ
Posts: 61
Joined: Wed Apr 15, 2020 1:02 pm
Location: Ostrava

Re: Dobson / ROI stabilization

#14

Post by aquariusCZ »

Hi,
today I did the first sharp test of the script.
I used Prokyon (alt 40 °).
The moon is out of sight. Observation deck - balcony.
The script stopped the movement of the star very well and allowed to take 2000 images.
I easily adjusted the speed of the ROI by the length of the exposure.
I am satisfied. 8-)
Prokyon_test.jpg
Prokyon_test.jpg (346.46 KiB) Viewed 2902 times
Dobson 305/1500, Barlow 2x, ASI482MC, UVIRcut.
Tomas
aquariusCZ
Posts: 61
Joined: Wed Apr 15, 2020 1:02 pm
Location: Ostrava

Re: Dobson / ROI stabilization

#15

Post by aquariusCZ »

11.3.2022 21:10 (+1 UTC)
T21_10_43_ZWO ASI482MC_CaptureBWu.jpg
T21_10_43_ZWO ASI482MC_CaptureBWu.jpg (339.41 KiB) Viewed 2870 times
Clavius
Dobson 254/1200, Barlow 3x +extension 40mm, UVIRCut, ASI482MC,
ROI 970x1080, 1775 frames,
ROI stabilization script, 82 fps, AS3 + R6 + PaintNet.
Seeing better average.
Frýdlant nad Ostravicí.
aquariusCZ
Posts: 61
Joined: Wed Apr 15, 2020 1:02 pm
Location: Ostrava

Re: Dobson / ROI stabilization

#16

Post by aquariusCZ »

12.3.2022 20:31 (+1UTC)
T20_31_40_ZWO ASI482MC_Capture_ImTracOffNoRGB_RGBuu.jpg
T20_31_40_ZWO ASI482MC_Capture_ImTracOffNoRGB_RGBuu.jpg (389.44 KiB) Viewed 2838 times
Moon in colors

Dobson 254/1200, Barlow 3x +extension 40mm, UVIRCut, ASI482MC,
ROI 970x1080, 1610 frames,
three layers intertwined: color + BW + contour,
ROI stabilization script, 82 fps, AS3 + R6 + PaintNet.
Seeing - average.
Frýdlant nad Ostravicí.

Thanks to the script, every dobson becomes a planetary special. ;)
aquariusCZ
Posts: 61
Joined: Wed Apr 15, 2020 1:02 pm
Location: Ostrava

Re: Dobson / ROI stabilization

#17

Post by aquariusCZ »

19.3.2022 22:25 (+1 UTC)
T22_25_04_ZWO ASI482MC_CaptureBWu.jpg
T22_25_04_ZWO ASI482MC_CaptureBWu.jpg (409.7 KiB) Viewed 2770 times
Tycho
Dobson 254/1200, Barlow 3x +extension 40mm, UVIRCut, ASI482MC,
ROI 896x892, 1670 frames,
three layers intertwined: color + BW + contour,
ROI stabilization script, 82 fps, AS3 + R6 + PaintNet.
Seeing - average.
Frýdlant nad Ostravicí.
Post Reply