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

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 143 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

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 136 times
User avatar
admin
Site Admin
Posts: 5486
Joined: Sat Feb 11, 2017 3:52 pm
Location: Vale of the White Horse, UK
Contact:

Re: Automated LRGB Sequence Capture

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: 1325
Joined: Mon Feb 13, 2017 8:13 pm
Location: UK
Contact:

Re: Automated LRGB Sequence Capture

Post by turfpit »

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

Re: Automated LRGB Sequence Capture

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

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

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 215 times
Kirk
User avatar
oopfan
Posts: 792
Joined: Sat Jul 08, 2017 2:37 pm
Location: New York
Contact:

Re: Automated LRGB Sequence Capture

Post by oopfan »

Kirk,

You can learn from my IronPython code...

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

Re: Automated LRGB Sequence Capture

Post by oopfan »

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

Re: Automated LRGB Sequence Capture

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