Automated LRGB Sequence Capture

Discussions on extending SharpCap using the built in Python scripting functionality
User avatar
1CM69
Posts: 63
Joined: Tue Nov 14, 2017 9:49 pm

Automated LRGB Sequence Capture

#1

Post by 1CM69 »

Hi,
I am trying to work with the scripting in SharpCap in order to automate capturing LRGB planetary datasets with my filterwheel.
I stumbled across this script:
miniCAM5F_LRGB_Capture.py.txt
(7.06 KiB) Downloaded 243 times
but I am getting errors with:

Code: Select all

from SharpCap.UI import NotificationMessage
from SharpCap.UI import NotificationStatus
is there a workaround I can use?

Thanks

Kirk
User avatar
1CM69
Posts: 63
Joined: Tue Nov 14, 2017 9:49 pm

Re: Automated LRGB Sequence Capture

#2

Post by 1CM69 »

OK, I've been muddling through and so far have got a script that works, albeit there is some fine tuning to do.

At the moment the variables such as TimeLimit & number of sequences are hard coded.

I am going to make the script more user friendly with a form to allow input of these variables.

I might also add an option to change from using a timelimit to using a framelimit.

Also thinking about adding filter specific variables e.g Gain & Exposure.

Here's the code so far:
LRGB_Sequence_Capture.py.txt
(2.54 KiB) Downloaded 230 times
User avatar
admin
Site Admin
Posts: 13122
Joined: Sat Feb 11, 2017 3:52 pm
Location: Vale of the White Horse, UK
Contact:

Re: Automated LRGB Sequence Capture

#3

Post by admin »

Try this

Code: Select all

clr.AddReference("SharpCap.Base.dll")
from SharpCap.Base import NotificationStatus
from SharpCap.Base import NotificationMessage
Robin
User avatar
turfpit
Posts: 1777
Joined: Mon Feb 13, 2017 8:13 pm
Location: UK
Contact:

Re: Automated LRGB Sequence Capture

#4

Post by turfpit »

User avatar
1CM69
Posts: 63
Joined: Tue Nov 14, 2017 9:49 pm

Re: Automated LRGB Sequence Capture

#5

Post by 1CM69 »

admin wrote: Thu Aug 09, 2018 6:21 pm Try this

Code: Select all

clr.AddReference("SharpCap.Base.dll")
from SharpCap.Base import NotificationStatus
from SharpCap.Base import NotificationMessage
Robin
Hi Robin, thanks for replying.
I did try this but to no avail, I have now altered the way notifications are been shown.
Thanks
User avatar
1CM69
Posts: 63
Joined: Tue Nov 14, 2017 9:49 pm

Re: Automated LRGB Sequence Capture

#6

Post by 1CM69 »

turfpit wrote: Thu Aug 09, 2018 7:13 pm Have a look at this post viewtopic.php?f=14&t=191&hilit=script+filter+wheel

Dave
Thanks Dave, I have seen this & have based my script partially on this apart from mine lack a GUI
Cheers
Kirk
User avatar
1CM69
Posts: 63
Joined: Tue Nov 14, 2017 9:49 pm

Re: Automated LRGB Sequence Capture

#7

Post by 1CM69 »

I have now made a few changes to make the script more usable, still no GUI though.

I've been through the wringer attempting to create a GUI in Python & decided that it's just not worth the effort.

Here is my current code, tested & working:
LRGB_Sequence_Capture.py.txt
(4.38 KiB) Downloaded 320 times
Kirk
User avatar
oopfan
Posts: 1320
Joined: Sat Jul 08, 2017 2:37 pm
Location: New York
Contact:

Re: Automated LRGB Sequence Capture

#8

Post by oopfan »

Kirk,

You can learn from my IronPython code...

Brian
Attachments
PECSharp-IronPython-Forms-Coding.txt
(9.64 KiB) Downloaded 270 times
User avatar
oopfan
Posts: 1320
Joined: Sat Jul 08, 2017 2:37 pm
Location: New York
Contact:

Re: Automated LRGB Sequence Capture

#9

Post by oopfan »

Here is a screenshot of that form...
Attachments
PECSharp-Forms-Screenshot.jpg
PECSharp-Forms-Screenshot.jpg (59.33 KiB) Viewed 4984 times
User avatar
1CM69
Posts: 63
Joined: Tue Nov 14, 2017 9:49 pm

Re: Automated LRGB Sequence Capture

#10

Post by 1CM69 »

oopfan wrote: Fri Aug 10, 2018 3:13 pm Kirk,

You can learn from my IronPython code...

Brian
That’s brilliant, thanks Brian
Post Reply