LinuxQuestions.org
Help answer threads with 0 replies.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Non-*NIX Forums > Programming
User Name
Password
Programming This forum is for all programming questions.
The question does not have to be directly related to Linux and any language is fair game.

Notices


Reply
  Search this Thread
Old 08-18-2005, 11:52 AM   #1
Gnarg
Member
 
Registered: Feb 2004
Location: Canada
Distribution: Gentoo Linux
Posts: 44

Rep: Reputation: 15
Programming using a Canon PowerShot A70 in KDE


Hi everyone,

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.


Thanks for your help.


Gnarg
 
Old 08-18-2005, 01:11 PM   #2
leonscape
Senior Member
 
Registered: Aug 2003
Location: UK
Distribution: Debian SID / KDE 3.5
Posts: 2,313

Rep: Reputation: 48
IF there are currently drivers for the Camera, You could look for the Kernel interface. If not you'd have to do some real low level kernel type stuff.
 
Old 08-19-2005, 07:24 AM   #3
Gnarg
Member
 
Registered: Feb 2004
Location: Canada
Distribution: Gentoo Linux
Posts: 44

Original Poster
Rep: Reputation: 15
Ah nuts, I was hoping there was something out there.


Thanks for the reply,



Gnarg
 
Old 08-19-2005, 08:54 AM   #4
Gnarg
Member
 
Registered: Feb 2004
Location: Canada
Distribution: Gentoo Linux
Posts: 44

Original Poster
Rep: Reputation: 15
I think I found exactly what I am looking for.


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.



Gnarg
 
Old 08-19-2005, 03:33 PM   #5
leonscape
Senior Member
 
Registered: Aug 2003
Location: UK
Distribution: Debian SID / KDE 3.5
Posts: 2,313

Rep: Reputation: 48
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.
 
Old 08-22-2005, 06:47 AM   #6
Gnarg
Member
 
Registered: Feb 2004
Location: Canada
Distribution: Gentoo Linux
Posts: 44

Original Poster
Rep: Reputation: 15
Thanks leonscape,

Oh good, I did not know that. Then I'll stick with what I'm use to.

As for Kamera, I will have to check it out.

Thanks for the help...







Gnarg
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Canon PowerShot A400 - does anyone use it? ditch* Linux - General 7 03-31-2006 09:41 PM
How to get my Canon powershot working woopud Slackware 6 10-01-2005 12:41 AM
Canon Powershot G5 - corruption? beebop Linux - Hardware 1 10-23-2004 02:15 PM
Canon PowerShot S50 oskar_27de Linux - Hardware 0 11-03-2003 04:12 AM
Canon Powershot Cameras psx-dude Slackware 14 08-28-2003 09:28 AM

LinuxQuestions.org > Forums > Non-*NIX Forums > Programming

All times are GMT -5. The time now is 03:43 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration