Qt 5 Multimedia framework gphoto2 camera plugin
C++ QMake
Switch branches/tags
Nothing to show
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
.gitignore
README.md
gphoto.json
gphoto.pro
gphotocameracapturedestinationcontrol.cpp
gphotocameracapturedestinationcontrol.h
gphotocameracontrol.cpp
gphotocameracontrol.h
gphotocameraimagecapturecontrol.cpp
gphotocameraimagecapturecontrol.h
gphotocamerasession.cpp
gphotocamerasession.h
gphotocameraworker.cpp
gphotocameraworker.h
gphotoexposurecontrol.cpp
gphotoexposurecontrol.h
gphotofactory.cpp
gphotofactory.h
gphotomediaservice.cpp
gphotomediaservice.h
gphotoserviceplugin.cpp
gphotoserviceplugin.h
gphotovideoinputdevicecontrol.cpp
gphotovideoinputdevicecontrol.h
gphotovideoprobecontrol.cpp
gphotovideoprobecontrol.h
gphotovideorenderercontrol.cpp
gphotovideorenderercontrol.h

README.md

QtMultimedia GPhoto plugin

This plugin adds support for Qt Multimedia classes working with camera (QCamera or QML Camera item) to access the generic photo cameras supported by gphoto2 library.

Plugin surely must be considered experimental and supports only the basic gphoto2 functionality. It was tested on Ubuntu 13.10 and Qt 5.3 with Canon EOS 550D DSLR camera and proved itself to work nicely for a two-day proof-of-concept. I expect every camera supporting image capture and liveview functionality via gphoto2 library to work.

The code was mainly inspired by QNX/BlackBerry QtMultimedia plugin contained in Qt sources.

More than one camera support haven't been tested and probably wouldn't work.

Installation

qmake
make
make install

Usage

After installing the plugin you may access your camera using any QtMultimedia camera app (for example, you may use camera example provided with Qt itself).

Note that since most cameras doesn't support sending orientation sensor data via PTP you will need to rotate the preview and captured images yourself when using camera in portrait orientation. You can rotate viewfinder preview using the orientation property supported by QML VideoOutput item.

License

LGPL 2.1 Copyright © 2014 Boris Moiseev

This software depends on Qt 5 and libgphoto2 libraries using LGPL 2.1 license. Feel free to contact me if you're interested in using this library on other terms.