Raspberry Pi 3 Python based App to stream Live Video out from Sony lensstyle QX30 for drone applications Features
- Control Sony Lens Camera: Take Picture or Video, Zoom, switch mode
- See status of Sony Lens Camera: battery, SD Card, mode and zoom factor
- Live picture feed
- See status of Autopilot: battery, GPS Quality, artifical horizon, speed, altitude, yaw orientation
- See live feed from Raspy Cam
- switch to see both cams at one time, or only Sony or only Raspy Cam
- experimential Face detection with OpenCV
My initial idea was to control camera functions with rc inputs via an arduino nano connected with USB to Raspberry. But as we have mavlink i think it is better to monitor channel_raw input params. Arduino is only able to monitor 3 channels at one time.
Ideas for future releases:
- add precicion landing with Pi Camera face down (moved by a small servo)
- add object tracking by moving the Sony Gimbal
- add more control over Sony Camera with a menu controlled by two channels, one to move the pointer and one to manipulate the value
requirements Hardware:
- Raspberry Pi 3
- Raspberry Pi Camera
- Sony DSC QX1/10/30
- HDMI Monitor
requirements Software:
- Raspberry Pi Desktop or Ubuntu
- Python 2.7 (was the max Version for Dronekit 1.x will be Python 3 for future releases)
- Mavproxy (will be removed as Dronekit 2.0 don't need it)
- Dronekit 1.5 (will be migrates to 2.0)
- OpenCV
To do:
- Migrate to DKPY 2.0
- remove code for controlling RC-in channels with Arduino Serial connection and monitor channels via mavlink
You can find informations on how to install needed modules on the following pages:
https://www.raspberrypi.org/downloads/
http://python.dronekit.io/1.5.0/
http://ardupilot.github.io/MAVProxy/
detailed informations on how to compile openCV on Adrians pages: https://www.pyimagesearch.com/2017/09/04/raspbian-stretch-install-opencv-3-python-on-your-raspberry-pi/
The pictures below are showing the output of Raspberry Pi. You can connect the HDMI port to an Ammimon Connex or Lightbridge to get both camera feeds transmitted