Autonomous Flight with a Camera: Horizon Detection Algorithm

Опубликовано: 09 Май 2026
на канале: Tim Huff
12,176
593

I built a computer vision autopilot system for an RC plane. The plane is able to maintain level flight and execute controlled turns using only input from the camera and no other standard aviation sensors such as a gyroscope, GPS, altimeter, air speed indicator, etc.

This video explains the horizon detection algorithm that allows the system to work.

To see the project overview, check out this video:    • Computer Vision Autopilot for RC Airplane  

GitHub Repo:
https://github.com/timmarkhuff/horizo...

Chapters
0:00 Project Recap
0:48 Image Thresholding
3:08 Finding Contours
5:46 Filtering Contours
7:09 Diagnostic Mode
7:40 Fitting a Line to the Contour
8:48 Limitations
9:46 Conclusion

#python #opencv #drone #rcplane #computervision #robotics #aviation #fpv