ProgrammingThis forum is for all programming questions.
The question does not have to be directly related to Linux and any language is fair game.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
I am trying to write a KDE application that will display a live feed from my Canon PowerShot A70 into my KDE app. Then press a button that will take a snapshot from the camera.
Are there any API's availalbe that I can use?
The whole reason why I want to do this is just for my learning purpose and not just to have the functionality. I am sure there are applications out there that aleady do this. Canan has API's but I think they are Windows API's and would not work under Linux.
GPhoto2 has libraries I can use and from what I was reading I should be able to take pictures using my camera in my custom application. I guess I'll have to learn some GTK programming now.
According to the docs, you could just talk to libgphoto2 from within you application, it then doesn't matter what frontend you program with.
I've also found kamera which already does this. Its an io-slave, which basically means it already handles all the dirty work, and you can just use it. Kamera just does pictures from the camera, it doesn't do live feed from the Camera.
Its already part of KDE so should be available. along with gphoto.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.