Another Script - SMART TRACKING SYSTEM
Posted: Thu May 14, 2026 1:40 pm
Hi guys!
First of all, I apologize for creating yet another topic in the scripting section...! It's just that I love creating things and I get carried away. When I discovered that I could use Python with Sharpcap, I decided to learn the Python language to create things.
This time I created something I called "The Smart Tracking System", and was created to solve a specific practical limitation in my astrophotography workflow. When Sharpcap is opened, it runs automatically. The ideia is to use Sharpcap in my laptop screen, and the panel in other monitor. I'm gradually improving it, adding fields, things, and information. The last thing I added was the object's rotation calculation.
Because my setup does not use a traditional equatorial guiding system (I use alt/az munt), I cannot use software such as PHD2 for real-time guiding analysis and tracking correction. Instead of relying on external autoguiding hardware, I decided to build a custom monitoring environment capable of extracting and interpreting tracking data directly from SharpCap.
The system uses live telemetry generated by SharpCap itself — especially Live Stack drift data and Plate Solve information — to create a real-time tracking analysis platform similar in concept to a lightweight integrated guiding monitor.
The main goal was not to replace professional autoguiding software, but to create an intelligent monitoring layer capable of:
analyzing mount stability;
visualizing tracking drift in real time;
calculating RMS tracking error;
identifying drift trends and tracking degradation;
monitoring alignment quality;
assisting with manual corrections;
improving long-exposure tracking reliability;
reducing dependence on dedicated guiding hardware.
The Tracking Radar and RMS monitoring modules were specifically designed to provide a visual representation of mount behavior over time. By plotting drift vectors and calculating average tracking deviation, the system allows continuous observation of tracking quality without requiring a separate guide camera or guiding software.
One of the core features of the system is its automated recentering logic. Instead of performing constant guiding corrections like a traditional autoguider, the software periodically executes intelligent Plate Solve + Sync operations to recenter the target and compensate for accumulated drift.
To make this process adaptable to different observing conditions and mount behaviors, three operational synchronization modes were implemented:
Smart Mode
Designed as the balanced operational mode. It calculates synchronization intervals dynamically based on the current exposure time and applies moderate timing margins. This mode prioritizes stability while minimizing unnecessary corrections during normal imaging sessions.
Precision Mode
Optimized for maximum framing accuracy and tighter target centering. Synchronizations occur more frequently, reducing accumulated drift at the cost of higher synchronization activity. This mode is intended for long focal lengths, smaller sensors, or sessions requiring highly accurate framing consistency.
Aggressive Mode
Designed for unstable tracking conditions, portable mounts, or situations with poor polar alignment. The system performs recentering operations much more frequently to compensate for rapid drift accumulation. This mode prioritizes maintaining target position even under difficult tracking conditions.
The synchronization intervals are automatically calculated using the current camera exposure time combined with configurable timing margins. This adaptive logic allows the system to behave differently depending on imaging conditions and operational priorities.
In addition, the project evolved into a broader observatory interface by integrating:
fully functional embedded Stellarium integration;
automated solve-and-sync routines;
live telemetry panels;
FWHM analysis;
focus quality indicators;
and an independent SkyCam monitoring system for atmospheric observation.
The SkyCam module was added as a lightweight sky monitoring solution to observe clouds, sky transparency, horizon conditions, and general atmospheric behavior during imaging sessions.
The system dynamically detects connected webcams and USB cameras through DirectShow enumeration and allows portable deployment across different Windows systems without requiring hardcoded camera configurations.
Real-time image enhancement controls were also implemented for the SkyCam module, allowing brightness and contrast adjustment through FFmpeg video filtering. This improves visual monitoring of the night sky under varying atmospheric and light pollution conditions.
Overall, the Smart Tracking System became a custom-built observatory monitoring platform optimized for non-guided or minimally guided astrophotography workflows using SharpCap as the central data source.
First of all, I apologize for creating yet another topic in the scripting section...! It's just that I love creating things and I get carried away. When I discovered that I could use Python with Sharpcap, I decided to learn the Python language to create things.
This time I created something I called "The Smart Tracking System", and was created to solve a specific practical limitation in my astrophotography workflow. When Sharpcap is opened, it runs automatically. The ideia is to use Sharpcap in my laptop screen, and the panel in other monitor. I'm gradually improving it, adding fields, things, and information. The last thing I added was the object's rotation calculation.
Because my setup does not use a traditional equatorial guiding system (I use alt/az munt), I cannot use software such as PHD2 for real-time guiding analysis and tracking correction. Instead of relying on external autoguiding hardware, I decided to build a custom monitoring environment capable of extracting and interpreting tracking data directly from SharpCap.
The system uses live telemetry generated by SharpCap itself — especially Live Stack drift data and Plate Solve information — to create a real-time tracking analysis platform similar in concept to a lightweight integrated guiding monitor.
The main goal was not to replace professional autoguiding software, but to create an intelligent monitoring layer capable of:
analyzing mount stability;
visualizing tracking drift in real time;
calculating RMS tracking error;
identifying drift trends and tracking degradation;
monitoring alignment quality;
assisting with manual corrections;
improving long-exposure tracking reliability;
reducing dependence on dedicated guiding hardware.
The Tracking Radar and RMS monitoring modules were specifically designed to provide a visual representation of mount behavior over time. By plotting drift vectors and calculating average tracking deviation, the system allows continuous observation of tracking quality without requiring a separate guide camera or guiding software.
One of the core features of the system is its automated recentering logic. Instead of performing constant guiding corrections like a traditional autoguider, the software periodically executes intelligent Plate Solve + Sync operations to recenter the target and compensate for accumulated drift.
To make this process adaptable to different observing conditions and mount behaviors, three operational synchronization modes were implemented:
Smart Mode
Designed as the balanced operational mode. It calculates synchronization intervals dynamically based on the current exposure time and applies moderate timing margins. This mode prioritizes stability while minimizing unnecessary corrections during normal imaging sessions.
Precision Mode
Optimized for maximum framing accuracy and tighter target centering. Synchronizations occur more frequently, reducing accumulated drift at the cost of higher synchronization activity. This mode is intended for long focal lengths, smaller sensors, or sessions requiring highly accurate framing consistency.
Aggressive Mode
Designed for unstable tracking conditions, portable mounts, or situations with poor polar alignment. The system performs recentering operations much more frequently to compensate for rapid drift accumulation. This mode prioritizes maintaining target position even under difficult tracking conditions.
The synchronization intervals are automatically calculated using the current camera exposure time combined with configurable timing margins. This adaptive logic allows the system to behave differently depending on imaging conditions and operational priorities.
In addition, the project evolved into a broader observatory interface by integrating:
fully functional embedded Stellarium integration;
automated solve-and-sync routines;
live telemetry panels;
FWHM analysis;
focus quality indicators;
and an independent SkyCam monitoring system for atmospheric observation.
The SkyCam module was added as a lightweight sky monitoring solution to observe clouds, sky transparency, horizon conditions, and general atmospheric behavior during imaging sessions.
The system dynamically detects connected webcams and USB cameras through DirectShow enumeration and allows portable deployment across different Windows systems without requiring hardcoded camera configurations.
Real-time image enhancement controls were also implemented for the SkyCam module, allowing brightness and contrast adjustment through FFmpeg video filtering. This improves visual monitoring of the night sky under varying atmospheric and light pollution conditions.
Overall, the Smart Tracking System became a custom-built observatory monitoring platform optimized for non-guided or minimally guided astrophotography workflows using SharpCap as the central data source.