Hello,
I want to use sharpcap to capture and track on custom features, for example fit a circle and track that (for solar limb tracking).
Is there anywhere an example for both parts, fetching a frame while recording, and send tracking commands back to the mount?
I have the algorithm already ready (tested in post-processing after capturing).
Kind regards,
Matthias
Custom tracking algorithm
- admin
- Site Admin
- Posts: 13350
- Joined: Sat Feb 11, 2017 3:52 pm
- Location: Vale of the White Horse, UK
- Contact:
Re: Custom tracking algorithm
Hi,
you can get notified of each frame like this
You can also move the mount - like this
Hope this helps, Robin
you can get notified of each frame like this
Code: Select all
def Handler(*args)
bitmap = args[1].Frame.GetFrameBitmap()
// do stuff with the bitmap
bitmap.Dispose()
// register for the event
SharpCap.SelectedCamera.BeforeFrameDisplay += Handler
// unregister later
SharpCap.SelectedCamera.BeforeFrameDisplay -= Handler
Code: Select all
// the parameters match the ASCOM MoveAxis call - https://ascom-standards.org/Help/Developer/html/M_ASCOM_DriverAccess_Telescope_MoveAxis.htm
SharpCap.Mounts.SelectedMount.MoveAxis(axis, rate)
Re: Custom tracking algorithm
Hello Robin,
yes, that will help, thank you!
I'm basically trying to implement limb/circle tracking, for example for solar photography with high gain/exposure time (i.e. solar disk is white, and (currently) you only have very few features on the limb), because in this case feature tracking likes to track on noise.
Other question, is there some kind of official Sharpcap-Repository?
Kind regards,
Matty
yes, that will help, thank you!
I'm basically trying to implement limb/circle tracking, for example for solar photography with high gain/exposure time (i.e. solar disk is white, and (currently) you only have very few features on the limb), because in this case feature tracking likes to track on noise.
Other question, is there some kind of official Sharpcap-Repository?
Kind regards,
Matty
- admin
- Site Admin
- Posts: 13350
- Joined: Sat Feb 11, 2017 3:52 pm
- Location: Vale of the White Horse, UK
- Contact:
Re: Custom tracking algorithm
Hi,
No, sadly no official place to put script snippets and samples except for in the forums here.
Cheers, Robin
No, sadly no official place to put script snippets and samples except for in the forums here.
Cheers, Robin