Automated LRGB Sequence Capture

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

Automated LRGB Sequence Capture

Post by 1CM69 » Thu Aug 09, 2018 9:24 am

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 17 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: 61
Joined: Tue Nov 14, 2017 9:49 pm

Re: Automated LRGB Sequence Capture

Post by 1CM69 » Thu Aug 09, 2018 1:40 pm

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 18 times

User avatar
admin
Site Admin
Posts: 2134
Joined: Sat Feb 11, 2017 3:52 pm
Location: Vale of the White Horse, UK
Contact:

Re: Automated LRGB Sequence Capture

Post by admin » 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

User avatar
turfpit
Posts: 510
Joined: Mon Feb 13, 2017 8:13 pm
Location: UK
Contact:

Re: Automated LRGB Sequence Capture

Post by turfpit » Thu Aug 09, 2018 7:13 pm


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

Re: Automated LRGB Sequence Capture

Post by 1CM69 » Fri Aug 10, 2018 12:01 pm

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: 61
Joined: Tue Nov 14, 2017 9:49 pm

Re: Automated LRGB Sequence Capture

Post by 1CM69 » Fri Aug 10, 2018 12:02 pm

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: 61
Joined: Tue Nov 14, 2017 9:49 pm

Re: Automated LRGB Sequence Capture

Post by 1CM69 » Fri Aug 10, 2018 12:05 pm

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 29 times
Kirk

User avatar
oopfan
Posts: 381
Joined: Sat Jul 08, 2017 2:37 pm
Location: New York
Contact:

Re: Automated LRGB Sequence Capture

Post by oopfan » Fri Aug 10, 2018 3:13 pm

Kirk,

You can learn from my IronPython code...

Brian
Attachments
PECSharp-IronPython-Forms-Coding.txt
(9.64 KiB) Downloaded 31 times

User avatar
oopfan
Posts: 381
Joined: Sat Jul 08, 2017 2:37 pm
Location: New York
Contact:

Re: Automated LRGB Sequence Capture

Post by oopfan » Fri Aug 10, 2018 3:15 pm

Here is a screenshot of that form...
Attachments
PECSharp-Forms-Screenshot.jpg
PECSharp-Forms-Screenshot.jpg (59.33 KiB) Viewed 437 times

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

Re: Automated LRGB Sequence Capture

Post by 1CM69 » Fri Aug 10, 2018 3:49 pm

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

Who is online

Users browsing this forum: No registered users and 1 guest