A recent request from one of our customers, a provider of pipeline and sewer inspection systems, challenged us to maintain a level camera feed while navigating in the pipes. Our engineering team accepted the challenge. The result is a practical demonstration of dynamic live video rotation using the SCAiLX Edge AI camera platform.
Why Live Rotation Matters
In environments like pipes, borescopes, and confined industrial systems, cameras move in unpredictable orientations. Operators need a level, intuitive view to perform accurate inspections, reduce fatigue, and ensure safety. If the image tilts with every turn of the camera, productivity suffers.
To solve this, we combined:
GPU acceleration for smooth performance on embedded platforms like SCAiLX
The result? A seamless viewing experience, no matter how your camera twists or turns.
Our initial proof of concept used GStreamer’s rotate element in a Python script. While functional, CPU-based rotation only achieved around 2 frames per second on the SCAiLX. This was not fast enough for real-world pipe inspection or other demanding applications.
The next step was to leverage GPU acceleration. By using GStreamer’s glshader element, we achieved smooth, real-time rotation at near-60 FPS. The solution streams directly to a web interface (scailxwebsink), allowing operators to view a stabilized feed on any browser-enabled device.
Dynamic live video rotation benefits multiple industries:
Pipe and sewer inspection: Ensures inspectors always have a consistent view while maneuvering cameras through the pipes and sewer lines.
Industrial robotics: Keeps operators oriented when cameras are mounted at varying angles.
Drones and UAVs: Stabilizes onboard camera feeds during flight.
Medical and technical endoscopes: Provides surgeons and engineers with a clear, level perspective.
The demonstration uses a custom OpenGL shader embedded in the GStreamer pipeline. This shader dynamically adjusts the video orientation based on input from sensors, allowing precise rotation beyond simple 90° increments.
Ready to see the full technical details? Please complete the form below to connect with our team and discuss your imaging requirements.