|
2007-12-28
, 00:52
|
|
Posts: 273 |
Thanked: 104 times |
Joined on Mar 2007
@ Manitoba, Canada
|
#2
|
|
2007-12-28
, 03:08
|
Posts: 22 |
Thanked: 3 times |
Joined on Nov 2007
|
#3
|
|
2007-12-28
, 04:59
|
Posts: 39 |
Thanked: 22 times |
Joined on Nov 2007
@ Vancouver, BC
|
#4
|
|
2008-01-02
, 16:51
|
Posts: 1 |
Thanked: 0 times |
Joined on Dec 2007
|
#5
|
|
2008-01-07
, 20:01
|
|
Posts: 282 |
Thanked: 120 times |
Joined on Nov 2007
|
#6
|
|
2008-01-07
, 20:11
|
Posts: 17 |
Thanked: 3 times |
Joined on Jan 2008
|
#7
|
The Following User Says Thank You to mi_ko For This Useful Post: | ||
|
2008-01-10
, 17:06
|
|
Posts: 273 |
Thanked: 104 times |
Joined on Mar 2007
@ Manitoba, Canada
|
#8
|
|
2008-01-10
, 18:19
|
|
Posts: 273 |
Thanked: 104 times |
Joined on Mar 2007
@ Manitoba, Canada
|
#9
|
|
2008-01-10
, 20:11
|
|
Posts: 273 |
Thanked: 104 times |
Joined on Mar 2007
@ Manitoba, Canada
|
#10
|
The idea I've been working on is that it's possible for a computer to view/download images from my Canon 20d camera while it's shooting. To do so, I've set the camera up in "normal mode" (rather than PTP that causes the system to pretty much shutdown aside from the connection mode) and have been trying to use gphoto2 to poll+download the camera for new images.
I've thrown together the following perl script and have used it with success on my laptop... and some with the n810. What it does is first downloads a list of all the pictures on the camera, then flags them as "seen". From then on, it will poll the camera every 5 seconds or so and downloads any new pictures it sees to the memory card. That's just the test. When it's reliable I'm thinking of geotagging the images, then using something like djpeg to resize the image then upload the picture to flickr or some other site. If I get samba working, perhaps I'll get the system to dump the pictures onto a share.
The problem I'm encountering is that most of the time, when "gphoto2 -L" is invoked, the system freezes then reboots. Is there anything I can do to figure out what's causing the reboot?
If anyone wants, I can upload a tarball of my /media/mmc1/pocket, I've managed to stuff most of the little programs that I use into there. (perl, imagemagick *slow*, vim, dcraw, jhead, mysql, apache, subversion, etc)
---
Update: managed to get it more reliably when I invoke the script just after the camera is detected but before the second usb error is shown. Seems to be working fine as long as I get everything started in that window. W00t!
---
Update2: It's uploading! The script now downloads the photos to a temp directory and invokes (yet) another script that resizes via djpeg (image magick takes 4 minutes, djpeg does it in a few seconds) and uploads the result to my server. Of course, there's the little problem that it uploads /all/ my pics... but it's working!
Last edited by aki; 2007-12-27 at 02:14.