Control Panel Widgets

Discussions on extending SharpCap using the built in Python scripting functionality
Post Reply
User avatar
Posts: 401
Joined: Sat Jul 08, 2017 2:37 pm
Location: New York

Control Panel Widgets

Post by oopfan » Fri Jul 14, 2017 1:28 pm

Hi Robin,

Thank you for the example script using OpenCVStarDetector. That was easy!

That started me thinking about the possibility of adding a new control group to the panel with spinners for minimum and maximum star size, having my script receive events when control values change, running the detection code, and drawing a bounding box around all stars detected in the current image, and updating at a user specified exposure and frame rate?

It's also got me thinking that if what I ask is possible then what percentage of new SC development that you do is in IronPython vs C#. As they say "Inquiring minds want to know!"


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

Re: Control Panel Widgets

Post by admin » Fri Jul 14, 2017 7:40 pm


the only UI you can interact with is the toolbar where you can add extra buttons. You could of course show your own UI window next to or on top of SharpCap with your own controls in.

There's currently no way to intercept frames in scripting to process them before they are saved/displayed - maybe one day.

None of the core code is written in IronPython - almost everything is C# with a small amount of C++ where performance is critical.



User avatar
Posts: 566
Joined: Mon Feb 13, 2017 8:13 pm
Location: UK

Re: Control Panel Widgets

Post by turfpit » Fri Jul 14, 2017 8:21 pm

How to add a button to the toolbar can be found here ... ipts%20Tab


Post Reply

Who is online

Users browsing this forum: No registered users and 1 guest